daytona_api_client 0.195.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +101 -0
  4. data/daytona_api_client.gemspec +4 -4
  5. data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
  6. data/lib/daytona_api_client/api/audit_api.rb +140 -40
  7. data/lib/daytona_api_client/api/config_api.rb +1 -1
  8. data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
  9. data/lib/daytona_api_client/api/health_api.rb +3 -54
  10. data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
  11. data/lib/daytona_api_client/api/organizations_api.rb +155 -1075
  12. data/lib/daytona_api_client/api/preview_api.rb +8 -77
  13. data/lib/daytona_api_client/api/runners_api.rb +22 -412
  14. data/lib/daytona_api_client/api/sandbox_api.rb +346 -1901
  15. data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
  16. data/lib/daytona_api_client/api/toolbox_api.rb +741 -741
  17. data/lib/daytona_api_client/api/users_api.rb +239 -2
  18. data/lib/daytona_api_client/api/volumes_api.rb +2 -2
  19. data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
  20. data/lib/daytona_api_client/api/workspace_api.rb +955 -0
  21. data/lib/daytona_api_client/api_client.rb +4 -8
  22. data/lib/daytona_api_client/api_error.rb +1 -1
  23. data/lib/daytona_api_client/configuration.rb +2 -5
  24. data/lib/daytona_api_client/models/account_provider.rb +74 -3
  25. data/lib/daytona_api_client/models/announcement.rb +74 -3
  26. data/lib/daytona_api_client/models/api_key_list.rb +74 -3
  27. data/lib/daytona_api_client/models/api_key_response.rb +74 -3
  28. data/lib/daytona_api_client/models/audit_log.rb +75 -22
  29. data/lib/daytona_api_client/models/build_info.rb +78 -34
  30. data/lib/daytona_api_client/models/command.rb +74 -3
  31. data/lib/daytona_api_client/models/completion_context.rb +74 -3
  32. data/lib/daytona_api_client/models/completion_item.rb +74 -3
  33. data/lib/daytona_api_client/models/completion_list.rb +74 -3
  34. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +74 -3
  35. data/lib/daytona_api_client/models/computer_use_start_response.rb +74 -3
  36. data/lib/daytona_api_client/models/computer_use_status_response.rb +76 -5
  37. data/lib/daytona_api_client/models/computer_use_stop_response.rb +74 -3
  38. data/lib/daytona_api_client/models/create_api_key.rb +75 -4
  39. data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
  40. data/lib/daytona_api_client/models/create_build_info.rb +74 -3
  41. data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
  42. data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
  43. data/lib/daytona_api_client/models/create_organization.rb +78 -34
  44. data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
  45. data/lib/daytona_api_client/models/create_organization_quota.rb +78 -17
  46. data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
  47. data/lib/daytona_api_client/models/create_runner.rb +386 -43
  48. data/lib/daytona_api_client/models/create_sandbox.rb +117 -56
  49. data/lib/daytona_api_client/models/create_session_request.rb +74 -3
  50. data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
  51. data/lib/daytona_api_client/models/create_user.rb +77 -15
  52. data/lib/daytona_api_client/models/create_volume.rb +74 -3
  53. data/lib/daytona_api_client/models/create_workspace.rb +411 -0
  54. data/lib/daytona_api_client/models/daytona_configuration.rb +78 -64
  55. data/lib/daytona_api_client/models/display_info_response.rb +74 -3
  56. data/lib/daytona_api_client/models/docker_registry.rb +76 -5
  57. data/lib/daytona_api_client/models/download_files.rb +74 -3
  58. data/lib/daytona_api_client/models/execute_request.rb +74 -3
  59. data/lib/daytona_api_client/models/execute_response.rb +74 -3
  60. data/lib/daytona_api_client/models/file_info.rb +74 -3
  61. data/lib/daytona_api_client/models/file_status.rb +74 -3
  62. data/lib/daytona_api_client/models/git_add_request.rb +74 -3
  63. data/lib/daytona_api_client/models/git_branch_request.rb +74 -3
  64. data/lib/daytona_api_client/models/git_checkout_request.rb +74 -3
  65. data/lib/daytona_api_client/models/git_clone_request.rb +74 -3
  66. data/lib/daytona_api_client/models/git_commit_info.rb +74 -3
  67. data/lib/daytona_api_client/models/git_commit_request.rb +74 -3
  68. data/lib/daytona_api_client/models/git_commit_response.rb +74 -3
  69. data/lib/daytona_api_client/models/git_delete_branch_request.rb +74 -3
  70. data/lib/daytona_api_client/models/git_repo_request.rb +74 -3
  71. data/lib/daytona_api_client/models/git_status.rb +74 -3
  72. data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
  73. data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
  74. data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
  75. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +74 -3
  76. data/lib/daytona_api_client/models/keyboard_press_request.rb +74 -3
  77. data/lib/daytona_api_client/models/keyboard_type_request.rb +74 -3
  78. data/lib/daytona_api_client/models/list_branch_response.rb +74 -3
  79. data/lib/daytona_api_client/models/lsp_completion_params.rb +74 -3
  80. data/lib/daytona_api_client/models/lsp_document_request.rb +74 -3
  81. data/lib/daytona_api_client/models/lsp_location.rb +74 -3
  82. data/lib/daytona_api_client/models/lsp_server_request.rb +74 -3
  83. data/lib/daytona_api_client/models/lsp_symbol.rb +74 -3
  84. data/lib/daytona_api_client/models/match.rb +74 -3
  85. data/lib/daytona_api_client/models/mouse_click_request.rb +74 -3
  86. data/lib/daytona_api_client/models/mouse_click_response.rb +74 -3
  87. data/lib/daytona_api_client/models/mouse_drag_request.rb +74 -3
  88. data/lib/daytona_api_client/models/mouse_drag_response.rb +74 -3
  89. data/lib/daytona_api_client/models/mouse_move_request.rb +74 -3
  90. data/lib/daytona_api_client/models/mouse_move_response.rb +74 -3
  91. data/lib/daytona_api_client/models/mouse_position.rb +74 -3
  92. data/lib/daytona_api_client/models/mouse_scroll_request.rb +74 -3
  93. data/lib/daytona_api_client/models/mouse_scroll_response.rb +74 -3
  94. data/lib/daytona_api_client/models/oidc_config.rb +74 -3
  95. data/lib/daytona_api_client/models/organization.rb +159 -216
  96. data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
  97. data/lib/daytona_api_client/models/organization_role.rb +74 -3
  98. data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +74 -3
  99. data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
  100. data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
  101. data/lib/daytona_api_client/models/organization_user.rb +76 -5
  102. data/lib/daytona_api_client/models/paginated_audit_logs.rb +78 -17
  103. data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
  104. data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
  105. data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +77 -6
  106. data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
  107. data/lib/daytona_api_client/models/position.rb +74 -3
  108. data/lib/daytona_api_client/models/posthog_config.rb +74 -3
  109. data/lib/daytona_api_client/models/process_errors_response.rb +74 -3
  110. data/lib/daytona_api_client/models/process_logs_response.rb +74 -3
  111. data/lib/daytona_api_client/models/process_restart_response.rb +74 -3
  112. data/lib/daytona_api_client/models/process_status_response.rb +74 -3
  113. data/lib/daytona_api_client/models/project_dir_response.rb +74 -3
  114. data/lib/daytona_api_client/models/pty_create_request.rb +74 -3
  115. data/lib/daytona_api_client/models/pty_create_response.rb +74 -3
  116. data/lib/daytona_api_client/models/pty_list_response.rb +74 -3
  117. data/lib/daytona_api_client/models/pty_resize_request.rb +74 -3
  118. data/lib/daytona_api_client/models/pty_session_info.rb +74 -3
  119. data/lib/daytona_api_client/models/range.rb +74 -3
  120. data/lib/daytona_api_client/models/region.rb +78 -181
  121. data/lib/daytona_api_client/models/region_screenshot_response.rb +74 -3
  122. data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
  123. data/lib/daytona_api_client/models/replace_request.rb +74 -3
  124. data/lib/daytona_api_client/models/replace_result.rb +74 -3
  125. data/lib/daytona_api_client/models/runner.rb +215 -155
  126. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
  127. data/lib/daytona_api_client/models/runner_state.rb +3 -4
  128. data/lib/daytona_api_client/models/sandbox.rb +104 -137
  129. data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
  130. data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -5
  131. data/lib/daytona_api_client/models/{admin_create_organization.rb → sandbox_info.rb} +102 -48
  132. data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
  133. data/lib/daytona_api_client/models/sandbox_state.rb +3 -10
  134. data/lib/daytona_api_client/models/sandbox_volume.rb +79 -18
  135. data/lib/daytona_api_client/models/screenshot_response.rb +74 -3
  136. data/lib/daytona_api_client/models/search_files_response.rb +74 -3
  137. data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
  138. data/lib/daytona_api_client/models/session.rb +74 -3
  139. data/lib/daytona_api_client/models/session_execute_request.rb +74 -3
  140. data/lib/daytona_api_client/models/session_execute_response.rb +74 -3
  141. data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
  142. data/lib/daytona_api_client/models/snapshot_dto.rb +78 -71
  143. data/lib/daytona_api_client/models/snapshot_state.rb +6 -4
  144. data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
  145. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
  146. data/lib/daytona_api_client/models/storage_access_dto.rb +74 -3
  147. data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
  148. data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
  149. data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
  150. data/lib/daytona_api_client/models/update_organization_quota.rb +115 -131
  151. data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
  152. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
  153. data/lib/daytona_api_client/models/user.rb +74 -3
  154. data/lib/daytona_api_client/models/user_home_dir_response.rb +74 -3
  155. data/lib/daytona_api_client/models/user_public_key.rb +74 -3
  156. data/lib/daytona_api_client/models/volume_dto.rb +74 -3
  157. data/lib/daytona_api_client/models/volume_state.rb +3 -4
  158. data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
  159. data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +76 -5
  160. data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
  161. data/lib/daytona_api_client/models/windows_response.rb +74 -3
  162. data/lib/daytona_api_client/models/work_dir_response.rb +74 -3
  163. data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +344 -168
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +8 -65
  166. data/project.json +13 -38
  167. metadata +15 -76
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -222
  170. data/.openapi-generator/VERSION +0 -1
  171. data/.openapi-generator-ignore +0 -31
  172. data/.rspec +0 -2
  173. data/.rubocop.yml +0 -148
  174. data/fix-gemspec.sh +0 -11
  175. data/lib/daytona_api_client/api/admin_api.rb +0 -1545
  176. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  177. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  178. data/lib/daytona_api_client/api/secret_api.rb +0 -441
  179. data/lib/daytona_api_client/api_model_base.rb +0 -88
  180. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
  181. data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -372
  182. data/lib/daytona_api_client/models/create_region.rb +0 -198
  183. data/lib/daytona_api_client/models/create_region_response.rb +0 -209
  184. data/lib/daytona_api_client/models/create_runner_response.rb +0 -192
  185. data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -177
  186. data/lib/daytona_api_client/models/create_secret.rb +0 -214
  187. data/lib/daytona_api_client/models/date_filter.rb +0 -178
  188. data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
  189. data/lib/daytona_api_client/models/gpu_type.rb +0 -44
  190. data/lib/daytona_api_client/models/int_filter.rb +0 -222
  191. data/lib/daytona_api_client/models/job.rb +0 -366
  192. data/lib/daytona_api_client/models/job_status.rb +0 -43
  193. data/lib/daytona_api_client/models/job_type.rb +0 -54
  194. data/lib/daytona_api_client/models/list_sandboxes_response.rb +0 -180
  195. data/lib/daytona_api_client/models/list_secrets_response.rb +0 -207
  196. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  197. data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
  198. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  199. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  200. data/lib/daytona_api_client/models/otel_config.rb +0 -188
  201. data/lib/daytona_api_client/models/paginated_logs.rb +0 -248
  202. data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
  203. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  204. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  205. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  206. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -165
  207. data/lib/daytona_api_client/models/region_quota.rb +0 -437
  208. data/lib/daytona_api_client/models/region_type.rb +0 -42
  209. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -515
  210. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
  211. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  212. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  213. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  214. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  215. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -217
  216. data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
  217. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  218. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  219. data/lib/daytona_api_client/models/secret.rb +0 -312
  220. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
  221. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
  222. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  223. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -165
  224. data/lib/daytona_api_client/models/trace_span.rb +0 -332
  225. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  226. data/lib/daytona_api_client/models/update_job_status.rb +0 -207
  227. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  228. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -299
  229. data/lib/daytona_api_client/models/update_region.rb +0 -171
  230. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  231. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  232. data/lib/daytona_api_client/models/url.rb +0 -165
  233. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
@@ -1,757 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class RunnerFull < ApiModelBase
18
- # The ID of the runner
19
- attr_accessor :id
20
-
21
- # The domain of the runner
22
- attr_accessor :domain
23
-
24
- # The API URL of the runner
25
- attr_accessor :api_url
26
-
27
- # The proxy URL of the runner
28
- attr_accessor :proxy_url
29
-
30
- # The CPU capacity of the runner
31
- attr_accessor :cpu
32
-
33
- # The memory capacity of the runner in GiB
34
- attr_accessor :memory
35
-
36
- # The disk capacity of the runner in GiB
37
- attr_accessor :disk
38
-
39
- # The GPU capacity of the runner
40
- attr_accessor :gpu
41
-
42
- # The type of GPU
43
- attr_accessor :gpu_type
44
-
45
- # The sandbox class supported by this runner
46
- attr_accessor :sandbox_class
47
-
48
- # Current CPU usage percentage
49
- attr_accessor :current_cpu_usage_percentage
50
-
51
- # Current RAM usage percentage
52
- attr_accessor :current_memory_usage_percentage
53
-
54
- # Current disk usage percentage
55
- attr_accessor :current_disk_usage_percentage
56
-
57
- # Current allocated CPU
58
- attr_accessor :current_allocated_cpu
59
-
60
- # Current allocated memory in GiB
61
- attr_accessor :current_allocated_memory_gi_b
62
-
63
- # Current allocated disk in GiB
64
- attr_accessor :current_allocated_disk_gi_b
65
-
66
- # Current snapshot count
67
- attr_accessor :current_snapshot_count
68
-
69
- # Current number of started sandboxes
70
- attr_accessor :current_started_sandboxes
71
-
72
- # Runner availability score
73
- attr_accessor :availability_score
74
-
75
- # The region of the runner
76
- attr_accessor :region
77
-
78
- # The name of the runner
79
- attr_accessor :name
80
-
81
- # The state of the runner
82
- attr_accessor :state
83
-
84
- # The last time the runner was checked
85
- attr_accessor :last_checked
86
-
87
- # Whether the runner is unschedulable
88
- attr_accessor :unschedulable
89
-
90
- # Tags associated with the runner
91
- attr_accessor :tags
92
-
93
- # The creation timestamp of the runner
94
- attr_accessor :created_at
95
-
96
- # The last update timestamp of the runner
97
- attr_accessor :updated_at
98
-
99
- # The version of the runner (deprecated in favor of apiVersion)
100
- attr_accessor :version
101
-
102
- # The api version of the runner
103
- attr_accessor :api_version
104
-
105
- # The class of the runner. Deprecated and always returns \"container\" for backward compatibility - use sandboxClass instead.
106
- attr_accessor :runner_class
107
-
108
- # The app version of the runner
109
- attr_accessor :app_version
110
-
111
- # Deprecated runner class property
112
- attr_accessor :_class
113
-
114
- # The API key for the runner
115
- attr_accessor :api_key
116
-
117
- # The region type of the runner
118
- attr_accessor :region_type
119
-
120
- class EnumAttributeValidator
121
- attr_reader :datatype
122
- attr_reader :allowable_values
123
-
124
- def initialize(datatype, allowable_values)
125
- @allowable_values = allowable_values.map do |value|
126
- case datatype.to_s
127
- when /Integer/i
128
- value.to_i
129
- when /Float/i
130
- value.to_f
131
- else
132
- value
133
- end
134
- end
135
- end
136
-
137
- def valid?(value)
138
- !value || allowable_values.include?(value)
139
- end
140
- end
141
-
142
- # Attribute mapping from ruby-style variable name to JSON key.
143
- def self.attribute_map
144
- {
145
- :'id' => :'id',
146
- :'domain' => :'domain',
147
- :'api_url' => :'apiUrl',
148
- :'proxy_url' => :'proxyUrl',
149
- :'cpu' => :'cpu',
150
- :'memory' => :'memory',
151
- :'disk' => :'disk',
152
- :'gpu' => :'gpu',
153
- :'gpu_type' => :'gpuType',
154
- :'sandbox_class' => :'sandboxClass',
155
- :'current_cpu_usage_percentage' => :'currentCpuUsagePercentage',
156
- :'current_memory_usage_percentage' => :'currentMemoryUsagePercentage',
157
- :'current_disk_usage_percentage' => :'currentDiskUsagePercentage',
158
- :'current_allocated_cpu' => :'currentAllocatedCpu',
159
- :'current_allocated_memory_gi_b' => :'currentAllocatedMemoryGiB',
160
- :'current_allocated_disk_gi_b' => :'currentAllocatedDiskGiB',
161
- :'current_snapshot_count' => :'currentSnapshotCount',
162
- :'current_started_sandboxes' => :'currentStartedSandboxes',
163
- :'availability_score' => :'availabilityScore',
164
- :'region' => :'region',
165
- :'name' => :'name',
166
- :'state' => :'state',
167
- :'last_checked' => :'lastChecked',
168
- :'unschedulable' => :'unschedulable',
169
- :'tags' => :'tags',
170
- :'created_at' => :'createdAt',
171
- :'updated_at' => :'updatedAt',
172
- :'version' => :'version',
173
- :'api_version' => :'apiVersion',
174
- :'runner_class' => :'runnerClass',
175
- :'app_version' => :'appVersion',
176
- :'_class' => :'class',
177
- :'api_key' => :'apiKey',
178
- :'region_type' => :'regionType'
179
- }
180
- end
181
-
182
- # Returns attribute mapping this model knows about
183
- def self.acceptable_attribute_map
184
- attribute_map
185
- end
186
-
187
- # Returns all the JSON keys this model knows about
188
- def self.acceptable_attributes
189
- acceptable_attribute_map.values
190
- end
191
-
192
- # Attribute type mapping.
193
- def self.openapi_types
194
- {
195
- :'id' => :'String',
196
- :'domain' => :'String',
197
- :'api_url' => :'String',
198
- :'proxy_url' => :'String',
199
- :'cpu' => :'Float',
200
- :'memory' => :'Float',
201
- :'disk' => :'Float',
202
- :'gpu' => :'Float',
203
- :'gpu_type' => :'String',
204
- :'sandbox_class' => :'SandboxClass',
205
- :'current_cpu_usage_percentage' => :'Float',
206
- :'current_memory_usage_percentage' => :'Float',
207
- :'current_disk_usage_percentage' => :'Float',
208
- :'current_allocated_cpu' => :'Float',
209
- :'current_allocated_memory_gi_b' => :'Float',
210
- :'current_allocated_disk_gi_b' => :'Float',
211
- :'current_snapshot_count' => :'Float',
212
- :'current_started_sandboxes' => :'Float',
213
- :'availability_score' => :'Float',
214
- :'region' => :'String',
215
- :'name' => :'String',
216
- :'state' => :'RunnerState',
217
- :'last_checked' => :'String',
218
- :'unschedulable' => :'Boolean',
219
- :'tags' => :'Array<String>',
220
- :'created_at' => :'String',
221
- :'updated_at' => :'String',
222
- :'version' => :'String',
223
- :'api_version' => :'String',
224
- :'runner_class' => :'RunnerClass',
225
- :'app_version' => :'String',
226
- :'_class' => :'String',
227
- :'api_key' => :'String',
228
- :'region_type' => :'RegionType'
229
- }
230
- end
231
-
232
- # List of attributes with nullable: true
233
- def self.openapi_nullable
234
- Set.new([
235
- ])
236
- end
237
-
238
- # Initializes the object
239
- # @param [Hash] attributes Model attributes in the form of hash
240
- def initialize(attributes = {})
241
- if (!attributes.is_a?(Hash))
242
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::RunnerFull` initialize method"
243
- end
244
-
245
- # check to see if the attribute exists and convert string to symbol for hash key
246
- acceptable_attribute_map = self.class.acceptable_attribute_map
247
- attributes = attributes.each_with_object({}) { |(k, v), h|
248
- if (!acceptable_attribute_map.key?(k.to_sym))
249
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::RunnerFull`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
250
- end
251
- h[k.to_sym] = v
252
- }
253
-
254
- if attributes.key?(:'id')
255
- self.id = attributes[:'id']
256
- else
257
- self.id = nil
258
- end
259
-
260
- if attributes.key?(:'domain')
261
- self.domain = attributes[:'domain']
262
- end
263
-
264
- if attributes.key?(:'api_url')
265
- self.api_url = attributes[:'api_url']
266
- end
267
-
268
- if attributes.key?(:'proxy_url')
269
- self.proxy_url = attributes[:'proxy_url']
270
- end
271
-
272
- if attributes.key?(:'cpu')
273
- self.cpu = attributes[:'cpu']
274
- else
275
- self.cpu = nil
276
- end
277
-
278
- if attributes.key?(:'memory')
279
- self.memory = attributes[:'memory']
280
- else
281
- self.memory = nil
282
- end
283
-
284
- if attributes.key?(:'disk')
285
- self.disk = attributes[:'disk']
286
- else
287
- self.disk = nil
288
- end
289
-
290
- if attributes.key?(:'gpu')
291
- self.gpu = attributes[:'gpu']
292
- end
293
-
294
- if attributes.key?(:'gpu_type')
295
- self.gpu_type = attributes[:'gpu_type']
296
- end
297
-
298
- if attributes.key?(:'sandbox_class')
299
- self.sandbox_class = attributes[:'sandbox_class']
300
- end
301
-
302
- if attributes.key?(:'current_cpu_usage_percentage')
303
- self.current_cpu_usage_percentage = attributes[:'current_cpu_usage_percentage']
304
- end
305
-
306
- if attributes.key?(:'current_memory_usage_percentage')
307
- self.current_memory_usage_percentage = attributes[:'current_memory_usage_percentage']
308
- end
309
-
310
- if attributes.key?(:'current_disk_usage_percentage')
311
- self.current_disk_usage_percentage = attributes[:'current_disk_usage_percentage']
312
- end
313
-
314
- if attributes.key?(:'current_allocated_cpu')
315
- self.current_allocated_cpu = attributes[:'current_allocated_cpu']
316
- end
317
-
318
- if attributes.key?(:'current_allocated_memory_gi_b')
319
- self.current_allocated_memory_gi_b = attributes[:'current_allocated_memory_gi_b']
320
- end
321
-
322
- if attributes.key?(:'current_allocated_disk_gi_b')
323
- self.current_allocated_disk_gi_b = attributes[:'current_allocated_disk_gi_b']
324
- end
325
-
326
- if attributes.key?(:'current_snapshot_count')
327
- self.current_snapshot_count = attributes[:'current_snapshot_count']
328
- end
329
-
330
- if attributes.key?(:'current_started_sandboxes')
331
- self.current_started_sandboxes = attributes[:'current_started_sandboxes']
332
- end
333
-
334
- if attributes.key?(:'availability_score')
335
- self.availability_score = attributes[:'availability_score']
336
- end
337
-
338
- if attributes.key?(:'region')
339
- self.region = attributes[:'region']
340
- else
341
- self.region = nil
342
- end
343
-
344
- if attributes.key?(:'name')
345
- self.name = attributes[:'name']
346
- else
347
- self.name = nil
348
- end
349
-
350
- if attributes.key?(:'state')
351
- self.state = attributes[:'state']
352
- else
353
- self.state = nil
354
- end
355
-
356
- if attributes.key?(:'last_checked')
357
- self.last_checked = attributes[:'last_checked']
358
- end
359
-
360
- if attributes.key?(:'unschedulable')
361
- self.unschedulable = attributes[:'unschedulable']
362
- else
363
- self.unschedulable = nil
364
- end
365
-
366
- if attributes.key?(:'tags')
367
- if (value = attributes[:'tags']).is_a?(Array)
368
- self.tags = value
369
- end
370
- else
371
- self.tags = nil
372
- end
373
-
374
- if attributes.key?(:'created_at')
375
- self.created_at = attributes[:'created_at']
376
- else
377
- self.created_at = nil
378
- end
379
-
380
- if attributes.key?(:'updated_at')
381
- self.updated_at = attributes[:'updated_at']
382
- else
383
- self.updated_at = nil
384
- end
385
-
386
- if attributes.key?(:'version')
387
- self.version = attributes[:'version']
388
- else
389
- self.version = nil
390
- end
391
-
392
- if attributes.key?(:'api_version')
393
- self.api_version = attributes[:'api_version']
394
- else
395
- self.api_version = nil
396
- end
397
-
398
- if attributes.key?(:'runner_class')
399
- self.runner_class = attributes[:'runner_class']
400
- else
401
- self.runner_class = nil
402
- end
403
-
404
- if attributes.key?(:'app_version')
405
- self.app_version = attributes[:'app_version']
406
- end
407
-
408
- if attributes.key?(:'_class')
409
- self._class = attributes[:'_class']
410
- end
411
-
412
- if attributes.key?(:'api_key')
413
- self.api_key = attributes[:'api_key']
414
- else
415
- self.api_key = nil
416
- end
417
-
418
- if attributes.key?(:'region_type')
419
- self.region_type = attributes[:'region_type']
420
- end
421
- end
422
-
423
- # Show invalid properties with the reasons. Usually used together with valid?
424
- # @return Array for valid properties with the reasons
425
- def list_invalid_properties
426
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
427
- invalid_properties = Array.new
428
- if @id.nil?
429
- invalid_properties.push('invalid value for "id", id cannot be nil.')
430
- end
431
-
432
- if @cpu.nil?
433
- invalid_properties.push('invalid value for "cpu", cpu cannot be nil.')
434
- end
435
-
436
- if @memory.nil?
437
- invalid_properties.push('invalid value for "memory", memory cannot be nil.')
438
- end
439
-
440
- if @disk.nil?
441
- invalid_properties.push('invalid value for "disk", disk cannot be nil.')
442
- end
443
-
444
- if @region.nil?
445
- invalid_properties.push('invalid value for "region", region cannot be nil.')
446
- end
447
-
448
- if @name.nil?
449
- invalid_properties.push('invalid value for "name", name cannot be nil.')
450
- end
451
-
452
- if @state.nil?
453
- invalid_properties.push('invalid value for "state", state cannot be nil.')
454
- end
455
-
456
- if @unschedulable.nil?
457
- invalid_properties.push('invalid value for "unschedulable", unschedulable cannot be nil.')
458
- end
459
-
460
- if @tags.nil?
461
- invalid_properties.push('invalid value for "tags", tags cannot be nil.')
462
- end
463
-
464
- if @created_at.nil?
465
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
466
- end
467
-
468
- if @updated_at.nil?
469
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
470
- end
471
-
472
- if @version.nil?
473
- invalid_properties.push('invalid value for "version", version cannot be nil.')
474
- end
475
-
476
- if @api_version.nil?
477
- invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
478
- end
479
-
480
- if @runner_class.nil?
481
- invalid_properties.push('invalid value for "runner_class", runner_class cannot be nil.')
482
- end
483
-
484
- if @api_key.nil?
485
- invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
486
- end
487
-
488
- invalid_properties
489
- end
490
-
491
- # Check to see if the all the properties in the model are valid
492
- # @return true if the model is valid
493
- def valid?
494
- warn '[DEPRECATED] the `valid?` method is obsolete'
495
- return false if @id.nil?
496
- return false if @cpu.nil?
497
- return false if @memory.nil?
498
- return false if @disk.nil?
499
- return false if @region.nil?
500
- return false if @name.nil?
501
- return false if @state.nil?
502
- return false if @unschedulable.nil?
503
- return false if @tags.nil?
504
- return false if @created_at.nil?
505
- return false if @updated_at.nil?
506
- return false if @version.nil?
507
- return false if @api_version.nil?
508
- return false if @runner_class.nil?
509
- return false if @api_key.nil?
510
- true
511
- end
512
-
513
- # Custom attribute writer method with validation
514
- # @param [Object] id Value to be assigned
515
- def id=(id)
516
- if id.nil?
517
- fail ArgumentError, 'id cannot be nil'
518
- end
519
-
520
- @id = id
521
- end
522
-
523
- # Custom attribute writer method with validation
524
- # @param [Object] cpu Value to be assigned
525
- def cpu=(cpu)
526
- if cpu.nil?
527
- fail ArgumentError, 'cpu cannot be nil'
528
- end
529
-
530
- @cpu = cpu
531
- end
532
-
533
- # Custom attribute writer method with validation
534
- # @param [Object] memory Value to be assigned
535
- def memory=(memory)
536
- if memory.nil?
537
- fail ArgumentError, 'memory cannot be nil'
538
- end
539
-
540
- @memory = memory
541
- end
542
-
543
- # Custom attribute writer method with validation
544
- # @param [Object] disk Value to be assigned
545
- def disk=(disk)
546
- if disk.nil?
547
- fail ArgumentError, 'disk cannot be nil'
548
- end
549
-
550
- @disk = disk
551
- end
552
-
553
- # Custom attribute writer method with validation
554
- # @param [Object] region Value to be assigned
555
- def region=(region)
556
- if region.nil?
557
- fail ArgumentError, 'region cannot be nil'
558
- end
559
-
560
- @region = region
561
- end
562
-
563
- # Custom attribute writer method with validation
564
- # @param [Object] name Value to be assigned
565
- def name=(name)
566
- if name.nil?
567
- fail ArgumentError, 'name cannot be nil'
568
- end
569
-
570
- @name = name
571
- end
572
-
573
- # Custom attribute writer method with validation
574
- # @param [Object] state Value to be assigned
575
- def state=(state)
576
- if state.nil?
577
- fail ArgumentError, 'state cannot be nil'
578
- end
579
-
580
- @state = state
581
- end
582
-
583
- # Custom attribute writer method with validation
584
- # @param [Object] unschedulable Value to be assigned
585
- def unschedulable=(unschedulable)
586
- if unschedulable.nil?
587
- fail ArgumentError, 'unschedulable cannot be nil'
588
- end
589
-
590
- @unschedulable = unschedulable
591
- end
592
-
593
- # Custom attribute writer method with validation
594
- # @param [Object] tags Value to be assigned
595
- def tags=(tags)
596
- if tags.nil?
597
- fail ArgumentError, 'tags cannot be nil'
598
- end
599
-
600
- @tags = tags
601
- end
602
-
603
- # Custom attribute writer method with validation
604
- # @param [Object] created_at Value to be assigned
605
- def created_at=(created_at)
606
- if created_at.nil?
607
- fail ArgumentError, 'created_at cannot be nil'
608
- end
609
-
610
- @created_at = created_at
611
- end
612
-
613
- # Custom attribute writer method with validation
614
- # @param [Object] updated_at Value to be assigned
615
- def updated_at=(updated_at)
616
- if updated_at.nil?
617
- fail ArgumentError, 'updated_at cannot be nil'
618
- end
619
-
620
- @updated_at = updated_at
621
- end
622
-
623
- # Custom attribute writer method with validation
624
- # @param [Object] version Value to be assigned
625
- def version=(version)
626
- if version.nil?
627
- fail ArgumentError, 'version cannot be nil'
628
- end
629
-
630
- @version = version
631
- end
632
-
633
- # Custom attribute writer method with validation
634
- # @param [Object] api_version Value to be assigned
635
- def api_version=(api_version)
636
- if api_version.nil?
637
- fail ArgumentError, 'api_version cannot be nil'
638
- end
639
-
640
- @api_version = api_version
641
- end
642
-
643
- # Custom attribute writer method with validation
644
- # @param [Object] runner_class Value to be assigned
645
- def runner_class=(runner_class)
646
- if runner_class.nil?
647
- fail ArgumentError, 'runner_class cannot be nil'
648
- end
649
-
650
- @runner_class = runner_class
651
- end
652
-
653
- # Custom attribute writer method with validation
654
- # @param [Object] api_key Value to be assigned
655
- def api_key=(api_key)
656
- if api_key.nil?
657
- fail ArgumentError, 'api_key cannot be nil'
658
- end
659
-
660
- @api_key = api_key
661
- end
662
-
663
- # Checks equality by comparing each attribute.
664
- # @param [Object] Object to be compared
665
- def ==(o)
666
- return true if self.equal?(o)
667
- self.class == o.class &&
668
- id == o.id &&
669
- domain == o.domain &&
670
- api_url == o.api_url &&
671
- proxy_url == o.proxy_url &&
672
- cpu == o.cpu &&
673
- memory == o.memory &&
674
- disk == o.disk &&
675
- gpu == o.gpu &&
676
- gpu_type == o.gpu_type &&
677
- sandbox_class == o.sandbox_class &&
678
- current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
679
- current_memory_usage_percentage == o.current_memory_usage_percentage &&
680
- current_disk_usage_percentage == o.current_disk_usage_percentage &&
681
- current_allocated_cpu == o.current_allocated_cpu &&
682
- current_allocated_memory_gi_b == o.current_allocated_memory_gi_b &&
683
- current_allocated_disk_gi_b == o.current_allocated_disk_gi_b &&
684
- current_snapshot_count == o.current_snapshot_count &&
685
- current_started_sandboxes == o.current_started_sandboxes &&
686
- availability_score == o.availability_score &&
687
- region == o.region &&
688
- name == o.name &&
689
- state == o.state &&
690
- last_checked == o.last_checked &&
691
- unschedulable == o.unschedulable &&
692
- tags == o.tags &&
693
- created_at == o.created_at &&
694
- updated_at == o.updated_at &&
695
- version == o.version &&
696
- api_version == o.api_version &&
697
- runner_class == o.runner_class &&
698
- app_version == o.app_version &&
699
- _class == o._class &&
700
- api_key == o.api_key &&
701
- region_type == o.region_type
702
- end
703
-
704
- # @see the `==` method
705
- # @param [Object] Object to be compared
706
- def eql?(o)
707
- self == o
708
- end
709
-
710
- # Calculates hash code according to all attributes.
711
- # @return [Integer] Hash code
712
- def hash
713
- [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class, api_key, region_type].hash
714
- end
715
-
716
- # Builds the object from hash
717
- # @param [Hash] attributes Model attributes in the form of hash
718
- # @return [Object] Returns the model itself
719
- def self.build_from_hash(attributes)
720
- return nil unless attributes.is_a?(Hash)
721
- attributes = attributes.transform_keys(&:to_sym)
722
- transformed_hash = {}
723
- openapi_types.each_pair do |key, type|
724
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
725
- transformed_hash["#{key}"] = nil
726
- elsif type =~ /\AArray<(.*)>/i
727
- # check to ensure the input is an array given that the attribute
728
- # is documented as an array but the input is not
729
- if attributes[attribute_map[key]].is_a?(Array)
730
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
731
- end
732
- elsif !attributes[attribute_map[key]].nil?
733
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
734
- end
735
- end
736
- new(transformed_hash)
737
- end
738
-
739
- # Returns the object in the form of hash
740
- # @return [Hash] Returns the object in the form of hash
741
- def to_hash
742
- hash = {}
743
- self.class.attribute_map.each_pair do |attr, param|
744
- value = self.send(attr)
745
- if value.nil?
746
- is_nullable = self.class.openapi_nullable.include?(attr)
747
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
748
- end
749
-
750
- hash[param] = _to_hash(value)
751
- end
752
- hash
753
- end
754
-
755
- end
756
-
757
- end