daytona_api_client 0.205.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 (227) 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 +98 -55
  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 +310 -1846
  12. data/lib/daytona_api_client/api/preview_api.rb +8 -202
  13. data/lib/daytona_api_client/api/runners_api.rb +22 -470
  14. data/lib/daytona_api_client/api/sandbox_api.rb +434 -2354
  15. data/lib/daytona_api_client/api/snapshots_api.rb +113 -42
  16. data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
  17. data/lib/daytona_api_client/api/users_api.rb +153 -89
  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/{create_runner_response.rb → command.rb} +104 -23
  31. data/lib/daytona_api_client/models/completion_context.rb +244 -0
  32. data/lib/daytona_api_client/models/completion_item.rb +289 -0
  33. data/lib/daytona_api_client/models/{paginated_traces.rb → completion_list.rb} +106 -91
  34. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
  35. data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
  36. data/lib/daytona_api_client/models/{available_sandbox_class.rb → computer_use_status_response.rb} +97 -86
  37. data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
  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 -26
  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 -108
  49. data/lib/daytona_api_client/models/{signed_port_preview_url.rb → create_session_request.rb} +93 -103
  50. data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
  51. data/lib/daytona_api_client/models/create_user.rb +97 -40
  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 -96
  55. data/lib/daytona_api_client/models/{runner_service_health.rb → display_info_response.rb} +95 -59
  56. data/lib/daytona_api_client/models/docker_registry.rb +76 -5
  57. data/lib/daytona_api_client/models/{paginated_jobs.rb → download_files.rb} +94 -100
  58. data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
  59. data/lib/daytona_api_client/models/execute_response.rb +263 -0
  60. data/lib/daytona_api_client/models/file_info.rb +417 -0
  61. data/lib/daytona_api_client/models/{secret.rb → file_status.rb} +122 -121
  62. data/lib/daytona_api_client/models/git_add_request.rb +264 -0
  63. data/lib/daytona_api_client/models/{admin_create_organization.rb → git_branch_request.rb} +95 -53
  64. data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
  65. data/lib/daytona_api_client/models/{toolbox_proxy_url.rb → git_clone_request.rb} +142 -10
  66. data/lib/daytona_api_client/models/{trace_span.rb → git_commit_info.rb} +148 -141
  67. data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
  68. data/lib/daytona_api_client/models/{runner_healthcheck.rb → git_commit_response.rb} +92 -74
  69. data/lib/daytona_api_client/models/{create_secret.rb → git_delete_branch_request.rb} +106 -59
  70. data/lib/daytona_api_client/models/{snapshot_manager_credentials.rb → git_repo_request.rb} +96 -35
  71. data/lib/daytona_api_client/models/git_status.rb +290 -0
  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/{oidc_id_p_config_response.rb → keyboard_hotkey_request.rb} +93 -59
  76. data/lib/daytona_api_client/models/{create_region_response.rb → keyboard_press_request.rb} +102 -63
  77. data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
  78. data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
  79. data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
  80. data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
  81. data/lib/daytona_api_client/models/lsp_location.rb +261 -0
  82. data/lib/daytona_api_client/models/lsp_server_request.rb +263 -0
  83. data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → lsp_symbol.rb} +132 -22
  84. data/lib/daytona_api_client/models/match.rb +287 -0
  85. data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
  86. data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
  87. data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
  88. data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
  89. data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
  90. data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
  91. data/lib/daytona_api_client/models/mouse_position.rb +263 -0
  92. data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
  93. data/lib/daytona_api_client/models/{test_identity_provider_connection_response.rb → mouse_scroll_response.rb} +81 -30
  94. data/lib/daytona_api_client/models/oidc_config.rb +74 -3
  95. data/lib/daytona_api_client/models/organization.rb +159 -270
  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_logs.rb → paginated_snapshots_dto.rb} +77 -10
  106. data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
  107. data/lib/daytona_api_client/models/position.rb +261 -0
  108. data/lib/daytona_api_client/models/posthog_config.rb +74 -3
  109. data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
  110. data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
  111. data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
  112. data/lib/daytona_api_client/models/process_status_response.rb +263 -0
  113. data/lib/daytona_api_client/models/{update_last_activity.rb → project_dir_response.rb} +83 -13
  114. data/lib/daytona_api_client/models/{pending_sso_link.rb → pty_create_request.rb} +114 -109
  115. data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
  116. data/lib/daytona_api_client/models/{metric_data_point.rb → pty_list_response.rb} +95 -49
  117. data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
  118. data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
  119. data/lib/daytona_api_client/models/range.rb +261 -0
  120. data/lib/daytona_api_client/models/region.rb +78 -192
  121. data/lib/daytona_api_client/models/{regenerate_api_key_response.rb → region_screenshot_response.rb} +113 -22
  122. data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
  123. data/lib/daytona_api_client/models/replace_request.rb +289 -0
  124. data/lib/daytona_api_client/models/{oidc_id_p_config.rb → replace_result.rb} +95 -88
  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 +101 -206
  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/{create_region.rb → sandbox_info.rb} +113 -49
  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 +256 -0
  136. data/lib/daytona_api_client/models/{audit_target_scenario.rb → search_files_response.rb} +95 -66
  137. data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
  138. data/lib/daytona_api_client/models/session.rb +251 -0
  139. data/lib/daytona_api_client/models/{list_sandboxes_response.rb → session_execute_request.rb} +110 -34
  140. data/lib/daytona_api_client/models/{organization_sso_enabled.rb → session_execute_response.rb} +104 -30
  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 -84
  143. data/lib/daytona_api_client/models/snapshot_state.rb +6 -5
  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 +78 -34
  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 +75 -41
  154. data/lib/daytona_api_client/models/{list_secrets_response.rb → user_home_dir_response.rb} +83 -72
  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/{preview_warning.rb → webhook_controller_get_status200_response.rb} +76 -23
  160. data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
  161. data/lib/daytona_api_client/models/windows_response.rb +265 -0
  162. data/lib/daytona_api_client/models/{update_job_status.rb → work_dir_response.rb} +83 -72
  163. data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +299 -222
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +76 -87
  166. data/project.json +13 -38
  167. metadata +83 -98
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -176
  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 -1618
  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/warm_pools_api.rb +0 -286
  180. data/lib/daytona_api_client/api_model_base.rb +0 -88
  181. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
  182. data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
  183. data/lib/daytona_api_client/models/audit_scenarios.rb +0 -167
  184. data/lib/daytona_api_client/models/create_identity_provider.rb +0 -269
  185. data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
  186. data/lib/daytona_api_client/models/date_filter.rb +0 -178
  187. data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
  188. data/lib/daytona_api_client/models/gpu_type.rb +0 -44
  189. data/lib/daytona_api_client/models/identity_provider.rb +0 -439
  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 -55
  194. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  195. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  196. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  197. data/lib/daytona_api_client/models/organization_preview_warning.rb +0 -165
  198. data/lib/daytona_api_client/models/otel_config.rb +0 -188
  199. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  200. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  201. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  202. data/lib/daytona_api_client/models/region_quota.rb +0 -453
  203. data/lib/daytona_api_client/models/region_type.rb +0 -42
  204. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
  205. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
  206. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  207. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  208. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  209. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  210. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  211. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  212. data/lib/daytona_api_client/models/sso_oidc_config.rb +0 -192
  213. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  214. data/lib/daytona_api_client/models/test_identity_provider_connection.rb +0 -165
  215. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  216. data/lib/daytona_api_client/models/update_identity_provider.rb +0 -212
  217. data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +0 -178
  218. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  219. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
  220. data/lib/daytona_api_client/models/update_region.rb +0 -182
  221. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  222. data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
  223. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  224. data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
  225. data/lib/daytona_api_client/models/url.rb +0 -165
  226. data/lib/daytona_api_client/models/warm_pool.rb +0 -490
  227. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
@@ -1,386 +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 CreateOrganizationRegionQuota < ApiModelBase
18
- attr_accessor :sandbox_class
19
-
20
- attr_accessor :total_cpu_quota
21
-
22
- attr_accessor :total_memory_quota
23
-
24
- attr_accessor :total_disk_quota
25
-
26
- attr_accessor :total_gpu_quota
27
-
28
- attr_accessor :allowed_gpu_types
29
-
30
- attr_accessor :max_cpu_per_sandbox
31
-
32
- attr_accessor :max_memory_per_sandbox
33
-
34
- attr_accessor :max_disk_per_sandbox
35
-
36
- attr_accessor :max_disk_per_non_ephemeral_sandbox
37
-
38
- # CPU maximum per requested GPU unit for GPU sandboxes.
39
- attr_accessor :max_cpu_per_gpu
40
-
41
- # Memory maximum per requested GPU unit for GPU sandboxes.
42
- attr_accessor :max_memory_per_gpu
43
-
44
- # Disk maximum per requested GPU unit for GPU sandboxes.
45
- attr_accessor :max_disk_per_gpu
46
-
47
- # Maximum sandbox lifespan in minutes, measured from sandbox creation to its auto-destroy deadline. If null or 0, lifespan is unrestricted. When set, sandboxes created without a TTL default to this lifespan and TTL cannot be disabled.
48
- attr_accessor :max_sandbox_lifespan
49
-
50
- class EnumAttributeValidator
51
- attr_reader :datatype
52
- attr_reader :allowable_values
53
-
54
- def initialize(datatype, allowable_values)
55
- @allowable_values = allowable_values.map do |value|
56
- case datatype.to_s
57
- when /Integer/i
58
- value.to_i
59
- when /Float/i
60
- value.to_f
61
- else
62
- value
63
- end
64
- end
65
- end
66
-
67
- def valid?(value)
68
- !value || allowable_values.include?(value)
69
- end
70
- end
71
-
72
- # Attribute mapping from ruby-style variable name to JSON key.
73
- def self.attribute_map
74
- {
75
- :'sandbox_class' => :'sandboxClass',
76
- :'total_cpu_quota' => :'totalCpuQuota',
77
- :'total_memory_quota' => :'totalMemoryQuota',
78
- :'total_disk_quota' => :'totalDiskQuota',
79
- :'total_gpu_quota' => :'totalGpuQuota',
80
- :'allowed_gpu_types' => :'allowedGpuTypes',
81
- :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
82
- :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
83
- :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
84
- :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
85
- :'max_cpu_per_gpu' => :'maxCpuPerGpu',
86
- :'max_memory_per_gpu' => :'maxMemoryPerGpu',
87
- :'max_disk_per_gpu' => :'maxDiskPerGpu',
88
- :'max_sandbox_lifespan' => :'maxSandboxLifespan'
89
- }
90
- end
91
-
92
- # Returns attribute mapping this model knows about
93
- def self.acceptable_attribute_map
94
- attribute_map
95
- end
96
-
97
- # Returns all the JSON keys this model knows about
98
- def self.acceptable_attributes
99
- acceptable_attribute_map.values
100
- end
101
-
102
- # Attribute type mapping.
103
- def self.openapi_types
104
- {
105
- :'sandbox_class' => :'SandboxClass',
106
- :'total_cpu_quota' => :'Float',
107
- :'total_memory_quota' => :'Float',
108
- :'total_disk_quota' => :'Float',
109
- :'total_gpu_quota' => :'Float',
110
- :'allowed_gpu_types' => :'Array<GpuType>',
111
- :'max_cpu_per_sandbox' => :'Float',
112
- :'max_memory_per_sandbox' => :'Float',
113
- :'max_disk_per_sandbox' => :'Float',
114
- :'max_disk_per_non_ephemeral_sandbox' => :'Float',
115
- :'max_cpu_per_gpu' => :'Float',
116
- :'max_memory_per_gpu' => :'Float',
117
- :'max_disk_per_gpu' => :'Float',
118
- :'max_sandbox_lifespan' => :'Float'
119
- }
120
- end
121
-
122
- # List of attributes with nullable: true
123
- def self.openapi_nullable
124
- Set.new([
125
- :'allowed_gpu_types',
126
- :'max_cpu_per_sandbox',
127
- :'max_memory_per_sandbox',
128
- :'max_disk_per_sandbox',
129
- :'max_disk_per_non_ephemeral_sandbox',
130
- :'max_cpu_per_gpu',
131
- :'max_memory_per_gpu',
132
- :'max_disk_per_gpu',
133
- :'max_sandbox_lifespan'
134
- ])
135
- end
136
-
137
- # Initializes the object
138
- # @param [Hash] attributes Model attributes in the form of hash
139
- def initialize(attributes = {})
140
- if (!attributes.is_a?(Hash))
141
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::CreateOrganizationRegionQuota` initialize method"
142
- end
143
-
144
- # check to see if the attribute exists and convert string to symbol for hash key
145
- acceptable_attribute_map = self.class.acceptable_attribute_map
146
- attributes = attributes.each_with_object({}) { |(k, v), h|
147
- if (!acceptable_attribute_map.key?(k.to_sym))
148
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::CreateOrganizationRegionQuota`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
149
- end
150
- h[k.to_sym] = v
151
- }
152
-
153
- if attributes.key?(:'sandbox_class')
154
- self.sandbox_class = attributes[:'sandbox_class']
155
- else
156
- self.sandbox_class = nil
157
- end
158
-
159
- if attributes.key?(:'total_cpu_quota')
160
- self.total_cpu_quota = attributes[:'total_cpu_quota']
161
- else
162
- self.total_cpu_quota = nil
163
- end
164
-
165
- if attributes.key?(:'total_memory_quota')
166
- self.total_memory_quota = attributes[:'total_memory_quota']
167
- else
168
- self.total_memory_quota = nil
169
- end
170
-
171
- if attributes.key?(:'total_disk_quota')
172
- self.total_disk_quota = attributes[:'total_disk_quota']
173
- else
174
- self.total_disk_quota = nil
175
- end
176
-
177
- if attributes.key?(:'total_gpu_quota')
178
- self.total_gpu_quota = attributes[:'total_gpu_quota']
179
- else
180
- self.total_gpu_quota = nil
181
- end
182
-
183
- if attributes.key?(:'allowed_gpu_types')
184
- if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
185
- self.allowed_gpu_types = value
186
- end
187
- end
188
-
189
- if attributes.key?(:'max_cpu_per_sandbox')
190
- self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
191
- end
192
-
193
- if attributes.key?(:'max_memory_per_sandbox')
194
- self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
195
- end
196
-
197
- if attributes.key?(:'max_disk_per_sandbox')
198
- self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
199
- end
200
-
201
- if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
202
- self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
203
- end
204
-
205
- if attributes.key?(:'max_cpu_per_gpu')
206
- self.max_cpu_per_gpu = attributes[:'max_cpu_per_gpu']
207
- end
208
-
209
- if attributes.key?(:'max_memory_per_gpu')
210
- self.max_memory_per_gpu = attributes[:'max_memory_per_gpu']
211
- end
212
-
213
- if attributes.key?(:'max_disk_per_gpu')
214
- self.max_disk_per_gpu = attributes[:'max_disk_per_gpu']
215
- end
216
-
217
- if attributes.key?(:'max_sandbox_lifespan')
218
- self.max_sandbox_lifespan = attributes[:'max_sandbox_lifespan']
219
- end
220
- end
221
-
222
- # Show invalid properties with the reasons. Usually used together with valid?
223
- # @return Array for valid properties with the reasons
224
- def list_invalid_properties
225
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
226
- invalid_properties = Array.new
227
- if @sandbox_class.nil?
228
- invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
229
- end
230
-
231
- if @total_cpu_quota.nil?
232
- invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
233
- end
234
-
235
- if @total_memory_quota.nil?
236
- invalid_properties.push('invalid value for "total_memory_quota", total_memory_quota cannot be nil.')
237
- end
238
-
239
- if @total_disk_quota.nil?
240
- invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
241
- end
242
-
243
- if @total_gpu_quota.nil?
244
- invalid_properties.push('invalid value for "total_gpu_quota", total_gpu_quota cannot be nil.')
245
- end
246
-
247
- invalid_properties
248
- end
249
-
250
- # Check to see if the all the properties in the model are valid
251
- # @return true if the model is valid
252
- def valid?
253
- warn '[DEPRECATED] the `valid?` method is obsolete'
254
- return false if @sandbox_class.nil?
255
- return false if @total_cpu_quota.nil?
256
- return false if @total_memory_quota.nil?
257
- return false if @total_disk_quota.nil?
258
- return false if @total_gpu_quota.nil?
259
- true
260
- end
261
-
262
- # Custom attribute writer method with validation
263
- # @param [Object] sandbox_class Value to be assigned
264
- def sandbox_class=(sandbox_class)
265
- if sandbox_class.nil?
266
- fail ArgumentError, 'sandbox_class cannot be nil'
267
- end
268
-
269
- @sandbox_class = sandbox_class
270
- end
271
-
272
- # Custom attribute writer method with validation
273
- # @param [Object] total_cpu_quota Value to be assigned
274
- def total_cpu_quota=(total_cpu_quota)
275
- if total_cpu_quota.nil?
276
- fail ArgumentError, 'total_cpu_quota cannot be nil'
277
- end
278
-
279
- @total_cpu_quota = total_cpu_quota
280
- end
281
-
282
- # Custom attribute writer method with validation
283
- # @param [Object] total_memory_quota Value to be assigned
284
- def total_memory_quota=(total_memory_quota)
285
- if total_memory_quota.nil?
286
- fail ArgumentError, 'total_memory_quota cannot be nil'
287
- end
288
-
289
- @total_memory_quota = total_memory_quota
290
- end
291
-
292
- # Custom attribute writer method with validation
293
- # @param [Object] total_disk_quota Value to be assigned
294
- def total_disk_quota=(total_disk_quota)
295
- if total_disk_quota.nil?
296
- fail ArgumentError, 'total_disk_quota cannot be nil'
297
- end
298
-
299
- @total_disk_quota = total_disk_quota
300
- end
301
-
302
- # Custom attribute writer method with validation
303
- # @param [Object] total_gpu_quota Value to be assigned
304
- def total_gpu_quota=(total_gpu_quota)
305
- if total_gpu_quota.nil?
306
- fail ArgumentError, 'total_gpu_quota cannot be nil'
307
- end
308
-
309
- @total_gpu_quota = total_gpu_quota
310
- end
311
-
312
- # Checks equality by comparing each attribute.
313
- # @param [Object] Object to be compared
314
- def ==(o)
315
- return true if self.equal?(o)
316
- self.class == o.class &&
317
- sandbox_class == o.sandbox_class &&
318
- total_cpu_quota == o.total_cpu_quota &&
319
- total_memory_quota == o.total_memory_quota &&
320
- total_disk_quota == o.total_disk_quota &&
321
- total_gpu_quota == o.total_gpu_quota &&
322
- allowed_gpu_types == o.allowed_gpu_types &&
323
- max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
324
- max_memory_per_sandbox == o.max_memory_per_sandbox &&
325
- max_disk_per_sandbox == o.max_disk_per_sandbox &&
326
- max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
327
- max_cpu_per_gpu == o.max_cpu_per_gpu &&
328
- max_memory_per_gpu == o.max_memory_per_gpu &&
329
- max_disk_per_gpu == o.max_disk_per_gpu &&
330
- max_sandbox_lifespan == o.max_sandbox_lifespan
331
- end
332
-
333
- # @see the `==` method
334
- # @param [Object] Object to be compared
335
- def eql?(o)
336
- self == o
337
- end
338
-
339
- # Calculates hash code according to all attributes.
340
- # @return [Integer] Hash code
341
- def hash
342
- [sandbox_class, total_cpu_quota, total_memory_quota, total_disk_quota, total_gpu_quota, allowed_gpu_types, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox, max_cpu_per_gpu, max_memory_per_gpu, max_disk_per_gpu, max_sandbox_lifespan].hash
343
- end
344
-
345
- # Builds the object from hash
346
- # @param [Hash] attributes Model attributes in the form of hash
347
- # @return [Object] Returns the model itself
348
- def self.build_from_hash(attributes)
349
- return nil unless attributes.is_a?(Hash)
350
- attributes = attributes.transform_keys(&:to_sym)
351
- transformed_hash = {}
352
- openapi_types.each_pair do |key, type|
353
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
354
- transformed_hash["#{key}"] = nil
355
- elsif type =~ /\AArray<(.*)>/i
356
- # check to ensure the input is an array given that the attribute
357
- # is documented as an array but the input is not
358
- if attributes[attribute_map[key]].is_a?(Array)
359
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
360
- end
361
- elsif !attributes[attribute_map[key]].nil?
362
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
363
- end
364
- end
365
- new(transformed_hash)
366
- end
367
-
368
- # Returns the object in the form of hash
369
- # @return [Hash] Returns the object in the form of hash
370
- def to_hash
371
- hash = {}
372
- self.class.attribute_map.each_pair do |attr, param|
373
- value = self.send(attr)
374
- if value.nil?
375
- is_nullable = self.class.openapi_nullable.include?(attr)
376
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
377
- end
378
-
379
- hash[param] = _to_hash(value)
380
- end
381
- hash
382
- end
383
-
384
- end
385
-
386
- end
@@ -1,178 +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 DateFilter < ApiModelBase
18
- # Match values greater than or equal to this timestamp (ISO 8601).
19
- attr_accessor :gte
20
-
21
- # Match values less than or equal to this timestamp (ISO 8601).
22
- attr_accessor :lte
23
-
24
- # Match values strictly greater than this timestamp (ISO 8601).
25
- attr_accessor :gt
26
-
27
- # Match values strictly less than this timestamp (ISO 8601).
28
- attr_accessor :lt
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
- :'gte' => :'gte',
34
- :'lte' => :'lte',
35
- :'gt' => :'gt',
36
- :'lt' => :'lt'
37
- }
38
- end
39
-
40
- # Returns attribute mapping this model knows about
41
- def self.acceptable_attribute_map
42
- attribute_map
43
- end
44
-
45
- # Returns all the JSON keys this model knows about
46
- def self.acceptable_attributes
47
- acceptable_attribute_map.values
48
- end
49
-
50
- # Attribute type mapping.
51
- def self.openapi_types
52
- {
53
- :'gte' => :'Time',
54
- :'lte' => :'Time',
55
- :'gt' => :'Time',
56
- :'lt' => :'Time'
57
- }
58
- end
59
-
60
- # List of attributes with nullable: true
61
- def self.openapi_nullable
62
- Set.new([
63
- ])
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::DateFilter` initialize method"
71
- end
72
-
73
- # check to see if the attribute exists and convert string to symbol for hash key
74
- acceptable_attribute_map = self.class.acceptable_attribute_map
75
- attributes = attributes.each_with_object({}) { |(k, v), h|
76
- if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::DateFilter`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
- end
79
- h[k.to_sym] = v
80
- }
81
-
82
- if attributes.key?(:'gte')
83
- self.gte = attributes[:'gte']
84
- end
85
-
86
- if attributes.key?(:'lte')
87
- self.lte = attributes[:'lte']
88
- end
89
-
90
- if attributes.key?(:'gt')
91
- self.gt = attributes[:'gt']
92
- end
93
-
94
- if attributes.key?(:'lt')
95
- self.lt = attributes[:'lt']
96
- end
97
- end
98
-
99
- # Show invalid properties with the reasons. Usually used together with valid?
100
- # @return Array for valid properties with the reasons
101
- def list_invalid_properties
102
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
- invalid_properties = Array.new
104
- invalid_properties
105
- end
106
-
107
- # Check to see if the all the properties in the model are valid
108
- # @return true if the model is valid
109
- def valid?
110
- warn '[DEPRECATED] the `valid?` method is obsolete'
111
- true
112
- end
113
-
114
- # Checks equality by comparing each attribute.
115
- # @param [Object] Object to be compared
116
- def ==(o)
117
- return true if self.equal?(o)
118
- self.class == o.class &&
119
- gte == o.gte &&
120
- lte == o.lte &&
121
- gt == o.gt &&
122
- lt == o.lt
123
- end
124
-
125
- # @see the `==` method
126
- # @param [Object] Object to be compared
127
- def eql?(o)
128
- self == o
129
- end
130
-
131
- # Calculates hash code according to all attributes.
132
- # @return [Integer] Hash code
133
- def hash
134
- [gte, lte, gt, lt].hash
135
- end
136
-
137
- # Builds the object from hash
138
- # @param [Hash] attributes Model attributes in the form of hash
139
- # @return [Object] Returns the model itself
140
- def self.build_from_hash(attributes)
141
- return nil unless attributes.is_a?(Hash)
142
- attributes = attributes.transform_keys(&:to_sym)
143
- transformed_hash = {}
144
- openapi_types.each_pair do |key, type|
145
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
146
- transformed_hash["#{key}"] = nil
147
- elsif type =~ /\AArray<(.*)>/i
148
- # check to ensure the input is an array given that the attribute
149
- # is documented as an array but the input is not
150
- if attributes[attribute_map[key]].is_a?(Array)
151
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
152
- end
153
- elsif !attributes[attribute_map[key]].nil?
154
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
155
- end
156
- end
157
- new(transformed_hash)
158
- end
159
-
160
- # Returns the object in the form of hash
161
- # @return [Hash] Returns the object in the form of hash
162
- def to_hash
163
- hash = {}
164
- self.class.attribute_map.each_pair do |attr, param|
165
- value = self.send(attr)
166
- if value.nil?
167
- is_nullable = self.class.openapi_nullable.include?(attr)
168
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
169
- end
170
-
171
- hash[param] = _to_hash(value)
172
- end
173
- hash
174
- end
175
-
176
- end
177
-
178
- end
@@ -1,148 +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 ForkSandbox < ApiModelBase
18
- # The name for the forked sandbox. If not provided, a unique name will be generated.
19
- attr_accessor :name
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'name' => :'name'
25
- }
26
- end
27
-
28
- # Returns attribute mapping this model knows about
29
- def self.acceptable_attribute_map
30
- attribute_map
31
- end
32
-
33
- # Returns all the JSON keys this model knows about
34
- def self.acceptable_attributes
35
- acceptable_attribute_map.values
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.openapi_types
40
- {
41
- :'name' => :'String'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- ])
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ForkSandbox` initialize method"
56
- end
57
-
58
- # check to see if the attribute exists and convert string to symbol for hash key
59
- acceptable_attribute_map = self.class.acceptable_attribute_map
60
- attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!acceptable_attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ForkSandbox`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
- end
64
- h[k.to_sym] = v
65
- }
66
-
67
- if attributes.key?(:'name')
68
- self.name = attributes[:'name']
69
- end
70
- end
71
-
72
- # Show invalid properties with the reasons. Usually used together with valid?
73
- # @return Array for valid properties with the reasons
74
- def list_invalid_properties
75
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
76
- invalid_properties = Array.new
77
- invalid_properties
78
- end
79
-
80
- # Check to see if the all the properties in the model are valid
81
- # @return true if the model is valid
82
- def valid?
83
- warn '[DEPRECATED] the `valid?` method is obsolete'
84
- true
85
- end
86
-
87
- # Checks equality by comparing each attribute.
88
- # @param [Object] Object to be compared
89
- def ==(o)
90
- return true if self.equal?(o)
91
- self.class == o.class &&
92
- name == o.name
93
- end
94
-
95
- # @see the `==` method
96
- # @param [Object] Object to be compared
97
- def eql?(o)
98
- self == o
99
- end
100
-
101
- # Calculates hash code according to all attributes.
102
- # @return [Integer] Hash code
103
- def hash
104
- [name].hash
105
- end
106
-
107
- # Builds the object from hash
108
- # @param [Hash] attributes Model attributes in the form of hash
109
- # @return [Object] Returns the model itself
110
- def self.build_from_hash(attributes)
111
- return nil unless attributes.is_a?(Hash)
112
- attributes = attributes.transform_keys(&:to_sym)
113
- transformed_hash = {}
114
- openapi_types.each_pair do |key, type|
115
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
116
- transformed_hash["#{key}"] = nil
117
- elsif type =~ /\AArray<(.*)>/i
118
- # check to ensure the input is an array given that the attribute
119
- # is documented as an array but the input is not
120
- if attributes[attribute_map[key]].is_a?(Array)
121
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
122
- end
123
- elsif !attributes[attribute_map[key]].nil?
124
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
125
- end
126
- end
127
- new(transformed_hash)
128
- end
129
-
130
- # Returns the object in the form of hash
131
- # @return [Hash] Returns the object in the form of hash
132
- def to_hash
133
- hash = {}
134
- self.class.attribute_map.each_pair do |attr, param|
135
- value = self.send(attr)
136
- if value.nil?
137
- is_nullable = self.class.openapi_nullable.include?(attr)
138
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
139
- end
140
-
141
- hash[param] = _to_hash(value)
142
- end
143
- hash
144
- end
145
-
146
- end
147
-
148
- end