docker-engine-api 0.2.1

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 (608) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +33 -0
  4. data/README.md +232 -0
  5. data/SECURITY.md +27 -0
  6. data/lib/docker_engine_api/client.rb +109 -0
  7. data/lib/docker_engine_api/errors.rb +228 -0
  8. data/lib/docker_engine_api/file_part.rb +58 -0
  9. data/lib/docker_engine_api/internal/transport/base_client.rb +571 -0
  10. data/lib/docker_engine_api/internal/transport/pooled_net_requester.rb +210 -0
  11. data/lib/docker_engine_api/internal/type/array_of.rb +168 -0
  12. data/lib/docker_engine_api/internal/type/base_model.rb +534 -0
  13. data/lib/docker_engine_api/internal/type/base_page.rb +55 -0
  14. data/lib/docker_engine_api/internal/type/boolean.rb +77 -0
  15. data/lib/docker_engine_api/internal/type/converter.rb +327 -0
  16. data/lib/docker_engine_api/internal/type/enum.rb +131 -0
  17. data/lib/docker_engine_api/internal/type/file_input.rb +111 -0
  18. data/lib/docker_engine_api/internal/type/hash_of.rb +188 -0
  19. data/lib/docker_engine_api/internal/type/request_parameters.rb +42 -0
  20. data/lib/docker_engine_api/internal/type/union.rb +245 -0
  21. data/lib/docker_engine_api/internal/type/unknown.rb +81 -0
  22. data/lib/docker_engine_api/internal/util.rb +920 -0
  23. data/lib/docker_engine_api/internal.rb +20 -0
  24. data/lib/docker_engine_api/models/auth_login_params.rb +32 -0
  25. data/lib/docker_engine_api/models/auth_response.rb +27 -0
  26. data/lib/docker_engine_api/models/config.rb +307 -0
  27. data/lib/docker_engine_api/models/config_create_params.rb +24 -0
  28. data/lib/docker_engine_api/models/config_create_response.rb +19 -0
  29. data/lib/docker_engine_api/models/config_delete_params.rb +14 -0
  30. data/lib/docker_engine_api/models/config_inspect_params.rb +14 -0
  31. data/lib/docker_engine_api/models/config_list_params.rb +33 -0
  32. data/lib/docker_engine_api/models/config_list_response.rb +8 -0
  33. data/lib/docker_engine_api/models/config_update_params.rb +26 -0
  34. data/lib/docker_engine_api/models/connect_request.rb +198 -0
  35. data/lib/docker_engine_api/models/container.rb +2515 -0
  36. data/lib/docker_engine_api/models/container_archive_params.rb +22 -0
  37. data/lib/docker_engine_api/models/container_attach_params.rb +73 -0
  38. data/lib/docker_engine_api/models/container_changes_params.rb +14 -0
  39. data/lib/docker_engine_api/models/container_changes_response.rb +9 -0
  40. data/lib/docker_engine_api/models/container_create_params.rb +1720 -0
  41. data/lib/docker_engine_api/models/container_delete_params.rb +38 -0
  42. data/lib/docker_engine_api/models/container_exec_params.rb +111 -0
  43. data/lib/docker_engine_api/models/container_exec_response.rb +19 -0
  44. data/lib/docker_engine_api/models/container_export_params.rb +14 -0
  45. data/lib/docker_engine_api/models/container_inspect_params.rb +22 -0
  46. data/lib/docker_engine_api/models/container_kill_params.rb +25 -0
  47. data/lib/docker_engine_api/models/container_list_params.rb +70 -0
  48. data/lib/docker_engine_api/models/container_list_response.rb +8 -0
  49. data/lib/docker_engine_api/models/container_logs_params.rb +74 -0
  50. data/lib/docker_engine_api/models/container_pause_params.rb +14 -0
  51. data/lib/docker_engine_api/models/container_prune_params.rb +35 -0
  52. data/lib/docker_engine_api/models/container_prune_response.rb +27 -0
  53. data/lib/docker_engine_api/models/container_rename_params.rb +22 -0
  54. data/lib/docker_engine_api/models/container_resize_params.rb +30 -0
  55. data/lib/docker_engine_api/models/container_restart_params.rb +33 -0
  56. data/lib/docker_engine_api/models/container_start_params.rb +27 -0
  57. data/lib/docker_engine_api/models/container_stats_params.rb +35 -0
  58. data/lib/docker_engine_api/models/container_stop_params.rb +33 -0
  59. data/lib/docker_engine_api/models/container_top_params.rb +22 -0
  60. data/lib/docker_engine_api/models/container_unpause_params.rb +14 -0
  61. data/lib/docker_engine_api/models/container_update_params.rb +606 -0
  62. data/lib/docker_engine_api/models/container_wait_params.rb +41 -0
  63. data/lib/docker_engine_api/models/create_request.rb +348 -0
  64. data/lib/docker_engine_api/models/create_response.rb +27 -0
  65. data/lib/docker_engine_api/models/delete_item.rb +24 -0
  66. data/lib/docker_engine_api/models/disconnect_request.rb +27 -0
  67. data/lib/docker_engine_api/models/distribution_inspect_params.rb +14 -0
  68. data/lib/docker_engine_api/models/error.rb +18 -0
  69. data/lib/docker_engine_api/models/exec_inspect_params.rb +14 -0
  70. data/lib/docker_engine_api/models/exec_inspect_response.rb +87 -0
  71. data/lib/docker_engine_api/models/exec_resize_params.rb +30 -0
  72. data/lib/docker_engine_api/models/exec_start_params.rb +41 -0
  73. data/lib/docker_engine_api/models/filesystem_change.rb +55 -0
  74. data/lib/docker_engine_api/models/history_item.rb +47 -0
  75. data/lib/docker_engine_api/models/image.rb +1395 -0
  76. data/lib/docker_engine_api/models/image_build_params.rb +283 -0
  77. data/lib/docker_engine_api/models/image_build_prune_params.rb +71 -0
  78. data/lib/docker_engine_api/models/image_build_prune_response.rb +24 -0
  79. data/lib/docker_engine_api/models/image_commit_params.rb +70 -0
  80. data/lib/docker_engine_api/models/image_commit_response.rb +19 -0
  81. data/lib/docker_engine_api/models/image_delete_params.rb +43 -0
  82. data/lib/docker_engine_api/models/image_delete_response.rb +8 -0
  83. data/lib/docker_engine_api/models/image_get_all_params.rb +37 -0
  84. data/lib/docker_engine_api/models/image_get_params.rb +29 -0
  85. data/lib/docker_engine_api/models/image_history_params.rb +34 -0
  86. data/lib/docker_engine_api/models/image_history_response.rb +8 -0
  87. data/lib/docker_engine_api/models/image_inspect_params.rb +22 -0
  88. data/lib/docker_engine_api/models/image_list_params.rb +68 -0
  89. data/lib/docker_engine_api/models/image_list_response.rb +8 -0
  90. data/lib/docker_engine_api/models/image_load_params.rb +44 -0
  91. data/lib/docker_engine_api/models/image_prune_params.rb +35 -0
  92. data/lib/docker_engine_api/models/image_prune_response.rb +27 -0
  93. data/lib/docker_engine_api/models/image_pull_params.rb +115 -0
  94. data/lib/docker_engine_api/models/image_push_params.rb +49 -0
  95. data/lib/docker_engine_api/models/image_search_params.rb +45 -0
  96. data/lib/docker_engine_api/models/image_search_response.rb +55 -0
  97. data/lib/docker_engine_api/models/image_tag_params.rb +30 -0
  98. data/lib/docker_engine_api/models/info.rb +1488 -0
  99. data/lib/docker_engine_api/models/inspect.rb +221 -0
  100. data/lib/docker_engine_api/models/inspect_response.rb +39 -0
  101. data/lib/docker_engine_api/models/list_response.rb +32 -0
  102. data/lib/docker_engine_api/models/network.rb +253 -0
  103. data/lib/docker_engine_api/models/network_connect_params.rb +14 -0
  104. data/lib/docker_engine_api/models/network_create_params.rb +210 -0
  105. data/lib/docker_engine_api/models/network_delete_params.rb +14 -0
  106. data/lib/docker_engine_api/models/network_disconnect_params.rb +14 -0
  107. data/lib/docker_engine_api/models/network_inspect_params.rb +30 -0
  108. data/lib/docker_engine_api/models/network_inspect_response.rb +131 -0
  109. data/lib/docker_engine_api/models/network_list_params.rb +40 -0
  110. data/lib/docker_engine_api/models/network_list_response.rb +8 -0
  111. data/lib/docker_engine_api/models/network_prune_params.rb +35 -0
  112. data/lib/docker_engine_api/models/network_prune_response.rb +17 -0
  113. data/lib/docker_engine_api/models/node.rb +459 -0
  114. data/lib/docker_engine_api/models/node_delete_params.rb +22 -0
  115. data/lib/docker_engine_api/models/node_inspect_params.rb +14 -0
  116. data/lib/docker_engine_api/models/node_list_params.rb +34 -0
  117. data/lib/docker_engine_api/models/node_list_response.rb +8 -0
  118. data/lib/docker_engine_api/models/node_update_params.rb +26 -0
  119. data/lib/docker_engine_api/models/plugin.rb +532 -0
  120. data/lib/docker_engine_api/models/plugin_create_params.rb +33 -0
  121. data/lib/docker_engine_api/models/plugin_delete_params.rb +26 -0
  122. data/lib/docker_engine_api/models/plugin_disable_params.rb +25 -0
  123. data/lib/docker_engine_api/models/plugin_enable_params.rb +22 -0
  124. data/lib/docker_engine_api/models/plugin_inspect_params.rb +14 -0
  125. data/lib/docker_engine_api/models/plugin_list_params.rb +31 -0
  126. data/lib/docker_engine_api/models/plugin_list_response.rb +8 -0
  127. data/lib/docker_engine_api/models/plugin_privileges_params.rb +26 -0
  128. data/lib/docker_engine_api/models/plugin_privileges_response.rb +8 -0
  129. data/lib/docker_engine_api/models/plugin_pull_params.rb +51 -0
  130. data/lib/docker_engine_api/models/plugin_push_params.rb +14 -0
  131. data/lib/docker_engine_api/models/plugin_set_params.rb +20 -0
  132. data/lib/docker_engine_api/models/plugin_upgrade_params.rb +41 -0
  133. data/lib/docker_engine_api/models/privilege.rb +29 -0
  134. data/lib/docker_engine_api/models/secret.rb +77 -0
  135. data/lib/docker_engine_api/models/secret_create_params.rb +24 -0
  136. data/lib/docker_engine_api/models/secret_create_response.rb +19 -0
  137. data/lib/docker_engine_api/models/secret_delete_params.rb +14 -0
  138. data/lib/docker_engine_api/models/secret_inspect_params.rb +14 -0
  139. data/lib/docker_engine_api/models/secret_list_params.rb +33 -0
  140. data/lib/docker_engine_api/models/secret_list_response.rb +8 -0
  141. data/lib/docker_engine_api/models/secret_update_params.rb +26 -0
  142. data/lib/docker_engine_api/models/service.rb +524 -0
  143. data/lib/docker_engine_api/models/service_create_params.rb +34 -0
  144. data/lib/docker_engine_api/models/service_delete_params.rb +14 -0
  145. data/lib/docker_engine_api/models/service_inspect_params.rb +22 -0
  146. data/lib/docker_engine_api/models/service_list_params.rb +41 -0
  147. data/lib/docker_engine_api/models/service_list_response.rb +8 -0
  148. data/lib/docker_engine_api/models/service_logs_params.rb +74 -0
  149. data/lib/docker_engine_api/models/service_update_params.rb +78 -0
  150. data/lib/docker_engine_api/models/spec.rb +510 -0
  151. data/lib/docker_engine_api/models/stats_response.rb +950 -0
  152. data/lib/docker_engine_api/models/summary.rb +767 -0
  153. data/lib/docker_engine_api/models/swarm.rb +198 -0
  154. data/lib/docker_engine_api/models/swarm_init_params.rb +101 -0
  155. data/lib/docker_engine_api/models/swarm_init_response.rb +7 -0
  156. data/lib/docker_engine_api/models/swarm_inspect_params.rb +14 -0
  157. data/lib/docker_engine_api/models/swarm_join_params.rb +70 -0
  158. data/lib/docker_engine_api/models/swarm_leave_params.rb +26 -0
  159. data/lib/docker_engine_api/models/swarm_unlock_key_params.rb +14 -0
  160. data/lib/docker_engine_api/models/swarm_unlock_key_response.rb +17 -0
  161. data/lib/docker_engine_api/models/swarm_unlock_params.rb +22 -0
  162. data/lib/docker_engine_api/models/swarm_update_params.rb +50 -0
  163. data/lib/docker_engine_api/models/system_data_usage_params.rb +46 -0
  164. data/lib/docker_engine_api/models/system_data_usage_response.rb +260 -0
  165. data/lib/docker_engine_api/models/system_events_params.rb +58 -0
  166. data/lib/docker_engine_api/models/system_events_response.rb +126 -0
  167. data/lib/docker_engine_api/models/system_info_params.rb +14 -0
  168. data/lib/docker_engine_api/models/system_ping_params.rb +14 -0
  169. data/lib/docker_engine_api/models/system_ping_response.rb +7 -0
  170. data/lib/docker_engine_api/models/system_version_params.rb +14 -0
  171. data/lib/docker_engine_api/models/task.rb +471 -0
  172. data/lib/docker_engine_api/models/task_inspect_params.rb +14 -0
  173. data/lib/docker_engine_api/models/task_list_params.rb +35 -0
  174. data/lib/docker_engine_api/models/task_list_response.rb +8 -0
  175. data/lib/docker_engine_api/models/task_logs_params.rb +74 -0
  176. data/lib/docker_engine_api/models/top_response.rb +33 -0
  177. data/lib/docker_engine_api/models/update_response.rb +19 -0
  178. data/lib/docker_engine_api/models/version.rb +164 -0
  179. data/lib/docker_engine_api/models/volume.rb +651 -0
  180. data/lib/docker_engine_api/models/volume_create_params.rb +14 -0
  181. data/lib/docker_engine_api/models/volume_delete_params.rb +22 -0
  182. data/lib/docker_engine_api/models/volume_inspect_params.rb +14 -0
  183. data/lib/docker_engine_api/models/volume_list_params.rb +34 -0
  184. data/lib/docker_engine_api/models/volume_prune_params.rb +33 -0
  185. data/lib/docker_engine_api/models/volume_prune_response.rb +25 -0
  186. data/lib/docker_engine_api/models/volume_update_params.rb +325 -0
  187. data/lib/docker_engine_api/models/wait_response.rb +41 -0
  188. data/lib/docker_engine_api/models.rb +312 -0
  189. data/lib/docker_engine_api/request_options.rb +78 -0
  190. data/lib/docker_engine_api/resources/auth.rb +38 -0
  191. data/lib/docker_engine_api/resources/configs.rb +130 -0
  192. data/lib/docker_engine_api/resources/containers.rb +854 -0
  193. data/lib/docker_engine_api/resources/distribution.rb +34 -0
  194. data/lib/docker_engine_api/resources/exec.rb +91 -0
  195. data/lib/docker_engine_api/resources/images.rb +676 -0
  196. data/lib/docker_engine_api/resources/networks.rb +218 -0
  197. data/lib/docker_engine_api/resources/nodes.rb +113 -0
  198. data/lib/docker_engine_api/resources/plugins.rb +317 -0
  199. data/lib/docker_engine_api/resources/secrets.rb +130 -0
  200. data/lib/docker_engine_api/resources/services.rb +195 -0
  201. data/lib/docker_engine_api/resources/swarm.rb +183 -0
  202. data/lib/docker_engine_api/resources/system.rb +155 -0
  203. data/lib/docker_engine_api/resources/tasks.rb +103 -0
  204. data/lib/docker_engine_api/resources/volumes.rb +161 -0
  205. data/lib/docker_engine_api/version.rb +5 -0
  206. data/lib/docker_engine_api.rb +234 -0
  207. data/manifest.yaml +17 -0
  208. data/rbi/docker_engine_api/client.rbi +80 -0
  209. data/rbi/docker_engine_api/errors.rbi +205 -0
  210. data/rbi/docker_engine_api/file_part.rbi +37 -0
  211. data/rbi/docker_engine_api/internal/transport/base_client.rbi +304 -0
  212. data/rbi/docker_engine_api/internal/transport/pooled_net_requester.rbi +84 -0
  213. data/rbi/docker_engine_api/internal/type/array_of.rbi +108 -0
  214. data/rbi/docker_engine_api/internal/type/base_model.rbi +314 -0
  215. data/rbi/docker_engine_api/internal/type/base_page.rbi +43 -0
  216. data/rbi/docker_engine_api/internal/type/boolean.rbi +58 -0
  217. data/rbi/docker_engine_api/internal/type/converter.rbi +225 -0
  218. data/rbi/docker_engine_api/internal/type/enum.rbi +82 -0
  219. data/rbi/docker_engine_api/internal/type/file_input.rbi +59 -0
  220. data/rbi/docker_engine_api/internal/type/hash_of.rbi +108 -0
  221. data/rbi/docker_engine_api/internal/type/request_parameters.rbi +31 -0
  222. data/rbi/docker_engine_api/internal/type/union.rbi +134 -0
  223. data/rbi/docker_engine_api/internal/type/unknown.rbi +58 -0
  224. data/rbi/docker_engine_api/internal/util.rbi +487 -0
  225. data/rbi/docker_engine_api/internal.rbi +18 -0
  226. data/rbi/docker_engine_api/models/auth_login_params.rbi +65 -0
  227. data/rbi/docker_engine_api/models/auth_response.rbi +42 -0
  228. data/rbi/docker_engine_api/models/config.rbi +442 -0
  229. data/rbi/docker_engine_api/models/config_create_params.rbi +64 -0
  230. data/rbi/docker_engine_api/models/config_create_response.rbi +31 -0
  231. data/rbi/docker_engine_api/models/config_delete_params.rbi +32 -0
  232. data/rbi/docker_engine_api/models/config_inspect_params.rbi +32 -0
  233. data/rbi/docker_engine_api/models/config_list_params.rbi +62 -0
  234. data/rbi/docker_engine_api/models/config_list_response.rbi +11 -0
  235. data/rbi/docker_engine_api/models/config_update_params.rbi +45 -0
  236. data/rbi/docker_engine_api/models/connect_request.rbi +343 -0
  237. data/rbi/docker_engine_api/models/container.rbi +4645 -0
  238. data/rbi/docker_engine_api/models/container_archive_params.rbi +43 -0
  239. data/rbi/docker_engine_api/models/container_attach_params.rbi +120 -0
  240. data/rbi/docker_engine_api/models/container_changes_params.rbi +32 -0
  241. data/rbi/docker_engine_api/models/container_changes_response.rbi +13 -0
  242. data/rbi/docker_engine_api/models/container_create_params.rbi +3301 -0
  243. data/rbi/docker_engine_api/models/container_delete_params.rbi +71 -0
  244. data/rbi/docker_engine_api/models/container_exec_params.rbi +162 -0
  245. data/rbi/docker_engine_api/models/container_exec_response.rbi +31 -0
  246. data/rbi/docker_engine_api/models/container_export_params.rbi +32 -0
  247. data/rbi/docker_engine_api/models/container_inspect_params.rbi +46 -0
  248. data/rbi/docker_engine_api/models/container_kill_params.rbi +46 -0
  249. data/rbi/docker_engine_api/models/container_list_params.rbi +124 -0
  250. data/rbi/docker_engine_api/models/container_list_response.rbi +11 -0
  251. data/rbi/docker_engine_api/models/container_logs_params.rbi +117 -0
  252. data/rbi/docker_engine_api/models/container_pause_params.rbi +32 -0
  253. data/rbi/docker_engine_api/models/container_prune_params.rbi +66 -0
  254. data/rbi/docker_engine_api/models/container_prune_response.rbi +51 -0
  255. data/rbi/docker_engine_api/models/container_rename_params.rbi +43 -0
  256. data/rbi/docker_engine_api/models/container_resize_params.rbi +54 -0
  257. data/rbi/docker_engine_api/models/container_restart_params.rbi +60 -0
  258. data/rbi/docker_engine_api/models/container_start_params.rbi +53 -0
  259. data/rbi/docker_engine_api/models/container_stats_params.rbi +64 -0
  260. data/rbi/docker_engine_api/models/container_stop_params.rbi +60 -0
  261. data/rbi/docker_engine_api/models/container_top_params.rbi +46 -0
  262. data/rbi/docker_engine_api/models/container_unpause_params.rbi +32 -0
  263. data/rbi/docker_engine_api/models/container_update_params.rbi +1121 -0
  264. data/rbi/docker_engine_api/models/container_wait_params.rbi +101 -0
  265. data/rbi/docker_engine_api/models/create_request.rbi +708 -0
  266. data/rbi/docker_engine_api/models/create_response.rbi +39 -0
  267. data/rbi/docker_engine_api/models/delete_item.rbi +41 -0
  268. data/rbi/docker_engine_api/models/disconnect_request.rbi +43 -0
  269. data/rbi/docker_engine_api/models/distribution_inspect_params.rbi +32 -0
  270. data/rbi/docker_engine_api/models/error.rbi +28 -0
  271. data/rbi/docker_engine_api/models/exec_inspect_params.rbi +32 -0
  272. data/rbi/docker_engine_api/models/exec_inspect_response.rbi +135 -0
  273. data/rbi/docker_engine_api/models/exec_resize_params.rbi +54 -0
  274. data/rbi/docker_engine_api/models/exec_start_params.rbi +68 -0
  275. data/rbi/docker_engine_api/models/filesystem_change.rbi +93 -0
  276. data/rbi/docker_engine_api/models/history_item.rbi +62 -0
  277. data/rbi/docker_engine_api/models/image.rbi +2353 -0
  278. data/rbi/docker_engine_api/models/image_build_params.rbi +434 -0
  279. data/rbi/docker_engine_api/models/image_build_prune_params.rbi +121 -0
  280. data/rbi/docker_engine_api/models/image_build_prune_response.rbi +49 -0
  281. data/rbi/docker_engine_api/models/image_commit_params.rbi +115 -0
  282. data/rbi/docker_engine_api/models/image_commit_response.rbi +31 -0
  283. data/rbi/docker_engine_api/models/image_delete_params.rbi +75 -0
  284. data/rbi/docker_engine_api/models/image_delete_response.rbi +11 -0
  285. data/rbi/docker_engine_api/models/image_get_all_params.rbi +68 -0
  286. data/rbi/docker_engine_api/models/image_get_params.rbi +57 -0
  287. data/rbi/docker_engine_api/models/image_history_params.rbi +64 -0
  288. data/rbi/docker_engine_api/models/image_history_response.rbi +11 -0
  289. data/rbi/docker_engine_api/models/image_inspect_params.rbi +49 -0
  290. data/rbi/docker_engine_api/models/image_list_params.rbi +115 -0
  291. data/rbi/docker_engine_api/models/image_list_response.rbi +11 -0
  292. data/rbi/docker_engine_api/models/image_load_params.rbi +74 -0
  293. data/rbi/docker_engine_api/models/image_prune_params.rbi +66 -0
  294. data/rbi/docker_engine_api/models/image_prune_response.rbi +58 -0
  295. data/rbi/docker_engine_api/models/image_pull_params.rbi +189 -0
  296. data/rbi/docker_engine_api/models/image_push_params.rbi +84 -0
  297. data/rbi/docker_engine_api/models/image_search_params.rbi +76 -0
  298. data/rbi/docker_engine_api/models/image_search_response.rbi +95 -0
  299. data/rbi/docker_engine_api/models/image_tag_params.rbi +60 -0
  300. data/rbi/docker_engine_api/models/info.rbi +2564 -0
  301. data/rbi/docker_engine_api/models/inspect.rbi +359 -0
  302. data/rbi/docker_engine_api/models/inspect_response.rbi +77 -0
  303. data/rbi/docker_engine_api/models/list_response.rbi +55 -0
  304. data/rbi/docker_engine_api/models/network.rbi +427 -0
  305. data/rbi/docker_engine_api/models/network_connect_params.rbi +32 -0
  306. data/rbi/docker_engine_api/models/network_create_params.rbi +373 -0
  307. data/rbi/docker_engine_api/models/network_delete_params.rbi +32 -0
  308. data/rbi/docker_engine_api/models/network_disconnect_params.rbi +32 -0
  309. data/rbi/docker_engine_api/models/network_inspect_params.rbi +60 -0
  310. data/rbi/docker_engine_api/models/network_inspect_response.rbi +336 -0
  311. data/rbi/docker_engine_api/models/network_list_params.rbi +76 -0
  312. data/rbi/docker_engine_api/models/network_list_response.rbi +11 -0
  313. data/rbi/docker_engine_api/models/network_prune_params.rbi +66 -0
  314. data/rbi/docker_engine_api/models/network_prune_response.rbi +35 -0
  315. data/rbi/docker_engine_api/models/node.rbi +909 -0
  316. data/rbi/docker_engine_api/models/node_delete_params.rbi +49 -0
  317. data/rbi/docker_engine_api/models/node_inspect_params.rbi +32 -0
  318. data/rbi/docker_engine_api/models/node_list_params.rbi +64 -0
  319. data/rbi/docker_engine_api/models/node_list_response.rbi +11 -0
  320. data/rbi/docker_engine_api/models/node_update_params.rbi +45 -0
  321. data/rbi/docker_engine_api/models/plugin.rbi +835 -0
  322. data/rbi/docker_engine_api/models/plugin_create_params.rbi +54 -0
  323. data/rbi/docker_engine_api/models/plugin_delete_params.rbi +51 -0
  324. data/rbi/docker_engine_api/models/plugin_disable_params.rbi +49 -0
  325. data/rbi/docker_engine_api/models/plugin_enable_params.rbi +46 -0
  326. data/rbi/docker_engine_api/models/plugin_inspect_params.rbi +32 -0
  327. data/rbi/docker_engine_api/models/plugin_list_params.rbi +58 -0
  328. data/rbi/docker_engine_api/models/plugin_list_response.rbi +11 -0
  329. data/rbi/docker_engine_api/models/plugin_privileges_params.rbi +45 -0
  330. data/rbi/docker_engine_api/models/plugin_privileges_response.rbi +11 -0
  331. data/rbi/docker_engine_api/models/plugin_pull_params.rbi +83 -0
  332. data/rbi/docker_engine_api/models/plugin_push_params.rbi +32 -0
  333. data/rbi/docker_engine_api/models/plugin_set_params.rbi +44 -0
  334. data/rbi/docker_engine_api/models/plugin_upgrade_params.rbi +68 -0
  335. data/rbi/docker_engine_api/models/privilege.rbi +49 -0
  336. data/rbi/docker_engine_api/models/secret.rbi +125 -0
  337. data/rbi/docker_engine_api/models/secret_create_params.rbi +64 -0
  338. data/rbi/docker_engine_api/models/secret_create_response.rbi +31 -0
  339. data/rbi/docker_engine_api/models/secret_delete_params.rbi +32 -0
  340. data/rbi/docker_engine_api/models/secret_inspect_params.rbi +32 -0
  341. data/rbi/docker_engine_api/models/secret_list_params.rbi +62 -0
  342. data/rbi/docker_engine_api/models/secret_list_response.rbi +11 -0
  343. data/rbi/docker_engine_api/models/secret_update_params.rbi +45 -0
  344. data/rbi/docker_engine_api/models/service.rbi +1093 -0
  345. data/rbi/docker_engine_api/models/service_create_params.rbi +79 -0
  346. data/rbi/docker_engine_api/models/service_delete_params.rbi +32 -0
  347. data/rbi/docker_engine_api/models/service_inspect_params.rbi +49 -0
  348. data/rbi/docker_engine_api/models/service_list_params.rbi +76 -0
  349. data/rbi/docker_engine_api/models/service_list_response.rbi +11 -0
  350. data/rbi/docker_engine_api/models/service_logs_params.rbi +117 -0
  351. data/rbi/docker_engine_api/models/service_update_params.rbi +168 -0
  352. data/rbi/docker_engine_api/models/spec.rbi +1030 -0
  353. data/rbi/docker_engine_api/models/stats_response.rbi +1772 -0
  354. data/rbi/docker_engine_api/models/summary.rbi +1332 -0
  355. data/rbi/docker_engine_api/models/swarm.rbi +315 -0
  356. data/rbi/docker_engine_api/models/swarm_init_params.rbi +162 -0
  357. data/rbi/docker_engine_api/models/swarm_init_response.rbi +7 -0
  358. data/rbi/docker_engine_api/models/swarm_inspect_params.rbi +32 -0
  359. data/rbi/docker_engine_api/models/swarm_join_params.rbi +119 -0
  360. data/rbi/docker_engine_api/models/swarm_leave_params.rbi +51 -0
  361. data/rbi/docker_engine_api/models/swarm_unlock_key_params.rbi +32 -0
  362. data/rbi/docker_engine_api/models/swarm_unlock_key_response.rbi +33 -0
  363. data/rbi/docker_engine_api/models/swarm_unlock_params.rbi +49 -0
  364. data/rbi/docker_engine_api/models/swarm_update_params.rbi +81 -0
  365. data/rbi/docker_engine_api/models/system_data_usage_params.rbi +111 -0
  366. data/rbi/docker_engine_api/models/system_data_usage_response.rbi +460 -0
  367. data/rbi/docker_engine_api/models/system_events_params.rbi +105 -0
  368. data/rbi/docker_engine_api/models/system_events_response.rbi +286 -0
  369. data/rbi/docker_engine_api/models/system_info_params.rbi +32 -0
  370. data/rbi/docker_engine_api/models/system_ping_params.rbi +32 -0
  371. data/rbi/docker_engine_api/models/system_ping_response.rbi +7 -0
  372. data/rbi/docker_engine_api/models/system_version_params.rbi +32 -0
  373. data/rbi/docker_engine_api/models/task.rbi +921 -0
  374. data/rbi/docker_engine_api/models/task_inspect_params.rbi +32 -0
  375. data/rbi/docker_engine_api/models/task_list_params.rbi +66 -0
  376. data/rbi/docker_engine_api/models/task_list_response.rbi +11 -0
  377. data/rbi/docker_engine_api/models/task_logs_params.rbi +117 -0
  378. data/rbi/docker_engine_api/models/top_response.rbi +54 -0
  379. data/rbi/docker_engine_api/models/update_response.rbi +34 -0
  380. data/rbi/docker_engine_api/models/version.rbi +256 -0
  381. data/rbi/docker_engine_api/models/volume.rbi +1230 -0
  382. data/rbi/docker_engine_api/models/volume_create_params.rbi +32 -0
  383. data/rbi/docker_engine_api/models/volume_delete_params.rbi +49 -0
  384. data/rbi/docker_engine_api/models/volume_inspect_params.rbi +32 -0
  385. data/rbi/docker_engine_api/models/volume_list_params.rbi +64 -0
  386. data/rbi/docker_engine_api/models/volume_prune_params.rbi +62 -0
  387. data/rbi/docker_engine_api/models/volume_prune_response.rbi +51 -0
  388. data/rbi/docker_engine_api/models/volume_update_params.rbi +668 -0
  389. data/rbi/docker_engine_api/models/wait_response.rbi +78 -0
  390. data/rbi/docker_engine_api/models.rbi +271 -0
  391. data/rbi/docker_engine_api/request_options.rbi +64 -0
  392. data/rbi/docker_engine_api/resources/auth.rbi +30 -0
  393. data/rbi/docker_engine_api/resources/configs.rbi +93 -0
  394. data/rbi/docker_engine_api/resources/containers.rbi +843 -0
  395. data/rbi/docker_engine_api/resources/distribution.rbi +26 -0
  396. data/rbi/docker_engine_api/resources/exec.rbi +72 -0
  397. data/rbi/docker_engine_api/resources/images.rbi +739 -0
  398. data/rbi/docker_engine_api/resources/networks.rbi +200 -0
  399. data/rbi/docker_engine_api/resources/nodes.rbi +87 -0
  400. data/rbi/docker_engine_api/resources/plugins.rbi +228 -0
  401. data/rbi/docker_engine_api/resources/secrets.rbi +93 -0
  402. data/rbi/docker_engine_api/resources/services.rbi +166 -0
  403. data/rbi/docker_engine_api/resources/swarm.rbi +178 -0
  404. data/rbi/docker_engine_api/resources/system.rbi +123 -0
  405. data/rbi/docker_engine_api/resources/tasks.rbi +90 -0
  406. data/rbi/docker_engine_api/resources/volumes.rbi +123 -0
  407. data/rbi/docker_engine_api/version.rbi +5 -0
  408. data/sig/docker_engine_api/client.rbs +49 -0
  409. data/sig/docker_engine_api/errors.rbs +117 -0
  410. data/sig/docker_engine_api/file_part.rbs +21 -0
  411. data/sig/docker_engine_api/internal/transport/base_client.rbs +131 -0
  412. data/sig/docker_engine_api/internal/transport/pooled_net_requester.rbs +48 -0
  413. data/sig/docker_engine_api/internal/type/array_of.rbs +48 -0
  414. data/sig/docker_engine_api/internal/type/base_model.rbs +104 -0
  415. data/sig/docker_engine_api/internal/type/base_page.rbs +24 -0
  416. data/sig/docker_engine_api/internal/type/boolean.rbs +26 -0
  417. data/sig/docker_engine_api/internal/type/converter.rbs +79 -0
  418. data/sig/docker_engine_api/internal/type/enum.rbs +32 -0
  419. data/sig/docker_engine_api/internal/type/file_input.rbs +25 -0
  420. data/sig/docker_engine_api/internal/type/hash_of.rbs +48 -0
  421. data/sig/docker_engine_api/internal/type/request_parameters.rbs +20 -0
  422. data/sig/docker_engine_api/internal/type/union.rbs +52 -0
  423. data/sig/docker_engine_api/internal/type/unknown.rbs +26 -0
  424. data/sig/docker_engine_api/internal/util.rbs +185 -0
  425. data/sig/docker_engine_api/internal.rbs +10 -0
  426. data/sig/docker_engine_api/models/auth_login_params.rbs +38 -0
  427. data/sig/docker_engine_api/models/auth_response.rbs +17 -0
  428. data/sig/docker_engine_api/models/config.rbs +225 -0
  429. data/sig/docker_engine_api/models/config_create_params.rbs +36 -0
  430. data/sig/docker_engine_api/models/config_create_response.rbs +13 -0
  431. data/sig/docker_engine_api/models/config_delete_params.rbs +15 -0
  432. data/sig/docker_engine_api/models/config_inspect_params.rbs +15 -0
  433. data/sig/docker_engine_api/models/config_list_params.rbs +25 -0
  434. data/sig/docker_engine_api/models/config_list_response.rbs +7 -0
  435. data/sig/docker_engine_api/models/config_update_params.rbs +23 -0
  436. data/sig/docker_engine_api/models/connect_request.rbs +175 -0
  437. data/sig/docker_engine_api/models/container.rbs +1973 -0
  438. data/sig/docker_engine_api/models/container_archive_params.rbs +23 -0
  439. data/sig/docker_engine_api/models/container_attach_params.rbs +63 -0
  440. data/sig/docker_engine_api/models/container_changes_params.rbs +15 -0
  441. data/sig/docker_engine_api/models/container_changes_response.rbs +7 -0
  442. data/sig/docker_engine_api/models/container_create_params.rbs +1352 -0
  443. data/sig/docker_engine_api/models/container_delete_params.rbs +38 -0
  444. data/sig/docker_engine_api/models/container_exec_params.rbs +96 -0
  445. data/sig/docker_engine_api/models/container_exec_response.rbs +13 -0
  446. data/sig/docker_engine_api/models/container_export_params.rbs +15 -0
  447. data/sig/docker_engine_api/models/container_inspect_params.rbs +25 -0
  448. data/sig/docker_engine_api/models/container_kill_params.rbs +25 -0
  449. data/sig/docker_engine_api/models/container_list_params.rbs +44 -0
  450. data/sig/docker_engine_api/models/container_list_response.rbs +7 -0
  451. data/sig/docker_engine_api/models/container_logs_params.rbs +70 -0
  452. data/sig/docker_engine_api/models/container_pause_params.rbs +15 -0
  453. data/sig/docker_engine_api/models/container_prune_params.rbs +25 -0
  454. data/sig/docker_engine_api/models/container_prune_response.rbs +26 -0
  455. data/sig/docker_engine_api/models/container_rename_params.rbs +23 -0
  456. data/sig/docker_engine_api/models/container_resize_params.rbs +28 -0
  457. data/sig/docker_engine_api/models/container_restart_params.rbs +32 -0
  458. data/sig/docker_engine_api/models/container_start_params.rbs +26 -0
  459. data/sig/docker_engine_api/models/container_stats_params.rbs +32 -0
  460. data/sig/docker_engine_api/models/container_stop_params.rbs +32 -0
  461. data/sig/docker_engine_api/models/container_top_params.rbs +25 -0
  462. data/sig/docker_engine_api/models/container_unpause_params.rbs +15 -0
  463. data/sig/docker_engine_api/models/container_update_params.rbs +476 -0
  464. data/sig/docker_engine_api/models/container_wait_params.rbs +40 -0
  465. data/sig/docker_engine_api/models/create_request.rbs +255 -0
  466. data/sig/docker_engine_api/models/create_response.rbs +15 -0
  467. data/sig/docker_engine_api/models/delete_item.rbs +19 -0
  468. data/sig/docker_engine_api/models/disconnect_request.rbs +17 -0
  469. data/sig/docker_engine_api/models/distribution_inspect_params.rbs +15 -0
  470. data/sig/docker_engine_api/models/error.rbs +13 -0
  471. data/sig/docker_engine_api/models/exec_inspect_params.rbs +15 -0
  472. data/sig/docker_engine_api/models/exec_inspect_response.rbs +94 -0
  473. data/sig/docker_engine_api/models/exec_resize_params.rbs +28 -0
  474. data/sig/docker_engine_api/models/exec_start_params.rbs +36 -0
  475. data/sig/docker_engine_api/models/filesystem_change.rbs +34 -0
  476. data/sig/docker_engine_api/models/history_item.rbs +45 -0
  477. data/sig/docker_engine_api/models/image.rbs +1042 -0
  478. data/sig/docker_engine_api/models/image_build_params.rbs +221 -0
  479. data/sig/docker_engine_api/models/image_build_prune_params.rbs +56 -0
  480. data/sig/docker_engine_api/models/image_build_prune_response.rbs +26 -0
  481. data/sig/docker_engine_api/models/image_commit_params.rbs +70 -0
  482. data/sig/docker_engine_api/models/image_commit_response.rbs +13 -0
  483. data/sig/docker_engine_api/models/image_delete_params.rbs +38 -0
  484. data/sig/docker_engine_api/models/image_delete_response.rbs +7 -0
  485. data/sig/docker_engine_api/models/image_get_all_params.rbs +32 -0
  486. data/sig/docker_engine_api/models/image_get_params.rbs +26 -0
  487. data/sig/docker_engine_api/models/image_history_params.rbs +25 -0
  488. data/sig/docker_engine_api/models/image_history_response.rbs +7 -0
  489. data/sig/docker_engine_api/models/image_inspect_params.rbs +25 -0
  490. data/sig/docker_engine_api/models/image_list_params.rbs +56 -0
  491. data/sig/docker_engine_api/models/image_list_response.rbs +7 -0
  492. data/sig/docker_engine_api/models/image_load_params.rbs +40 -0
  493. data/sig/docker_engine_api/models/image_prune_params.rbs +25 -0
  494. data/sig/docker_engine_api/models/image_prune_response.rbs +31 -0
  495. data/sig/docker_engine_api/models/image_pull_params.rbs +84 -0
  496. data/sig/docker_engine_api/models/image_push_params.rbs +36 -0
  497. data/sig/docker_engine_api/models/image_search_params.rbs +36 -0
  498. data/sig/docker_engine_api/models/image_search_response.rbs +55 -0
  499. data/sig/docker_engine_api/models/image_tag_params.rbs +32 -0
  500. data/sig/docker_engine_api/models/info.rbs +1080 -0
  501. data/sig/docker_engine_api/models/inspect.rbs +177 -0
  502. data/sig/docker_engine_api/models/inspect_response.rbs +50 -0
  503. data/sig/docker_engine_api/models/list_response.rbs +28 -0
  504. data/sig/docker_engine_api/models/network.rbs +238 -0
  505. data/sig/docker_engine_api/models/network_connect_params.rbs +15 -0
  506. data/sig/docker_engine_api/models/network_create_params.rbs +203 -0
  507. data/sig/docker_engine_api/models/network_delete_params.rbs +15 -0
  508. data/sig/docker_engine_api/models/network_disconnect_params.rbs +15 -0
  509. data/sig/docker_engine_api/models/network_inspect_params.rbs +32 -0
  510. data/sig/docker_engine_api/models/network_inspect_response.rbs +149 -0
  511. data/sig/docker_engine_api/models/network_list_params.rbs +25 -0
  512. data/sig/docker_engine_api/models/network_list_response.rbs +7 -0
  513. data/sig/docker_engine_api/models/network_prune_params.rbs +25 -0
  514. data/sig/docker_engine_api/models/network_prune_response.rbs +15 -0
  515. data/sig/docker_engine_api/models/node.rbs +434 -0
  516. data/sig/docker_engine_api/models/node_delete_params.rbs +25 -0
  517. data/sig/docker_engine_api/models/node_inspect_params.rbs +15 -0
  518. data/sig/docker_engine_api/models/node_list_params.rbs +25 -0
  519. data/sig/docker_engine_api/models/node_list_response.rbs +7 -0
  520. data/sig/docker_engine_api/models/node_update_params.rbs +23 -0
  521. data/sig/docker_engine_api/models/plugin.rbs +509 -0
  522. data/sig/docker_engine_api/models/plugin_create_params.rbs +28 -0
  523. data/sig/docker_engine_api/models/plugin_delete_params.rbs +25 -0
  524. data/sig/docker_engine_api/models/plugin_disable_params.rbs +25 -0
  525. data/sig/docker_engine_api/models/plugin_enable_params.rbs +25 -0
  526. data/sig/docker_engine_api/models/plugin_inspect_params.rbs +15 -0
  527. data/sig/docker_engine_api/models/plugin_list_params.rbs +25 -0
  528. data/sig/docker_engine_api/models/plugin_list_response.rbs +7 -0
  529. data/sig/docker_engine_api/models/plugin_privileges_params.rbs +23 -0
  530. data/sig/docker_engine_api/models/plugin_privileges_response.rbs +7 -0
  531. data/sig/docker_engine_api/models/plugin_pull_params.rbs +49 -0
  532. data/sig/docker_engine_api/models/plugin_push_params.rbs +15 -0
  533. data/sig/docker_engine_api/models/plugin_set_params.rbs +26 -0
  534. data/sig/docker_engine_api/models/plugin_upgrade_params.rbs +42 -0
  535. data/sig/docker_engine_api/models/privilege.rbs +32 -0
  536. data/sig/docker_engine_api/models/secret.rbs +64 -0
  537. data/sig/docker_engine_api/models/secret_create_params.rbs +36 -0
  538. data/sig/docker_engine_api/models/secret_create_response.rbs +13 -0
  539. data/sig/docker_engine_api/models/secret_delete_params.rbs +15 -0
  540. data/sig/docker_engine_api/models/secret_inspect_params.rbs +15 -0
  541. data/sig/docker_engine_api/models/secret_list_params.rbs +25 -0
  542. data/sig/docker_engine_api/models/secret_list_response.rbs +7 -0
  543. data/sig/docker_engine_api/models/secret_update_params.rbs +23 -0
  544. data/sig/docker_engine_api/models/service.rbs +471 -0
  545. data/sig/docker_engine_api/models/service_create_params.rbs +41 -0
  546. data/sig/docker_engine_api/models/service_delete_params.rbs +15 -0
  547. data/sig/docker_engine_api/models/service_inspect_params.rbs +26 -0
  548. data/sig/docker_engine_api/models/service_list_params.rbs +32 -0
  549. data/sig/docker_engine_api/models/service_list_response.rbs +7 -0
  550. data/sig/docker_engine_api/models/service_logs_params.rbs +70 -0
  551. data/sig/docker_engine_api/models/service_update_params.rbs +73 -0
  552. data/sig/docker_engine_api/models/spec.rbs +467 -0
  553. data/sig/docker_engine_api/models/stats_response.rbs +730 -0
  554. data/sig/docker_engine_api/models/summary.rbs +634 -0
  555. data/sig/docker_engine_api/models/swarm.rbs +159 -0
  556. data/sig/docker_engine_api/models/swarm_init_params.rbs +77 -0
  557. data/sig/docker_engine_api/models/swarm_init_response.rbs +5 -0
  558. data/sig/docker_engine_api/models/swarm_inspect_params.rbs +15 -0
  559. data/sig/docker_engine_api/models/swarm_join_params.rbs +56 -0
  560. data/sig/docker_engine_api/models/swarm_leave_params.rbs +25 -0
  561. data/sig/docker_engine_api/models/swarm_unlock_key_params.rbs +15 -0
  562. data/sig/docker_engine_api/models/swarm_unlock_key_response.rbs +15 -0
  563. data/sig/docker_engine_api/models/swarm_unlock_params.rbs +26 -0
  564. data/sig/docker_engine_api/models/swarm_update_params.rbs +47 -0
  565. data/sig/docker_engine_api/models/system_data_usage_params.rbs +50 -0
  566. data/sig/docker_engine_api/models/system_data_usage_response.rbs +239 -0
  567. data/sig/docker_engine_api/models/system_events_params.rbs +38 -0
  568. data/sig/docker_engine_api/models/system_events_response.rbs +124 -0
  569. data/sig/docker_engine_api/models/system_info_params.rbs +15 -0
  570. data/sig/docker_engine_api/models/system_ping_params.rbs +15 -0
  571. data/sig/docker_engine_api/models/system_ping_response.rbs +5 -0
  572. data/sig/docker_engine_api/models/system_version_params.rbs +15 -0
  573. data/sig/docker_engine_api/models/task.rbs +469 -0
  574. data/sig/docker_engine_api/models/task_inspect_params.rbs +15 -0
  575. data/sig/docker_engine_api/models/task_list_params.rbs +25 -0
  576. data/sig/docker_engine_api/models/task_list_response.rbs +7 -0
  577. data/sig/docker_engine_api/models/task_logs_params.rbs +70 -0
  578. data/sig/docker_engine_api/models/top_response.rbs +26 -0
  579. data/sig/docker_engine_api/models/update_response.rbs +15 -0
  580. data/sig/docker_engine_api/models/version.rbs +127 -0
  581. data/sig/docker_engine_api/models/volume.rbs +478 -0
  582. data/sig/docker_engine_api/models/volume_create_params.rbs +15 -0
  583. data/sig/docker_engine_api/models/volume_delete_params.rbs +25 -0
  584. data/sig/docker_engine_api/models/volume_inspect_params.rbs +15 -0
  585. data/sig/docker_engine_api/models/volume_list_params.rbs +25 -0
  586. data/sig/docker_engine_api/models/volume_prune_params.rbs +25 -0
  587. data/sig/docker_engine_api/models/volume_prune_response.rbs +26 -0
  588. data/sig/docker_engine_api/models/volume_update_params.rbs +235 -0
  589. data/sig/docker_engine_api/models/wait_response.rbs +38 -0
  590. data/sig/docker_engine_api/models.rbs +269 -0
  591. data/sig/docker_engine_api/request_options.rbs +36 -0
  592. data/sig/docker_engine_api/resources/auth.rbs +14 -0
  593. data/sig/docker_engine_api/resources/configs.rbs +34 -0
  594. data/sig/docker_engine_api/resources/containers.rbs +200 -0
  595. data/sig/docker_engine_api/resources/distribution.rbs +12 -0
  596. data/sig/docker_engine_api/resources/exec.rbs +27 -0
  597. data/sig/docker_engine_api/resources/images.rbs +170 -0
  598. data/sig/docker_engine_api/resources/networks.rbs +60 -0
  599. data/sig/docker_engine_api/resources/nodes.rbs +30 -0
  600. data/sig/docker_engine_api/resources/plugins.rbs +73 -0
  601. data/sig/docker_engine_api/resources/secrets.rbs +34 -0
  602. data/sig/docker_engine_api/resources/services.rbs +52 -0
  603. data/sig/docker_engine_api/resources/swarm.rbs +55 -0
  604. data/sig/docker_engine_api/resources/system.rbs +30 -0
  605. data/sig/docker_engine_api/resources/tasks.rbs +29 -0
  606. data/sig/docker_engine_api/resources/volumes.rbs +40 -0
  607. data/sig/docker_engine_api/version.rbs +3 -0
  608. metadata +679 -0
@@ -0,0 +1,2564 @@
1
+ # typed: strong
2
+
3
+ module DockerEngineAPI
4
+ module Models
5
+ class Info < DockerEngineAPI::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(DockerEngineAPI::Info, DockerEngineAPI::Internal::AnyHash)
9
+ end
10
+
11
+ # Hardware architecture of the host, as returned by the operating system. This is
12
+ # equivalent to the output of `uname -m` on Linux.
13
+ #
14
+ # Unlike `Arch` (from `/version`), this reports the machine's native architecture,
15
+ # which can differ from the Go runtime architecture when running a binary compiled
16
+ # for a different architecture (for example, a 32-bit binary running on 64-bit
17
+ # hardware).
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :architecture
20
+
21
+ sig { params(architecture: String).void }
22
+ attr_writer :architecture
23
+
24
+ # List of directories where (Container Device Interface) CDI specifications are
25
+ # located.
26
+ #
27
+ # These specifications define vendor-specific modifications to an OCI runtime
28
+ # specification for a container being created.
29
+ #
30
+ # An empty list indicates that CDI device injection is disabled.
31
+ #
32
+ # Note that since using CDI device injection requires the daemon to have
33
+ # experimental enabled. For non-experimental daemons an empty list will always be
34
+ # returned.
35
+ sig { returns(T.nilable(T::Array[String])) }
36
+ attr_reader :cdi_spec_dirs
37
+
38
+ sig { params(cdi_spec_dirs: T::Array[String]).void }
39
+ attr_writer :cdi_spec_dirs
40
+
41
+ # The driver to use for managing cgroups.
42
+ sig do
43
+ returns(T.nilable(DockerEngineAPI::Info::CgroupDriver::TaggedSymbol))
44
+ end
45
+ attr_reader :cgroup_driver
46
+
47
+ sig do
48
+ params(
49
+ cgroup_driver: DockerEngineAPI::Info::CgroupDriver::OrSymbol
50
+ ).void
51
+ end
52
+ attr_writer :cgroup_driver
53
+
54
+ # The version of the cgroup.
55
+ sig do
56
+ returns(T.nilable(DockerEngineAPI::Info::CgroupVersion::TaggedSymbol))
57
+ end
58
+ attr_reader :cgroup_version
59
+
60
+ sig do
61
+ params(
62
+ cgroup_version: DockerEngineAPI::Info::CgroupVersion::OrSymbol
63
+ ).void
64
+ end
65
+ attr_writer :cgroup_version
66
+
67
+ # Information for connecting to the containerd instance that is used by the
68
+ # daemon. This is included for debugging purposes only.
69
+ sig { returns(T.nilable(DockerEngineAPI::Info::Containerd)) }
70
+ attr_reader :containerd
71
+
72
+ sig do
73
+ params(
74
+ containerd: T.nilable(DockerEngineAPI::Info::Containerd::OrHash)
75
+ ).void
76
+ end
77
+ attr_writer :containerd
78
+
79
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
80
+ # the version-string of external tools, such as `containerd`, or `runC`.
81
+ sig { returns(T.nilable(DockerEngineAPI::Info::ContainerdCommit)) }
82
+ attr_reader :containerd_commit
83
+
84
+ sig do
85
+ params(
86
+ containerd_commit: DockerEngineAPI::Info::ContainerdCommit::OrHash
87
+ ).void
88
+ end
89
+ attr_writer :containerd_commit
90
+
91
+ # Total number of containers on the host.
92
+ sig { returns(T.nilable(Integer)) }
93
+ attr_reader :containers
94
+
95
+ sig { params(containers: Integer).void }
96
+ attr_writer :containers
97
+
98
+ # Number of containers with status `"paused"`.
99
+ sig { returns(T.nilable(Integer)) }
100
+ attr_reader :containers_paused
101
+
102
+ sig { params(containers_paused: Integer).void }
103
+ attr_writer :containers_paused
104
+
105
+ # Number of containers with status `"running"`.
106
+ sig { returns(T.nilable(Integer)) }
107
+ attr_reader :containers_running
108
+
109
+ sig { params(containers_running: Integer).void }
110
+ attr_writer :containers_running
111
+
112
+ # Number of containers with status `"stopped"`.
113
+ sig { returns(T.nilable(Integer)) }
114
+ attr_reader :containers_stopped
115
+
116
+ sig { params(containers_stopped: Integer).void }
117
+ attr_writer :containers_stopped
118
+
119
+ # Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host.
120
+ sig { returns(T.nilable(T::Boolean)) }
121
+ attr_reader :cpu_cfs_period
122
+
123
+ sig { params(cpu_cfs_period: T::Boolean).void }
124
+ attr_writer :cpu_cfs_period
125
+
126
+ # Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host.
127
+ sig { returns(T.nilable(T::Boolean)) }
128
+ attr_reader :cpu_cfs_quota
129
+
130
+ sig { params(cpu_cfs_quota: T::Boolean).void }
131
+ attr_writer :cpu_cfs_quota
132
+
133
+ # Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host.
134
+ #
135
+ # See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt)
136
+ sig { returns(T.nilable(T::Boolean)) }
137
+ attr_reader :cpu_set
138
+
139
+ sig { params(cpu_set: T::Boolean).void }
140
+ attr_writer :cpu_set
141
+
142
+ # Indicates if CPU Shares limiting is supported by the host.
143
+ sig { returns(T.nilable(T::Boolean)) }
144
+ attr_reader :cpu_shares
145
+
146
+ sig { params(cpu_shares: T::Boolean).void }
147
+ attr_writer :cpu_shares
148
+
149
+ # Indicates if the daemon is running in debug-mode / with debug-level logging
150
+ # enabled.
151
+ sig { returns(T.nilable(T::Boolean)) }
152
+ attr_reader :debug
153
+
154
+ sig { params(debug: T::Boolean).void }
155
+ attr_writer :debug
156
+
157
+ # List of custom default address pools for local networks, which can be specified
158
+ # in the daemon.json file or dockerd option.
159
+ #
160
+ # Example: a Base "10.10.0.0/16" with Size 24 will define the set of 256
161
+ # 10.10.[0-255].0/24 address pools.
162
+ sig do
163
+ returns(T.nilable(T::Array[DockerEngineAPI::Info::DefaultAddressPool]))
164
+ end
165
+ attr_reader :default_address_pools
166
+
167
+ sig do
168
+ params(
169
+ default_address_pools:
170
+ T::Array[DockerEngineAPI::Info::DefaultAddressPool::OrHash]
171
+ ).void
172
+ end
173
+ attr_writer :default_address_pools
174
+
175
+ # Name of the default OCI runtime that is used when starting containers.
176
+ #
177
+ # The default can be overridden per-container at create time.
178
+ sig { returns(T.nilable(String)) }
179
+ attr_reader :default_runtime
180
+
181
+ sig { params(default_runtime: String).void }
182
+ attr_writer :default_runtime
183
+
184
+ # List of devices discovered by device drivers.
185
+ #
186
+ # Each device includes information about its source driver, kind, name, and
187
+ # additional driver-specific attributes.
188
+ sig do
189
+ returns(T.nilable(T::Array[DockerEngineAPI::Info::DiscoveredDevice]))
190
+ end
191
+ attr_reader :discovered_devices
192
+
193
+ sig do
194
+ params(
195
+ discovered_devices:
196
+ T::Array[DockerEngineAPI::Info::DiscoveredDevice::OrHash]
197
+ ).void
198
+ end
199
+ attr_writer :discovered_devices
200
+
201
+ # Root directory of persistent Docker state.
202
+ #
203
+ # Defaults to `/var/lib/docker` on Linux, and `C:\ProgramData\docker` on Windows.
204
+ sig { returns(T.nilable(String)) }
205
+ attr_reader :docker_root_dir
206
+
207
+ sig { params(docker_root_dir: String).void }
208
+ attr_writer :docker_root_dir
209
+
210
+ # Name of the storage driver in use.
211
+ sig { returns(T.nilable(String)) }
212
+ attr_reader :driver
213
+
214
+ sig { params(driver: String).void }
215
+ attr_writer :driver
216
+
217
+ # Information specific to the storage driver, provided as "label" / "value" pairs.
218
+ #
219
+ # This information is provided by the storage driver, and formatted in a way
220
+ # consistent with the output of `docker info` on the command line.
221
+ #
222
+ # <p><br /></p>
223
+ #
224
+ # > **Note**: The information returned in this field, including the formatting of
225
+ # > values and labels, should not be considered stable, and may change without
226
+ # > notice.
227
+ sig { returns(T.nilable(T::Array[T::Array[String]])) }
228
+ attr_reader :driver_status
229
+
230
+ sig { params(driver_status: T::Array[T::Array[String]]).void }
231
+ attr_writer :driver_status
232
+
233
+ # Indicates if experimental features are enabled on the daemon.
234
+ sig { returns(T.nilable(T::Boolean)) }
235
+ attr_reader :experimental_build
236
+
237
+ sig { params(experimental_build: T::Boolean).void }
238
+ attr_writer :experimental_build
239
+
240
+ # Information about the daemon's firewalling configuration.
241
+ #
242
+ # This field is currently only used on Linux, and omitted on other platforms.
243
+ sig { returns(T.nilable(DockerEngineAPI::Info::FirewallBackend)) }
244
+ attr_reader :firewall_backend
245
+
246
+ sig do
247
+ params(
248
+ firewall_backend:
249
+ T.nilable(DockerEngineAPI::Info::FirewallBackend::OrHash)
250
+ ).void
251
+ end
252
+ attr_writer :firewall_backend
253
+
254
+ # User-defined resources can be either Integer resources (e.g, `SSD=3`) or String
255
+ # resources (e.g, `GPU=UUID1`).
256
+ sig do
257
+ returns(T.nilable(T::Array[DockerEngineAPI::Info::GenericResource]))
258
+ end
259
+ attr_reader :generic_resources
260
+
261
+ sig do
262
+ params(
263
+ generic_resources:
264
+ T::Array[DockerEngineAPI::Info::GenericResource::OrHash]
265
+ ).void
266
+ end
267
+ attr_writer :generic_resources
268
+
269
+ # HTTP-proxy configured for the daemon. This value is obtained from the
270
+ # [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
271
+ # environment variable. Credentials
272
+ # ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in
273
+ # the proxy URL are masked in the API response.
274
+ #
275
+ # Containers do not automatically inherit this configuration.
276
+ sig { returns(T.nilable(String)) }
277
+ attr_reader :http_proxy
278
+
279
+ sig { params(http_proxy: String).void }
280
+ attr_writer :http_proxy
281
+
282
+ # HTTPS-proxy configured for the daemon. This value is obtained from the
283
+ # [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
284
+ # environment variable. Credentials
285
+ # ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in
286
+ # the proxy URL are masked in the API response.
287
+ #
288
+ # Containers do not automatically inherit this configuration.
289
+ sig { returns(T.nilable(String)) }
290
+ attr_reader :https_proxy
291
+
292
+ sig { params(https_proxy: String).void }
293
+ attr_writer :https_proxy
294
+
295
+ # Unique identifier of the daemon.
296
+ #
297
+ # <p><br /></p>
298
+ #
299
+ # > **Note**: The format of the ID itself is not part of the API, and should not
300
+ # > be considered stable.
301
+ sig { returns(T.nilable(String)) }
302
+ attr_reader :id
303
+
304
+ sig { params(id: String).void }
305
+ attr_writer :id
306
+
307
+ # Total number of images on the host.
308
+ #
309
+ # Both _tagged_ and _untagged_ (dangling) images are counted.
310
+ sig { returns(T.nilable(Integer)) }
311
+ attr_reader :images
312
+
313
+ sig { params(images: Integer).void }
314
+ attr_writer :images
315
+
316
+ # Address / URL of the index server that is used for image search, and as a
317
+ # default for user authentication for Docker Hub and Docker Cloud.
318
+ sig { returns(T.nilable(String)) }
319
+ attr_reader :index_server_address
320
+
321
+ sig { params(index_server_address: String).void }
322
+ attr_writer :index_server_address
323
+
324
+ # Name and, optional, path of the `docker-init` binary.
325
+ #
326
+ # If the path is omitted, the daemon searches the host's `$PATH` for the binary
327
+ # and uses the first result.
328
+ sig { returns(T.nilable(String)) }
329
+ attr_reader :init_binary
330
+
331
+ sig { params(init_binary: String).void }
332
+ attr_writer :init_binary
333
+
334
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
335
+ # the version-string of external tools, such as `containerd`, or `runC`.
336
+ sig { returns(T.nilable(DockerEngineAPI::Info::InitCommit)) }
337
+ attr_reader :init_commit
338
+
339
+ sig do
340
+ params(init_commit: DockerEngineAPI::Info::InitCommit::OrHash).void
341
+ end
342
+ attr_writer :init_commit
343
+
344
+ # Indicates IPv4 forwarding is enabled.
345
+ sig { returns(T.nilable(T::Boolean)) }
346
+ attr_reader :i_pv4_forwarding
347
+
348
+ sig { params(i_pv4_forwarding: T::Boolean).void }
349
+ attr_writer :i_pv4_forwarding
350
+
351
+ # Represents the isolation technology to use as a default for containers. The
352
+ # supported values are platform-specific.
353
+ #
354
+ # If no isolation value is specified on daemon start, on Windows client, the
355
+ # default is `hyperv`, and on Windows server, the default is `process`.
356
+ #
357
+ # This option is currently not used on other platforms.
358
+ sig { returns(T.nilable(DockerEngineAPI::Info::Isolation::TaggedSymbol)) }
359
+ attr_reader :isolation
360
+
361
+ sig { params(isolation: DockerEngineAPI::Info::Isolation::OrSymbol).void }
362
+ attr_writer :isolation
363
+
364
+ # Kernel version of the host.
365
+ #
366
+ # On Linux, this information obtained from `uname`. On Windows this information is
367
+ # queried from the <kbd>HKEY*LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows
368
+ # NT\\CurrentVersion\\</kbd> registry value, for example *"10.0 14393
369
+ # (14393.1198.amd64fre.rs1*release_sec.170427-1353)"*.
370
+ sig { returns(T.nilable(String)) }
371
+ attr_reader :kernel_version
372
+
373
+ sig { params(kernel_version: String).void }
374
+ attr_writer :kernel_version
375
+
376
+ # User-defined labels (key/value metadata) as set on the daemon.
377
+ #
378
+ # <p><br /></p>
379
+ #
380
+ # > **Note**: When part of a Swarm, nodes can both have _daemon_ labels, set
381
+ # > through the daemon configuration, and _node_ labels, set from a manager node
382
+ # > in the Swarm. Node labels are not included in this field. Node labels can be
383
+ # > retrieved using the `/nodes/(id)` endpoint on a manager node in the Swarm.
384
+ sig { returns(T.nilable(T::Array[String])) }
385
+ attr_reader :labels
386
+
387
+ sig { params(labels: T::Array[String]).void }
388
+ attr_writer :labels
389
+
390
+ # Indicates if live restore is enabled.
391
+ #
392
+ # If enabled, containers are kept running when the daemon is shutdown or upon
393
+ # daemon start if running containers are detected.
394
+ sig { returns(T.nilable(T::Boolean)) }
395
+ attr_reader :live_restore_enabled
396
+
397
+ sig { params(live_restore_enabled: T::Boolean).void }
398
+ attr_writer :live_restore_enabled
399
+
400
+ # The logging driver to use as a default for new containers.
401
+ sig { returns(T.nilable(String)) }
402
+ attr_reader :logging_driver
403
+
404
+ sig { params(logging_driver: String).void }
405
+ attr_writer :logging_driver
406
+
407
+ # Indicates if the host has memory limit support enabled.
408
+ sig { returns(T.nilable(T::Boolean)) }
409
+ attr_reader :memory_limit
410
+
411
+ sig { params(memory_limit: T::Boolean).void }
412
+ attr_writer :memory_limit
413
+
414
+ # Total amount of physical memory available on the host, in bytes.
415
+ sig { returns(T.nilable(Integer)) }
416
+ attr_reader :mem_total
417
+
418
+ sig { params(mem_total: Integer).void }
419
+ attr_writer :mem_total
420
+
421
+ # Hostname of the host.
422
+ sig { returns(T.nilable(String)) }
423
+ attr_reader :name
424
+
425
+ sig { params(name: String).void }
426
+ attr_writer :name
427
+
428
+ # The number of logical CPUs usable by the daemon.
429
+ #
430
+ # The number of available CPUs is checked by querying the operating system when
431
+ # the daemon starts. Changes to operating system CPU allocation after the daemon
432
+ # is started are not reflected.
433
+ sig { returns(T.nilable(Integer)) }
434
+ attr_reader :ncpu
435
+
436
+ sig { params(ncpu: Integer).void }
437
+ attr_writer :ncpu
438
+
439
+ # Number of event listeners subscribed.
440
+ sig { returns(T.nilable(Integer)) }
441
+ attr_reader :n_events_listener
442
+
443
+ sig { params(n_events_listener: Integer).void }
444
+ attr_writer :n_events_listener
445
+
446
+ # The total number of file Descriptors in use by the daemon process.
447
+ #
448
+ # This information is only returned if debug-mode is enabled.
449
+ sig { returns(T.nilable(Integer)) }
450
+ attr_reader :n_fd
451
+
452
+ sig { params(n_fd: Integer).void }
453
+ attr_writer :n_fd
454
+
455
+ # The number of goroutines that currently exist.
456
+ #
457
+ # This information is only returned if debug-mode is enabled.
458
+ sig { returns(T.nilable(Integer)) }
459
+ attr_reader :n_goroutines
460
+
461
+ sig { params(n_goroutines: Integer).void }
462
+ attr_writer :n_goroutines
463
+
464
+ # Comma-separated list of domain extensions for which no proxy should be used.
465
+ # This value is obtained from the
466
+ # [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
467
+ # environment variable.
468
+ #
469
+ # Containers do not automatically inherit this configuration.
470
+ sig { returns(T.nilable(String)) }
471
+ attr_reader :no_proxy
472
+
473
+ sig { params(no_proxy: String).void }
474
+ attr_writer :no_proxy
475
+
476
+ # Information about the Node Resource Interface (NRI).
477
+ #
478
+ # This field is only present if NRI is enabled.
479
+ sig { returns(T.nilable(DockerEngineAPI::Info::Nri)) }
480
+ attr_reader :nri
481
+
482
+ sig { params(nri: T.nilable(DockerEngineAPI::Info::Nri::OrHash)).void }
483
+ attr_writer :nri
484
+
485
+ # Indicates if OOM killer disable is supported on the host.
486
+ sig { returns(T.nilable(T::Boolean)) }
487
+ attr_reader :oom_kill_disable
488
+
489
+ sig { params(oom_kill_disable: T::Boolean).void }
490
+ attr_writer :oom_kill_disable
491
+
492
+ # Name of the host's operating system, for example: "Ubuntu 24.04 LTS" or "Windows
493
+ # Server 2016 Datacenter"
494
+ sig { returns(T.nilable(String)) }
495
+ attr_reader :operating_system
496
+
497
+ sig { params(operating_system: String).void }
498
+ attr_writer :operating_system
499
+
500
+ # Generic type of the operating system of the host, as returned by the Go runtime
501
+ # (`GOOS`).
502
+ #
503
+ # Currently returned values are "linux" and "windows". A full list of possible
504
+ # values can be found in the
505
+ # [Go documentation](https://go.dev/doc/install/source#environment).
506
+ sig { returns(T.nilable(String)) }
507
+ attr_reader :os_type
508
+
509
+ sig { params(os_type: String).void }
510
+ attr_writer :os_type
511
+
512
+ # Version of the host's operating system
513
+ #
514
+ # <p><br /></p>
515
+ #
516
+ # > **Note**: The information returned in this field, including its very
517
+ # > existence, and the formatting of values, should not be considered stable, and
518
+ # > may change without notice.
519
+ sig { returns(T.nilable(String)) }
520
+ attr_reader :os_version
521
+
522
+ sig { params(os_version: String).void }
523
+ attr_writer :os_version
524
+
525
+ # Indicates if the host kernel has PID limit support enabled.
526
+ sig { returns(T.nilable(T::Boolean)) }
527
+ attr_reader :pids_limit
528
+
529
+ sig { params(pids_limit: T::Boolean).void }
530
+ attr_writer :pids_limit
531
+
532
+ # Available plugins per type.
533
+ #
534
+ # <p><br /></p>
535
+ #
536
+ # > **Note**: Only unmanaged (V1) plugins are included in this list. V1 plugins
537
+ # > are "lazily" loaded, and are not returned in this list if there is no resource
538
+ # > using the plugin.
539
+ sig { returns(T.nilable(DockerEngineAPI::Info::Plugins)) }
540
+ attr_reader :plugins
541
+
542
+ sig { params(plugins: DockerEngineAPI::Info::Plugins::OrHash).void }
543
+ attr_writer :plugins
544
+
545
+ # Reports a summary of the product license on the daemon.
546
+ #
547
+ # If a commercial license has been applied to the daemon, information such as
548
+ # number of nodes, and expiration are included.
549
+ sig { returns(T.nilable(String)) }
550
+ attr_reader :product_license
551
+
552
+ sig { params(product_license: String).void }
553
+ attr_writer :product_license
554
+
555
+ # RegistryServiceConfig stores daemon registry services configuration.
556
+ sig { returns(T.nilable(DockerEngineAPI::Info::RegistryConfig)) }
557
+ attr_reader :registry_config
558
+
559
+ sig do
560
+ params(
561
+ registry_config:
562
+ T.nilable(DockerEngineAPI::Info::RegistryConfig::OrHash)
563
+ ).void
564
+ end
565
+ attr_writer :registry_config
566
+
567
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
568
+ # the version-string of external tools, such as `containerd`, or `runC`.
569
+ sig { returns(T.nilable(DockerEngineAPI::Info::RuncCommit)) }
570
+ attr_reader :runc_commit
571
+
572
+ sig do
573
+ params(runc_commit: DockerEngineAPI::Info::RuncCommit::OrHash).void
574
+ end
575
+ attr_writer :runc_commit
576
+
577
+ # List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes
578
+ # configured on the daemon. Keys hold the "name" used to reference the runtime.
579
+ #
580
+ # The Docker daemon relies on an OCI compliant runtime (invoked via the
581
+ # `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups,
582
+ # and SELinux.
583
+ #
584
+ # The default runtime is `runc`, and automatically configured. Additional runtimes
585
+ # can be configured by the user and will be listed here.
586
+ sig do
587
+ returns(T.nilable(T::Hash[Symbol, DockerEngineAPI::Info::Runtime]))
588
+ end
589
+ attr_reader :runtimes
590
+
591
+ sig do
592
+ params(
593
+ runtimes: T::Hash[Symbol, DockerEngineAPI::Info::Runtime::OrHash]
594
+ ).void
595
+ end
596
+ attr_writer :runtimes
597
+
598
+ # List of security features that are enabled on the daemon, such as apparmor,
599
+ # seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges.
600
+ #
601
+ # Additional configuration options for each security feature may be present, and
602
+ # are included as a comma-separated list of key/value pairs.
603
+ sig { returns(T.nilable(T::Array[String])) }
604
+ attr_reader :security_options
605
+
606
+ sig { params(security_options: T::Array[String]).void }
607
+ attr_writer :security_options
608
+
609
+ # Version string of the daemon.
610
+ sig { returns(T.nilable(String)) }
611
+ attr_reader :server_version
612
+
613
+ sig { params(server_version: String).void }
614
+ attr_writer :server_version
615
+
616
+ # Indicates if the host has memory swap limit support enabled.
617
+ sig { returns(T.nilable(T::Boolean)) }
618
+ attr_reader :swap_limit
619
+
620
+ sig { params(swap_limit: T::Boolean).void }
621
+ attr_writer :swap_limit
622
+
623
+ # Represents generic information about swarm.
624
+ sig { returns(T.nilable(DockerEngineAPI::Info::Swarm)) }
625
+ attr_reader :swarm
626
+
627
+ sig { params(swarm: DockerEngineAPI::Info::Swarm::OrHash).void }
628
+ attr_writer :swarm
629
+
630
+ # Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format
631
+ # with nano-seconds.
632
+ sig { returns(T.nilable(String)) }
633
+ attr_reader :system_time
634
+
635
+ sig { params(system_time: String).void }
636
+ attr_writer :system_time
637
+
638
+ # List of warnings / informational messages about missing features, or issues
639
+ # related to the daemon configuration.
640
+ #
641
+ # These messages can be printed by the client as information to the user.
642
+ sig { returns(T.nilable(T::Array[String])) }
643
+ attr_reader :warnings
644
+
645
+ sig { params(warnings: T::Array[String]).void }
646
+ attr_writer :warnings
647
+
648
+ sig do
649
+ params(
650
+ architecture: String,
651
+ cdi_spec_dirs: T::Array[String],
652
+ cgroup_driver: DockerEngineAPI::Info::CgroupDriver::OrSymbol,
653
+ cgroup_version: DockerEngineAPI::Info::CgroupVersion::OrSymbol,
654
+ containerd: T.nilable(DockerEngineAPI::Info::Containerd::OrHash),
655
+ containerd_commit: DockerEngineAPI::Info::ContainerdCommit::OrHash,
656
+ containers: Integer,
657
+ containers_paused: Integer,
658
+ containers_running: Integer,
659
+ containers_stopped: Integer,
660
+ cpu_cfs_period: T::Boolean,
661
+ cpu_cfs_quota: T::Boolean,
662
+ cpu_set: T::Boolean,
663
+ cpu_shares: T::Boolean,
664
+ debug: T::Boolean,
665
+ default_address_pools:
666
+ T::Array[DockerEngineAPI::Info::DefaultAddressPool::OrHash],
667
+ default_runtime: String,
668
+ discovered_devices:
669
+ T::Array[DockerEngineAPI::Info::DiscoveredDevice::OrHash],
670
+ docker_root_dir: String,
671
+ driver: String,
672
+ driver_status: T::Array[T::Array[String]],
673
+ experimental_build: T::Boolean,
674
+ firewall_backend:
675
+ T.nilable(DockerEngineAPI::Info::FirewallBackend::OrHash),
676
+ generic_resources:
677
+ T::Array[DockerEngineAPI::Info::GenericResource::OrHash],
678
+ http_proxy: String,
679
+ https_proxy: String,
680
+ id: String,
681
+ images: Integer,
682
+ index_server_address: String,
683
+ init_binary: String,
684
+ init_commit: DockerEngineAPI::Info::InitCommit::OrHash,
685
+ i_pv4_forwarding: T::Boolean,
686
+ isolation: DockerEngineAPI::Info::Isolation::OrSymbol,
687
+ kernel_version: String,
688
+ labels: T::Array[String],
689
+ live_restore_enabled: T::Boolean,
690
+ logging_driver: String,
691
+ memory_limit: T::Boolean,
692
+ mem_total: Integer,
693
+ name: String,
694
+ ncpu: Integer,
695
+ n_events_listener: Integer,
696
+ n_fd: Integer,
697
+ n_goroutines: Integer,
698
+ no_proxy: String,
699
+ nri: T.nilable(DockerEngineAPI::Info::Nri::OrHash),
700
+ oom_kill_disable: T::Boolean,
701
+ operating_system: String,
702
+ os_type: String,
703
+ os_version: String,
704
+ pids_limit: T::Boolean,
705
+ plugins: DockerEngineAPI::Info::Plugins::OrHash,
706
+ product_license: String,
707
+ registry_config:
708
+ T.nilable(DockerEngineAPI::Info::RegistryConfig::OrHash),
709
+ runc_commit: DockerEngineAPI::Info::RuncCommit::OrHash,
710
+ runtimes: T::Hash[Symbol, DockerEngineAPI::Info::Runtime::OrHash],
711
+ security_options: T::Array[String],
712
+ server_version: String,
713
+ swap_limit: T::Boolean,
714
+ swarm: DockerEngineAPI::Info::Swarm::OrHash,
715
+ system_time: String,
716
+ warnings: T::Array[String]
717
+ ).returns(T.attached_class)
718
+ end
719
+ def self.new(
720
+ # Hardware architecture of the host, as returned by the operating system. This is
721
+ # equivalent to the output of `uname -m` on Linux.
722
+ #
723
+ # Unlike `Arch` (from `/version`), this reports the machine's native architecture,
724
+ # which can differ from the Go runtime architecture when running a binary compiled
725
+ # for a different architecture (for example, a 32-bit binary running on 64-bit
726
+ # hardware).
727
+ architecture: nil,
728
+ # List of directories where (Container Device Interface) CDI specifications are
729
+ # located.
730
+ #
731
+ # These specifications define vendor-specific modifications to an OCI runtime
732
+ # specification for a container being created.
733
+ #
734
+ # An empty list indicates that CDI device injection is disabled.
735
+ #
736
+ # Note that since using CDI device injection requires the daemon to have
737
+ # experimental enabled. For non-experimental daemons an empty list will always be
738
+ # returned.
739
+ cdi_spec_dirs: nil,
740
+ # The driver to use for managing cgroups.
741
+ cgroup_driver: nil,
742
+ # The version of the cgroup.
743
+ cgroup_version: nil,
744
+ # Information for connecting to the containerd instance that is used by the
745
+ # daemon. This is included for debugging purposes only.
746
+ containerd: nil,
747
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
748
+ # the version-string of external tools, such as `containerd`, or `runC`.
749
+ containerd_commit: nil,
750
+ # Total number of containers on the host.
751
+ containers: nil,
752
+ # Number of containers with status `"paused"`.
753
+ containers_paused: nil,
754
+ # Number of containers with status `"running"`.
755
+ containers_running: nil,
756
+ # Number of containers with status `"stopped"`.
757
+ containers_stopped: nil,
758
+ # Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host.
759
+ cpu_cfs_period: nil,
760
+ # Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host.
761
+ cpu_cfs_quota: nil,
762
+ # Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host.
763
+ #
764
+ # See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt)
765
+ cpu_set: nil,
766
+ # Indicates if CPU Shares limiting is supported by the host.
767
+ cpu_shares: nil,
768
+ # Indicates if the daemon is running in debug-mode / with debug-level logging
769
+ # enabled.
770
+ debug: nil,
771
+ # List of custom default address pools for local networks, which can be specified
772
+ # in the daemon.json file or dockerd option.
773
+ #
774
+ # Example: a Base "10.10.0.0/16" with Size 24 will define the set of 256
775
+ # 10.10.[0-255].0/24 address pools.
776
+ default_address_pools: nil,
777
+ # Name of the default OCI runtime that is used when starting containers.
778
+ #
779
+ # The default can be overridden per-container at create time.
780
+ default_runtime: nil,
781
+ # List of devices discovered by device drivers.
782
+ #
783
+ # Each device includes information about its source driver, kind, name, and
784
+ # additional driver-specific attributes.
785
+ discovered_devices: nil,
786
+ # Root directory of persistent Docker state.
787
+ #
788
+ # Defaults to `/var/lib/docker` on Linux, and `C:\ProgramData\docker` on Windows.
789
+ docker_root_dir: nil,
790
+ # Name of the storage driver in use.
791
+ driver: nil,
792
+ # Information specific to the storage driver, provided as "label" / "value" pairs.
793
+ #
794
+ # This information is provided by the storage driver, and formatted in a way
795
+ # consistent with the output of `docker info` on the command line.
796
+ #
797
+ # <p><br /></p>
798
+ #
799
+ # > **Note**: The information returned in this field, including the formatting of
800
+ # > values and labels, should not be considered stable, and may change without
801
+ # > notice.
802
+ driver_status: nil,
803
+ # Indicates if experimental features are enabled on the daemon.
804
+ experimental_build: nil,
805
+ # Information about the daemon's firewalling configuration.
806
+ #
807
+ # This field is currently only used on Linux, and omitted on other platforms.
808
+ firewall_backend: nil,
809
+ # User-defined resources can be either Integer resources (e.g, `SSD=3`) or String
810
+ # resources (e.g, `GPU=UUID1`).
811
+ generic_resources: nil,
812
+ # HTTP-proxy configured for the daemon. This value is obtained from the
813
+ # [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
814
+ # environment variable. Credentials
815
+ # ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in
816
+ # the proxy URL are masked in the API response.
817
+ #
818
+ # Containers do not automatically inherit this configuration.
819
+ http_proxy: nil,
820
+ # HTTPS-proxy configured for the daemon. This value is obtained from the
821
+ # [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
822
+ # environment variable. Credentials
823
+ # ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in
824
+ # the proxy URL are masked in the API response.
825
+ #
826
+ # Containers do not automatically inherit this configuration.
827
+ https_proxy: nil,
828
+ # Unique identifier of the daemon.
829
+ #
830
+ # <p><br /></p>
831
+ #
832
+ # > **Note**: The format of the ID itself is not part of the API, and should not
833
+ # > be considered stable.
834
+ id: nil,
835
+ # Total number of images on the host.
836
+ #
837
+ # Both _tagged_ and _untagged_ (dangling) images are counted.
838
+ images: nil,
839
+ # Address / URL of the index server that is used for image search, and as a
840
+ # default for user authentication for Docker Hub and Docker Cloud.
841
+ index_server_address: nil,
842
+ # Name and, optional, path of the `docker-init` binary.
843
+ #
844
+ # If the path is omitted, the daemon searches the host's `$PATH` for the binary
845
+ # and uses the first result.
846
+ init_binary: nil,
847
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
848
+ # the version-string of external tools, such as `containerd`, or `runC`.
849
+ init_commit: nil,
850
+ # Indicates IPv4 forwarding is enabled.
851
+ i_pv4_forwarding: nil,
852
+ # Represents the isolation technology to use as a default for containers. The
853
+ # supported values are platform-specific.
854
+ #
855
+ # If no isolation value is specified on daemon start, on Windows client, the
856
+ # default is `hyperv`, and on Windows server, the default is `process`.
857
+ #
858
+ # This option is currently not used on other platforms.
859
+ isolation: nil,
860
+ # Kernel version of the host.
861
+ #
862
+ # On Linux, this information obtained from `uname`. On Windows this information is
863
+ # queried from the <kbd>HKEY*LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows
864
+ # NT\\CurrentVersion\\</kbd> registry value, for example *"10.0 14393
865
+ # (14393.1198.amd64fre.rs1*release_sec.170427-1353)"*.
866
+ kernel_version: nil,
867
+ # User-defined labels (key/value metadata) as set on the daemon.
868
+ #
869
+ # <p><br /></p>
870
+ #
871
+ # > **Note**: When part of a Swarm, nodes can both have _daemon_ labels, set
872
+ # > through the daemon configuration, and _node_ labels, set from a manager node
873
+ # > in the Swarm. Node labels are not included in this field. Node labels can be
874
+ # > retrieved using the `/nodes/(id)` endpoint on a manager node in the Swarm.
875
+ labels: nil,
876
+ # Indicates if live restore is enabled.
877
+ #
878
+ # If enabled, containers are kept running when the daemon is shutdown or upon
879
+ # daemon start if running containers are detected.
880
+ live_restore_enabled: nil,
881
+ # The logging driver to use as a default for new containers.
882
+ logging_driver: nil,
883
+ # Indicates if the host has memory limit support enabled.
884
+ memory_limit: nil,
885
+ # Total amount of physical memory available on the host, in bytes.
886
+ mem_total: nil,
887
+ # Hostname of the host.
888
+ name: nil,
889
+ # The number of logical CPUs usable by the daemon.
890
+ #
891
+ # The number of available CPUs is checked by querying the operating system when
892
+ # the daemon starts. Changes to operating system CPU allocation after the daemon
893
+ # is started are not reflected.
894
+ ncpu: nil,
895
+ # Number of event listeners subscribed.
896
+ n_events_listener: nil,
897
+ # The total number of file Descriptors in use by the daemon process.
898
+ #
899
+ # This information is only returned if debug-mode is enabled.
900
+ n_fd: nil,
901
+ # The number of goroutines that currently exist.
902
+ #
903
+ # This information is only returned if debug-mode is enabled.
904
+ n_goroutines: nil,
905
+ # Comma-separated list of domain extensions for which no proxy should be used.
906
+ # This value is obtained from the
907
+ # [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
908
+ # environment variable.
909
+ #
910
+ # Containers do not automatically inherit this configuration.
911
+ no_proxy: nil,
912
+ # Information about the Node Resource Interface (NRI).
913
+ #
914
+ # This field is only present if NRI is enabled.
915
+ nri: nil,
916
+ # Indicates if OOM killer disable is supported on the host.
917
+ oom_kill_disable: nil,
918
+ # Name of the host's operating system, for example: "Ubuntu 24.04 LTS" or "Windows
919
+ # Server 2016 Datacenter"
920
+ operating_system: nil,
921
+ # Generic type of the operating system of the host, as returned by the Go runtime
922
+ # (`GOOS`).
923
+ #
924
+ # Currently returned values are "linux" and "windows". A full list of possible
925
+ # values can be found in the
926
+ # [Go documentation](https://go.dev/doc/install/source#environment).
927
+ os_type: nil,
928
+ # Version of the host's operating system
929
+ #
930
+ # <p><br /></p>
931
+ #
932
+ # > **Note**: The information returned in this field, including its very
933
+ # > existence, and the formatting of values, should not be considered stable, and
934
+ # > may change without notice.
935
+ os_version: nil,
936
+ # Indicates if the host kernel has PID limit support enabled.
937
+ pids_limit: nil,
938
+ # Available plugins per type.
939
+ #
940
+ # <p><br /></p>
941
+ #
942
+ # > **Note**: Only unmanaged (V1) plugins are included in this list. V1 plugins
943
+ # > are "lazily" loaded, and are not returned in this list if there is no resource
944
+ # > using the plugin.
945
+ plugins: nil,
946
+ # Reports a summary of the product license on the daemon.
947
+ #
948
+ # If a commercial license has been applied to the daemon, information such as
949
+ # number of nodes, and expiration are included.
950
+ product_license: nil,
951
+ # RegistryServiceConfig stores daemon registry services configuration.
952
+ registry_config: nil,
953
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
954
+ # the version-string of external tools, such as `containerd`, or `runC`.
955
+ runc_commit: nil,
956
+ # List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes
957
+ # configured on the daemon. Keys hold the "name" used to reference the runtime.
958
+ #
959
+ # The Docker daemon relies on an OCI compliant runtime (invoked via the
960
+ # `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups,
961
+ # and SELinux.
962
+ #
963
+ # The default runtime is `runc`, and automatically configured. Additional runtimes
964
+ # can be configured by the user and will be listed here.
965
+ runtimes: nil,
966
+ # List of security features that are enabled on the daemon, such as apparmor,
967
+ # seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges.
968
+ #
969
+ # Additional configuration options for each security feature may be present, and
970
+ # are included as a comma-separated list of key/value pairs.
971
+ security_options: nil,
972
+ # Version string of the daemon.
973
+ server_version: nil,
974
+ # Indicates if the host has memory swap limit support enabled.
975
+ swap_limit: nil,
976
+ # Represents generic information about swarm.
977
+ swarm: nil,
978
+ # Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format
979
+ # with nano-seconds.
980
+ system_time: nil,
981
+ # List of warnings / informational messages about missing features, or issues
982
+ # related to the daemon configuration.
983
+ #
984
+ # These messages can be printed by the client as information to the user.
985
+ warnings: nil
986
+ )
987
+ end
988
+
989
+ sig do
990
+ override.returns(
991
+ {
992
+ architecture: String,
993
+ cdi_spec_dirs: T::Array[String],
994
+ cgroup_driver: DockerEngineAPI::Info::CgroupDriver::TaggedSymbol,
995
+ cgroup_version: DockerEngineAPI::Info::CgroupVersion::TaggedSymbol,
996
+ containerd: T.nilable(DockerEngineAPI::Info::Containerd),
997
+ containerd_commit: DockerEngineAPI::Info::ContainerdCommit,
998
+ containers: Integer,
999
+ containers_paused: Integer,
1000
+ containers_running: Integer,
1001
+ containers_stopped: Integer,
1002
+ cpu_cfs_period: T::Boolean,
1003
+ cpu_cfs_quota: T::Boolean,
1004
+ cpu_set: T::Boolean,
1005
+ cpu_shares: T::Boolean,
1006
+ debug: T::Boolean,
1007
+ default_address_pools:
1008
+ T::Array[DockerEngineAPI::Info::DefaultAddressPool],
1009
+ default_runtime: String,
1010
+ discovered_devices:
1011
+ T::Array[DockerEngineAPI::Info::DiscoveredDevice],
1012
+ docker_root_dir: String,
1013
+ driver: String,
1014
+ driver_status: T::Array[T::Array[String]],
1015
+ experimental_build: T::Boolean,
1016
+ firewall_backend: T.nilable(DockerEngineAPI::Info::FirewallBackend),
1017
+ generic_resources: T::Array[DockerEngineAPI::Info::GenericResource],
1018
+ http_proxy: String,
1019
+ https_proxy: String,
1020
+ id: String,
1021
+ images: Integer,
1022
+ index_server_address: String,
1023
+ init_binary: String,
1024
+ init_commit: DockerEngineAPI::Info::InitCommit,
1025
+ i_pv4_forwarding: T::Boolean,
1026
+ isolation: DockerEngineAPI::Info::Isolation::TaggedSymbol,
1027
+ kernel_version: String,
1028
+ labels: T::Array[String],
1029
+ live_restore_enabled: T::Boolean,
1030
+ logging_driver: String,
1031
+ memory_limit: T::Boolean,
1032
+ mem_total: Integer,
1033
+ name: String,
1034
+ ncpu: Integer,
1035
+ n_events_listener: Integer,
1036
+ n_fd: Integer,
1037
+ n_goroutines: Integer,
1038
+ no_proxy: String,
1039
+ nri: T.nilable(DockerEngineAPI::Info::Nri),
1040
+ oom_kill_disable: T::Boolean,
1041
+ operating_system: String,
1042
+ os_type: String,
1043
+ os_version: String,
1044
+ pids_limit: T::Boolean,
1045
+ plugins: DockerEngineAPI::Info::Plugins,
1046
+ product_license: String,
1047
+ registry_config: T.nilable(DockerEngineAPI::Info::RegistryConfig),
1048
+ runc_commit: DockerEngineAPI::Info::RuncCommit,
1049
+ runtimes: T::Hash[Symbol, DockerEngineAPI::Info::Runtime],
1050
+ security_options: T::Array[String],
1051
+ server_version: String,
1052
+ swap_limit: T::Boolean,
1053
+ swarm: DockerEngineAPI::Info::Swarm,
1054
+ system_time: String,
1055
+ warnings: T::Array[String]
1056
+ }
1057
+ )
1058
+ end
1059
+ def to_hash
1060
+ end
1061
+
1062
+ # The driver to use for managing cgroups.
1063
+ module CgroupDriver
1064
+ extend DockerEngineAPI::Internal::Type::Enum
1065
+
1066
+ TaggedSymbol =
1067
+ T.type_alias { T.all(Symbol, DockerEngineAPI::Info::CgroupDriver) }
1068
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1069
+
1070
+ CGROUPFS =
1071
+ T.let(:cgroupfs, DockerEngineAPI::Info::CgroupDriver::TaggedSymbol)
1072
+ SYSTEMD =
1073
+ T.let(:systemd, DockerEngineAPI::Info::CgroupDriver::TaggedSymbol)
1074
+ NONE = T.let(:none, DockerEngineAPI::Info::CgroupDriver::TaggedSymbol)
1075
+
1076
+ sig do
1077
+ override.returns(
1078
+ T::Array[DockerEngineAPI::Info::CgroupDriver::TaggedSymbol]
1079
+ )
1080
+ end
1081
+ def self.values
1082
+ end
1083
+ end
1084
+
1085
+ # The version of the cgroup.
1086
+ module CgroupVersion
1087
+ extend DockerEngineAPI::Internal::Type::Enum
1088
+
1089
+ TaggedSymbol =
1090
+ T.type_alias { T.all(Symbol, DockerEngineAPI::Info::CgroupVersion) }
1091
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1092
+
1093
+ CGROUP_VERSION_1 =
1094
+ T.let(:"1", DockerEngineAPI::Info::CgroupVersion::TaggedSymbol)
1095
+ CGROUP_VERSION_2 =
1096
+ T.let(:"2", DockerEngineAPI::Info::CgroupVersion::TaggedSymbol)
1097
+
1098
+ sig do
1099
+ override.returns(
1100
+ T::Array[DockerEngineAPI::Info::CgroupVersion::TaggedSymbol]
1101
+ )
1102
+ end
1103
+ def self.values
1104
+ end
1105
+ end
1106
+
1107
+ class Containerd < DockerEngineAPI::Internal::Type::BaseModel
1108
+ OrHash =
1109
+ T.type_alias do
1110
+ T.any(
1111
+ DockerEngineAPI::Info::Containerd,
1112
+ DockerEngineAPI::Internal::AnyHash
1113
+ )
1114
+ end
1115
+
1116
+ # The address of the containerd socket.
1117
+ sig { returns(T.nilable(String)) }
1118
+ attr_reader :address
1119
+
1120
+ sig { params(address: String).void }
1121
+ attr_writer :address
1122
+
1123
+ # The namespaces that the daemon uses for running containers and plugins in
1124
+ # containerd. These namespaces can be configured in the daemon configuration, and
1125
+ # are considered to be used exclusively by the daemon, Tampering with the
1126
+ # containerd instance may cause unexpected behavior.
1127
+ #
1128
+ # As these namespaces are considered to be exclusively accessed by the daemon, it
1129
+ # is not recommended to change these values, or to change them to a value that is
1130
+ # used by other systems, such as cri-containerd.
1131
+ sig do
1132
+ returns(T.nilable(DockerEngineAPI::Info::Containerd::Namespaces))
1133
+ end
1134
+ attr_reader :namespaces
1135
+
1136
+ sig do
1137
+ params(
1138
+ namespaces: DockerEngineAPI::Info::Containerd::Namespaces::OrHash
1139
+ ).void
1140
+ end
1141
+ attr_writer :namespaces
1142
+
1143
+ # Information for connecting to the containerd instance that is used by the
1144
+ # daemon. This is included for debugging purposes only.
1145
+ sig do
1146
+ params(
1147
+ address: String,
1148
+ namespaces: DockerEngineAPI::Info::Containerd::Namespaces::OrHash
1149
+ ).returns(T.attached_class)
1150
+ end
1151
+ def self.new(
1152
+ # The address of the containerd socket.
1153
+ address: nil,
1154
+ # The namespaces that the daemon uses for running containers and plugins in
1155
+ # containerd. These namespaces can be configured in the daemon configuration, and
1156
+ # are considered to be used exclusively by the daemon, Tampering with the
1157
+ # containerd instance may cause unexpected behavior.
1158
+ #
1159
+ # As these namespaces are considered to be exclusively accessed by the daemon, it
1160
+ # is not recommended to change these values, or to change them to a value that is
1161
+ # used by other systems, such as cri-containerd.
1162
+ namespaces: nil
1163
+ )
1164
+ end
1165
+
1166
+ sig do
1167
+ override.returns(
1168
+ {
1169
+ address: String,
1170
+ namespaces: DockerEngineAPI::Info::Containerd::Namespaces
1171
+ }
1172
+ )
1173
+ end
1174
+ def to_hash
1175
+ end
1176
+
1177
+ class Namespaces < DockerEngineAPI::Internal::Type::BaseModel
1178
+ OrHash =
1179
+ T.type_alias do
1180
+ T.any(
1181
+ DockerEngineAPI::Info::Containerd::Namespaces,
1182
+ DockerEngineAPI::Internal::AnyHash
1183
+ )
1184
+ end
1185
+
1186
+ # The default containerd namespace used for containers managed by the daemon.
1187
+ #
1188
+ # The default namespace for containers is "moby", but will be suffixed with the
1189
+ # `<uid>.<gid>` of the remapped `root` if user-namespaces are enabled and the
1190
+ # containerd image-store is used.
1191
+ sig { returns(T.nilable(String)) }
1192
+ attr_reader :containers
1193
+
1194
+ sig { params(containers: String).void }
1195
+ attr_writer :containers
1196
+
1197
+ # The default containerd namespace used for plugins managed by the daemon.
1198
+ #
1199
+ # The default namespace for plugins is "plugins.moby", but will be suffixed with
1200
+ # the `<uid>.<gid>` of the remapped `root` if user-namespaces are enabled and the
1201
+ # containerd image-store is used.
1202
+ sig { returns(T.nilable(String)) }
1203
+ attr_reader :plugins
1204
+
1205
+ sig { params(plugins: String).void }
1206
+ attr_writer :plugins
1207
+
1208
+ # The namespaces that the daemon uses for running containers and plugins in
1209
+ # containerd. These namespaces can be configured in the daemon configuration, and
1210
+ # are considered to be used exclusively by the daemon, Tampering with the
1211
+ # containerd instance may cause unexpected behavior.
1212
+ #
1213
+ # As these namespaces are considered to be exclusively accessed by the daemon, it
1214
+ # is not recommended to change these values, or to change them to a value that is
1215
+ # used by other systems, such as cri-containerd.
1216
+ sig do
1217
+ params(containers: String, plugins: String).returns(
1218
+ T.attached_class
1219
+ )
1220
+ end
1221
+ def self.new(
1222
+ # The default containerd namespace used for containers managed by the daemon.
1223
+ #
1224
+ # The default namespace for containers is "moby", but will be suffixed with the
1225
+ # `<uid>.<gid>` of the remapped `root` if user-namespaces are enabled and the
1226
+ # containerd image-store is used.
1227
+ containers: nil,
1228
+ # The default containerd namespace used for plugins managed by the daemon.
1229
+ #
1230
+ # The default namespace for plugins is "plugins.moby", but will be suffixed with
1231
+ # the `<uid>.<gid>` of the remapped `root` if user-namespaces are enabled and the
1232
+ # containerd image-store is used.
1233
+ plugins: nil
1234
+ )
1235
+ end
1236
+
1237
+ sig { override.returns({ containers: String, plugins: String }) }
1238
+ def to_hash
1239
+ end
1240
+ end
1241
+ end
1242
+
1243
+ class ContainerdCommit < DockerEngineAPI::Internal::Type::BaseModel
1244
+ OrHash =
1245
+ T.type_alias do
1246
+ T.any(
1247
+ DockerEngineAPI::Info::ContainerdCommit,
1248
+ DockerEngineAPI::Internal::AnyHash
1249
+ )
1250
+ end
1251
+
1252
+ # Actual commit ID of external tool.
1253
+ sig { returns(T.nilable(String)) }
1254
+ attr_reader :id
1255
+
1256
+ sig { params(id: String).void }
1257
+ attr_writer :id
1258
+
1259
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
1260
+ # the version-string of external tools, such as `containerd`, or `runC`.
1261
+ sig { params(id: String).returns(T.attached_class) }
1262
+ def self.new(
1263
+ # Actual commit ID of external tool.
1264
+ id: nil
1265
+ )
1266
+ end
1267
+
1268
+ sig { override.returns({ id: String }) }
1269
+ def to_hash
1270
+ end
1271
+ end
1272
+
1273
+ class DefaultAddressPool < DockerEngineAPI::Internal::Type::BaseModel
1274
+ OrHash =
1275
+ T.type_alias do
1276
+ T.any(
1277
+ DockerEngineAPI::Info::DefaultAddressPool,
1278
+ DockerEngineAPI::Internal::AnyHash
1279
+ )
1280
+ end
1281
+
1282
+ # The network address in CIDR format
1283
+ sig { returns(T.nilable(String)) }
1284
+ attr_reader :base
1285
+
1286
+ sig { params(base: String).void }
1287
+ attr_writer :base
1288
+
1289
+ # The network pool size
1290
+ sig { returns(T.nilable(Integer)) }
1291
+ attr_reader :size
1292
+
1293
+ sig { params(size: Integer).void }
1294
+ attr_writer :size
1295
+
1296
+ sig { params(base: String, size: Integer).returns(T.attached_class) }
1297
+ def self.new(
1298
+ # The network address in CIDR format
1299
+ base: nil,
1300
+ # The network pool size
1301
+ size: nil
1302
+ )
1303
+ end
1304
+
1305
+ sig { override.returns({ base: String, size: Integer }) }
1306
+ def to_hash
1307
+ end
1308
+ end
1309
+
1310
+ class DiscoveredDevice < DockerEngineAPI::Internal::Type::BaseModel
1311
+ OrHash =
1312
+ T.type_alias do
1313
+ T.any(
1314
+ DockerEngineAPI::Info::DiscoveredDevice,
1315
+ DockerEngineAPI::Internal::AnyHash
1316
+ )
1317
+ end
1318
+
1319
+ # The unique identifier for the device within its source driver. For CDI devices,
1320
+ # this would be an FQDN like "vendor.com/gpu=0".
1321
+ sig { returns(T.nilable(String)) }
1322
+ attr_reader :id
1323
+
1324
+ sig { params(id: String).void }
1325
+ attr_writer :id
1326
+
1327
+ # The origin device driver.
1328
+ sig { returns(T.nilable(String)) }
1329
+ attr_reader :source
1330
+
1331
+ sig { params(source: String).void }
1332
+ attr_writer :source
1333
+
1334
+ # DeviceInfo represents a device that can be used by a container.
1335
+ sig { params(id: String, source: String).returns(T.attached_class) }
1336
+ def self.new(
1337
+ # The unique identifier for the device within its source driver. For CDI devices,
1338
+ # this would be an FQDN like "vendor.com/gpu=0".
1339
+ id: nil,
1340
+ # The origin device driver.
1341
+ source: nil
1342
+ )
1343
+ end
1344
+
1345
+ sig { override.returns({ id: String, source: String }) }
1346
+ def to_hash
1347
+ end
1348
+ end
1349
+
1350
+ class FirewallBackend < DockerEngineAPI::Internal::Type::BaseModel
1351
+ OrHash =
1352
+ T.type_alias do
1353
+ T.any(
1354
+ DockerEngineAPI::Info::FirewallBackend,
1355
+ DockerEngineAPI::Internal::AnyHash
1356
+ )
1357
+ end
1358
+
1359
+ # The name of the firewall backend driver.
1360
+ sig { returns(T.nilable(String)) }
1361
+ attr_reader :driver
1362
+
1363
+ sig { params(driver: String).void }
1364
+ attr_writer :driver
1365
+
1366
+ # Information about the firewall backend, provided as "label" / "value" pairs.
1367
+ #
1368
+ # <p><br /></p>
1369
+ #
1370
+ # > **Note**: The information returned in this field, including the formatting of
1371
+ # > values and labels, should not be considered stable, and may change without
1372
+ # > notice.
1373
+ sig { returns(T.nilable(T::Array[T::Array[String]])) }
1374
+ attr_reader :info
1375
+
1376
+ sig { params(info: T::Array[T::Array[String]]).void }
1377
+ attr_writer :info
1378
+
1379
+ # Information about the daemon's firewalling configuration.
1380
+ #
1381
+ # This field is currently only used on Linux, and omitted on other platforms.
1382
+ sig do
1383
+ params(driver: String, info: T::Array[T::Array[String]]).returns(
1384
+ T.attached_class
1385
+ )
1386
+ end
1387
+ def self.new(
1388
+ # The name of the firewall backend driver.
1389
+ driver: nil,
1390
+ # Information about the firewall backend, provided as "label" / "value" pairs.
1391
+ #
1392
+ # <p><br /></p>
1393
+ #
1394
+ # > **Note**: The information returned in this field, including the formatting of
1395
+ # > values and labels, should not be considered stable, and may change without
1396
+ # > notice.
1397
+ info: nil
1398
+ )
1399
+ end
1400
+
1401
+ sig do
1402
+ override.returns({ driver: String, info: T::Array[T::Array[String]] })
1403
+ end
1404
+ def to_hash
1405
+ end
1406
+ end
1407
+
1408
+ class GenericResource < DockerEngineAPI::Internal::Type::BaseModel
1409
+ OrHash =
1410
+ T.type_alias do
1411
+ T.any(
1412
+ DockerEngineAPI::Info::GenericResource,
1413
+ DockerEngineAPI::Internal::AnyHash
1414
+ )
1415
+ end
1416
+
1417
+ sig do
1418
+ returns(
1419
+ T.nilable(
1420
+ DockerEngineAPI::Info::GenericResource::DiscreteResourceSpec
1421
+ )
1422
+ )
1423
+ end
1424
+ attr_reader :discrete_resource_spec
1425
+
1426
+ sig do
1427
+ params(
1428
+ discrete_resource_spec:
1429
+ DockerEngineAPI::Info::GenericResource::DiscreteResourceSpec::OrHash
1430
+ ).void
1431
+ end
1432
+ attr_writer :discrete_resource_spec
1433
+
1434
+ sig do
1435
+ returns(
1436
+ T.nilable(DockerEngineAPI::Info::GenericResource::NamedResourceSpec)
1437
+ )
1438
+ end
1439
+ attr_reader :named_resource_spec
1440
+
1441
+ sig do
1442
+ params(
1443
+ named_resource_spec:
1444
+ DockerEngineAPI::Info::GenericResource::NamedResourceSpec::OrHash
1445
+ ).void
1446
+ end
1447
+ attr_writer :named_resource_spec
1448
+
1449
+ sig do
1450
+ params(
1451
+ discrete_resource_spec:
1452
+ DockerEngineAPI::Info::GenericResource::DiscreteResourceSpec::OrHash,
1453
+ named_resource_spec:
1454
+ DockerEngineAPI::Info::GenericResource::NamedResourceSpec::OrHash
1455
+ ).returns(T.attached_class)
1456
+ end
1457
+ def self.new(discrete_resource_spec: nil, named_resource_spec: nil)
1458
+ end
1459
+
1460
+ sig do
1461
+ override.returns(
1462
+ {
1463
+ discrete_resource_spec:
1464
+ DockerEngineAPI::Info::GenericResource::DiscreteResourceSpec,
1465
+ named_resource_spec:
1466
+ DockerEngineAPI::Info::GenericResource::NamedResourceSpec
1467
+ }
1468
+ )
1469
+ end
1470
+ def to_hash
1471
+ end
1472
+
1473
+ class DiscreteResourceSpec < DockerEngineAPI::Internal::Type::BaseModel
1474
+ OrHash =
1475
+ T.type_alias do
1476
+ T.any(
1477
+ DockerEngineAPI::Info::GenericResource::DiscreteResourceSpec,
1478
+ DockerEngineAPI::Internal::AnyHash
1479
+ )
1480
+ end
1481
+
1482
+ sig { returns(T.nilable(String)) }
1483
+ attr_reader :kind
1484
+
1485
+ sig { params(kind: String).void }
1486
+ attr_writer :kind
1487
+
1488
+ sig { returns(T.nilable(Integer)) }
1489
+ attr_reader :value
1490
+
1491
+ sig { params(value: Integer).void }
1492
+ attr_writer :value
1493
+
1494
+ sig { params(kind: String, value: Integer).returns(T.attached_class) }
1495
+ def self.new(kind: nil, value: nil)
1496
+ end
1497
+
1498
+ sig { override.returns({ kind: String, value: Integer }) }
1499
+ def to_hash
1500
+ end
1501
+ end
1502
+
1503
+ class NamedResourceSpec < DockerEngineAPI::Internal::Type::BaseModel
1504
+ OrHash =
1505
+ T.type_alias do
1506
+ T.any(
1507
+ DockerEngineAPI::Info::GenericResource::NamedResourceSpec,
1508
+ DockerEngineAPI::Internal::AnyHash
1509
+ )
1510
+ end
1511
+
1512
+ sig { returns(T.nilable(String)) }
1513
+ attr_reader :kind
1514
+
1515
+ sig { params(kind: String).void }
1516
+ attr_writer :kind
1517
+
1518
+ sig { returns(T.nilable(String)) }
1519
+ attr_reader :value
1520
+
1521
+ sig { params(value: String).void }
1522
+ attr_writer :value
1523
+
1524
+ sig { params(kind: String, value: String).returns(T.attached_class) }
1525
+ def self.new(kind: nil, value: nil)
1526
+ end
1527
+
1528
+ sig { override.returns({ kind: String, value: String }) }
1529
+ def to_hash
1530
+ end
1531
+ end
1532
+ end
1533
+
1534
+ class InitCommit < DockerEngineAPI::Internal::Type::BaseModel
1535
+ OrHash =
1536
+ T.type_alias do
1537
+ T.any(
1538
+ DockerEngineAPI::Info::InitCommit,
1539
+ DockerEngineAPI::Internal::AnyHash
1540
+ )
1541
+ end
1542
+
1543
+ # Actual commit ID of external tool.
1544
+ sig { returns(T.nilable(String)) }
1545
+ attr_reader :id
1546
+
1547
+ sig { params(id: String).void }
1548
+ attr_writer :id
1549
+
1550
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
1551
+ # the version-string of external tools, such as `containerd`, or `runC`.
1552
+ sig { params(id: String).returns(T.attached_class) }
1553
+ def self.new(
1554
+ # Actual commit ID of external tool.
1555
+ id: nil
1556
+ )
1557
+ end
1558
+
1559
+ sig { override.returns({ id: String }) }
1560
+ def to_hash
1561
+ end
1562
+ end
1563
+
1564
+ # Represents the isolation technology to use as a default for containers. The
1565
+ # supported values are platform-specific.
1566
+ #
1567
+ # If no isolation value is specified on daemon start, on Windows client, the
1568
+ # default is `hyperv`, and on Windows server, the default is `process`.
1569
+ #
1570
+ # This option is currently not used on other platforms.
1571
+ module Isolation
1572
+ extend DockerEngineAPI::Internal::Type::Enum
1573
+
1574
+ TaggedSymbol =
1575
+ T.type_alias { T.all(Symbol, DockerEngineAPI::Info::Isolation) }
1576
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1577
+
1578
+ DEFAULT =
1579
+ T.let(:default, DockerEngineAPI::Info::Isolation::TaggedSymbol)
1580
+ HYPERV = T.let(:hyperv, DockerEngineAPI::Info::Isolation::TaggedSymbol)
1581
+ PROCESS =
1582
+ T.let(:process, DockerEngineAPI::Info::Isolation::TaggedSymbol)
1583
+ EMPTY = T.let(:"", DockerEngineAPI::Info::Isolation::TaggedSymbol)
1584
+
1585
+ sig do
1586
+ override.returns(
1587
+ T::Array[DockerEngineAPI::Info::Isolation::TaggedSymbol]
1588
+ )
1589
+ end
1590
+ def self.values
1591
+ end
1592
+ end
1593
+
1594
+ class Nri < DockerEngineAPI::Internal::Type::BaseModel
1595
+ OrHash =
1596
+ T.type_alias do
1597
+ T.any(
1598
+ DockerEngineAPI::Info::Nri,
1599
+ DockerEngineAPI::Internal::AnyHash
1600
+ )
1601
+ end
1602
+
1603
+ # Information about NRI, provided as "label" / "value" pairs.
1604
+ #
1605
+ # <p><br /></p>
1606
+ #
1607
+ # > **Note**: The information returned in this field, including the formatting of
1608
+ # > values and labels, should not be considered stable, and may change without
1609
+ # > notice.
1610
+ sig { returns(T.nilable(T::Array[T::Array[String]])) }
1611
+ attr_reader :info
1612
+
1613
+ sig { params(info: T::Array[T::Array[String]]).void }
1614
+ attr_writer :info
1615
+
1616
+ # Information about the Node Resource Interface (NRI).
1617
+ #
1618
+ # This field is only present if NRI is enabled.
1619
+ sig do
1620
+ params(info: T::Array[T::Array[String]]).returns(T.attached_class)
1621
+ end
1622
+ def self.new(
1623
+ # Information about NRI, provided as "label" / "value" pairs.
1624
+ #
1625
+ # <p><br /></p>
1626
+ #
1627
+ # > **Note**: The information returned in this field, including the formatting of
1628
+ # > values and labels, should not be considered stable, and may change without
1629
+ # > notice.
1630
+ info: nil
1631
+ )
1632
+ end
1633
+
1634
+ sig { override.returns({ info: T::Array[T::Array[String]] }) }
1635
+ def to_hash
1636
+ end
1637
+ end
1638
+
1639
+ class Plugins < DockerEngineAPI::Internal::Type::BaseModel
1640
+ OrHash =
1641
+ T.type_alias do
1642
+ T.any(
1643
+ DockerEngineAPI::Info::Plugins,
1644
+ DockerEngineAPI::Internal::AnyHash
1645
+ )
1646
+ end
1647
+
1648
+ # Names of available authorization plugins.
1649
+ sig { returns(T.nilable(T::Array[String])) }
1650
+ attr_reader :authorization
1651
+
1652
+ sig { params(authorization: T::Array[String]).void }
1653
+ attr_writer :authorization
1654
+
1655
+ # Names of available logging-drivers, and logging-driver plugins.
1656
+ sig { returns(T.nilable(T::Array[String])) }
1657
+ attr_reader :log
1658
+
1659
+ sig { params(log: T::Array[String]).void }
1660
+ attr_writer :log
1661
+
1662
+ # Names of available network-drivers, and network-driver plugins.
1663
+ sig { returns(T.nilable(T::Array[String])) }
1664
+ attr_reader :network
1665
+
1666
+ sig { params(network: T::Array[String]).void }
1667
+ attr_writer :network
1668
+
1669
+ # Names of available volume-drivers, and network-driver plugins.
1670
+ sig { returns(T.nilable(T::Array[String])) }
1671
+ attr_reader :volume
1672
+
1673
+ sig { params(volume: T::Array[String]).void }
1674
+ attr_writer :volume
1675
+
1676
+ # Available plugins per type.
1677
+ #
1678
+ # <p><br /></p>
1679
+ #
1680
+ # > **Note**: Only unmanaged (V1) plugins are included in this list. V1 plugins
1681
+ # > are "lazily" loaded, and are not returned in this list if there is no resource
1682
+ # > using the plugin.
1683
+ sig do
1684
+ params(
1685
+ authorization: T::Array[String],
1686
+ log: T::Array[String],
1687
+ network: T::Array[String],
1688
+ volume: T::Array[String]
1689
+ ).returns(T.attached_class)
1690
+ end
1691
+ def self.new(
1692
+ # Names of available authorization plugins.
1693
+ authorization: nil,
1694
+ # Names of available logging-drivers, and logging-driver plugins.
1695
+ log: nil,
1696
+ # Names of available network-drivers, and network-driver plugins.
1697
+ network: nil,
1698
+ # Names of available volume-drivers, and network-driver plugins.
1699
+ volume: nil
1700
+ )
1701
+ end
1702
+
1703
+ sig do
1704
+ override.returns(
1705
+ {
1706
+ authorization: T::Array[String],
1707
+ log: T::Array[String],
1708
+ network: T::Array[String],
1709
+ volume: T::Array[String]
1710
+ }
1711
+ )
1712
+ end
1713
+ def to_hash
1714
+ end
1715
+ end
1716
+
1717
+ class RegistryConfig < DockerEngineAPI::Internal::Type::BaseModel
1718
+ OrHash =
1719
+ T.type_alias do
1720
+ T.any(
1721
+ DockerEngineAPI::Info::RegistryConfig,
1722
+ DockerEngineAPI::Internal::AnyHash
1723
+ )
1724
+ end
1725
+
1726
+ sig do
1727
+ returns(
1728
+ T.nilable(
1729
+ T::Hash[
1730
+ Symbol,
1731
+ T.nilable(DockerEngineAPI::Info::RegistryConfig::IndexConfig)
1732
+ ]
1733
+ )
1734
+ )
1735
+ end
1736
+ attr_reader :index_configs
1737
+
1738
+ sig do
1739
+ params(
1740
+ index_configs:
1741
+ T::Hash[
1742
+ Symbol,
1743
+ T.nilable(
1744
+ DockerEngineAPI::Info::RegistryConfig::IndexConfig::OrHash
1745
+ )
1746
+ ]
1747
+ ).void
1748
+ end
1749
+ attr_writer :index_configs
1750
+
1751
+ # List of IP ranges of insecure registries, using the CIDR syntax
1752
+ # ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries accept
1753
+ # un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs)
1754
+ # communication.
1755
+ #
1756
+ # By default, local registries (`::1/128` and `127.0.0.0/8`) are configured as
1757
+ # insecure. All other registries are secure. Communicating with an insecure
1758
+ # registry is not possible if the daemon assumes that registry is secure.
1759
+ #
1760
+ # This configuration override this behavior, insecure communication with
1761
+ # registries whose resolved IP address is within the subnet described by the CIDR
1762
+ # syntax.
1763
+ #
1764
+ # Registries can also be marked insecure by hostname. Those registries are listed
1765
+ # under `IndexConfigs` and have their `Secure` field set to `false`.
1766
+ #
1767
+ # > **Warning**: Using this option can be useful when running a local registry,
1768
+ # > but introduces security vulnerabilities. This option should therefore ONLY be
1769
+ # > used for testing purposes. For increased security, users should add their CA
1770
+ # > to their system's list of trusted CAs instead of enabling this option.
1771
+ sig { returns(T.nilable(T::Array[String])) }
1772
+ attr_reader :insecure_registry_cid_rs
1773
+
1774
+ sig { params(insecure_registry_cid_rs: T::Array[String]).void }
1775
+ attr_writer :insecure_registry_cid_rs
1776
+
1777
+ # List of registry URLs that act as a mirror for the official (`docker.io`)
1778
+ # registry.
1779
+ sig { returns(T.nilable(T::Array[String])) }
1780
+ attr_reader :mirrors
1781
+
1782
+ sig { params(mirrors: T::Array[String]).void }
1783
+ attr_writer :mirrors
1784
+
1785
+ # RegistryServiceConfig stores daemon registry services configuration.
1786
+ sig do
1787
+ params(
1788
+ index_configs:
1789
+ T::Hash[
1790
+ Symbol,
1791
+ T.nilable(
1792
+ DockerEngineAPI::Info::RegistryConfig::IndexConfig::OrHash
1793
+ )
1794
+ ],
1795
+ insecure_registry_cid_rs: T::Array[String],
1796
+ mirrors: T::Array[String]
1797
+ ).returns(T.attached_class)
1798
+ end
1799
+ def self.new(
1800
+ index_configs: nil,
1801
+ # List of IP ranges of insecure registries, using the CIDR syntax
1802
+ # ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries accept
1803
+ # un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs)
1804
+ # communication.
1805
+ #
1806
+ # By default, local registries (`::1/128` and `127.0.0.0/8`) are configured as
1807
+ # insecure. All other registries are secure. Communicating with an insecure
1808
+ # registry is not possible if the daemon assumes that registry is secure.
1809
+ #
1810
+ # This configuration override this behavior, insecure communication with
1811
+ # registries whose resolved IP address is within the subnet described by the CIDR
1812
+ # syntax.
1813
+ #
1814
+ # Registries can also be marked insecure by hostname. Those registries are listed
1815
+ # under `IndexConfigs` and have their `Secure` field set to `false`.
1816
+ #
1817
+ # > **Warning**: Using this option can be useful when running a local registry,
1818
+ # > but introduces security vulnerabilities. This option should therefore ONLY be
1819
+ # > used for testing purposes. For increased security, users should add their CA
1820
+ # > to their system's list of trusted CAs instead of enabling this option.
1821
+ insecure_registry_cid_rs: nil,
1822
+ # List of registry URLs that act as a mirror for the official (`docker.io`)
1823
+ # registry.
1824
+ mirrors: nil
1825
+ )
1826
+ end
1827
+
1828
+ sig do
1829
+ override.returns(
1830
+ {
1831
+ index_configs:
1832
+ T::Hash[
1833
+ Symbol,
1834
+ T.nilable(DockerEngineAPI::Info::RegistryConfig::IndexConfig)
1835
+ ],
1836
+ insecure_registry_cid_rs: T::Array[String],
1837
+ mirrors: T::Array[String]
1838
+ }
1839
+ )
1840
+ end
1841
+ def to_hash
1842
+ end
1843
+
1844
+ class IndexConfig < DockerEngineAPI::Internal::Type::BaseModel
1845
+ OrHash =
1846
+ T.type_alias do
1847
+ T.any(
1848
+ DockerEngineAPI::Info::RegistryConfig::IndexConfig,
1849
+ DockerEngineAPI::Internal::AnyHash
1850
+ )
1851
+ end
1852
+
1853
+ # List of mirrors, expressed as URIs.
1854
+ sig { returns(T.nilable(T::Array[String])) }
1855
+ attr_reader :mirrors
1856
+
1857
+ sig { params(mirrors: T::Array[String]).void }
1858
+ attr_writer :mirrors
1859
+
1860
+ # Name of the registry, such as "docker.io".
1861
+ sig { returns(T.nilable(String)) }
1862
+ attr_reader :name
1863
+
1864
+ sig { params(name: String).void }
1865
+ attr_writer :name
1866
+
1867
+ # Indicates whether this is an official registry (i.e., Docker Hub / docker.io)
1868
+ sig { returns(T.nilable(T::Boolean)) }
1869
+ attr_reader :official
1870
+
1871
+ sig { params(official: T::Boolean).void }
1872
+ attr_writer :official
1873
+
1874
+ # Indicates if the registry is part of the list of insecure registries.
1875
+ #
1876
+ # If `false`, the registry is insecure. Insecure registries accept un-encrypted
1877
+ # (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs)
1878
+ # communication.
1879
+ #
1880
+ # > **Warning**: Insecure registries can be useful when running a local registry.
1881
+ # > However, because its use creates security vulnerabilities it should ONLY be
1882
+ # > enabled for testing purposes. For increased security, users should add their
1883
+ # > CA to their system's list of trusted CAs instead of enabling this option.
1884
+ sig { returns(T.nilable(T::Boolean)) }
1885
+ attr_reader :secure
1886
+
1887
+ sig { params(secure: T::Boolean).void }
1888
+ attr_writer :secure
1889
+
1890
+ # IndexInfo contains information about a registry.
1891
+ sig do
1892
+ params(
1893
+ mirrors: T::Array[String],
1894
+ name: String,
1895
+ official: T::Boolean,
1896
+ secure: T::Boolean
1897
+ ).returns(T.attached_class)
1898
+ end
1899
+ def self.new(
1900
+ # List of mirrors, expressed as URIs.
1901
+ mirrors: nil,
1902
+ # Name of the registry, such as "docker.io".
1903
+ name: nil,
1904
+ # Indicates whether this is an official registry (i.e., Docker Hub / docker.io)
1905
+ official: nil,
1906
+ # Indicates if the registry is part of the list of insecure registries.
1907
+ #
1908
+ # If `false`, the registry is insecure. Insecure registries accept un-encrypted
1909
+ # (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs)
1910
+ # communication.
1911
+ #
1912
+ # > **Warning**: Insecure registries can be useful when running a local registry.
1913
+ # > However, because its use creates security vulnerabilities it should ONLY be
1914
+ # > enabled for testing purposes. For increased security, users should add their
1915
+ # > CA to their system's list of trusted CAs instead of enabling this option.
1916
+ secure: nil
1917
+ )
1918
+ end
1919
+
1920
+ sig do
1921
+ override.returns(
1922
+ {
1923
+ mirrors: T::Array[String],
1924
+ name: String,
1925
+ official: T::Boolean,
1926
+ secure: T::Boolean
1927
+ }
1928
+ )
1929
+ end
1930
+ def to_hash
1931
+ end
1932
+ end
1933
+ end
1934
+
1935
+ class RuncCommit < DockerEngineAPI::Internal::Type::BaseModel
1936
+ OrHash =
1937
+ T.type_alias do
1938
+ T.any(
1939
+ DockerEngineAPI::Info::RuncCommit,
1940
+ DockerEngineAPI::Internal::AnyHash
1941
+ )
1942
+ end
1943
+
1944
+ # Actual commit ID of external tool.
1945
+ sig { returns(T.nilable(String)) }
1946
+ attr_reader :id
1947
+
1948
+ sig { params(id: String).void }
1949
+ attr_writer :id
1950
+
1951
+ # Commit holds the Git-commit (SHA1) that a binary was built from, as reported in
1952
+ # the version-string of external tools, such as `containerd`, or `runC`.
1953
+ sig { params(id: String).returns(T.attached_class) }
1954
+ def self.new(
1955
+ # Actual commit ID of external tool.
1956
+ id: nil
1957
+ )
1958
+ end
1959
+
1960
+ sig { override.returns({ id: String }) }
1961
+ def to_hash
1962
+ end
1963
+ end
1964
+
1965
+ class Runtime < DockerEngineAPI::Internal::Type::BaseModel
1966
+ OrHash =
1967
+ T.type_alias do
1968
+ T.any(
1969
+ DockerEngineAPI::Info::Runtime,
1970
+ DockerEngineAPI::Internal::AnyHash
1971
+ )
1972
+ end
1973
+
1974
+ # Name and, optional, path, of the OCI executable binary.
1975
+ #
1976
+ # If the path is omitted, the daemon searches the host's `$PATH` for the binary
1977
+ # and uses the first result.
1978
+ sig { returns(T.nilable(String)) }
1979
+ attr_reader :path
1980
+
1981
+ sig { params(path: String).void }
1982
+ attr_writer :path
1983
+
1984
+ # List of command-line arguments to pass to the runtime when invoked.
1985
+ sig { returns(T.nilable(T::Array[String])) }
1986
+ attr_accessor :runtime_args
1987
+
1988
+ # Information specific to the runtime.
1989
+ #
1990
+ # While this API specification does not define data provided by runtimes, the
1991
+ # following well-known properties may be provided by runtimes:
1992
+ #
1993
+ # `org.opencontainers.runtime-spec.features`: features structure as defined in the
1994
+ # [OCI Runtime Specification](https://github.com/opencontainers/runtime-spec/blob/main/features.md),
1995
+ # in a JSON string representation.
1996
+ #
1997
+ # <p><br /></p>
1998
+ #
1999
+ # > **Note**: The information returned in this field, including the formatting of
2000
+ # > values and labels, should not be considered stable, and may change without
2001
+ # > notice.
2002
+ sig { returns(T.nilable(T::Hash[Symbol, String])) }
2003
+ attr_accessor :status
2004
+
2005
+ # Runtime describes an
2006
+ # [OCI compliant](https://github.com/opencontainers/runtime-spec) runtime.
2007
+ #
2008
+ # The runtime is invoked by the daemon via the `containerd` daemon. OCI runtimes
2009
+ # act as an interface to the Linux kernel namespaces, cgroups, and SELinux.
2010
+ sig do
2011
+ params(
2012
+ path: String,
2013
+ runtime_args: T.nilable(T::Array[String]),
2014
+ status: T.nilable(T::Hash[Symbol, String])
2015
+ ).returns(T.attached_class)
2016
+ end
2017
+ def self.new(
2018
+ # Name and, optional, path, of the OCI executable binary.
2019
+ #
2020
+ # If the path is omitted, the daemon searches the host's `$PATH` for the binary
2021
+ # and uses the first result.
2022
+ path: nil,
2023
+ # List of command-line arguments to pass to the runtime when invoked.
2024
+ runtime_args: nil,
2025
+ # Information specific to the runtime.
2026
+ #
2027
+ # While this API specification does not define data provided by runtimes, the
2028
+ # following well-known properties may be provided by runtimes:
2029
+ #
2030
+ # `org.opencontainers.runtime-spec.features`: features structure as defined in the
2031
+ # [OCI Runtime Specification](https://github.com/opencontainers/runtime-spec/blob/main/features.md),
2032
+ # in a JSON string representation.
2033
+ #
2034
+ # <p><br /></p>
2035
+ #
2036
+ # > **Note**: The information returned in this field, including the formatting of
2037
+ # > values and labels, should not be considered stable, and may change without
2038
+ # > notice.
2039
+ status: nil
2040
+ )
2041
+ end
2042
+
2043
+ sig do
2044
+ override.returns(
2045
+ {
2046
+ path: String,
2047
+ runtime_args: T.nilable(T::Array[String]),
2048
+ status: T.nilable(T::Hash[Symbol, String])
2049
+ }
2050
+ )
2051
+ end
2052
+ def to_hash
2053
+ end
2054
+ end
2055
+
2056
+ class Swarm < DockerEngineAPI::Internal::Type::BaseModel
2057
+ OrHash =
2058
+ T.type_alias do
2059
+ T.any(
2060
+ DockerEngineAPI::Info::Swarm,
2061
+ DockerEngineAPI::Internal::AnyHash
2062
+ )
2063
+ end
2064
+
2065
+ # ClusterInfo represents information about the swarm as is returned by the "/info"
2066
+ # endpoint. Join-tokens are not included.
2067
+ sig { returns(T.nilable(DockerEngineAPI::Info::Swarm::Cluster)) }
2068
+ attr_reader :cluster
2069
+
2070
+ sig do
2071
+ params(
2072
+ cluster: T.nilable(DockerEngineAPI::Info::Swarm::Cluster::OrHash)
2073
+ ).void
2074
+ end
2075
+ attr_writer :cluster
2076
+
2077
+ sig { returns(T.nilable(T::Boolean)) }
2078
+ attr_reader :control_available
2079
+
2080
+ sig { params(control_available: T::Boolean).void }
2081
+ attr_writer :control_available
2082
+
2083
+ sig { returns(T.nilable(String)) }
2084
+ attr_reader :error
2085
+
2086
+ sig { params(error: String).void }
2087
+ attr_writer :error
2088
+
2089
+ # Current local status of this node.
2090
+ sig do
2091
+ returns(
2092
+ T.nilable(
2093
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2094
+ )
2095
+ )
2096
+ end
2097
+ attr_reader :local_node_state
2098
+
2099
+ sig do
2100
+ params(
2101
+ local_node_state:
2102
+ DockerEngineAPI::Info::Swarm::LocalNodeState::OrSymbol
2103
+ ).void
2104
+ end
2105
+ attr_writer :local_node_state
2106
+
2107
+ # Total number of managers in the swarm.
2108
+ sig { returns(T.nilable(Integer)) }
2109
+ attr_accessor :managers
2110
+
2111
+ # IP address at which this node can be reached by other nodes in the swarm.
2112
+ sig { returns(T.nilable(String)) }
2113
+ attr_reader :node_addr
2114
+
2115
+ sig { params(node_addr: String).void }
2116
+ attr_writer :node_addr
2117
+
2118
+ # Unique identifier of for this node in the swarm.
2119
+ sig { returns(T.nilable(String)) }
2120
+ attr_reader :node_id
2121
+
2122
+ sig { params(node_id: String).void }
2123
+ attr_writer :node_id
2124
+
2125
+ # Total number of nodes in the swarm.
2126
+ sig { returns(T.nilable(Integer)) }
2127
+ attr_accessor :nodes
2128
+
2129
+ # List of ID's and addresses of other managers in the swarm.
2130
+ sig do
2131
+ returns(
2132
+ T.nilable(T::Array[DockerEngineAPI::Info::Swarm::RemoteManager])
2133
+ )
2134
+ end
2135
+ attr_accessor :remote_managers
2136
+
2137
+ # Represents generic information about swarm.
2138
+ sig do
2139
+ params(
2140
+ cluster: T.nilable(DockerEngineAPI::Info::Swarm::Cluster::OrHash),
2141
+ control_available: T::Boolean,
2142
+ error: String,
2143
+ local_node_state:
2144
+ DockerEngineAPI::Info::Swarm::LocalNodeState::OrSymbol,
2145
+ managers: T.nilable(Integer),
2146
+ node_addr: String,
2147
+ node_id: String,
2148
+ nodes: T.nilable(Integer),
2149
+ remote_managers:
2150
+ T.nilable(
2151
+ T::Array[DockerEngineAPI::Info::Swarm::RemoteManager::OrHash]
2152
+ )
2153
+ ).returns(T.attached_class)
2154
+ end
2155
+ def self.new(
2156
+ # ClusterInfo represents information about the swarm as is returned by the "/info"
2157
+ # endpoint. Join-tokens are not included.
2158
+ cluster: nil,
2159
+ control_available: nil,
2160
+ error: nil,
2161
+ # Current local status of this node.
2162
+ local_node_state: nil,
2163
+ # Total number of managers in the swarm.
2164
+ managers: nil,
2165
+ # IP address at which this node can be reached by other nodes in the swarm.
2166
+ node_addr: nil,
2167
+ # Unique identifier of for this node in the swarm.
2168
+ node_id: nil,
2169
+ # Total number of nodes in the swarm.
2170
+ nodes: nil,
2171
+ # List of ID's and addresses of other managers in the swarm.
2172
+ remote_managers: nil
2173
+ )
2174
+ end
2175
+
2176
+ sig do
2177
+ override.returns(
2178
+ {
2179
+ cluster: T.nilable(DockerEngineAPI::Info::Swarm::Cluster),
2180
+ control_available: T::Boolean,
2181
+ error: String,
2182
+ local_node_state:
2183
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol,
2184
+ managers: T.nilable(Integer),
2185
+ node_addr: String,
2186
+ node_id: String,
2187
+ nodes: T.nilable(Integer),
2188
+ remote_managers:
2189
+ T.nilable(T::Array[DockerEngineAPI::Info::Swarm::RemoteManager])
2190
+ }
2191
+ )
2192
+ end
2193
+ def to_hash
2194
+ end
2195
+
2196
+ class Cluster < DockerEngineAPI::Internal::Type::BaseModel
2197
+ OrHash =
2198
+ T.type_alias do
2199
+ T.any(
2200
+ DockerEngineAPI::Info::Swarm::Cluster,
2201
+ DockerEngineAPI::Internal::AnyHash
2202
+ )
2203
+ end
2204
+
2205
+ # Date and time at which the swarm was initialised in
2206
+ # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
2207
+ sig { returns(T.nilable(String)) }
2208
+ attr_reader :created_at
2209
+
2210
+ sig { params(created_at: String).void }
2211
+ attr_writer :created_at
2212
+
2213
+ # DataPathPort specifies the data path port number for data traffic. Acceptable
2214
+ # port range is 1024 to 49151. If no port is set or is set to 0, the default port
2215
+ # (4789) is used.
2216
+ sig { returns(T.nilable(Integer)) }
2217
+ attr_reader :data_path_port
2218
+
2219
+ sig { params(data_path_port: Integer).void }
2220
+ attr_writer :data_path_port
2221
+
2222
+ # Default Address Pool specifies default subnet pools for global scope networks.
2223
+ sig { returns(T.nilable(T::Array[String])) }
2224
+ attr_reader :default_addr_pool
2225
+
2226
+ sig { params(default_addr_pool: T::Array[String]).void }
2227
+ attr_writer :default_addr_pool
2228
+
2229
+ # The ID of the swarm.
2230
+ sig { returns(T.nilable(String)) }
2231
+ attr_reader :id
2232
+
2233
+ sig { params(id: String).void }
2234
+ attr_writer :id
2235
+
2236
+ # Whether there is currently a root CA rotation in progress for the swarm
2237
+ sig { returns(T.nilable(T::Boolean)) }
2238
+ attr_reader :root_rotation_in_progress
2239
+
2240
+ sig { params(root_rotation_in_progress: T::Boolean).void }
2241
+ attr_writer :root_rotation_in_progress
2242
+
2243
+ # User modifiable swarm configuration.
2244
+ sig { returns(T.nilable(DockerEngineAPI::Spec)) }
2245
+ attr_reader :spec
2246
+
2247
+ sig { params(spec: DockerEngineAPI::Spec::OrHash).void }
2248
+ attr_writer :spec
2249
+
2250
+ # SubnetSize specifies the subnet size of the networks created from the default
2251
+ # subnet pool.
2252
+ sig { returns(T.nilable(Integer)) }
2253
+ attr_reader :subnet_size
2254
+
2255
+ sig { params(subnet_size: Integer).void }
2256
+ attr_writer :subnet_size
2257
+
2258
+ # Information about the issuer of leaf TLS certificates and the trusted root CA
2259
+ # certificate.
2260
+ sig do
2261
+ returns(T.nilable(DockerEngineAPI::Info::Swarm::Cluster::TlsInfo))
2262
+ end
2263
+ attr_reader :tls_info
2264
+
2265
+ sig do
2266
+ params(
2267
+ tls_info: DockerEngineAPI::Info::Swarm::Cluster::TlsInfo::OrHash
2268
+ ).void
2269
+ end
2270
+ attr_writer :tls_info
2271
+
2272
+ # Date and time at which the swarm was last updated in
2273
+ # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
2274
+ sig { returns(T.nilable(String)) }
2275
+ attr_reader :updated_at
2276
+
2277
+ sig { params(updated_at: String).void }
2278
+ attr_writer :updated_at
2279
+
2280
+ # The version number of the object such as node, service, etc. This is needed to
2281
+ # avoid conflicting writes. The client must send the version number along with the
2282
+ # modified specification when updating these objects.
2283
+ #
2284
+ # This approach ensures safe concurrency and determinism in that the change on the
2285
+ # object may not be applied if the version number has changed from the last read.
2286
+ # In other words, if two update requests specify the same base version, only one
2287
+ # of the requests can succeed. As a result, two separate update requests that
2288
+ # happen at the same time will not unintentionally overwrite each other.
2289
+ sig do
2290
+ returns(T.nilable(DockerEngineAPI::Info::Swarm::Cluster::Version))
2291
+ end
2292
+ attr_reader :version
2293
+
2294
+ sig do
2295
+ params(
2296
+ version: DockerEngineAPI::Info::Swarm::Cluster::Version::OrHash
2297
+ ).void
2298
+ end
2299
+ attr_writer :version
2300
+
2301
+ # ClusterInfo represents information about the swarm as is returned by the "/info"
2302
+ # endpoint. Join-tokens are not included.
2303
+ sig do
2304
+ params(
2305
+ created_at: String,
2306
+ data_path_port: Integer,
2307
+ default_addr_pool: T::Array[String],
2308
+ id: String,
2309
+ root_rotation_in_progress: T::Boolean,
2310
+ spec: DockerEngineAPI::Spec::OrHash,
2311
+ subnet_size: Integer,
2312
+ tls_info: DockerEngineAPI::Info::Swarm::Cluster::TlsInfo::OrHash,
2313
+ updated_at: String,
2314
+ version: DockerEngineAPI::Info::Swarm::Cluster::Version::OrHash
2315
+ ).returns(T.attached_class)
2316
+ end
2317
+ def self.new(
2318
+ # Date and time at which the swarm was initialised in
2319
+ # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
2320
+ created_at: nil,
2321
+ # DataPathPort specifies the data path port number for data traffic. Acceptable
2322
+ # port range is 1024 to 49151. If no port is set or is set to 0, the default port
2323
+ # (4789) is used.
2324
+ data_path_port: nil,
2325
+ # Default Address Pool specifies default subnet pools for global scope networks.
2326
+ default_addr_pool: nil,
2327
+ # The ID of the swarm.
2328
+ id: nil,
2329
+ # Whether there is currently a root CA rotation in progress for the swarm
2330
+ root_rotation_in_progress: nil,
2331
+ # User modifiable swarm configuration.
2332
+ spec: nil,
2333
+ # SubnetSize specifies the subnet size of the networks created from the default
2334
+ # subnet pool.
2335
+ subnet_size: nil,
2336
+ # Information about the issuer of leaf TLS certificates and the trusted root CA
2337
+ # certificate.
2338
+ tls_info: nil,
2339
+ # Date and time at which the swarm was last updated in
2340
+ # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
2341
+ updated_at: nil,
2342
+ # The version number of the object such as node, service, etc. This is needed to
2343
+ # avoid conflicting writes. The client must send the version number along with the
2344
+ # modified specification when updating these objects.
2345
+ #
2346
+ # This approach ensures safe concurrency and determinism in that the change on the
2347
+ # object may not be applied if the version number has changed from the last read.
2348
+ # In other words, if two update requests specify the same base version, only one
2349
+ # of the requests can succeed. As a result, two separate update requests that
2350
+ # happen at the same time will not unintentionally overwrite each other.
2351
+ version: nil
2352
+ )
2353
+ end
2354
+
2355
+ sig do
2356
+ override.returns(
2357
+ {
2358
+ created_at: String,
2359
+ data_path_port: Integer,
2360
+ default_addr_pool: T::Array[String],
2361
+ id: String,
2362
+ root_rotation_in_progress: T::Boolean,
2363
+ spec: DockerEngineAPI::Spec,
2364
+ subnet_size: Integer,
2365
+ tls_info: DockerEngineAPI::Info::Swarm::Cluster::TlsInfo,
2366
+ updated_at: String,
2367
+ version: DockerEngineAPI::Info::Swarm::Cluster::Version
2368
+ }
2369
+ )
2370
+ end
2371
+ def to_hash
2372
+ end
2373
+
2374
+ class TlsInfo < DockerEngineAPI::Internal::Type::BaseModel
2375
+ OrHash =
2376
+ T.type_alias do
2377
+ T.any(
2378
+ DockerEngineAPI::Info::Swarm::Cluster::TlsInfo,
2379
+ DockerEngineAPI::Internal::AnyHash
2380
+ )
2381
+ end
2382
+
2383
+ # The base64-url-safe-encoded raw public key bytes of the issuer.
2384
+ sig { returns(T.nilable(String)) }
2385
+ attr_reader :cert_issuer_public_key
2386
+
2387
+ sig { params(cert_issuer_public_key: String).void }
2388
+ attr_writer :cert_issuer_public_key
2389
+
2390
+ # The base64-url-safe-encoded raw subject bytes of the issuer.
2391
+ sig { returns(T.nilable(String)) }
2392
+ attr_reader :cert_issuer_subject
2393
+
2394
+ sig { params(cert_issuer_subject: String).void }
2395
+ attr_writer :cert_issuer_subject
2396
+
2397
+ # The root CA certificate(s) that are used to validate leaf TLS certificates.
2398
+ sig { returns(T.nilable(String)) }
2399
+ attr_reader :trust_root
2400
+
2401
+ sig { params(trust_root: String).void }
2402
+ attr_writer :trust_root
2403
+
2404
+ # Information about the issuer of leaf TLS certificates and the trusted root CA
2405
+ # certificate.
2406
+ sig do
2407
+ params(
2408
+ cert_issuer_public_key: String,
2409
+ cert_issuer_subject: String,
2410
+ trust_root: String
2411
+ ).returns(T.attached_class)
2412
+ end
2413
+ def self.new(
2414
+ # The base64-url-safe-encoded raw public key bytes of the issuer.
2415
+ cert_issuer_public_key: nil,
2416
+ # The base64-url-safe-encoded raw subject bytes of the issuer.
2417
+ cert_issuer_subject: nil,
2418
+ # The root CA certificate(s) that are used to validate leaf TLS certificates.
2419
+ trust_root: nil
2420
+ )
2421
+ end
2422
+
2423
+ sig do
2424
+ override.returns(
2425
+ {
2426
+ cert_issuer_public_key: String,
2427
+ cert_issuer_subject: String,
2428
+ trust_root: String
2429
+ }
2430
+ )
2431
+ end
2432
+ def to_hash
2433
+ end
2434
+ end
2435
+
2436
+ class Version < DockerEngineAPI::Internal::Type::BaseModel
2437
+ OrHash =
2438
+ T.type_alias do
2439
+ T.any(
2440
+ DockerEngineAPI::Info::Swarm::Cluster::Version,
2441
+ DockerEngineAPI::Internal::AnyHash
2442
+ )
2443
+ end
2444
+
2445
+ sig { returns(T.nilable(Integer)) }
2446
+ attr_reader :index
2447
+
2448
+ sig { params(index: Integer).void }
2449
+ attr_writer :index
2450
+
2451
+ # The version number of the object such as node, service, etc. This is needed to
2452
+ # avoid conflicting writes. The client must send the version number along with the
2453
+ # modified specification when updating these objects.
2454
+ #
2455
+ # This approach ensures safe concurrency and determinism in that the change on the
2456
+ # object may not be applied if the version number has changed from the last read.
2457
+ # In other words, if two update requests specify the same base version, only one
2458
+ # of the requests can succeed. As a result, two separate update requests that
2459
+ # happen at the same time will not unintentionally overwrite each other.
2460
+ sig { params(index: Integer).returns(T.attached_class) }
2461
+ def self.new(index: nil)
2462
+ end
2463
+
2464
+ sig { override.returns({ index: Integer }) }
2465
+ def to_hash
2466
+ end
2467
+ end
2468
+ end
2469
+
2470
+ # Current local status of this node.
2471
+ module LocalNodeState
2472
+ extend DockerEngineAPI::Internal::Type::Enum
2473
+
2474
+ TaggedSymbol =
2475
+ T.type_alias do
2476
+ T.all(Symbol, DockerEngineAPI::Info::Swarm::LocalNodeState)
2477
+ end
2478
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2479
+
2480
+ EMPTY =
2481
+ T.let(
2482
+ :"",
2483
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2484
+ )
2485
+ INACTIVE =
2486
+ T.let(
2487
+ :inactive,
2488
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2489
+ )
2490
+ PENDING =
2491
+ T.let(
2492
+ :pending,
2493
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2494
+ )
2495
+ ACTIVE =
2496
+ T.let(
2497
+ :active,
2498
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2499
+ )
2500
+ ERROR =
2501
+ T.let(
2502
+ :error,
2503
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2504
+ )
2505
+ LOCKED =
2506
+ T.let(
2507
+ :locked,
2508
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2509
+ )
2510
+
2511
+ sig do
2512
+ override.returns(
2513
+ T::Array[
2514
+ DockerEngineAPI::Info::Swarm::LocalNodeState::TaggedSymbol
2515
+ ]
2516
+ )
2517
+ end
2518
+ def self.values
2519
+ end
2520
+ end
2521
+
2522
+ class RemoteManager < DockerEngineAPI::Internal::Type::BaseModel
2523
+ OrHash =
2524
+ T.type_alias do
2525
+ T.any(
2526
+ DockerEngineAPI::Info::Swarm::RemoteManager,
2527
+ DockerEngineAPI::Internal::AnyHash
2528
+ )
2529
+ end
2530
+
2531
+ # IP address and ports at which this node can be reached.
2532
+ sig { returns(T.nilable(String)) }
2533
+ attr_reader :addr
2534
+
2535
+ sig { params(addr: String).void }
2536
+ attr_writer :addr
2537
+
2538
+ # Unique identifier of for this node in the swarm.
2539
+ sig { returns(T.nilable(String)) }
2540
+ attr_reader :node_id
2541
+
2542
+ sig { params(node_id: String).void }
2543
+ attr_writer :node_id
2544
+
2545
+ # Represents a peer-node in the swarm
2546
+ sig do
2547
+ params(addr: String, node_id: String).returns(T.attached_class)
2548
+ end
2549
+ def self.new(
2550
+ # IP address and ports at which this node can be reached.
2551
+ addr: nil,
2552
+ # Unique identifier of for this node in the swarm.
2553
+ node_id: nil
2554
+ )
2555
+ end
2556
+
2557
+ sig { override.returns({ addr: String, node_id: String }) }
2558
+ def to_hash
2559
+ end
2560
+ end
2561
+ end
2562
+ end
2563
+ end
2564
+ end