daytona_api_client 0.192.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 (231) 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 -162
  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/{create_secret.rb → sandbox_info.rb} +112 -53
  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 -106
  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 -63
  166. data/project.json +13 -38
  167. metadata +13 -72
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -220
  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 -1479
  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 -350
  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/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 -41
  189. data/lib/daytona_api_client/models/int_filter.rb +0 -222
  190. data/lib/daytona_api_client/models/job.rb +0 -366
  191. data/lib/daytona_api_client/models/job_status.rb +0 -43
  192. data/lib/daytona_api_client/models/job_type.rb +0 -54
  193. data/lib/daytona_api_client/models/list_sandboxes_response.rb +0 -180
  194. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  195. data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
  196. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  197. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  198. data/lib/daytona_api_client/models/otel_config.rb +0 -178
  199. data/lib/daytona_api_client/models/paginated_logs.rb +0 -248
  200. data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
  201. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  202. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  203. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  204. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -165
  205. data/lib/daytona_api_client/models/region_quota.rb +0 -437
  206. data/lib/daytona_api_client/models/region_type.rb +0 -42
  207. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -515
  208. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
  209. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  210. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  211. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  212. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  213. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -217
  214. data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
  215. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  216. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  217. data/lib/daytona_api_client/models/secret.rb +0 -312
  218. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
  219. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
  220. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  221. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -165
  222. data/lib/daytona_api_client/models/trace_span.rb +0 -332
  223. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  224. data/lib/daytona_api_client/models/update_job_status.rb +0 -207
  225. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  226. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -299
  227. data/lib/daytona_api_client/models/update_region.rb +0 -171
  228. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  229. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  230. data/lib/daytona_api_client/models/url.rb +0 -165
  231. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
@@ -1,299 +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 UpdateOrganizationRegionQuota < 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
- attr_accessor :max_cpu_per_gpu_sandbox
39
-
40
- attr_accessor :max_memory_per_gpu_sandbox
41
-
42
- attr_accessor :max_disk_per_gpu_sandbox
43
-
44
- class EnumAttributeValidator
45
- attr_reader :datatype
46
- attr_reader :allowable_values
47
-
48
- def initialize(datatype, allowable_values)
49
- @allowable_values = allowable_values.map do |value|
50
- case datatype.to_s
51
- when /Integer/i
52
- value.to_i
53
- when /Float/i
54
- value.to_f
55
- else
56
- value
57
- end
58
- end
59
- end
60
-
61
- def valid?(value)
62
- !value || allowable_values.include?(value)
63
- end
64
- end
65
-
66
- # Attribute mapping from ruby-style variable name to JSON key.
67
- def self.attribute_map
68
- {
69
- :'sandbox_class' => :'sandboxClass',
70
- :'total_cpu_quota' => :'totalCpuQuota',
71
- :'total_memory_quota' => :'totalMemoryQuota',
72
- :'total_disk_quota' => :'totalDiskQuota',
73
- :'total_gpu_quota' => :'totalGpuQuota',
74
- :'allowed_gpu_types' => :'allowedGpuTypes',
75
- :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
76
- :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
77
- :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
78
- :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
79
- :'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
80
- :'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
81
- :'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
82
- }
83
- end
84
-
85
- # Returns attribute mapping this model knows about
86
- def self.acceptable_attribute_map
87
- attribute_map
88
- end
89
-
90
- # Returns all the JSON keys this model knows about
91
- def self.acceptable_attributes
92
- acceptable_attribute_map.values
93
- end
94
-
95
- # Attribute type mapping.
96
- def self.openapi_types
97
- {
98
- :'sandbox_class' => :'SandboxClass',
99
- :'total_cpu_quota' => :'Float',
100
- :'total_memory_quota' => :'Float',
101
- :'total_disk_quota' => :'Float',
102
- :'total_gpu_quota' => :'Float',
103
- :'allowed_gpu_types' => :'Array<GpuType>',
104
- :'max_cpu_per_sandbox' => :'Float',
105
- :'max_memory_per_sandbox' => :'Float',
106
- :'max_disk_per_sandbox' => :'Float',
107
- :'max_disk_per_non_ephemeral_sandbox' => :'Float',
108
- :'max_cpu_per_gpu_sandbox' => :'Float',
109
- :'max_memory_per_gpu_sandbox' => :'Float',
110
- :'max_disk_per_gpu_sandbox' => :'Float'
111
- }
112
- end
113
-
114
- # List of attributes with nullable: true
115
- def self.openapi_nullable
116
- Set.new([
117
- :'total_cpu_quota',
118
- :'total_memory_quota',
119
- :'total_disk_quota',
120
- :'total_gpu_quota',
121
- :'allowed_gpu_types',
122
- :'max_cpu_per_sandbox',
123
- :'max_memory_per_sandbox',
124
- :'max_disk_per_sandbox',
125
- :'max_disk_per_non_ephemeral_sandbox',
126
- :'max_cpu_per_gpu_sandbox',
127
- :'max_memory_per_gpu_sandbox',
128
- :'max_disk_per_gpu_sandbox'
129
- ])
130
- end
131
-
132
- # Initializes the object
133
- # @param [Hash] attributes Model attributes in the form of hash
134
- def initialize(attributes = {})
135
- if (!attributes.is_a?(Hash))
136
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateOrganizationRegionQuota` initialize method"
137
- end
138
-
139
- # check to see if the attribute exists and convert string to symbol for hash key
140
- acceptable_attribute_map = self.class.acceptable_attribute_map
141
- attributes = attributes.each_with_object({}) { |(k, v), h|
142
- if (!acceptable_attribute_map.key?(k.to_sym))
143
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateOrganizationRegionQuota`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
144
- end
145
- h[k.to_sym] = v
146
- }
147
-
148
- if attributes.key?(:'sandbox_class')
149
- self.sandbox_class = attributes[:'sandbox_class']
150
- end
151
-
152
- if attributes.key?(:'total_cpu_quota')
153
- self.total_cpu_quota = attributes[:'total_cpu_quota']
154
- else
155
- self.total_cpu_quota = nil
156
- end
157
-
158
- if attributes.key?(:'total_memory_quota')
159
- self.total_memory_quota = attributes[:'total_memory_quota']
160
- else
161
- self.total_memory_quota = nil
162
- end
163
-
164
- if attributes.key?(:'total_disk_quota')
165
- self.total_disk_quota = attributes[:'total_disk_quota']
166
- else
167
- self.total_disk_quota = nil
168
- end
169
-
170
- if attributes.key?(:'total_gpu_quota')
171
- self.total_gpu_quota = attributes[:'total_gpu_quota']
172
- else
173
- self.total_gpu_quota = nil
174
- end
175
-
176
- if attributes.key?(:'allowed_gpu_types')
177
- if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
178
- self.allowed_gpu_types = value
179
- end
180
- end
181
-
182
- if attributes.key?(:'max_cpu_per_sandbox')
183
- self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
184
- end
185
-
186
- if attributes.key?(:'max_memory_per_sandbox')
187
- self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
188
- end
189
-
190
- if attributes.key?(:'max_disk_per_sandbox')
191
- self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
192
- end
193
-
194
- if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
195
- self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
196
- end
197
-
198
- if attributes.key?(:'max_cpu_per_gpu_sandbox')
199
- self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
200
- end
201
-
202
- if attributes.key?(:'max_memory_per_gpu_sandbox')
203
- self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
204
- end
205
-
206
- if attributes.key?(:'max_disk_per_gpu_sandbox')
207
- self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
208
- end
209
- end
210
-
211
- # Show invalid properties with the reasons. Usually used together with valid?
212
- # @return Array for valid properties with the reasons
213
- def list_invalid_properties
214
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
215
- invalid_properties = Array.new
216
- invalid_properties
217
- end
218
-
219
- # Check to see if the all the properties in the model are valid
220
- # @return true if the model is valid
221
- def valid?
222
- warn '[DEPRECATED] the `valid?` method is obsolete'
223
- true
224
- end
225
-
226
- # Checks equality by comparing each attribute.
227
- # @param [Object] Object to be compared
228
- def ==(o)
229
- return true if self.equal?(o)
230
- self.class == o.class &&
231
- sandbox_class == o.sandbox_class &&
232
- total_cpu_quota == o.total_cpu_quota &&
233
- total_memory_quota == o.total_memory_quota &&
234
- total_disk_quota == o.total_disk_quota &&
235
- total_gpu_quota == o.total_gpu_quota &&
236
- allowed_gpu_types == o.allowed_gpu_types &&
237
- max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
238
- max_memory_per_sandbox == o.max_memory_per_sandbox &&
239
- max_disk_per_sandbox == o.max_disk_per_sandbox &&
240
- max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
241
- max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
242
- max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
243
- max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
244
- end
245
-
246
- # @see the `==` method
247
- # @param [Object] Object to be compared
248
- def eql?(o)
249
- self == o
250
- end
251
-
252
- # Calculates hash code according to all attributes.
253
- # @return [Integer] Hash code
254
- def hash
255
- [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_sandbox, max_memory_per_gpu_sandbox, max_disk_per_gpu_sandbox].hash
256
- end
257
-
258
- # Builds the object from hash
259
- # @param [Hash] attributes Model attributes in the form of hash
260
- # @return [Object] Returns the model itself
261
- def self.build_from_hash(attributes)
262
- return nil unless attributes.is_a?(Hash)
263
- attributes = attributes.transform_keys(&:to_sym)
264
- transformed_hash = {}
265
- openapi_types.each_pair do |key, type|
266
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
267
- transformed_hash["#{key}"] = nil
268
- elsif type =~ /\AArray<(.*)>/i
269
- # check to ensure the input is an array given that the attribute
270
- # is documented as an array but the input is not
271
- if attributes[attribute_map[key]].is_a?(Array)
272
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
273
- end
274
- elsif !attributes[attribute_map[key]].nil?
275
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
276
- end
277
- end
278
- new(transformed_hash)
279
- end
280
-
281
- # Returns the object in the form of hash
282
- # @return [Hash] Returns the object in the form of hash
283
- def to_hash
284
- hash = {}
285
- self.class.attribute_map.each_pair do |attr, param|
286
- value = self.send(attr)
287
- if value.nil?
288
- is_nullable = self.class.openapi_nullable.include?(attr)
289
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
290
- end
291
-
292
- hash[param] = _to_hash(value)
293
- end
294
- hash
295
- end
296
-
297
- end
298
-
299
- end
@@ -1,171 +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 UpdateRegion < ApiModelBase
18
- # Proxy URL for the region
19
- attr_accessor :proxy_url
20
-
21
- # SSH Gateway URL for the region
22
- attr_accessor :ssh_gateway_url
23
-
24
- # Snapshot Manager URL for the region
25
- attr_accessor :snapshot_manager_url
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
- :'proxy_url' => :'proxyUrl',
31
- :'ssh_gateway_url' => :'sshGatewayUrl',
32
- :'snapshot_manager_url' => :'snapshotManagerUrl'
33
- }
34
- end
35
-
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
- # Returns all the JSON keys this model knows about
42
- def self.acceptable_attributes
43
- acceptable_attribute_map.values
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'proxy_url' => :'String',
50
- :'ssh_gateway_url' => :'String',
51
- :'snapshot_manager_url' => :'String'
52
- }
53
- end
54
-
55
- # List of attributes with nullable: true
56
- def self.openapi_nullable
57
- Set.new([
58
- :'proxy_url',
59
- :'ssh_gateway_url',
60
- :'snapshot_manager_url'
61
- ])
62
- end
63
-
64
- # Initializes the object
65
- # @param [Hash] attributes Model attributes in the form of hash
66
- def initialize(attributes = {})
67
- if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateRegion` initialize method"
69
- end
70
-
71
- # check to see if the attribute exists and convert string to symbol for hash key
72
- acceptable_attribute_map = self.class.acceptable_attribute_map
73
- attributes = attributes.each_with_object({}) { |(k, v), h|
74
- if (!acceptable_attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateRegion`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
- end
77
- h[k.to_sym] = v
78
- }
79
-
80
- if attributes.key?(:'proxy_url')
81
- self.proxy_url = attributes[:'proxy_url']
82
- end
83
-
84
- if attributes.key?(:'ssh_gateway_url')
85
- self.ssh_gateway_url = attributes[:'ssh_gateway_url']
86
- end
87
-
88
- if attributes.key?(:'snapshot_manager_url')
89
- self.snapshot_manager_url = attributes[:'snapshot_manager_url']
90
- end
91
- end
92
-
93
- # Show invalid properties with the reasons. Usually used together with valid?
94
- # @return Array for valid properties with the reasons
95
- def list_invalid_properties
96
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
- invalid_properties = Array.new
98
- invalid_properties
99
- end
100
-
101
- # Check to see if the all the properties in the model are valid
102
- # @return true if the model is valid
103
- def valid?
104
- warn '[DEPRECATED] the `valid?` method is obsolete'
105
- true
106
- end
107
-
108
- # Checks equality by comparing each attribute.
109
- # @param [Object] Object to be compared
110
- def ==(o)
111
- return true if self.equal?(o)
112
- self.class == o.class &&
113
- proxy_url == o.proxy_url &&
114
- ssh_gateway_url == o.ssh_gateway_url &&
115
- snapshot_manager_url == o.snapshot_manager_url
116
- end
117
-
118
- # @see the `==` method
119
- # @param [Object] Object to be compared
120
- def eql?(o)
121
- self == o
122
- end
123
-
124
- # Calculates hash code according to all attributes.
125
- # @return [Integer] Hash code
126
- def hash
127
- [proxy_url, ssh_gateway_url, snapshot_manager_url].hash
128
- end
129
-
130
- # Builds the object from hash
131
- # @param [Hash] attributes Model attributes in the form of hash
132
- # @return [Object] Returns the model itself
133
- def self.build_from_hash(attributes)
134
- return nil unless attributes.is_a?(Hash)
135
- attributes = attributes.transform_keys(&:to_sym)
136
- transformed_hash = {}
137
- openapi_types.each_pair do |key, type|
138
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
139
- transformed_hash["#{key}"] = nil
140
- elsif type =~ /\AArray<(.*)>/i
141
- # check to ensure the input is an array given that the attribute
142
- # is documented as an array but the input is not
143
- if attributes[attribute_map[key]].is_a?(Array)
144
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
145
- end
146
- elsif !attributes[attribute_map[key]].nil?
147
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
148
- end
149
- end
150
- new(transformed_hash)
151
- end
152
-
153
- # Returns the object in the form of hash
154
- # @return [Hash] Returns the object in the form of hash
155
- def to_hash
156
- hash = {}
157
- self.class.attribute_map.each_pair do |attr, param|
158
- value = self.send(attr)
159
- if value.nil?
160
- is_nullable = self.class.openapi_nullable.include?(attr)
161
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
162
- end
163
-
164
- hash[param] = _to_hash(value)
165
- end
166
- hash
167
- end
168
-
169
- end
170
-
171
- end
@@ -1,168 +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 UpdateSandboxNetworkSettings < ApiModelBase
18
- # Whether to block all network access for the sandbox
19
- attr_accessor :network_block_all
20
-
21
- # Comma-separated list of allowed CIDR network addresses for the sandbox
22
- attr_accessor :network_allow_list
23
-
24
- # Comma-separated list of allowed domains for the sandbox
25
- attr_accessor :domain_allow_list
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
- :'network_block_all' => :'networkBlockAll',
31
- :'network_allow_list' => :'networkAllowList',
32
- :'domain_allow_list' => :'domainAllowList'
33
- }
34
- end
35
-
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
- # Returns all the JSON keys this model knows about
42
- def self.acceptable_attributes
43
- acceptable_attribute_map.values
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'network_block_all' => :'Boolean',
50
- :'network_allow_list' => :'String',
51
- :'domain_allow_list' => :'String'
52
- }
53
- end
54
-
55
- # List of attributes with nullable: true
56
- def self.openapi_nullable
57
- Set.new([
58
- ])
59
- end
60
-
61
- # Initializes the object
62
- # @param [Hash] attributes Model attributes in the form of hash
63
- def initialize(attributes = {})
64
- if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateSandboxNetworkSettings` initialize method"
66
- end
67
-
68
- # check to see if the attribute exists and convert string to symbol for hash key
69
- acceptable_attribute_map = self.class.acceptable_attribute_map
70
- attributes = attributes.each_with_object({}) { |(k, v), h|
71
- if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateSandboxNetworkSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
- end
74
- h[k.to_sym] = v
75
- }
76
-
77
- if attributes.key?(:'network_block_all')
78
- self.network_block_all = attributes[:'network_block_all']
79
- end
80
-
81
- if attributes.key?(:'network_allow_list')
82
- self.network_allow_list = attributes[:'network_allow_list']
83
- end
84
-
85
- if attributes.key?(:'domain_allow_list')
86
- self.domain_allow_list = attributes[:'domain_allow_list']
87
- end
88
- end
89
-
90
- # Show invalid properties with the reasons. Usually used together with valid?
91
- # @return Array for valid properties with the reasons
92
- def list_invalid_properties
93
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
- invalid_properties = Array.new
95
- invalid_properties
96
- end
97
-
98
- # Check to see if the all the properties in the model are valid
99
- # @return true if the model is valid
100
- def valid?
101
- warn '[DEPRECATED] the `valid?` method is obsolete'
102
- true
103
- end
104
-
105
- # Checks equality by comparing each attribute.
106
- # @param [Object] Object to be compared
107
- def ==(o)
108
- return true if self.equal?(o)
109
- self.class == o.class &&
110
- network_block_all == o.network_block_all &&
111
- network_allow_list == o.network_allow_list &&
112
- domain_allow_list == o.domain_allow_list
113
- end
114
-
115
- # @see the `==` method
116
- # @param [Object] Object to be compared
117
- def eql?(o)
118
- self == o
119
- end
120
-
121
- # Calculates hash code according to all attributes.
122
- # @return [Integer] Hash code
123
- def hash
124
- [network_block_all, network_allow_list, domain_allow_list].hash
125
- end
126
-
127
- # Builds the object from hash
128
- # @param [Hash] attributes Model attributes in the form of hash
129
- # @return [Object] Returns the model itself
130
- def self.build_from_hash(attributes)
131
- return nil unless attributes.is_a?(Hash)
132
- attributes = attributes.transform_keys(&:to_sym)
133
- transformed_hash = {}
134
- openapi_types.each_pair do |key, type|
135
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
136
- transformed_hash["#{key}"] = nil
137
- elsif type =~ /\AArray<(.*)>/i
138
- # check to ensure the input is an array given that the attribute
139
- # is documented as an array but the input is not
140
- if attributes[attribute_map[key]].is_a?(Array)
141
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
142
- end
143
- elsif !attributes[attribute_map[key]].nil?
144
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
145
- end
146
- end
147
- new(transformed_hash)
148
- end
149
-
150
- # Returns the object in the form of hash
151
- # @return [Hash] Returns the object in the form of hash
152
- def to_hash
153
- hash = {}
154
- self.class.attribute_map.each_pair do |attr, param|
155
- value = self.send(attr)
156
- if value.nil?
157
- is_nullable = self.class.openapi_nullable.include?(attr)
158
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
159
- end
160
-
161
- hash[param] = _to_hash(value)
162
- end
163
- hash
164
- end
165
-
166
- end
167
-
168
- end