daytona_api_client 0.202.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 (219) 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 +265 -1316
  12. data/lib/daytona_api_client/api/preview_api.rb +8 -202
  13. data/lib/daytona_api_client/api/runners_api.rb +22 -412
  14. data/lib/daytona_api_client/api/sandbox_api.rb +434 -2352
  15. data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
  16. data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
  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/{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 -76
  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 +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 +238 -0
  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/{create_sandbox_snapshot.rb → keyboard_hotkey_request.rb} +93 -34
  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/lsp_symbol.rb +287 -0
  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/mouse_scroll_response.rb +236 -0
  94. data/lib/daytona_api_client/models/oidc_config.rb +74 -3
  95. data/lib/daytona_api_client/models/organization.rb +159 -243
  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/pty_create_request.rb +288 -0
  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 -181
  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/{resize_sandbox.rb → replace_result.rb} +95 -84
  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 -164
  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 -38
  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/{runner_service_health.rb → search_files_response.rb} +94 -59
  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/session_execute_response.rb +239 -0
  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 -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 +74 -3
  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} +339 -193
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +76 -74
  166. data/project.json +13 -38
  167. metadata +81 -83
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -163
  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 -1615
  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/create_organization_region_quota.rb +0 -375
  184. data/lib/daytona_api_client/models/date_filter.rb +0 -178
  185. data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
  186. data/lib/daytona_api_client/models/gpu_type.rb +0 -44
  187. data/lib/daytona_api_client/models/int_filter.rb +0 -222
  188. data/lib/daytona_api_client/models/job.rb +0 -366
  189. data/lib/daytona_api_client/models/job_status.rb +0 -43
  190. data/lib/daytona_api_client/models/job_type.rb +0 -55
  191. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  192. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  193. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  194. data/lib/daytona_api_client/models/organization_preview_warning.rb +0 -165
  195. data/lib/daytona_api_client/models/otel_config.rb +0 -188
  196. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  197. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  198. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  199. data/lib/daytona_api_client/models/region_quota.rb +0 -440
  200. data/lib/daytona_api_client/models/region_type.rb +0 -42
  201. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
  202. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  203. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  204. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  205. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  206. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  207. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  208. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  209. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  210. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  211. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -302
  212. data/lib/daytona_api_client/models/update_region.rb +0 -171
  213. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  214. data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
  215. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  216. data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
  217. data/lib/daytona_api_client/models/url.rb +0 -165
  218. data/lib/daytona_api_client/models/warm_pool.rb +0 -490
  219. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
@@ -1,518 +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 RegionUsageOverview < ApiModelBase
18
- attr_accessor :region_id
19
-
20
- attr_accessor :sandbox_class
21
-
22
- attr_accessor :total_cpu_quota
23
-
24
- attr_accessor :current_cpu_usage
25
-
26
- attr_accessor :total_memory_quota
27
-
28
- attr_accessor :current_memory_usage
29
-
30
- attr_accessor :total_disk_quota
31
-
32
- attr_accessor :current_disk_usage
33
-
34
- attr_accessor :total_gpu_quota
35
-
36
- attr_accessor :current_gpu_usage
37
-
38
- attr_accessor :allowed_gpu_types
39
-
40
- attr_accessor :max_cpu_per_sandbox
41
-
42
- attr_accessor :max_memory_per_sandbox
43
-
44
- attr_accessor :max_disk_per_sandbox
45
-
46
- attr_accessor :max_disk_per_non_ephemeral_sandbox
47
-
48
- # CPU maximum per requested GPU unit for GPU sandboxes.
49
- attr_accessor :max_cpu_per_gpu
50
-
51
- # Memory maximum per requested GPU unit for GPU sandboxes.
52
- attr_accessor :max_memory_per_gpu
53
-
54
- # Disk maximum per requested GPU unit for GPU sandboxes.
55
- attr_accessor :max_disk_per_gpu
56
-
57
- class EnumAttributeValidator
58
- attr_reader :datatype
59
- attr_reader :allowable_values
60
-
61
- def initialize(datatype, allowable_values)
62
- @allowable_values = allowable_values.map do |value|
63
- case datatype.to_s
64
- when /Integer/i
65
- value.to_i
66
- when /Float/i
67
- value.to_f
68
- else
69
- value
70
- end
71
- end
72
- end
73
-
74
- def valid?(value)
75
- !value || allowable_values.include?(value)
76
- end
77
- end
78
-
79
- # Attribute mapping from ruby-style variable name to JSON key.
80
- def self.attribute_map
81
- {
82
- :'region_id' => :'regionId',
83
- :'sandbox_class' => :'sandboxClass',
84
- :'total_cpu_quota' => :'totalCpuQuota',
85
- :'current_cpu_usage' => :'currentCpuUsage',
86
- :'total_memory_quota' => :'totalMemoryQuota',
87
- :'current_memory_usage' => :'currentMemoryUsage',
88
- :'total_disk_quota' => :'totalDiskQuota',
89
- :'current_disk_usage' => :'currentDiskUsage',
90
- :'total_gpu_quota' => :'totalGpuQuota',
91
- :'current_gpu_usage' => :'currentGpuUsage',
92
- :'allowed_gpu_types' => :'allowedGpuTypes',
93
- :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
94
- :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
95
- :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
96
- :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
97
- :'max_cpu_per_gpu' => :'maxCpuPerGpu',
98
- :'max_memory_per_gpu' => :'maxMemoryPerGpu',
99
- :'max_disk_per_gpu' => :'maxDiskPerGpu'
100
- }
101
- end
102
-
103
- # Returns attribute mapping this model knows about
104
- def self.acceptable_attribute_map
105
- attribute_map
106
- end
107
-
108
- # Returns all the JSON keys this model knows about
109
- def self.acceptable_attributes
110
- acceptable_attribute_map.values
111
- end
112
-
113
- # Attribute type mapping.
114
- def self.openapi_types
115
- {
116
- :'region_id' => :'String',
117
- :'sandbox_class' => :'SandboxClass',
118
- :'total_cpu_quota' => :'Float',
119
- :'current_cpu_usage' => :'Float',
120
- :'total_memory_quota' => :'Float',
121
- :'current_memory_usage' => :'Float',
122
- :'total_disk_quota' => :'Float',
123
- :'current_disk_usage' => :'Float',
124
- :'total_gpu_quota' => :'Float',
125
- :'current_gpu_usage' => :'Float',
126
- :'allowed_gpu_types' => :'Array<GpuType>',
127
- :'max_cpu_per_sandbox' => :'Float',
128
- :'max_memory_per_sandbox' => :'Float',
129
- :'max_disk_per_sandbox' => :'Float',
130
- :'max_disk_per_non_ephemeral_sandbox' => :'Float',
131
- :'max_cpu_per_gpu' => :'Float',
132
- :'max_memory_per_gpu' => :'Float',
133
- :'max_disk_per_gpu' => :'Float'
134
- }
135
- end
136
-
137
- # List of attributes with nullable: true
138
- def self.openapi_nullable
139
- Set.new([
140
- :'max_cpu_per_sandbox',
141
- :'max_memory_per_sandbox',
142
- :'max_disk_per_sandbox',
143
- :'max_disk_per_non_ephemeral_sandbox',
144
- :'max_cpu_per_gpu',
145
- :'max_memory_per_gpu',
146
- :'max_disk_per_gpu'
147
- ])
148
- end
149
-
150
- # Initializes the object
151
- # @param [Hash] attributes Model attributes in the form of hash
152
- def initialize(attributes = {})
153
- if (!attributes.is_a?(Hash))
154
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::RegionUsageOverview` initialize method"
155
- end
156
-
157
- # check to see if the attribute exists and convert string to symbol for hash key
158
- acceptable_attribute_map = self.class.acceptable_attribute_map
159
- attributes = attributes.each_with_object({}) { |(k, v), h|
160
- if (!acceptable_attribute_map.key?(k.to_sym))
161
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::RegionUsageOverview`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
162
- end
163
- h[k.to_sym] = v
164
- }
165
-
166
- if attributes.key?(:'region_id')
167
- self.region_id = attributes[:'region_id']
168
- else
169
- self.region_id = nil
170
- end
171
-
172
- if attributes.key?(:'sandbox_class')
173
- self.sandbox_class = attributes[:'sandbox_class']
174
- else
175
- self.sandbox_class = nil
176
- end
177
-
178
- if attributes.key?(:'total_cpu_quota')
179
- self.total_cpu_quota = attributes[:'total_cpu_quota']
180
- else
181
- self.total_cpu_quota = nil
182
- end
183
-
184
- if attributes.key?(:'current_cpu_usage')
185
- self.current_cpu_usage = attributes[:'current_cpu_usage']
186
- else
187
- self.current_cpu_usage = nil
188
- end
189
-
190
- if attributes.key?(:'total_memory_quota')
191
- self.total_memory_quota = attributes[:'total_memory_quota']
192
- else
193
- self.total_memory_quota = nil
194
- end
195
-
196
- if attributes.key?(:'current_memory_usage')
197
- self.current_memory_usage = attributes[:'current_memory_usage']
198
- else
199
- self.current_memory_usage = nil
200
- end
201
-
202
- if attributes.key?(:'total_disk_quota')
203
- self.total_disk_quota = attributes[:'total_disk_quota']
204
- else
205
- self.total_disk_quota = nil
206
- end
207
-
208
- if attributes.key?(:'current_disk_usage')
209
- self.current_disk_usage = attributes[:'current_disk_usage']
210
- else
211
- self.current_disk_usage = nil
212
- end
213
-
214
- if attributes.key?(:'total_gpu_quota')
215
- self.total_gpu_quota = attributes[:'total_gpu_quota']
216
- else
217
- self.total_gpu_quota = nil
218
- end
219
-
220
- if attributes.key?(:'current_gpu_usage')
221
- self.current_gpu_usage = attributes[:'current_gpu_usage']
222
- else
223
- self.current_gpu_usage = nil
224
- end
225
-
226
- if attributes.key?(:'allowed_gpu_types')
227
- if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
228
- self.allowed_gpu_types = value
229
- end
230
- end
231
-
232
- if attributes.key?(:'max_cpu_per_sandbox')
233
- self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
234
- else
235
- self.max_cpu_per_sandbox = nil
236
- end
237
-
238
- if attributes.key?(:'max_memory_per_sandbox')
239
- self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
240
- else
241
- self.max_memory_per_sandbox = nil
242
- end
243
-
244
- if attributes.key?(:'max_disk_per_sandbox')
245
- self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
246
- else
247
- self.max_disk_per_sandbox = nil
248
- end
249
-
250
- if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
251
- self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
252
- else
253
- self.max_disk_per_non_ephemeral_sandbox = nil
254
- end
255
-
256
- if attributes.key?(:'max_cpu_per_gpu')
257
- self.max_cpu_per_gpu = attributes[:'max_cpu_per_gpu']
258
- else
259
- self.max_cpu_per_gpu = nil
260
- end
261
-
262
- if attributes.key?(:'max_memory_per_gpu')
263
- self.max_memory_per_gpu = attributes[:'max_memory_per_gpu']
264
- else
265
- self.max_memory_per_gpu = nil
266
- end
267
-
268
- if attributes.key?(:'max_disk_per_gpu')
269
- self.max_disk_per_gpu = attributes[:'max_disk_per_gpu']
270
- else
271
- self.max_disk_per_gpu = nil
272
- end
273
- end
274
-
275
- # Show invalid properties with the reasons. Usually used together with valid?
276
- # @return Array for valid properties with the reasons
277
- def list_invalid_properties
278
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
279
- invalid_properties = Array.new
280
- if @region_id.nil?
281
- invalid_properties.push('invalid value for "region_id", region_id cannot be nil.')
282
- end
283
-
284
- if @sandbox_class.nil?
285
- invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
286
- end
287
-
288
- if @total_cpu_quota.nil?
289
- invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
290
- end
291
-
292
- if @current_cpu_usage.nil?
293
- invalid_properties.push('invalid value for "current_cpu_usage", current_cpu_usage cannot be nil.')
294
- end
295
-
296
- if @total_memory_quota.nil?
297
- invalid_properties.push('invalid value for "total_memory_quota", total_memory_quota cannot be nil.')
298
- end
299
-
300
- if @current_memory_usage.nil?
301
- invalid_properties.push('invalid value for "current_memory_usage", current_memory_usage cannot be nil.')
302
- end
303
-
304
- if @total_disk_quota.nil?
305
- invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
306
- end
307
-
308
- if @current_disk_usage.nil?
309
- invalid_properties.push('invalid value for "current_disk_usage", current_disk_usage cannot be nil.')
310
- end
311
-
312
- if @total_gpu_quota.nil?
313
- invalid_properties.push('invalid value for "total_gpu_quota", total_gpu_quota cannot be nil.')
314
- end
315
-
316
- if @current_gpu_usage.nil?
317
- invalid_properties.push('invalid value for "current_gpu_usage", current_gpu_usage cannot be nil.')
318
- end
319
-
320
- invalid_properties
321
- end
322
-
323
- # Check to see if the all the properties in the model are valid
324
- # @return true if the model is valid
325
- def valid?
326
- warn '[DEPRECATED] the `valid?` method is obsolete'
327
- return false if @region_id.nil?
328
- return false if @sandbox_class.nil?
329
- return false if @total_cpu_quota.nil?
330
- return false if @current_cpu_usage.nil?
331
- return false if @total_memory_quota.nil?
332
- return false if @current_memory_usage.nil?
333
- return false if @total_disk_quota.nil?
334
- return false if @current_disk_usage.nil?
335
- return false if @total_gpu_quota.nil?
336
- return false if @current_gpu_usage.nil?
337
- true
338
- end
339
-
340
- # Custom attribute writer method with validation
341
- # @param [Object] region_id Value to be assigned
342
- def region_id=(region_id)
343
- if region_id.nil?
344
- fail ArgumentError, 'region_id cannot be nil'
345
- end
346
-
347
- @region_id = region_id
348
- end
349
-
350
- # Custom attribute writer method with validation
351
- # @param [Object] sandbox_class Value to be assigned
352
- def sandbox_class=(sandbox_class)
353
- if sandbox_class.nil?
354
- fail ArgumentError, 'sandbox_class cannot be nil'
355
- end
356
-
357
- @sandbox_class = sandbox_class
358
- end
359
-
360
- # Custom attribute writer method with validation
361
- # @param [Object] total_cpu_quota Value to be assigned
362
- def total_cpu_quota=(total_cpu_quota)
363
- if total_cpu_quota.nil?
364
- fail ArgumentError, 'total_cpu_quota cannot be nil'
365
- end
366
-
367
- @total_cpu_quota = total_cpu_quota
368
- end
369
-
370
- # Custom attribute writer method with validation
371
- # @param [Object] current_cpu_usage Value to be assigned
372
- def current_cpu_usage=(current_cpu_usage)
373
- if current_cpu_usage.nil?
374
- fail ArgumentError, 'current_cpu_usage cannot be nil'
375
- end
376
-
377
- @current_cpu_usage = current_cpu_usage
378
- end
379
-
380
- # Custom attribute writer method with validation
381
- # @param [Object] total_memory_quota Value to be assigned
382
- def total_memory_quota=(total_memory_quota)
383
- if total_memory_quota.nil?
384
- fail ArgumentError, 'total_memory_quota cannot be nil'
385
- end
386
-
387
- @total_memory_quota = total_memory_quota
388
- end
389
-
390
- # Custom attribute writer method with validation
391
- # @param [Object] current_memory_usage Value to be assigned
392
- def current_memory_usage=(current_memory_usage)
393
- if current_memory_usage.nil?
394
- fail ArgumentError, 'current_memory_usage cannot be nil'
395
- end
396
-
397
- @current_memory_usage = current_memory_usage
398
- end
399
-
400
- # Custom attribute writer method with validation
401
- # @param [Object] total_disk_quota Value to be assigned
402
- def total_disk_quota=(total_disk_quota)
403
- if total_disk_quota.nil?
404
- fail ArgumentError, 'total_disk_quota cannot be nil'
405
- end
406
-
407
- @total_disk_quota = total_disk_quota
408
- end
409
-
410
- # Custom attribute writer method with validation
411
- # @param [Object] current_disk_usage Value to be assigned
412
- def current_disk_usage=(current_disk_usage)
413
- if current_disk_usage.nil?
414
- fail ArgumentError, 'current_disk_usage cannot be nil'
415
- end
416
-
417
- @current_disk_usage = current_disk_usage
418
- end
419
-
420
- # Custom attribute writer method with validation
421
- # @param [Object] total_gpu_quota Value to be assigned
422
- def total_gpu_quota=(total_gpu_quota)
423
- if total_gpu_quota.nil?
424
- fail ArgumentError, 'total_gpu_quota cannot be nil'
425
- end
426
-
427
- @total_gpu_quota = total_gpu_quota
428
- end
429
-
430
- # Custom attribute writer method with validation
431
- # @param [Object] current_gpu_usage Value to be assigned
432
- def current_gpu_usage=(current_gpu_usage)
433
- if current_gpu_usage.nil?
434
- fail ArgumentError, 'current_gpu_usage cannot be nil'
435
- end
436
-
437
- @current_gpu_usage = current_gpu_usage
438
- end
439
-
440
- # Checks equality by comparing each attribute.
441
- # @param [Object] Object to be compared
442
- def ==(o)
443
- return true if self.equal?(o)
444
- self.class == o.class &&
445
- region_id == o.region_id &&
446
- sandbox_class == o.sandbox_class &&
447
- total_cpu_quota == o.total_cpu_quota &&
448
- current_cpu_usage == o.current_cpu_usage &&
449
- total_memory_quota == o.total_memory_quota &&
450
- current_memory_usage == o.current_memory_usage &&
451
- total_disk_quota == o.total_disk_quota &&
452
- current_disk_usage == o.current_disk_usage &&
453
- total_gpu_quota == o.total_gpu_quota &&
454
- current_gpu_usage == o.current_gpu_usage &&
455
- allowed_gpu_types == o.allowed_gpu_types &&
456
- max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
457
- max_memory_per_sandbox == o.max_memory_per_sandbox &&
458
- max_disk_per_sandbox == o.max_disk_per_sandbox &&
459
- max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
460
- max_cpu_per_gpu == o.max_cpu_per_gpu &&
461
- max_memory_per_gpu == o.max_memory_per_gpu &&
462
- max_disk_per_gpu == o.max_disk_per_gpu
463
- end
464
-
465
- # @see the `==` method
466
- # @param [Object] Object to be compared
467
- def eql?(o)
468
- self == o
469
- end
470
-
471
- # Calculates hash code according to all attributes.
472
- # @return [Integer] Hash code
473
- def hash
474
- [region_id, sandbox_class, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage, total_gpu_quota, current_gpu_usage, 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].hash
475
- end
476
-
477
- # Builds the object from hash
478
- # @param [Hash] attributes Model attributes in the form of hash
479
- # @return [Object] Returns the model itself
480
- def self.build_from_hash(attributes)
481
- return nil unless attributes.is_a?(Hash)
482
- attributes = attributes.transform_keys(&:to_sym)
483
- transformed_hash = {}
484
- openapi_types.each_pair do |key, type|
485
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
486
- transformed_hash["#{key}"] = nil
487
- elsif type =~ /\AArray<(.*)>/i
488
- # check to ensure the input is an array given that the attribute
489
- # is documented as an array but the input is not
490
- if attributes[attribute_map[key]].is_a?(Array)
491
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
492
- end
493
- elsif !attributes[attribute_map[key]].nil?
494
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
495
- end
496
- end
497
- new(transformed_hash)
498
- end
499
-
500
- # Returns the object in the form of hash
501
- # @return [Hash] Returns the object in the form of hash
502
- def to_hash
503
- hash = {}
504
- self.class.attribute_map.each_pair do |attr, param|
505
- value = self.send(attr)
506
- if value.nil?
507
- is_nullable = self.class.openapi_nullable.include?(attr)
508
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
509
- end
510
-
511
- hash[param] = _to_hash(value)
512
- end
513
- hash
514
- end
515
-
516
- end
517
-
518
- end
@@ -1,176 +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 ResolveSandboxSecrets200ResponseInner < ApiModelBase
18
- attr_accessor :env
19
-
20
- attr_accessor :placeholder
21
-
22
- attr_accessor :value
23
-
24
- attr_accessor :hosts
25
-
26
- # Attribute mapping from ruby-style variable name to JSON key.
27
- def self.attribute_map
28
- {
29
- :'env' => :'env',
30
- :'placeholder' => :'placeholder',
31
- :'value' => :'value',
32
- :'hosts' => :'hosts'
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
- :'env' => :'String',
50
- :'placeholder' => :'String',
51
- :'value' => :'String',
52
- :'hosts' => :'Array<String>'
53
- }
54
- end
55
-
56
- # List of attributes with nullable: true
57
- def self.openapi_nullable
58
- Set.new([
59
- ])
60
- end
61
-
62
- # Initializes the object
63
- # @param [Hash] attributes Model attributes in the form of hash
64
- def initialize(attributes = {})
65
- if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ResolveSandboxSecrets200ResponseInner` initialize method"
67
- end
68
-
69
- # check to see if the attribute exists and convert string to symbol for hash key
70
- acceptable_attribute_map = self.class.acceptable_attribute_map
71
- attributes = attributes.each_with_object({}) { |(k, v), h|
72
- if (!acceptable_attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ResolveSandboxSecrets200ResponseInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
- end
75
- h[k.to_sym] = v
76
- }
77
-
78
- if attributes.key?(:'env')
79
- self.env = attributes[:'env']
80
- end
81
-
82
- if attributes.key?(:'placeholder')
83
- self.placeholder = attributes[:'placeholder']
84
- end
85
-
86
- if attributes.key?(:'value')
87
- self.value = attributes[:'value']
88
- end
89
-
90
- if attributes.key?(:'hosts')
91
- if (value = attributes[:'hosts']).is_a?(Array)
92
- self.hosts = value
93
- end
94
- end
95
- end
96
-
97
- # Show invalid properties with the reasons. Usually used together with valid?
98
- # @return Array for valid properties with the reasons
99
- def list_invalid_properties
100
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
101
- invalid_properties = Array.new
102
- invalid_properties
103
- end
104
-
105
- # Check to see if the all the properties in the model are valid
106
- # @return true if the model is valid
107
- def valid?
108
- warn '[DEPRECATED] the `valid?` method is obsolete'
109
- true
110
- end
111
-
112
- # Checks equality by comparing each attribute.
113
- # @param [Object] Object to be compared
114
- def ==(o)
115
- return true if self.equal?(o)
116
- self.class == o.class &&
117
- env == o.env &&
118
- placeholder == o.placeholder &&
119
- value == o.value &&
120
- hosts == o.hosts
121
- end
122
-
123
- # @see the `==` method
124
- # @param [Object] Object to be compared
125
- def eql?(o)
126
- self == o
127
- end
128
-
129
- # Calculates hash code according to all attributes.
130
- # @return [Integer] Hash code
131
- def hash
132
- [env, placeholder, value, hosts].hash
133
- end
134
-
135
- # Builds the object from hash
136
- # @param [Hash] attributes Model attributes in the form of hash
137
- # @return [Object] Returns the model itself
138
- def self.build_from_hash(attributes)
139
- return nil unless attributes.is_a?(Hash)
140
- attributes = attributes.transform_keys(&:to_sym)
141
- transformed_hash = {}
142
- openapi_types.each_pair do |key, type|
143
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
- transformed_hash["#{key}"] = nil
145
- elsif type =~ /\AArray<(.*)>/i
146
- # check to ensure the input is an array given that the attribute
147
- # is documented as an array but the input is not
148
- if attributes[attribute_map[key]].is_a?(Array)
149
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
150
- end
151
- elsif !attributes[attribute_map[key]].nil?
152
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
153
- end
154
- end
155
- new(transformed_hash)
156
- end
157
-
158
- # Returns the object in the form of hash
159
- # @return [Hash] Returns the object in the form of hash
160
- def to_hash
161
- hash = {}
162
- self.class.attribute_map.each_pair do |attr, param|
163
- value = self.send(attr)
164
- if value.nil?
165
- is_nullable = self.class.openapi_nullable.include?(attr)
166
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
167
- end
168
-
169
- hash[param] = _to_hash(value)
170
- end
171
- hash
172
- end
173
-
174
- end
175
-
176
- end