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