daytona_api_client 0.178.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 (220) 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 +292 -1620
  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 +217 -16
  20. data/lib/daytona_api_client/api/workspace_api.rb +6 -6
  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 +77 -16
  49. data/lib/daytona_api_client/models/create_session_request.rb +74 -3
  50. data/lib/daytona_api_client/models/create_snapshot.rb +88 -17
  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 +78 -7
  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.rb +74 -3
  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 +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 +191 -138
  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 +92 -95
  129. data/lib/daytona_api_client/models/sandbox_class.rb +3 -4
  130. data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -4
  131. data/lib/daytona_api_client/models/sandbox_info.rb +74 -3
  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 -39
  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/workspace.rb +107 -83
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +3 -49
  166. data/project.json +11 -42
  167. metadata +6 -56
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -211
  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 -1151
  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_region.rb +0 -198
  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/job.rb +0 -366
  186. data/lib/daytona_api_client/models/job_status.rb +0 -43
  187. data/lib/daytona_api_client/models/job_type.rb +0 -53
  188. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  189. data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
  190. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  191. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  192. data/lib/daytona_api_client/models/otel_config.rb +0 -178
  193. data/lib/daytona_api_client/models/paginated_jobs.rb +0 -244
  194. data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
  195. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  196. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -178
  197. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  198. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -165
  199. data/lib/daytona_api_client/models/region_quota.rb +0 -316
  200. data/lib/daytona_api_client/models/region_type.rb +0 -42
  201. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -368
  202. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
  203. data/lib/daytona_api_client/models/runner_class.rb +0 -41
  204. data/lib/daytona_api_client/models/runner_full.rb +0 -764
  205. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -462
  206. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -217
  207. data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
  208. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
  209. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
  210. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -165
  211. data/lib/daytona_api_client/models/trace_span.rb +0 -332
  212. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  213. data/lib/daytona_api_client/models/update_job_status.rb +0 -207
  214. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  215. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -214
  216. data/lib/daytona_api_client/models/update_region.rb +0 -171
  217. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -158
  218. data/lib/daytona_api_client/models/url.rb +0 -165
  219. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
  220. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -192
@@ -1,764 +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 class of the runner
46
- attr_accessor :_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
- :'_class' => :'class',
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
- :'_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?(:'_class')
294
- self._class = attributes[:'_class']
295
- else
296
- self._class = nil
297
- end
298
-
299
- if attributes.key?(:'current_cpu_usage_percentage')
300
- self.current_cpu_usage_percentage = attributes[:'current_cpu_usage_percentage']
301
- end
302
-
303
- if attributes.key?(:'current_memory_usage_percentage')
304
- self.current_memory_usage_percentage = attributes[:'current_memory_usage_percentage']
305
- end
306
-
307
- if attributes.key?(:'current_disk_usage_percentage')
308
- self.current_disk_usage_percentage = attributes[:'current_disk_usage_percentage']
309
- end
310
-
311
- if attributes.key?(:'current_allocated_cpu')
312
- self.current_allocated_cpu = attributes[:'current_allocated_cpu']
313
- end
314
-
315
- if attributes.key?(:'current_allocated_memory_gi_b')
316
- self.current_allocated_memory_gi_b = attributes[:'current_allocated_memory_gi_b']
317
- end
318
-
319
- if attributes.key?(:'current_allocated_disk_gi_b')
320
- self.current_allocated_disk_gi_b = attributes[:'current_allocated_disk_gi_b']
321
- end
322
-
323
- if attributes.key?(:'current_snapshot_count')
324
- self.current_snapshot_count = attributes[:'current_snapshot_count']
325
- end
326
-
327
- if attributes.key?(:'current_started_sandboxes')
328
- self.current_started_sandboxes = attributes[:'current_started_sandboxes']
329
- end
330
-
331
- if attributes.key?(:'availability_score')
332
- self.availability_score = attributes[:'availability_score']
333
- end
334
-
335
- if attributes.key?(:'region')
336
- self.region = attributes[:'region']
337
- else
338
- self.region = nil
339
- end
340
-
341
- if attributes.key?(:'name')
342
- self.name = attributes[:'name']
343
- else
344
- self.name = nil
345
- end
346
-
347
- if attributes.key?(:'state')
348
- self.state = attributes[:'state']
349
- else
350
- self.state = nil
351
- end
352
-
353
- if attributes.key?(:'last_checked')
354
- self.last_checked = attributes[:'last_checked']
355
- end
356
-
357
- if attributes.key?(:'unschedulable')
358
- self.unschedulable = attributes[:'unschedulable']
359
- else
360
- self.unschedulable = nil
361
- end
362
-
363
- if attributes.key?(:'tags')
364
- if (value = attributes[:'tags']).is_a?(Array)
365
- self.tags = value
366
- end
367
- else
368
- self.tags = nil
369
- end
370
-
371
- if attributes.key?(:'created_at')
372
- self.created_at = attributes[:'created_at']
373
- else
374
- self.created_at = nil
375
- end
376
-
377
- if attributes.key?(:'updated_at')
378
- self.updated_at = attributes[:'updated_at']
379
- else
380
- self.updated_at = nil
381
- end
382
-
383
- if attributes.key?(:'version')
384
- self.version = attributes[:'version']
385
- else
386
- self.version = nil
387
- end
388
-
389
- if attributes.key?(:'api_version')
390
- self.api_version = attributes[:'api_version']
391
- else
392
- self.api_version = nil
393
- end
394
-
395
- if attributes.key?(:'runner_class')
396
- self.runner_class = attributes[:'runner_class']
397
- else
398
- self.runner_class = nil
399
- end
400
-
401
- if attributes.key?(:'app_version')
402
- self.app_version = attributes[:'app_version']
403
- end
404
-
405
- if attributes.key?(:'api_key')
406
- self.api_key = attributes[:'api_key']
407
- else
408
- self.api_key = nil
409
- end
410
-
411
- if attributes.key?(:'region_type')
412
- self.region_type = attributes[:'region_type']
413
- end
414
- end
415
-
416
- # Show invalid properties with the reasons. Usually used together with valid?
417
- # @return Array for valid properties with the reasons
418
- def list_invalid_properties
419
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
420
- invalid_properties = Array.new
421
- if @id.nil?
422
- invalid_properties.push('invalid value for "id", id cannot be nil.')
423
- end
424
-
425
- if @cpu.nil?
426
- invalid_properties.push('invalid value for "cpu", cpu cannot be nil.')
427
- end
428
-
429
- if @memory.nil?
430
- invalid_properties.push('invalid value for "memory", memory cannot be nil.')
431
- end
432
-
433
- if @disk.nil?
434
- invalid_properties.push('invalid value for "disk", disk cannot be nil.')
435
- end
436
-
437
- if @_class.nil?
438
- invalid_properties.push('invalid value for "_class", _class cannot be nil.')
439
- end
440
-
441
- if @region.nil?
442
- invalid_properties.push('invalid value for "region", region cannot be nil.')
443
- end
444
-
445
- if @name.nil?
446
- invalid_properties.push('invalid value for "name", name cannot be nil.')
447
- end
448
-
449
- if @state.nil?
450
- invalid_properties.push('invalid value for "state", state cannot be nil.')
451
- end
452
-
453
- if @unschedulable.nil?
454
- invalid_properties.push('invalid value for "unschedulable", unschedulable cannot be nil.')
455
- end
456
-
457
- if @tags.nil?
458
- invalid_properties.push('invalid value for "tags", tags cannot be nil.')
459
- end
460
-
461
- if @created_at.nil?
462
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
463
- end
464
-
465
- if @updated_at.nil?
466
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
467
- end
468
-
469
- if @version.nil?
470
- invalid_properties.push('invalid value for "version", version cannot be nil.')
471
- end
472
-
473
- if @api_version.nil?
474
- invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
475
- end
476
-
477
- if @runner_class.nil?
478
- invalid_properties.push('invalid value for "runner_class", runner_class cannot be nil.')
479
- end
480
-
481
- if @api_key.nil?
482
- invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
483
- end
484
-
485
- invalid_properties
486
- end
487
-
488
- # Check to see if the all the properties in the model are valid
489
- # @return true if the model is valid
490
- def valid?
491
- warn '[DEPRECATED] the `valid?` method is obsolete'
492
- return false if @id.nil?
493
- return false if @cpu.nil?
494
- return false if @memory.nil?
495
- return false if @disk.nil?
496
- return false if @_class.nil?
497
- return false if @region.nil?
498
- return false if @name.nil?
499
- return false if @state.nil?
500
- return false if @unschedulable.nil?
501
- return false if @tags.nil?
502
- return false if @created_at.nil?
503
- return false if @updated_at.nil?
504
- return false if @version.nil?
505
- return false if @api_version.nil?
506
- return false if @runner_class.nil?
507
- return false if @api_key.nil?
508
- true
509
- end
510
-
511
- # Custom attribute writer method with validation
512
- # @param [Object] id Value to be assigned
513
- def id=(id)
514
- if id.nil?
515
- fail ArgumentError, 'id cannot be nil'
516
- end
517
-
518
- @id = id
519
- end
520
-
521
- # Custom attribute writer method with validation
522
- # @param [Object] cpu Value to be assigned
523
- def cpu=(cpu)
524
- if cpu.nil?
525
- fail ArgumentError, 'cpu cannot be nil'
526
- end
527
-
528
- @cpu = cpu
529
- end
530
-
531
- # Custom attribute writer method with validation
532
- # @param [Object] memory Value to be assigned
533
- def memory=(memory)
534
- if memory.nil?
535
- fail ArgumentError, 'memory cannot be nil'
536
- end
537
-
538
- @memory = memory
539
- end
540
-
541
- # Custom attribute writer method with validation
542
- # @param [Object] disk Value to be assigned
543
- def disk=(disk)
544
- if disk.nil?
545
- fail ArgumentError, 'disk cannot be nil'
546
- end
547
-
548
- @disk = disk
549
- end
550
-
551
- # Custom attribute writer method with validation
552
- # @param [Object] _class Value to be assigned
553
- def _class=(_class)
554
- if _class.nil?
555
- fail ArgumentError, '_class cannot be nil'
556
- end
557
-
558
- @_class = _class
559
- end
560
-
561
- # Custom attribute writer method with validation
562
- # @param [Object] region Value to be assigned
563
- def region=(region)
564
- if region.nil?
565
- fail ArgumentError, 'region cannot be nil'
566
- end
567
-
568
- @region = region
569
- end
570
-
571
- # Custom attribute writer method with validation
572
- # @param [Object] name Value to be assigned
573
- def name=(name)
574
- if name.nil?
575
- fail ArgumentError, 'name cannot be nil'
576
- end
577
-
578
- @name = name
579
- end
580
-
581
- # Custom attribute writer method with validation
582
- # @param [Object] state Value to be assigned
583
- def state=(state)
584
- if state.nil?
585
- fail ArgumentError, 'state cannot be nil'
586
- end
587
-
588
- @state = state
589
- end
590
-
591
- # Custom attribute writer method with validation
592
- # @param [Object] unschedulable Value to be assigned
593
- def unschedulable=(unschedulable)
594
- if unschedulable.nil?
595
- fail ArgumentError, 'unschedulable cannot be nil'
596
- end
597
-
598
- @unschedulable = unschedulable
599
- end
600
-
601
- # Custom attribute writer method with validation
602
- # @param [Object] tags Value to be assigned
603
- def tags=(tags)
604
- if tags.nil?
605
- fail ArgumentError, 'tags cannot be nil'
606
- end
607
-
608
- @tags = tags
609
- end
610
-
611
- # Custom attribute writer method with validation
612
- # @param [Object] created_at Value to be assigned
613
- def created_at=(created_at)
614
- if created_at.nil?
615
- fail ArgumentError, 'created_at cannot be nil'
616
- end
617
-
618
- @created_at = created_at
619
- end
620
-
621
- # Custom attribute writer method with validation
622
- # @param [Object] updated_at Value to be assigned
623
- def updated_at=(updated_at)
624
- if updated_at.nil?
625
- fail ArgumentError, 'updated_at cannot be nil'
626
- end
627
-
628
- @updated_at = updated_at
629
- end
630
-
631
- # Custom attribute writer method with validation
632
- # @param [Object] version Value to be assigned
633
- def version=(version)
634
- if version.nil?
635
- fail ArgumentError, 'version cannot be nil'
636
- end
637
-
638
- @version = version
639
- end
640
-
641
- # Custom attribute writer method with validation
642
- # @param [Object] api_version Value to be assigned
643
- def api_version=(api_version)
644
- if api_version.nil?
645
- fail ArgumentError, 'api_version cannot be nil'
646
- end
647
-
648
- @api_version = api_version
649
- end
650
-
651
- # Custom attribute writer method with validation
652
- # @param [Object] runner_class Value to be assigned
653
- def runner_class=(runner_class)
654
- if runner_class.nil?
655
- fail ArgumentError, 'runner_class cannot be nil'
656
- end
657
-
658
- @runner_class = runner_class
659
- end
660
-
661
- # Custom attribute writer method with validation
662
- # @param [Object] api_key Value to be assigned
663
- def api_key=(api_key)
664
- if api_key.nil?
665
- fail ArgumentError, 'api_key cannot be nil'
666
- end
667
-
668
- @api_key = api_key
669
- end
670
-
671
- # Checks equality by comparing each attribute.
672
- # @param [Object] Object to be compared
673
- def ==(o)
674
- return true if self.equal?(o)
675
- self.class == o.class &&
676
- id == o.id &&
677
- domain == o.domain &&
678
- api_url == o.api_url &&
679
- proxy_url == o.proxy_url &&
680
- cpu == o.cpu &&
681
- memory == o.memory &&
682
- disk == o.disk &&
683
- gpu == o.gpu &&
684
- gpu_type == o.gpu_type &&
685
- _class == o._class &&
686
- current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
687
- current_memory_usage_percentage == o.current_memory_usage_percentage &&
688
- current_disk_usage_percentage == o.current_disk_usage_percentage &&
689
- current_allocated_cpu == o.current_allocated_cpu &&
690
- current_allocated_memory_gi_b == o.current_allocated_memory_gi_b &&
691
- current_allocated_disk_gi_b == o.current_allocated_disk_gi_b &&
692
- current_snapshot_count == o.current_snapshot_count &&
693
- current_started_sandboxes == o.current_started_sandboxes &&
694
- availability_score == o.availability_score &&
695
- region == o.region &&
696
- name == o.name &&
697
- state == o.state &&
698
- last_checked == o.last_checked &&
699
- unschedulable == o.unschedulable &&
700
- tags == o.tags &&
701
- created_at == o.created_at &&
702
- updated_at == o.updated_at &&
703
- version == o.version &&
704
- api_version == o.api_version &&
705
- runner_class == o.runner_class &&
706
- app_version == o.app_version &&
707
- api_key == o.api_key &&
708
- region_type == o.region_type
709
- end
710
-
711
- # @see the `==` method
712
- # @param [Object] Object to be compared
713
- def eql?(o)
714
- self == o
715
- end
716
-
717
- # Calculates hash code according to all attributes.
718
- # @return [Integer] Hash code
719
- def hash
720
- [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, _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
721
- end
722
-
723
- # Builds the object from hash
724
- # @param [Hash] attributes Model attributes in the form of hash
725
- # @return [Object] Returns the model itself
726
- def self.build_from_hash(attributes)
727
- return nil unless attributes.is_a?(Hash)
728
- attributes = attributes.transform_keys(&:to_sym)
729
- transformed_hash = {}
730
- openapi_types.each_pair do |key, type|
731
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
732
- transformed_hash["#{key}"] = nil
733
- elsif type =~ /\AArray<(.*)>/i
734
- # check to ensure the input is an array given that the attribute
735
- # is documented as an array but the input is not
736
- if attributes[attribute_map[key]].is_a?(Array)
737
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
738
- end
739
- elsif !attributes[attribute_map[key]].nil?
740
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
741
- end
742
- end
743
- new(transformed_hash)
744
- end
745
-
746
- # Returns the object in the form of hash
747
- # @return [Hash] Returns the object in the form of hash
748
- def to_hash
749
- hash = {}
750
- self.class.attribute_map.each_pair do |attr, param|
751
- value = self.send(attr)
752
- if value.nil?
753
- is_nullable = self.class.openapi_nullable.include?(attr)
754
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
755
- end
756
-
757
- hash[param] = _to_hash(value)
758
- end
759
- hash
760
- end
761
-
762
- end
763
-
764
- end