docker-engine-ruby 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/docker_engine_ruby/models/config.rb +6 -6
- data/lib/docker_engine_ruby/models/config_create_params.rb +1 -11
- data/lib/docker_engine_ruby/models/config_list_params.rb +1 -14
- data/lib/docker_engine_ruby/models/config_list_response.rb +1 -1
- data/lib/docker_engine_ruby/models/config_object.rb +77 -0
- data/lib/docker_engine_ruby/models/config_spec.rb +68 -0
- data/lib/docker_engine_ruby/models/config_update_params.rb +1 -7
- data/lib/docker_engine_ruby/models/connect_request.rb +5 -5
- data/lib/docker_engine_ruby/models/container.rb +61 -143
- data/lib/docker_engine_ruby/models/container_archive_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_attach_params.rb +6 -29
- data/lib/docker_engine_ruby/models/container_create_params.rb +3 -1701
- data/lib/docker_engine_ruby/models/container_delete_params.rb +3 -9
- data/lib/docker_engine_ruby/models/container_exec_params.rb +11 -39
- data/lib/docker_engine_ruby/models/container_inspect_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_kill_params.rb +1 -6
- data/lib/docker_engine_ruby/models/container_list_params.rb +4 -36
- data/lib/docker_engine_ruby/models/container_logs_params.rb +7 -25
- data/lib/docker_engine_ruby/models/container_prune_params.rb +1 -16
- data/lib/docker_engine_ruby/models/container_prune_response.rb +2 -5
- data/lib/docker_engine_ruby/models/container_rename_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_resize_params.rb +2 -6
- data/lib/docker_engine_ruby/models/container_restart_params.rb +2 -9
- data/lib/docker_engine_ruby/models/container_start_params.rb +1 -8
- data/lib/docker_engine_ruby/models/container_stats_params.rb +2 -11
- data/lib/docker_engine_ruby/models/container_stop_params.rb +2 -9
- data/lib/docker_engine_ruby/models/container_top_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_update_params.rb +4 -80
- data/lib/docker_engine_ruby/models/container_wait_params.rb +1 -11
- data/lib/docker_engine_ruby/models/create_request.rb +17 -121
- data/lib/docker_engine_ruby/models/exec_inspect_response.rb +1 -12
- data/lib/docker_engine_ruby/models/exec_resize_params.rb +2 -6
- data/lib/docker_engine_ruby/models/exec_start_params.rb +3 -9
- data/lib/docker_engine_ruby/models/filesystem_change.rb +3 -3
- data/lib/docker_engine_ruby/models/image.rb +33 -66
- data/lib/docker_engine_ruby/models/image_build_params.rb +25 -122
- data/lib/docker_engine_ruby/models/image_build_prune_params.rb +5 -32
- data/lib/docker_engine_ruby/models/image_build_prune_response.rb +1 -3
- data/lib/docker_engine_ruby/models/image_commit_params.rb +7 -21
- data/lib/docker_engine_ruby/models/image_delete_params.rb +3 -14
- data/lib/docker_engine_ruby/models/image_get_all_params.rb +2 -13
- data/lib/docker_engine_ruby/models/image_get_params.rb +1 -10
- data/lib/docker_engine_ruby/models/image_history_params.rb +1 -15
- data/lib/docker_engine_ruby/models/image_inspect_params.rb +1 -3
- data/lib/docker_engine_ruby/models/image_list_params.rb +5 -29
- data/lib/docker_engine_ruby/models/image_list_response.rb +1 -1
- data/lib/docker_engine_ruby/models/image_load_params.rb +2 -14
- data/lib/docker_engine_ruby/models/image_prune_params.rb +1 -16
- data/lib/docker_engine_ruby/models/image_prune_response.rb +2 -5
- data/lib/docker_engine_ruby/models/image_pull_params.rb +13 -60
- data/lib/docker_engine_ruby/models/image_push_params.rb +2 -19
- data/lib/docker_engine_ruby/models/image_search_params.rb +3 -16
- data/lib/docker_engine_ruby/models/image_search_response.rb +1 -13
- data/lib/docker_engine_ruby/models/image_summary.rb +638 -0
- data/lib/docker_engine_ruby/models/image_tag_params.rb +2 -6
- data/lib/docker_engine_ruby/models/info.rb +27 -56
- data/lib/docker_engine_ruby/models/inspect.rb +5 -7
- data/lib/docker_engine_ruby/models/list_response.rb +0 -3
- data/lib/docker_engine_ruby/models/network.rb +7 -4
- data/lib/docker_engine_ruby/models/network_create_params.rb +11 -26
- data/lib/docker_engine_ruby/models/network_create_response.rb +27 -0
- data/lib/docker_engine_ruby/models/network_inspect_params.rb +2 -6
- data/lib/docker_engine_ruby/models/network_inspect_response.rb +219 -89
- data/lib/docker_engine_ruby/models/network_list_params.rb +1 -21
- data/lib/docker_engine_ruby/models/network_list_response.rb +1 -1
- data/lib/docker_engine_ruby/models/network_prune_params.rb +1 -16
- data/lib/docker_engine_ruby/models/network_prune_response.rb +1 -2
- data/lib/docker_engine_ruby/models/network_summary.rb +260 -0
- data/lib/docker_engine_ruby/models/node.rb +12 -25
- data/lib/docker_engine_ruby/models/node_delete_params.rb +1 -3
- data/lib/docker_engine_ruby/models/node_list_params.rb +1 -15
- data/lib/docker_engine_ruby/models/node_spec.rb +67 -0
- data/lib/docker_engine_ruby/models/node_update_params.rb +1 -7
- data/lib/docker_engine_ruby/models/plugin.rb +2 -24
- data/lib/docker_engine_ruby/models/plugin_create_params.rb +1 -8
- data/lib/docker_engine_ruby/models/plugin_delete_params.rb +1 -7
- data/lib/docker_engine_ruby/models/plugin_disable_params.rb +1 -6
- data/lib/docker_engine_ruby/models/plugin_enable_params.rb +1 -3
- data/lib/docker_engine_ruby/models/plugin_list_params.rb +1 -12
- data/lib/docker_engine_ruby/models/plugin_privileges_params.rb +1 -7
- data/lib/docker_engine_ruby/models/plugin_pull_params.rb +8 -21
- data/lib/docker_engine_ruby/models/plugin_set_params.rb +3 -3
- data/lib/docker_engine_ruby/models/plugin_upgrade_params.rb +4 -13
- data/lib/docker_engine_ruby/models/secret.rb +9 -9
- data/lib/docker_engine_ruby/models/secret_create_params.rb +1 -11
- data/lib/docker_engine_ruby/models/secret_list_params.rb +1 -14
- data/lib/docker_engine_ruby/models/secret_spec.rb +99 -0
- data/lib/docker_engine_ruby/models/secret_update_params.rb +1 -7
- data/lib/docker_engine_ruby/models/service.rb +21 -36
- data/lib/docker_engine_ruby/models/service_create_params.rb +1 -15
- data/lib/docker_engine_ruby/models/service_create_response.rb +32 -0
- data/lib/docker_engine_ruby/models/service_inspect_params.rb +1 -3
- data/lib/docker_engine_ruby/models/service_list_params.rb +2 -17
- data/lib/docker_engine_ruby/models/service_logs_params.rb +7 -25
- data/lib/docker_engine_ruby/models/{spec.rb → service_spec.rb} +93 -158
- data/lib/docker_engine_ruby/models/service_update_params.rb +4 -34
- data/lib/docker_engine_ruby/models/service_update_response.rb +17 -0
- data/lib/docker_engine_ruby/models/stats_response.rb +143 -68
- data/lib/docker_engine_ruby/models/summary.rb +12 -32
- data/lib/docker_engine_ruby/models/swarm.rb +9 -12
- data/lib/docker_engine_ruby/models/swarm_init_params.rb +10 -38
- data/lib/docker_engine_ruby/models/swarm_join_params.rb +5 -31
- data/lib/docker_engine_ruby/models/swarm_leave_params.rb +1 -7
- data/lib/docker_engine_ruby/models/swarm_spec.rb +270 -0
- data/lib/docker_engine_ruby/models/swarm_unlock_key_response.rb +1 -2
- data/lib/docker_engine_ruby/models/swarm_unlock_params.rb +1 -3
- data/lib/docker_engine_ruby/models/swarm_update_params.rb +4 -16
- data/lib/docker_engine_ruby/models/system_data_usage_params.rb +43 -16
- data/lib/docker_engine_ruby/models/system_data_usage_response.rb +0 -19
- data/lib/docker_engine_ruby/models/system_events_params.rb +3 -29
- data/lib/docker_engine_ruby/models/system_events_response.rb +0 -3
- data/lib/docker_engine_ruby/models/task.rb +13 -15
- data/lib/docker_engine_ruby/models/task_list_params.rb +1 -16
- data/lib/docker_engine_ruby/models/task_logs_params.rb +7 -25
- data/lib/docker_engine_ruby/models/task_spec.rb +1439 -0
- data/lib/docker_engine_ruby/models/version.rb +8 -17
- data/lib/docker_engine_ruby/models/volume.rb +38 -194
- data/lib/docker_engine_ruby/models/volume_delete_params.rb +1 -3
- data/lib/docker_engine_ruby/models/volume_list_params.rb +1 -15
- data/lib/docker_engine_ruby/models/volume_prune_params.rb +1 -14
- data/lib/docker_engine_ruby/models/volume_prune_response.rb +2 -5
- data/lib/docker_engine_ruby/models/volume_update_params.rb +18 -127
- data/lib/docker_engine_ruby/models.rb +23 -1
- data/lib/docker_engine_ruby/resources/auth.rb +1 -2
- data/lib/docker_engine_ruby/resources/configs.rb +14 -23
- data/lib/docker_engine_ruby/resources/containers.rb +88 -337
- data/lib/docker_engine_ruby/resources/distribution.rb +2 -3
- data/lib/docker_engine_ruby/resources/exec.rb +11 -22
- data/lib/docker_engine_ruby/resources/images.rb +100 -230
- data/lib/docker_engine_ruby/resources/networks.rb +26 -45
- data/lib/docker_engine_ruby/resources/nodes.rb +8 -18
- data/lib/docker_engine_ruby/resources/plugins.rb +27 -74
- data/lib/docker_engine_ruby/resources/secrets.rb +10 -19
- data/lib/docker_engine_ruby/resources/services.rb +27 -56
- data/lib/docker_engine_ruby/resources/swarm.rb +28 -40
- data/lib/docker_engine_ruby/resources/system.rb +8 -49
- data/lib/docker_engine_ruby/resources/tasks.rb +12 -32
- data/lib/docker_engine_ruby/resources/volumes.rb +8 -22
- data/lib/docker_engine_ruby/version.rb +1 -1
- data/lib/docker_engine_ruby.rb +16 -5
- data/rbi/docker_engine_ruby/models/config.rbi +9 -7
- data/rbi/docker_engine_ruby/models/config_create_params.rbi +2 -34
- data/rbi/docker_engine_ruby/models/config_list_params.rbi +1 -22
- data/rbi/docker_engine_ruby/models/config_list_response.rbi +3 -1
- data/rbi/docker_engine_ruby/models/config_object.rbi +130 -0
- data/rbi/docker_engine_ruby/models/config_spec.rbi +127 -0
- data/rbi/docker_engine_ruby/models/config_update_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/connect_request.rbi +7 -12
- data/rbi/docker_engine_ruby/models/container.rbi +73 -194
- data/rbi/docker_engine_ruby/models/container_archive_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_attach_params.rbi +0 -28
- data/rbi/docker_engine_ruby/models/container_create_params.rbi +1 -3250
- data/rbi/docker_engine_ruby/models/container_delete_params.rbi +1 -12
- data/rbi/docker_engine_ruby/models/container_exec_params.rbi +0 -28
- data/rbi/docker_engine_ruby/models/container_inspect_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_kill_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_list_params.rbi +0 -50
- data/rbi/docker_engine_ruby/models/container_logs_params.rbi +0 -16
- data/rbi/docker_engine_ruby/models/container_prune_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/container_prune_response.rbi +1 -8
- data/rbi/docker_engine_ruby/models/container_rename_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_resize_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/container_restart_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/container_start_params.rbi +1 -10
- data/rbi/docker_engine_ruby/models/container_stats_params.rbi +1 -13
- data/rbi/docker_engine_ruby/models/container_stop_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/container_top_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_update_params.rbi +1 -170
- data/rbi/docker_engine_ruby/models/container_wait_params.rbi +1 -13
- data/rbi/docker_engine_ruby/models/create_request.rbi +7 -139
- data/rbi/docker_engine_ruby/models/exec_inspect_response.rbi +0 -2
- data/rbi/docker_engine_ruby/models/exec_resize_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/exec_start_params.rbi +0 -6
- data/rbi/docker_engine_ruby/models/filesystem_change.rbi +10 -13
- data/rbi/docker_engine_ruby/models/image.rbi +48 -106
- data/rbi/docker_engine_ruby/models/image_build_params.rbi +0 -127
- data/rbi/docker_engine_ruby/models/image_build_prune_params.rbi +0 -38
- data/rbi/docker_engine_ruby/models/image_build_prune_response.rbi +1 -6
- data/rbi/docker_engine_ruby/models/image_commit_params.rbi +0 -14
- data/rbi/docker_engine_ruby/models/image_delete_params.rbi +0 -10
- data/rbi/docker_engine_ruby/models/image_get_all_params.rbi +1 -17
- data/rbi/docker_engine_ruby/models/image_get_params.rbi +1 -14
- data/rbi/docker_engine_ruby/models/image_history_params.rbi +1 -24
- data/rbi/docker_engine_ruby/models/image_inspect_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/image_list_params.rbi +0 -32
- data/rbi/docker_engine_ruby/models/image_list_response.rbi +3 -1
- data/rbi/docker_engine_ruby/models/image_load_params.rbi +1 -18
- data/rbi/docker_engine_ruby/models/image_prune_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/image_prune_response.rbi +1 -8
- data/rbi/docker_engine_ruby/models/image_pull_params.rbi +6 -79
- data/rbi/docker_engine_ruby/models/image_push_params.rbi +0 -22
- data/rbi/docker_engine_ruby/models/image_search_params.rbi +1 -20
- data/rbi/docker_engine_ruby/models/image_search_response.rbi +0 -10
- data/rbi/docker_engine_ruby/models/image_summary.rbi +1073 -0
- data/rbi/docker_engine_ruby/models/image_tag_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/info.rbi +33 -80
- data/rbi/docker_engine_ruby/models/inspect.rbi +6 -12
- data/rbi/docker_engine_ruby/models/network.rbi +7 -4
- data/rbi/docker_engine_ruby/models/network_create_params.rbi +0 -30
- data/rbi/docker_engine_ruby/models/network_create_response.rbi +37 -0
- data/rbi/docker_engine_ruby/models/network_inspect_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/network_inspect_response.rbi +345 -198
- data/rbi/docker_engine_ruby/models/network_list_params.rbi +1 -36
- data/rbi/docker_engine_ruby/models/network_list_response.rbi +3 -1
- data/rbi/docker_engine_ruby/models/network_prune_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/network_prune_response.rbi +1 -5
- data/rbi/docker_engine_ruby/models/network_summary.rbi +444 -0
- data/rbi/docker_engine_ruby/models/node.rbi +15 -21
- data/rbi/docker_engine_ruby/models/node_delete_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/node_list_params.rbi +1 -24
- data/rbi/docker_engine_ruby/models/node_spec.rbi +126 -0
- data/rbi/docker_engine_ruby/models/node_update_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/plugin.rbi +1 -11
- data/rbi/docker_engine_ruby/models/plugin_create_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/plugin_delete_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/plugin_disable_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/plugin_enable_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/plugin_list_params.rbi +1 -18
- data/rbi/docker_engine_ruby/models/plugin_privileges_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/plugin_pull_params.rbi +6 -21
- data/rbi/docker_engine_ruby/models/plugin_set_params.rbi +3 -6
- data/rbi/docker_engine_ruby/models/plugin_upgrade_params.rbi +3 -17
- data/rbi/docker_engine_ruby/models/secret.rbi +12 -12
- data/rbi/docker_engine_ruby/models/secret_create_params.rbi +2 -34
- data/rbi/docker_engine_ruby/models/secret_list_params.rbi +1 -22
- data/rbi/docker_engine_ruby/models/secret_spec.rbi +181 -0
- data/rbi/docker_engine_ruby/models/secret_update_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/service.rbi +24 -44
- data/rbi/docker_engine_ruby/models/service_create_params.rbi +1 -36
- data/rbi/docker_engine_ruby/models/service_create_response.rbi +50 -0
- data/rbi/docker_engine_ruby/models/service_inspect_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/service_list_params.rbi +1 -25
- data/rbi/docker_engine_ruby/models/service_logs_params.rbi +0 -16
- data/rbi/docker_engine_ruby/models/{spec.rbi → service_spec.rbi} +157 -186
- data/rbi/docker_engine_ruby/models/service_update_params.rbi +0 -50
- data/rbi/docker_engine_ruby/models/service_update_response.rbi +33 -0
- data/rbi/docker_engine_ruby/models/stats_response.rbi +213 -141
- data/rbi/docker_engine_ruby/models/summary.rbi +16 -53
- data/rbi/docker_engine_ruby/models/swarm.rbi +12 -12
- data/rbi/docker_engine_ruby/models/swarm_init_params.rbi +4 -54
- data/rbi/docker_engine_ruby/models/swarm_join_params.rbi +0 -36
- data/rbi/docker_engine_ruby/models/swarm_leave_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/swarm_spec.rbi +568 -0
- data/rbi/docker_engine_ruby/models/swarm_unlock_key_response.rbi +1 -5
- data/rbi/docker_engine_ruby/models/swarm_unlock_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/swarm_update_params.rbi +0 -10
- data/rbi/docker_engine_ruby/models/system_data_usage_params.rbi +79 -27
- data/rbi/docker_engine_ruby/models/system_events_params.rbi +1 -46
- data/rbi/docker_engine_ruby/models/task.rbi +16 -20
- data/rbi/docker_engine_ruby/models/task_list_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/task_logs_params.rbi +0 -16
- data/rbi/docker_engine_ruby/models/task_spec.rbi +3011 -0
- data/rbi/docker_engine_ruby/models/version.rbi +8 -22
- data/rbi/docker_engine_ruby/models/volume.rbi +25 -225
- data/rbi/docker_engine_ruby/models/volume_delete_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/volume_list_params.rbi +1 -24
- data/rbi/docker_engine_ruby/models/volume_prune_params.rbi +1 -22
- data/rbi/docker_engine_ruby/models/volume_prune_response.rbi +1 -8
- data/rbi/docker_engine_ruby/models/volume_update_params.rbi +7 -143
- data/rbi/docker_engine_ruby/models.rbi +23 -1
- data/rbi/docker_engine_ruby/resources/auth.rbi +1 -2
- data/rbi/docker_engine_ruby/resources/configs.rbi +11 -32
- data/rbi/docker_engine_ruby/resources/containers.rbi +36 -388
- data/rbi/docker_engine_ruby/resources/distribution.rbi +2 -6
- data/rbi/docker_engine_ruby/resources/exec.rbi +5 -24
- data/rbi/docker_engine_ruby/resources/images.rbi +73 -366
- data/rbi/docker_engine_ruby/resources/networks.rbi +9 -78
- data/rbi/docker_engine_ruby/resources/nodes.rbi +7 -31
- data/rbi/docker_engine_ruby/resources/plugins.rbi +22 -91
- data/rbi/docker_engine_ruby/resources/secrets.rbi +9 -30
- data/rbi/docker_engine_ruby/resources/services.rbi +14 -62
- data/rbi/docker_engine_ruby/resources/swarm.rbi +8 -61
- data/rbi/docker_engine_ruby/resources/system.rbi +11 -66
- data/rbi/docker_engine_ruby/resources/tasks.rbi +3 -34
- data/rbi/docker_engine_ruby/resources/volumes.rbi +7 -43
- data/sig/docker_engine_ruby/models/config.rbs +11 -9
- data/sig/docker_engine_ruby/models/config_create_params.rbs +3 -24
- data/sig/docker_engine_ruby/models/config_list_response.rbs +1 -1
- data/sig/docker_engine_ruby/models/config_object.rbs +64 -0
- data/sig/docker_engine_ruby/models/config_spec.rbs +59 -0
- data/sig/docker_engine_ruby/models/connect_request.rbs +12 -12
- data/sig/docker_engine_ruby/models/container.rbs +62 -62
- data/sig/docker_engine_ruby/models/container_create_params.rbs +1 -1321
- data/sig/docker_engine_ruby/models/container_update_params.rbs +0 -51
- data/sig/docker_engine_ruby/models/create_request.rbs +5 -5
- data/sig/docker_engine_ruby/models/filesystem_change.rbs +1 -1
- data/sig/docker_engine_ruby/models/image.rbs +51 -53
- data/sig/docker_engine_ruby/models/image_list_response.rbs +1 -1
- data/sig/docker_engine_ruby/models/image_pull_params.rbs +5 -7
- data/sig/docker_engine_ruby/models/image_summary.rbs +457 -0
- data/sig/docker_engine_ruby/models/info.rbs +61 -41
- data/sig/docker_engine_ruby/models/inspect.rbs +12 -8
- data/sig/docker_engine_ruby/models/network.rbs +5 -5
- data/sig/docker_engine_ruby/models/network_create_response.rbs +15 -0
- data/sig/docker_engine_ruby/models/network_inspect_response.rbs +179 -90
- data/sig/docker_engine_ruby/models/network_list_response.rbs +1 -1
- data/sig/docker_engine_ruby/models/network_summary.rbs +238 -0
- data/sig/docker_engine_ruby/models/node.rbs +23 -19
- data/sig/docker_engine_ruby/models/node_spec.rbs +70 -0
- data/sig/docker_engine_ruby/models/plugin_pull_params.rbs +5 -9
- data/sig/docker_engine_ruby/models/plugin_set_params.rbs +2 -4
- data/sig/docker_engine_ruby/models/plugin_upgrade_params.rbs +2 -6
- data/sig/docker_engine_ruby/models/secret.rbs +15 -15
- data/sig/docker_engine_ruby/models/secret_create_params.rbs +3 -24
- data/sig/docker_engine_ruby/models/secret_spec.rbs +82 -0
- data/sig/docker_engine_ruby/models/service.rbs +32 -30
- data/sig/docker_engine_ruby/models/service_create_params.rbs +1 -16
- data/sig/docker_engine_ruby/models/service_create_response.rbs +17 -0
- data/sig/docker_engine_ruby/models/service_spec.rbs +471 -0
- data/sig/docker_engine_ruby/models/service_update_params.rbs +0 -13
- data/sig/docker_engine_ruby/models/service_update_response.rbs +15 -0
- data/sig/docker_engine_ruby/models/stats_response.rbs +188 -74
- data/sig/docker_engine_ruby/models/summary.rbs +20 -16
- data/sig/docker_engine_ruby/models/swarm.rbs +15 -15
- data/sig/docker_engine_ruby/models/swarm_init_params.rbs +5 -5
- data/sig/docker_engine_ruby/models/swarm_spec.rbs +293 -0
- data/sig/docker_engine_ruby/models/system_data_usage_params.rbs +25 -10
- data/sig/docker_engine_ruby/models/task.rbs +20 -20
- data/sig/docker_engine_ruby/models/task_spec.rbs +1480 -0
- data/sig/docker_engine_ruby/models/version.rbs +13 -4
- data/sig/docker_engine_ruby/models/volume.rbs +27 -25
- data/sig/docker_engine_ruby/models/volume_update_params.rbs +5 -5
- data/sig/docker_engine_ruby/models.rbs +23 -1
- data/sig/docker_engine_ruby/resources/configs.rbs +3 -3
- data/sig/docker_engine_ruby/resources/containers.rbs +1 -2
- data/sig/docker_engine_ruby/resources/images.rbs +3 -3
- data/sig/docker_engine_ruby/resources/networks.rbs +2 -2
- data/sig/docker_engine_ruby/resources/nodes.rbs +1 -1
- data/sig/docker_engine_ruby/resources/plugins.rbs +3 -3
- data/sig/docker_engine_ruby/resources/secrets.rbs +2 -2
- data/sig/docker_engine_ruby/resources/services.rbs +4 -4
- data/sig/docker_engine_ruby/resources/swarm.rbs +2 -2
- data/sig/docker_engine_ruby/resources/system.rbs +1 -1
- metadata +37 -4
- data/sig/docker_engine_ruby/models/spec.rbs +0 -467
|
@@ -0,0 +1,1073 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module DockerEngineRuby
|
|
4
|
+
module Models
|
|
5
|
+
class ImageSummary < DockerEngineRuby::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
DockerEngineRuby::ImageSummary,
|
|
10
|
+
DockerEngineRuby::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Number of containers using this image. Includes both stopped and running
|
|
15
|
+
# containers.
|
|
16
|
+
#
|
|
17
|
+
# `-1` indicates that the value has not been set / calculated.
|
|
18
|
+
sig { returns(Integer) }
|
|
19
|
+
attr_accessor :containers
|
|
20
|
+
|
|
21
|
+
# Date and time at which the image was created as a Unix timestamp (number of
|
|
22
|
+
# seconds since EPOCH).
|
|
23
|
+
sig { returns(Integer) }
|
|
24
|
+
attr_accessor :created
|
|
25
|
+
|
|
26
|
+
# ID is the content-addressable ID of an image.
|
|
27
|
+
#
|
|
28
|
+
# This identifier is a content-addressable digest calculated from the image's
|
|
29
|
+
# configuration (which includes the digests of layers used by the image).
|
|
30
|
+
#
|
|
31
|
+
# Note that this digest differs from the `RepoDigests` below, which holds digests
|
|
32
|
+
# of image manifests that reference the image.
|
|
33
|
+
sig { returns(String) }
|
|
34
|
+
attr_accessor :id
|
|
35
|
+
|
|
36
|
+
# User-defined key/value metadata.
|
|
37
|
+
sig { returns(T::Hash[Symbol, String]) }
|
|
38
|
+
attr_accessor :labels
|
|
39
|
+
|
|
40
|
+
# ID of the parent image.
|
|
41
|
+
#
|
|
42
|
+
# Depending on how the image was created, this field may be empty and is only set
|
|
43
|
+
# for images that were built/created locally. This field is empty if the image was
|
|
44
|
+
# pulled from an image registry.
|
|
45
|
+
sig { returns(String) }
|
|
46
|
+
attr_accessor :parent_id
|
|
47
|
+
|
|
48
|
+
# List of content-addressable digests of locally available image manifests that
|
|
49
|
+
# the image is referenced from. Multiple manifests can refer to the same image.
|
|
50
|
+
#
|
|
51
|
+
# These digests are usually only available if the image was either pulled from a
|
|
52
|
+
# registry, or if the image was pushed to a registry, which is when the manifest
|
|
53
|
+
# is generated and its digest calculated.
|
|
54
|
+
sig { returns(T::Array[String]) }
|
|
55
|
+
attr_accessor :repo_digests
|
|
56
|
+
|
|
57
|
+
# List of image names/tags in the local image cache that reference this image.
|
|
58
|
+
#
|
|
59
|
+
# Multiple image tags can refer to the same image, and this list may be empty if
|
|
60
|
+
# no tags reference the image, in which case the image is "untagged", in which
|
|
61
|
+
# case it can still be referenced by its ID.
|
|
62
|
+
sig { returns(T::Array[String]) }
|
|
63
|
+
attr_accessor :repo_tags
|
|
64
|
+
|
|
65
|
+
# Total size of image layers that are shared between this image and other images.
|
|
66
|
+
#
|
|
67
|
+
# This size is not calculated by default. `-1` indicates that the value has not
|
|
68
|
+
# been set / calculated.
|
|
69
|
+
sig { returns(Integer) }
|
|
70
|
+
attr_accessor :shared_size
|
|
71
|
+
|
|
72
|
+
# Total size of the image including all layers it is composed of.
|
|
73
|
+
sig { returns(Integer) }
|
|
74
|
+
attr_accessor :size
|
|
75
|
+
|
|
76
|
+
# A descriptor struct containing digest, media type, and size, as defined in the
|
|
77
|
+
# [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
|
|
78
|
+
sig { returns(T.nilable(DockerEngineRuby::ImageSummary::Descriptor)) }
|
|
79
|
+
attr_reader :descriptor
|
|
80
|
+
|
|
81
|
+
sig do
|
|
82
|
+
params(
|
|
83
|
+
descriptor:
|
|
84
|
+
T.nilable(DockerEngineRuby::ImageSummary::Descriptor::OrHash)
|
|
85
|
+
).void
|
|
86
|
+
end
|
|
87
|
+
attr_writer :descriptor
|
|
88
|
+
|
|
89
|
+
# Manifests is a list of manifests available in this image. It provides a more
|
|
90
|
+
# detailed view of the platform-specific image manifests or other image-attached
|
|
91
|
+
# data like build attestations.
|
|
92
|
+
#
|
|
93
|
+
# WARNING: This is experimental and may change at any time without any backward
|
|
94
|
+
# compatibility.
|
|
95
|
+
sig do
|
|
96
|
+
returns(T.nilable(T::Array[DockerEngineRuby::ImageSummary::Manifest]))
|
|
97
|
+
end
|
|
98
|
+
attr_reader :manifests
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
manifests: T::Array[DockerEngineRuby::ImageSummary::Manifest::OrHash]
|
|
103
|
+
).void
|
|
104
|
+
end
|
|
105
|
+
attr_writer :manifests
|
|
106
|
+
|
|
107
|
+
sig do
|
|
108
|
+
params(
|
|
109
|
+
containers: Integer,
|
|
110
|
+
created: Integer,
|
|
111
|
+
id: String,
|
|
112
|
+
labels: T::Hash[Symbol, String],
|
|
113
|
+
parent_id: String,
|
|
114
|
+
repo_digests: T::Array[String],
|
|
115
|
+
repo_tags: T::Array[String],
|
|
116
|
+
shared_size: Integer,
|
|
117
|
+
size: Integer,
|
|
118
|
+
descriptor:
|
|
119
|
+
T.nilable(DockerEngineRuby::ImageSummary::Descriptor::OrHash),
|
|
120
|
+
manifests: T::Array[DockerEngineRuby::ImageSummary::Manifest::OrHash]
|
|
121
|
+
).returns(T.attached_class)
|
|
122
|
+
end
|
|
123
|
+
def self.new(
|
|
124
|
+
# Number of containers using this image. Includes both stopped and running
|
|
125
|
+
# containers.
|
|
126
|
+
#
|
|
127
|
+
# `-1` indicates that the value has not been set / calculated.
|
|
128
|
+
containers:,
|
|
129
|
+
# Date and time at which the image was created as a Unix timestamp (number of
|
|
130
|
+
# seconds since EPOCH).
|
|
131
|
+
created:,
|
|
132
|
+
# ID is the content-addressable ID of an image.
|
|
133
|
+
#
|
|
134
|
+
# This identifier is a content-addressable digest calculated from the image's
|
|
135
|
+
# configuration (which includes the digests of layers used by the image).
|
|
136
|
+
#
|
|
137
|
+
# Note that this digest differs from the `RepoDigests` below, which holds digests
|
|
138
|
+
# of image manifests that reference the image.
|
|
139
|
+
id:,
|
|
140
|
+
# User-defined key/value metadata.
|
|
141
|
+
labels:,
|
|
142
|
+
# ID of the parent image.
|
|
143
|
+
#
|
|
144
|
+
# Depending on how the image was created, this field may be empty and is only set
|
|
145
|
+
# for images that were built/created locally. This field is empty if the image was
|
|
146
|
+
# pulled from an image registry.
|
|
147
|
+
parent_id:,
|
|
148
|
+
# List of content-addressable digests of locally available image manifests that
|
|
149
|
+
# the image is referenced from. Multiple manifests can refer to the same image.
|
|
150
|
+
#
|
|
151
|
+
# These digests are usually only available if the image was either pulled from a
|
|
152
|
+
# registry, or if the image was pushed to a registry, which is when the manifest
|
|
153
|
+
# is generated and its digest calculated.
|
|
154
|
+
repo_digests:,
|
|
155
|
+
# List of image names/tags in the local image cache that reference this image.
|
|
156
|
+
#
|
|
157
|
+
# Multiple image tags can refer to the same image, and this list may be empty if
|
|
158
|
+
# no tags reference the image, in which case the image is "untagged", in which
|
|
159
|
+
# case it can still be referenced by its ID.
|
|
160
|
+
repo_tags:,
|
|
161
|
+
# Total size of image layers that are shared between this image and other images.
|
|
162
|
+
#
|
|
163
|
+
# This size is not calculated by default. `-1` indicates that the value has not
|
|
164
|
+
# been set / calculated.
|
|
165
|
+
shared_size:,
|
|
166
|
+
# Total size of the image including all layers it is composed of.
|
|
167
|
+
size:,
|
|
168
|
+
# A descriptor struct containing digest, media type, and size, as defined in the
|
|
169
|
+
# [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
|
|
170
|
+
descriptor: nil,
|
|
171
|
+
# Manifests is a list of manifests available in this image. It provides a more
|
|
172
|
+
# detailed view of the platform-specific image manifests or other image-attached
|
|
173
|
+
# data like build attestations.
|
|
174
|
+
#
|
|
175
|
+
# WARNING: This is experimental and may change at any time without any backward
|
|
176
|
+
# compatibility.
|
|
177
|
+
manifests: nil
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
sig do
|
|
182
|
+
override.returns(
|
|
183
|
+
{
|
|
184
|
+
containers: Integer,
|
|
185
|
+
created: Integer,
|
|
186
|
+
id: String,
|
|
187
|
+
labels: T::Hash[Symbol, String],
|
|
188
|
+
parent_id: String,
|
|
189
|
+
repo_digests: T::Array[String],
|
|
190
|
+
repo_tags: T::Array[String],
|
|
191
|
+
shared_size: Integer,
|
|
192
|
+
size: Integer,
|
|
193
|
+
descriptor: T.nilable(DockerEngineRuby::ImageSummary::Descriptor),
|
|
194
|
+
manifests: T::Array[DockerEngineRuby::ImageSummary::Manifest]
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
end
|
|
198
|
+
def to_hash
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
class Descriptor < DockerEngineRuby::Internal::Type::BaseModel
|
|
202
|
+
OrHash =
|
|
203
|
+
T.type_alias do
|
|
204
|
+
T.any(
|
|
205
|
+
DockerEngineRuby::ImageSummary::Descriptor,
|
|
206
|
+
DockerEngineRuby::Internal::AnyHash
|
|
207
|
+
)
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Arbitrary metadata relating to the targeted content.
|
|
211
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
212
|
+
attr_accessor :annotations
|
|
213
|
+
|
|
214
|
+
# ArtifactType is the IANA media type of this artifact.
|
|
215
|
+
sig { returns(T.nilable(String)) }
|
|
216
|
+
attr_accessor :artifact_type
|
|
217
|
+
|
|
218
|
+
# Data is an embedding of the targeted content. This is encoded as a base64 string
|
|
219
|
+
# when marshalled to JSON (automatically, by encoding/json). If present, Data can
|
|
220
|
+
# be used directly to avoid fetching the targeted content.
|
|
221
|
+
sig { returns(T.nilable(String)) }
|
|
222
|
+
attr_accessor :data
|
|
223
|
+
|
|
224
|
+
# The digest of the targeted content.
|
|
225
|
+
sig { returns(T.nilable(String)) }
|
|
226
|
+
attr_reader :digest
|
|
227
|
+
|
|
228
|
+
sig { params(digest: String).void }
|
|
229
|
+
attr_writer :digest
|
|
230
|
+
|
|
231
|
+
# The media type of the object this schema refers to.
|
|
232
|
+
sig { returns(T.nilable(String)) }
|
|
233
|
+
attr_reader :media_type
|
|
234
|
+
|
|
235
|
+
sig { params(media_type: String).void }
|
|
236
|
+
attr_writer :media_type
|
|
237
|
+
|
|
238
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
239
|
+
# the
|
|
240
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
241
|
+
sig do
|
|
242
|
+
returns(
|
|
243
|
+
T.nilable(DockerEngineRuby::ImageSummary::Descriptor::Platform)
|
|
244
|
+
)
|
|
245
|
+
end
|
|
246
|
+
attr_reader :platform
|
|
247
|
+
|
|
248
|
+
sig do
|
|
249
|
+
params(
|
|
250
|
+
platform:
|
|
251
|
+
DockerEngineRuby::ImageSummary::Descriptor::Platform::OrHash
|
|
252
|
+
).void
|
|
253
|
+
end
|
|
254
|
+
attr_writer :platform
|
|
255
|
+
|
|
256
|
+
# The size in bytes of the blob.
|
|
257
|
+
sig { returns(T.nilable(Integer)) }
|
|
258
|
+
attr_reader :size
|
|
259
|
+
|
|
260
|
+
sig { params(size: Integer).void }
|
|
261
|
+
attr_writer :size
|
|
262
|
+
|
|
263
|
+
# List of URLs from which this object MAY be downloaded.
|
|
264
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
265
|
+
attr_accessor :urls
|
|
266
|
+
|
|
267
|
+
# A descriptor struct containing digest, media type, and size, as defined in the
|
|
268
|
+
# [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
|
|
269
|
+
sig do
|
|
270
|
+
params(
|
|
271
|
+
annotations: T.nilable(T::Hash[Symbol, String]),
|
|
272
|
+
artifact_type: T.nilable(String),
|
|
273
|
+
data: T.nilable(String),
|
|
274
|
+
digest: String,
|
|
275
|
+
media_type: String,
|
|
276
|
+
platform:
|
|
277
|
+
DockerEngineRuby::ImageSummary::Descriptor::Platform::OrHash,
|
|
278
|
+
size: Integer,
|
|
279
|
+
urls: T.nilable(T::Array[String])
|
|
280
|
+
).returns(T.attached_class)
|
|
281
|
+
end
|
|
282
|
+
def self.new(
|
|
283
|
+
# Arbitrary metadata relating to the targeted content.
|
|
284
|
+
annotations: nil,
|
|
285
|
+
# ArtifactType is the IANA media type of this artifact.
|
|
286
|
+
artifact_type: nil,
|
|
287
|
+
# Data is an embedding of the targeted content. This is encoded as a base64 string
|
|
288
|
+
# when marshalled to JSON (automatically, by encoding/json). If present, Data can
|
|
289
|
+
# be used directly to avoid fetching the targeted content.
|
|
290
|
+
data: nil,
|
|
291
|
+
# The digest of the targeted content.
|
|
292
|
+
digest: nil,
|
|
293
|
+
# The media type of the object this schema refers to.
|
|
294
|
+
media_type: nil,
|
|
295
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
296
|
+
# the
|
|
297
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
298
|
+
platform: nil,
|
|
299
|
+
# The size in bytes of the blob.
|
|
300
|
+
size: nil,
|
|
301
|
+
# List of URLs from which this object MAY be downloaded.
|
|
302
|
+
urls: nil
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
sig do
|
|
307
|
+
override.returns(
|
|
308
|
+
{
|
|
309
|
+
annotations: T.nilable(T::Hash[Symbol, String]),
|
|
310
|
+
artifact_type: T.nilable(String),
|
|
311
|
+
data: T.nilable(String),
|
|
312
|
+
digest: String,
|
|
313
|
+
media_type: String,
|
|
314
|
+
platform: DockerEngineRuby::ImageSummary::Descriptor::Platform,
|
|
315
|
+
size: Integer,
|
|
316
|
+
urls: T.nilable(T::Array[String])
|
|
317
|
+
}
|
|
318
|
+
)
|
|
319
|
+
end
|
|
320
|
+
def to_hash
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
class Platform < DockerEngineRuby::Internal::Type::BaseModel
|
|
324
|
+
OrHash =
|
|
325
|
+
T.type_alias do
|
|
326
|
+
T.any(
|
|
327
|
+
DockerEngineRuby::ImageSummary::Descriptor::Platform,
|
|
328
|
+
DockerEngineRuby::Internal::AnyHash
|
|
329
|
+
)
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# The CPU architecture, for example `amd64` or `ppc64`.
|
|
333
|
+
sig { returns(T.nilable(String)) }
|
|
334
|
+
attr_reader :architecture
|
|
335
|
+
|
|
336
|
+
sig { params(architecture: String).void }
|
|
337
|
+
attr_writer :architecture
|
|
338
|
+
|
|
339
|
+
# The operating system, for example `linux` or `windows`.
|
|
340
|
+
sig { returns(T.nilable(String)) }
|
|
341
|
+
attr_reader :os
|
|
342
|
+
|
|
343
|
+
sig { params(os: String).void }
|
|
344
|
+
attr_writer :os
|
|
345
|
+
|
|
346
|
+
# Optional field specifying an array of strings, each listing a required OS
|
|
347
|
+
# feature (for example on Windows `win32k`).
|
|
348
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
349
|
+
attr_reader :os_features
|
|
350
|
+
|
|
351
|
+
sig { params(os_features: T::Array[String]).void }
|
|
352
|
+
attr_writer :os_features
|
|
353
|
+
|
|
354
|
+
# Optional field specifying the operating system version, for example on Windows
|
|
355
|
+
# `10.0.19041.1165`.
|
|
356
|
+
sig { returns(T.nilable(String)) }
|
|
357
|
+
attr_reader :os_version
|
|
358
|
+
|
|
359
|
+
sig { params(os_version: String).void }
|
|
360
|
+
attr_writer :os_version
|
|
361
|
+
|
|
362
|
+
# Optional field specifying a variant of the CPU, for example `v7` to specify
|
|
363
|
+
# ARMv7 when architecture is `arm`.
|
|
364
|
+
sig { returns(T.nilable(String)) }
|
|
365
|
+
attr_reader :variant
|
|
366
|
+
|
|
367
|
+
sig { params(variant: String).void }
|
|
368
|
+
attr_writer :variant
|
|
369
|
+
|
|
370
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
371
|
+
# the
|
|
372
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
373
|
+
sig do
|
|
374
|
+
params(
|
|
375
|
+
architecture: String,
|
|
376
|
+
os: String,
|
|
377
|
+
os_features: T::Array[String],
|
|
378
|
+
os_version: String,
|
|
379
|
+
variant: String
|
|
380
|
+
).returns(T.attached_class)
|
|
381
|
+
end
|
|
382
|
+
def self.new(
|
|
383
|
+
# The CPU architecture, for example `amd64` or `ppc64`.
|
|
384
|
+
architecture: nil,
|
|
385
|
+
# The operating system, for example `linux` or `windows`.
|
|
386
|
+
os: nil,
|
|
387
|
+
# Optional field specifying an array of strings, each listing a required OS
|
|
388
|
+
# feature (for example on Windows `win32k`).
|
|
389
|
+
os_features: nil,
|
|
390
|
+
# Optional field specifying the operating system version, for example on Windows
|
|
391
|
+
# `10.0.19041.1165`.
|
|
392
|
+
os_version: nil,
|
|
393
|
+
# Optional field specifying a variant of the CPU, for example `v7` to specify
|
|
394
|
+
# ARMv7 when architecture is `arm`.
|
|
395
|
+
variant: nil
|
|
396
|
+
)
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
sig do
|
|
400
|
+
override.returns(
|
|
401
|
+
{
|
|
402
|
+
architecture: String,
|
|
403
|
+
os: String,
|
|
404
|
+
os_features: T::Array[String],
|
|
405
|
+
os_version: String,
|
|
406
|
+
variant: String
|
|
407
|
+
}
|
|
408
|
+
)
|
|
409
|
+
end
|
|
410
|
+
def to_hash
|
|
411
|
+
end
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
class Manifest < DockerEngineRuby::Internal::Type::BaseModel
|
|
416
|
+
OrHash =
|
|
417
|
+
T.type_alias do
|
|
418
|
+
T.any(
|
|
419
|
+
DockerEngineRuby::ImageSummary::Manifest,
|
|
420
|
+
DockerEngineRuby::Internal::AnyHash
|
|
421
|
+
)
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Indicates whether all the child content (image config, layers) is fully
|
|
425
|
+
# available locally.
|
|
426
|
+
sig { returns(T::Boolean) }
|
|
427
|
+
attr_accessor :available
|
|
428
|
+
|
|
429
|
+
# A descriptor struct containing digest, media type, and size, as defined in the
|
|
430
|
+
# [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
|
|
431
|
+
sig { returns(DockerEngineRuby::ImageSummary::Manifest::Descriptor) }
|
|
432
|
+
attr_reader :descriptor
|
|
433
|
+
|
|
434
|
+
sig do
|
|
435
|
+
params(
|
|
436
|
+
descriptor:
|
|
437
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::OrHash
|
|
438
|
+
).void
|
|
439
|
+
end
|
|
440
|
+
attr_writer :descriptor
|
|
441
|
+
|
|
442
|
+
# ID is the content-addressable ID of an image and is the same as the digest of
|
|
443
|
+
# the image manifest.
|
|
444
|
+
sig { returns(String) }
|
|
445
|
+
attr_accessor :id
|
|
446
|
+
|
|
447
|
+
# The kind of the manifest.
|
|
448
|
+
#
|
|
449
|
+
# | kind | description |
|
|
450
|
+
# | ----------- | ------------------------------------------------------------------------------------ |
|
|
451
|
+
# | image | Image manifest that can be used to start a container. |
|
|
452
|
+
# | attestation | Attestation manifest produced by the Buildkit builder for a specific image manifest. |
|
|
453
|
+
sig do
|
|
454
|
+
returns(DockerEngineRuby::ImageSummary::Manifest::Kind::TaggedSymbol)
|
|
455
|
+
end
|
|
456
|
+
attr_accessor :kind
|
|
457
|
+
|
|
458
|
+
sig { returns(DockerEngineRuby::ImageSummary::Manifest::Size) }
|
|
459
|
+
attr_reader :size
|
|
460
|
+
|
|
461
|
+
sig do
|
|
462
|
+
params(
|
|
463
|
+
size: DockerEngineRuby::ImageSummary::Manifest::Size::OrHash
|
|
464
|
+
).void
|
|
465
|
+
end
|
|
466
|
+
attr_writer :size
|
|
467
|
+
|
|
468
|
+
# The image data for the attestation manifest. This field is only populated when
|
|
469
|
+
# Kind is "attestation".
|
|
470
|
+
sig do
|
|
471
|
+
returns(
|
|
472
|
+
T.nilable(DockerEngineRuby::ImageSummary::Manifest::AttestationData)
|
|
473
|
+
)
|
|
474
|
+
end
|
|
475
|
+
attr_reader :attestation_data
|
|
476
|
+
|
|
477
|
+
sig do
|
|
478
|
+
params(
|
|
479
|
+
attestation_data:
|
|
480
|
+
T.nilable(
|
|
481
|
+
DockerEngineRuby::ImageSummary::Manifest::AttestationData::OrHash
|
|
482
|
+
)
|
|
483
|
+
).void
|
|
484
|
+
end
|
|
485
|
+
attr_writer :attestation_data
|
|
486
|
+
|
|
487
|
+
# The image data for the image manifest. This field is only populated when Kind is
|
|
488
|
+
# "image".
|
|
489
|
+
sig do
|
|
490
|
+
returns(
|
|
491
|
+
T.nilable(DockerEngineRuby::ImageSummary::Manifest::ImageData)
|
|
492
|
+
)
|
|
493
|
+
end
|
|
494
|
+
attr_reader :image_data
|
|
495
|
+
|
|
496
|
+
sig do
|
|
497
|
+
params(
|
|
498
|
+
image_data:
|
|
499
|
+
T.nilable(
|
|
500
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::OrHash
|
|
501
|
+
)
|
|
502
|
+
).void
|
|
503
|
+
end
|
|
504
|
+
attr_writer :image_data
|
|
505
|
+
|
|
506
|
+
# ImageManifestSummary represents a summary of an image manifest.
|
|
507
|
+
sig do
|
|
508
|
+
params(
|
|
509
|
+
available: T::Boolean,
|
|
510
|
+
descriptor:
|
|
511
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::OrHash,
|
|
512
|
+
id: String,
|
|
513
|
+
kind: DockerEngineRuby::ImageSummary::Manifest::Kind::OrSymbol,
|
|
514
|
+
size: DockerEngineRuby::ImageSummary::Manifest::Size::OrHash,
|
|
515
|
+
attestation_data:
|
|
516
|
+
T.nilable(
|
|
517
|
+
DockerEngineRuby::ImageSummary::Manifest::AttestationData::OrHash
|
|
518
|
+
),
|
|
519
|
+
image_data:
|
|
520
|
+
T.nilable(
|
|
521
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::OrHash
|
|
522
|
+
)
|
|
523
|
+
).returns(T.attached_class)
|
|
524
|
+
end
|
|
525
|
+
def self.new(
|
|
526
|
+
# Indicates whether all the child content (image config, layers) is fully
|
|
527
|
+
# available locally.
|
|
528
|
+
available:,
|
|
529
|
+
# A descriptor struct containing digest, media type, and size, as defined in the
|
|
530
|
+
# [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
|
|
531
|
+
descriptor:,
|
|
532
|
+
# ID is the content-addressable ID of an image and is the same as the digest of
|
|
533
|
+
# the image manifest.
|
|
534
|
+
id:,
|
|
535
|
+
# The kind of the manifest.
|
|
536
|
+
#
|
|
537
|
+
# | kind | description |
|
|
538
|
+
# | ----------- | ------------------------------------------------------------------------------------ |
|
|
539
|
+
# | image | Image manifest that can be used to start a container. |
|
|
540
|
+
# | attestation | Attestation manifest produced by the Buildkit builder for a specific image manifest. |
|
|
541
|
+
kind:,
|
|
542
|
+
size:,
|
|
543
|
+
# The image data for the attestation manifest. This field is only populated when
|
|
544
|
+
# Kind is "attestation".
|
|
545
|
+
attestation_data: nil,
|
|
546
|
+
# The image data for the image manifest. This field is only populated when Kind is
|
|
547
|
+
# "image".
|
|
548
|
+
image_data: nil
|
|
549
|
+
)
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
sig do
|
|
553
|
+
override.returns(
|
|
554
|
+
{
|
|
555
|
+
available: T::Boolean,
|
|
556
|
+
descriptor: DockerEngineRuby::ImageSummary::Manifest::Descriptor,
|
|
557
|
+
id: String,
|
|
558
|
+
kind:
|
|
559
|
+
DockerEngineRuby::ImageSummary::Manifest::Kind::TaggedSymbol,
|
|
560
|
+
size: DockerEngineRuby::ImageSummary::Manifest::Size,
|
|
561
|
+
attestation_data:
|
|
562
|
+
T.nilable(
|
|
563
|
+
DockerEngineRuby::ImageSummary::Manifest::AttestationData
|
|
564
|
+
),
|
|
565
|
+
image_data:
|
|
566
|
+
T.nilable(DockerEngineRuby::ImageSummary::Manifest::ImageData)
|
|
567
|
+
}
|
|
568
|
+
)
|
|
569
|
+
end
|
|
570
|
+
def to_hash
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
class Descriptor < DockerEngineRuby::Internal::Type::BaseModel
|
|
574
|
+
OrHash =
|
|
575
|
+
T.type_alias do
|
|
576
|
+
T.any(
|
|
577
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor,
|
|
578
|
+
DockerEngineRuby::Internal::AnyHash
|
|
579
|
+
)
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
# Arbitrary metadata relating to the targeted content.
|
|
583
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
584
|
+
attr_accessor :annotations
|
|
585
|
+
|
|
586
|
+
# ArtifactType is the IANA media type of this artifact.
|
|
587
|
+
sig { returns(T.nilable(String)) }
|
|
588
|
+
attr_accessor :artifact_type
|
|
589
|
+
|
|
590
|
+
# Data is an embedding of the targeted content. This is encoded as a base64 string
|
|
591
|
+
# when marshalled to JSON (automatically, by encoding/json). If present, Data can
|
|
592
|
+
# be used directly to avoid fetching the targeted content.
|
|
593
|
+
sig { returns(T.nilable(String)) }
|
|
594
|
+
attr_accessor :data
|
|
595
|
+
|
|
596
|
+
# The digest of the targeted content.
|
|
597
|
+
sig { returns(T.nilable(String)) }
|
|
598
|
+
attr_reader :digest
|
|
599
|
+
|
|
600
|
+
sig { params(digest: String).void }
|
|
601
|
+
attr_writer :digest
|
|
602
|
+
|
|
603
|
+
# The media type of the object this schema refers to.
|
|
604
|
+
sig { returns(T.nilable(String)) }
|
|
605
|
+
attr_reader :media_type
|
|
606
|
+
|
|
607
|
+
sig { params(media_type: String).void }
|
|
608
|
+
attr_writer :media_type
|
|
609
|
+
|
|
610
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
611
|
+
# the
|
|
612
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
613
|
+
sig do
|
|
614
|
+
returns(
|
|
615
|
+
T.nilable(
|
|
616
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::Platform
|
|
617
|
+
)
|
|
618
|
+
)
|
|
619
|
+
end
|
|
620
|
+
attr_reader :platform
|
|
621
|
+
|
|
622
|
+
sig do
|
|
623
|
+
params(
|
|
624
|
+
platform:
|
|
625
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::Platform::OrHash
|
|
626
|
+
).void
|
|
627
|
+
end
|
|
628
|
+
attr_writer :platform
|
|
629
|
+
|
|
630
|
+
# The size in bytes of the blob.
|
|
631
|
+
sig { returns(T.nilable(Integer)) }
|
|
632
|
+
attr_reader :size
|
|
633
|
+
|
|
634
|
+
sig { params(size: Integer).void }
|
|
635
|
+
attr_writer :size
|
|
636
|
+
|
|
637
|
+
# List of URLs from which this object MAY be downloaded.
|
|
638
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
639
|
+
attr_accessor :urls
|
|
640
|
+
|
|
641
|
+
# A descriptor struct containing digest, media type, and size, as defined in the
|
|
642
|
+
# [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
|
|
643
|
+
sig do
|
|
644
|
+
params(
|
|
645
|
+
annotations: T.nilable(T::Hash[Symbol, String]),
|
|
646
|
+
artifact_type: T.nilable(String),
|
|
647
|
+
data: T.nilable(String),
|
|
648
|
+
digest: String,
|
|
649
|
+
media_type: String,
|
|
650
|
+
platform:
|
|
651
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::Platform::OrHash,
|
|
652
|
+
size: Integer,
|
|
653
|
+
urls: T.nilable(T::Array[String])
|
|
654
|
+
).returns(T.attached_class)
|
|
655
|
+
end
|
|
656
|
+
def self.new(
|
|
657
|
+
# Arbitrary metadata relating to the targeted content.
|
|
658
|
+
annotations: nil,
|
|
659
|
+
# ArtifactType is the IANA media type of this artifact.
|
|
660
|
+
artifact_type: nil,
|
|
661
|
+
# Data is an embedding of the targeted content. This is encoded as a base64 string
|
|
662
|
+
# when marshalled to JSON (automatically, by encoding/json). If present, Data can
|
|
663
|
+
# be used directly to avoid fetching the targeted content.
|
|
664
|
+
data: nil,
|
|
665
|
+
# The digest of the targeted content.
|
|
666
|
+
digest: nil,
|
|
667
|
+
# The media type of the object this schema refers to.
|
|
668
|
+
media_type: nil,
|
|
669
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
670
|
+
# the
|
|
671
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
672
|
+
platform: nil,
|
|
673
|
+
# The size in bytes of the blob.
|
|
674
|
+
size: nil,
|
|
675
|
+
# List of URLs from which this object MAY be downloaded.
|
|
676
|
+
urls: nil
|
|
677
|
+
)
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
sig do
|
|
681
|
+
override.returns(
|
|
682
|
+
{
|
|
683
|
+
annotations: T.nilable(T::Hash[Symbol, String]),
|
|
684
|
+
artifact_type: T.nilable(String),
|
|
685
|
+
data: T.nilable(String),
|
|
686
|
+
digest: String,
|
|
687
|
+
media_type: String,
|
|
688
|
+
platform:
|
|
689
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::Platform,
|
|
690
|
+
size: Integer,
|
|
691
|
+
urls: T.nilable(T::Array[String])
|
|
692
|
+
}
|
|
693
|
+
)
|
|
694
|
+
end
|
|
695
|
+
def to_hash
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
class Platform < DockerEngineRuby::Internal::Type::BaseModel
|
|
699
|
+
OrHash =
|
|
700
|
+
T.type_alias do
|
|
701
|
+
T.any(
|
|
702
|
+
DockerEngineRuby::ImageSummary::Manifest::Descriptor::Platform,
|
|
703
|
+
DockerEngineRuby::Internal::AnyHash
|
|
704
|
+
)
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
# The CPU architecture, for example `amd64` or `ppc64`.
|
|
708
|
+
sig { returns(T.nilable(String)) }
|
|
709
|
+
attr_reader :architecture
|
|
710
|
+
|
|
711
|
+
sig { params(architecture: String).void }
|
|
712
|
+
attr_writer :architecture
|
|
713
|
+
|
|
714
|
+
# The operating system, for example `linux` or `windows`.
|
|
715
|
+
sig { returns(T.nilable(String)) }
|
|
716
|
+
attr_reader :os
|
|
717
|
+
|
|
718
|
+
sig { params(os: String).void }
|
|
719
|
+
attr_writer :os
|
|
720
|
+
|
|
721
|
+
# Optional field specifying an array of strings, each listing a required OS
|
|
722
|
+
# feature (for example on Windows `win32k`).
|
|
723
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
724
|
+
attr_reader :os_features
|
|
725
|
+
|
|
726
|
+
sig { params(os_features: T::Array[String]).void }
|
|
727
|
+
attr_writer :os_features
|
|
728
|
+
|
|
729
|
+
# Optional field specifying the operating system version, for example on Windows
|
|
730
|
+
# `10.0.19041.1165`.
|
|
731
|
+
sig { returns(T.nilable(String)) }
|
|
732
|
+
attr_reader :os_version
|
|
733
|
+
|
|
734
|
+
sig { params(os_version: String).void }
|
|
735
|
+
attr_writer :os_version
|
|
736
|
+
|
|
737
|
+
# Optional field specifying a variant of the CPU, for example `v7` to specify
|
|
738
|
+
# ARMv7 when architecture is `arm`.
|
|
739
|
+
sig { returns(T.nilable(String)) }
|
|
740
|
+
attr_reader :variant
|
|
741
|
+
|
|
742
|
+
sig { params(variant: String).void }
|
|
743
|
+
attr_writer :variant
|
|
744
|
+
|
|
745
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
746
|
+
# the
|
|
747
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
748
|
+
sig do
|
|
749
|
+
params(
|
|
750
|
+
architecture: String,
|
|
751
|
+
os: String,
|
|
752
|
+
os_features: T::Array[String],
|
|
753
|
+
os_version: String,
|
|
754
|
+
variant: String
|
|
755
|
+
).returns(T.attached_class)
|
|
756
|
+
end
|
|
757
|
+
def self.new(
|
|
758
|
+
# The CPU architecture, for example `amd64` or `ppc64`.
|
|
759
|
+
architecture: nil,
|
|
760
|
+
# The operating system, for example `linux` or `windows`.
|
|
761
|
+
os: nil,
|
|
762
|
+
# Optional field specifying an array of strings, each listing a required OS
|
|
763
|
+
# feature (for example on Windows `win32k`).
|
|
764
|
+
os_features: nil,
|
|
765
|
+
# Optional field specifying the operating system version, for example on Windows
|
|
766
|
+
# `10.0.19041.1165`.
|
|
767
|
+
os_version: nil,
|
|
768
|
+
# Optional field specifying a variant of the CPU, for example `v7` to specify
|
|
769
|
+
# ARMv7 when architecture is `arm`.
|
|
770
|
+
variant: nil
|
|
771
|
+
)
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
sig do
|
|
775
|
+
override.returns(
|
|
776
|
+
{
|
|
777
|
+
architecture: String,
|
|
778
|
+
os: String,
|
|
779
|
+
os_features: T::Array[String],
|
|
780
|
+
os_version: String,
|
|
781
|
+
variant: String
|
|
782
|
+
}
|
|
783
|
+
)
|
|
784
|
+
end
|
|
785
|
+
def to_hash
|
|
786
|
+
end
|
|
787
|
+
end
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
# The kind of the manifest.
|
|
791
|
+
#
|
|
792
|
+
# | kind | description |
|
|
793
|
+
# | ----------- | ------------------------------------------------------------------------------------ |
|
|
794
|
+
# | image | Image manifest that can be used to start a container. |
|
|
795
|
+
# | attestation | Attestation manifest produced by the Buildkit builder for a specific image manifest. |
|
|
796
|
+
module Kind
|
|
797
|
+
extend DockerEngineRuby::Internal::Type::Enum
|
|
798
|
+
|
|
799
|
+
TaggedSymbol =
|
|
800
|
+
T.type_alias do
|
|
801
|
+
T.all(Symbol, DockerEngineRuby::ImageSummary::Manifest::Kind)
|
|
802
|
+
end
|
|
803
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
804
|
+
|
|
805
|
+
IMAGE =
|
|
806
|
+
T.let(
|
|
807
|
+
:image,
|
|
808
|
+
DockerEngineRuby::ImageSummary::Manifest::Kind::TaggedSymbol
|
|
809
|
+
)
|
|
810
|
+
ATTESTATION =
|
|
811
|
+
T.let(
|
|
812
|
+
:attestation,
|
|
813
|
+
DockerEngineRuby::ImageSummary::Manifest::Kind::TaggedSymbol
|
|
814
|
+
)
|
|
815
|
+
UNKNOWN =
|
|
816
|
+
T.let(
|
|
817
|
+
:unknown,
|
|
818
|
+
DockerEngineRuby::ImageSummary::Manifest::Kind::TaggedSymbol
|
|
819
|
+
)
|
|
820
|
+
|
|
821
|
+
sig do
|
|
822
|
+
override.returns(
|
|
823
|
+
T::Array[
|
|
824
|
+
DockerEngineRuby::ImageSummary::Manifest::Kind::TaggedSymbol
|
|
825
|
+
]
|
|
826
|
+
)
|
|
827
|
+
end
|
|
828
|
+
def self.values
|
|
829
|
+
end
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
class Size < DockerEngineRuby::Internal::Type::BaseModel
|
|
833
|
+
OrHash =
|
|
834
|
+
T.type_alias do
|
|
835
|
+
T.any(
|
|
836
|
+
DockerEngineRuby::ImageSummary::Manifest::Size,
|
|
837
|
+
DockerEngineRuby::Internal::AnyHash
|
|
838
|
+
)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
sig { returns(Integer) }
|
|
842
|
+
attr_accessor :content
|
|
843
|
+
|
|
844
|
+
sig { returns(Integer) }
|
|
845
|
+
attr_accessor :total
|
|
846
|
+
|
|
847
|
+
sig do
|
|
848
|
+
params(content: Integer, total: Integer).returns(T.attached_class)
|
|
849
|
+
end
|
|
850
|
+
def self.new(content:, total:)
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
sig { override.returns({ content: Integer, total: Integer }) }
|
|
854
|
+
def to_hash
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
class AttestationData < DockerEngineRuby::Internal::Type::BaseModel
|
|
859
|
+
OrHash =
|
|
860
|
+
T.type_alias do
|
|
861
|
+
T.any(
|
|
862
|
+
DockerEngineRuby::ImageSummary::Manifest::AttestationData,
|
|
863
|
+
DockerEngineRuby::Internal::AnyHash
|
|
864
|
+
)
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
sig { returns(String) }
|
|
868
|
+
attr_accessor :for_
|
|
869
|
+
|
|
870
|
+
# The image data for the attestation manifest. This field is only populated when
|
|
871
|
+
# Kind is "attestation".
|
|
872
|
+
sig { params(for_: String).returns(T.attached_class) }
|
|
873
|
+
def self.new(for_:)
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
sig { override.returns({ for_: String }) }
|
|
877
|
+
def to_hash
|
|
878
|
+
end
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
class ImageData < DockerEngineRuby::Internal::Type::BaseModel
|
|
882
|
+
OrHash =
|
|
883
|
+
T.type_alias do
|
|
884
|
+
T.any(
|
|
885
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData,
|
|
886
|
+
DockerEngineRuby::Internal::AnyHash
|
|
887
|
+
)
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
sig { returns(T::Array[String]) }
|
|
891
|
+
attr_accessor :containers
|
|
892
|
+
|
|
893
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
894
|
+
# the
|
|
895
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
896
|
+
sig do
|
|
897
|
+
returns(
|
|
898
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Platform
|
|
899
|
+
)
|
|
900
|
+
end
|
|
901
|
+
attr_reader :platform
|
|
902
|
+
|
|
903
|
+
sig do
|
|
904
|
+
params(
|
|
905
|
+
platform:
|
|
906
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Platform::OrHash
|
|
907
|
+
).void
|
|
908
|
+
end
|
|
909
|
+
attr_writer :platform
|
|
910
|
+
|
|
911
|
+
sig do
|
|
912
|
+
returns(DockerEngineRuby::ImageSummary::Manifest::ImageData::Size)
|
|
913
|
+
end
|
|
914
|
+
attr_reader :size
|
|
915
|
+
|
|
916
|
+
sig do
|
|
917
|
+
params(
|
|
918
|
+
size:
|
|
919
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Size::OrHash
|
|
920
|
+
).void
|
|
921
|
+
end
|
|
922
|
+
attr_writer :size
|
|
923
|
+
|
|
924
|
+
# The image data for the image manifest. This field is only populated when Kind is
|
|
925
|
+
# "image".
|
|
926
|
+
sig do
|
|
927
|
+
params(
|
|
928
|
+
containers: T::Array[String],
|
|
929
|
+
platform:
|
|
930
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Platform::OrHash,
|
|
931
|
+
size:
|
|
932
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Size::OrHash
|
|
933
|
+
).returns(T.attached_class)
|
|
934
|
+
end
|
|
935
|
+
def self.new(
|
|
936
|
+
containers:,
|
|
937
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
938
|
+
# the
|
|
939
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
940
|
+
platform:,
|
|
941
|
+
size:
|
|
942
|
+
)
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
sig do
|
|
946
|
+
override.returns(
|
|
947
|
+
{
|
|
948
|
+
containers: T::Array[String],
|
|
949
|
+
platform:
|
|
950
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Platform,
|
|
951
|
+
size: DockerEngineRuby::ImageSummary::Manifest::ImageData::Size
|
|
952
|
+
}
|
|
953
|
+
)
|
|
954
|
+
end
|
|
955
|
+
def to_hash
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
class Platform < DockerEngineRuby::Internal::Type::BaseModel
|
|
959
|
+
OrHash =
|
|
960
|
+
T.type_alias do
|
|
961
|
+
T.any(
|
|
962
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Platform,
|
|
963
|
+
DockerEngineRuby::Internal::AnyHash
|
|
964
|
+
)
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
# The CPU architecture, for example `amd64` or `ppc64`.
|
|
968
|
+
sig { returns(T.nilable(String)) }
|
|
969
|
+
attr_reader :architecture
|
|
970
|
+
|
|
971
|
+
sig { params(architecture: String).void }
|
|
972
|
+
attr_writer :architecture
|
|
973
|
+
|
|
974
|
+
# The operating system, for example `linux` or `windows`.
|
|
975
|
+
sig { returns(T.nilable(String)) }
|
|
976
|
+
attr_reader :os
|
|
977
|
+
|
|
978
|
+
sig { params(os: String).void }
|
|
979
|
+
attr_writer :os
|
|
980
|
+
|
|
981
|
+
# Optional field specifying an array of strings, each listing a required OS
|
|
982
|
+
# feature (for example on Windows `win32k`).
|
|
983
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
984
|
+
attr_reader :os_features
|
|
985
|
+
|
|
986
|
+
sig { params(os_features: T::Array[String]).void }
|
|
987
|
+
attr_writer :os_features
|
|
988
|
+
|
|
989
|
+
# Optional field specifying the operating system version, for example on Windows
|
|
990
|
+
# `10.0.19041.1165`.
|
|
991
|
+
sig { returns(T.nilable(String)) }
|
|
992
|
+
attr_reader :os_version
|
|
993
|
+
|
|
994
|
+
sig { params(os_version: String).void }
|
|
995
|
+
attr_writer :os_version
|
|
996
|
+
|
|
997
|
+
# Optional field specifying a variant of the CPU, for example `v7` to specify
|
|
998
|
+
# ARMv7 when architecture is `arm`.
|
|
999
|
+
sig { returns(T.nilable(String)) }
|
|
1000
|
+
attr_reader :variant
|
|
1001
|
+
|
|
1002
|
+
sig { params(variant: String).void }
|
|
1003
|
+
attr_writer :variant
|
|
1004
|
+
|
|
1005
|
+
# Describes the platform which the image in the manifest runs on, as defined in
|
|
1006
|
+
# the
|
|
1007
|
+
# [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
|
1008
|
+
sig do
|
|
1009
|
+
params(
|
|
1010
|
+
architecture: String,
|
|
1011
|
+
os: String,
|
|
1012
|
+
os_features: T::Array[String],
|
|
1013
|
+
os_version: String,
|
|
1014
|
+
variant: String
|
|
1015
|
+
).returns(T.attached_class)
|
|
1016
|
+
end
|
|
1017
|
+
def self.new(
|
|
1018
|
+
# The CPU architecture, for example `amd64` or `ppc64`.
|
|
1019
|
+
architecture: nil,
|
|
1020
|
+
# The operating system, for example `linux` or `windows`.
|
|
1021
|
+
os: nil,
|
|
1022
|
+
# Optional field specifying an array of strings, each listing a required OS
|
|
1023
|
+
# feature (for example on Windows `win32k`).
|
|
1024
|
+
os_features: nil,
|
|
1025
|
+
# Optional field specifying the operating system version, for example on Windows
|
|
1026
|
+
# `10.0.19041.1165`.
|
|
1027
|
+
os_version: nil,
|
|
1028
|
+
# Optional field specifying a variant of the CPU, for example `v7` to specify
|
|
1029
|
+
# ARMv7 when architecture is `arm`.
|
|
1030
|
+
variant: nil
|
|
1031
|
+
)
|
|
1032
|
+
end
|
|
1033
|
+
|
|
1034
|
+
sig do
|
|
1035
|
+
override.returns(
|
|
1036
|
+
{
|
|
1037
|
+
architecture: String,
|
|
1038
|
+
os: String,
|
|
1039
|
+
os_features: T::Array[String],
|
|
1040
|
+
os_version: String,
|
|
1041
|
+
variant: String
|
|
1042
|
+
}
|
|
1043
|
+
)
|
|
1044
|
+
end
|
|
1045
|
+
def to_hash
|
|
1046
|
+
end
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
class Size < DockerEngineRuby::Internal::Type::BaseModel
|
|
1050
|
+
OrHash =
|
|
1051
|
+
T.type_alias do
|
|
1052
|
+
T.any(
|
|
1053
|
+
DockerEngineRuby::ImageSummary::Manifest::ImageData::Size,
|
|
1054
|
+
DockerEngineRuby::Internal::AnyHash
|
|
1055
|
+
)
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
sig { returns(Integer) }
|
|
1059
|
+
attr_accessor :unpacked
|
|
1060
|
+
|
|
1061
|
+
sig { params(unpacked: Integer).returns(T.attached_class) }
|
|
1062
|
+
def self.new(unpacked:)
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1065
|
+
sig { override.returns({ unpacked: Integer }) }
|
|
1066
|
+
def to_hash
|
|
1067
|
+
end
|
|
1068
|
+
end
|
|
1069
|
+
end
|
|
1070
|
+
end
|
|
1071
|
+
end
|
|
1072
|
+
end
|
|
1073
|
+
end
|