daytona_api_client 0.205.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +101 -0
  4. data/daytona_api_client.gemspec +4 -4
  5. data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
  6. data/lib/daytona_api_client/api/audit_api.rb +98 -55
  7. data/lib/daytona_api_client/api/config_api.rb +1 -1
  8. data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
  9. data/lib/daytona_api_client/api/health_api.rb +3 -54
  10. data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
  11. data/lib/daytona_api_client/api/organizations_api.rb +310 -1846
  12. data/lib/daytona_api_client/api/preview_api.rb +8 -202
  13. data/lib/daytona_api_client/api/runners_api.rb +22 -470
  14. data/lib/daytona_api_client/api/sandbox_api.rb +434 -2354
  15. data/lib/daytona_api_client/api/snapshots_api.rb +113 -42
  16. data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
  17. data/lib/daytona_api_client/api/users_api.rb +153 -89
  18. data/lib/daytona_api_client/api/volumes_api.rb +2 -2
  19. data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
  20. data/lib/daytona_api_client/api/workspace_api.rb +955 -0
  21. data/lib/daytona_api_client/api_client.rb +4 -8
  22. data/lib/daytona_api_client/api_error.rb +1 -1
  23. data/lib/daytona_api_client/configuration.rb +2 -5
  24. data/lib/daytona_api_client/models/account_provider.rb +74 -3
  25. data/lib/daytona_api_client/models/announcement.rb +74 -3
  26. data/lib/daytona_api_client/models/api_key_list.rb +74 -3
  27. data/lib/daytona_api_client/models/api_key_response.rb +74 -3
  28. data/lib/daytona_api_client/models/audit_log.rb +75 -22
  29. data/lib/daytona_api_client/models/build_info.rb +78 -34
  30. data/lib/daytona_api_client/models/{create_runner_response.rb → command.rb} +104 -23
  31. data/lib/daytona_api_client/models/completion_context.rb +244 -0
  32. data/lib/daytona_api_client/models/completion_item.rb +289 -0
  33. data/lib/daytona_api_client/models/{paginated_traces.rb → completion_list.rb} +106 -91
  34. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
  35. data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
  36. data/lib/daytona_api_client/models/{available_sandbox_class.rb → computer_use_status_response.rb} +97 -86
  37. data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
  38. data/lib/daytona_api_client/models/create_api_key.rb +75 -4
  39. data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
  40. data/lib/daytona_api_client/models/create_build_info.rb +74 -3
  41. data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
  42. data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
  43. data/lib/daytona_api_client/models/create_organization.rb +78 -34
  44. data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
  45. data/lib/daytona_api_client/models/create_organization_quota.rb +78 -26
  46. data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
  47. data/lib/daytona_api_client/models/create_runner.rb +386 -43
  48. data/lib/daytona_api_client/models/create_sandbox.rb +117 -108
  49. data/lib/daytona_api_client/models/{signed_port_preview_url.rb → create_session_request.rb} +93 -103
  50. data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
  51. data/lib/daytona_api_client/models/create_user.rb +97 -40
  52. data/lib/daytona_api_client/models/create_volume.rb +74 -3
  53. data/lib/daytona_api_client/models/create_workspace.rb +411 -0
  54. data/lib/daytona_api_client/models/daytona_configuration.rb +78 -96
  55. data/lib/daytona_api_client/models/{runner_service_health.rb → display_info_response.rb} +95 -59
  56. data/lib/daytona_api_client/models/docker_registry.rb +76 -5
  57. data/lib/daytona_api_client/models/{paginated_jobs.rb → download_files.rb} +94 -100
  58. data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
  59. data/lib/daytona_api_client/models/execute_response.rb +263 -0
  60. data/lib/daytona_api_client/models/file_info.rb +417 -0
  61. data/lib/daytona_api_client/models/{secret.rb → file_status.rb} +122 -121
  62. data/lib/daytona_api_client/models/git_add_request.rb +264 -0
  63. data/lib/daytona_api_client/models/{admin_create_organization.rb → git_branch_request.rb} +95 -53
  64. data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
  65. data/lib/daytona_api_client/models/{toolbox_proxy_url.rb → git_clone_request.rb} +142 -10
  66. data/lib/daytona_api_client/models/{trace_span.rb → git_commit_info.rb} +148 -141
  67. data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
  68. data/lib/daytona_api_client/models/{runner_healthcheck.rb → git_commit_response.rb} +92 -74
  69. data/lib/daytona_api_client/models/{create_secret.rb → git_delete_branch_request.rb} +106 -59
  70. data/lib/daytona_api_client/models/{snapshot_manager_credentials.rb → git_repo_request.rb} +96 -35
  71. data/lib/daytona_api_client/models/git_status.rb +290 -0
  72. data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
  73. data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
  74. data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
  75. data/lib/daytona_api_client/models/{oidc_id_p_config_response.rb → keyboard_hotkey_request.rb} +93 -59
  76. data/lib/daytona_api_client/models/{create_region_response.rb → keyboard_press_request.rb} +102 -63
  77. data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
  78. data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
  79. data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
  80. data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
  81. data/lib/daytona_api_client/models/lsp_location.rb +261 -0
  82. data/lib/daytona_api_client/models/lsp_server_request.rb +263 -0
  83. data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → lsp_symbol.rb} +132 -22
  84. data/lib/daytona_api_client/models/match.rb +287 -0
  85. data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
  86. data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
  87. data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
  88. data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
  89. data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
  90. data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
  91. data/lib/daytona_api_client/models/mouse_position.rb +263 -0
  92. data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
  93. data/lib/daytona_api_client/models/{test_identity_provider_connection_response.rb → mouse_scroll_response.rb} +81 -30
  94. data/lib/daytona_api_client/models/oidc_config.rb +74 -3
  95. data/lib/daytona_api_client/models/organization.rb +159 -270
  96. data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
  97. data/lib/daytona_api_client/models/organization_role.rb +74 -3
  98. data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +74 -3
  99. data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
  100. data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
  101. data/lib/daytona_api_client/models/organization_user.rb +76 -5
  102. data/lib/daytona_api_client/models/paginated_audit_logs.rb +78 -17
  103. data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
  104. data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
  105. data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +77 -10
  106. data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
  107. data/lib/daytona_api_client/models/position.rb +261 -0
  108. data/lib/daytona_api_client/models/posthog_config.rb +74 -3
  109. data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
  110. data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
  111. data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
  112. data/lib/daytona_api_client/models/process_status_response.rb +263 -0
  113. data/lib/daytona_api_client/models/{update_last_activity.rb → project_dir_response.rb} +83 -13
  114. data/lib/daytona_api_client/models/{pending_sso_link.rb → pty_create_request.rb} +114 -109
  115. data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
  116. data/lib/daytona_api_client/models/{metric_data_point.rb → pty_list_response.rb} +95 -49
  117. data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
  118. data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
  119. data/lib/daytona_api_client/models/range.rb +261 -0
  120. data/lib/daytona_api_client/models/region.rb +78 -192
  121. data/lib/daytona_api_client/models/{regenerate_api_key_response.rb → region_screenshot_response.rb} +113 -22
  122. data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
  123. data/lib/daytona_api_client/models/replace_request.rb +289 -0
  124. data/lib/daytona_api_client/models/{oidc_id_p_config.rb → replace_result.rb} +95 -88
  125. data/lib/daytona_api_client/models/runner.rb +215 -155
  126. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
  127. data/lib/daytona_api_client/models/runner_state.rb +3 -4
  128. data/lib/daytona_api_client/models/sandbox.rb +101 -206
  129. data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
  130. data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -5
  131. data/lib/daytona_api_client/models/{create_region.rb → sandbox_info.rb} +113 -49
  132. data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
  133. data/lib/daytona_api_client/models/sandbox_state.rb +3 -10
  134. data/lib/daytona_api_client/models/sandbox_volume.rb +79 -18
  135. data/lib/daytona_api_client/models/screenshot_response.rb +256 -0
  136. data/lib/daytona_api_client/models/{audit_target_scenario.rb → search_files_response.rb} +95 -66
  137. data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
  138. data/lib/daytona_api_client/models/session.rb +251 -0
  139. data/lib/daytona_api_client/models/{list_sandboxes_response.rb → session_execute_request.rb} +110 -34
  140. data/lib/daytona_api_client/models/{organization_sso_enabled.rb → session_execute_response.rb} +104 -30
  141. data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
  142. data/lib/daytona_api_client/models/snapshot_dto.rb +78 -84
  143. data/lib/daytona_api_client/models/snapshot_state.rb +6 -5
  144. data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
  145. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
  146. data/lib/daytona_api_client/models/storage_access_dto.rb +78 -34
  147. data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
  148. data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
  149. data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
  150. data/lib/daytona_api_client/models/update_organization_quota.rb +115 -131
  151. data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
  152. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
  153. data/lib/daytona_api_client/models/user.rb +75 -41
  154. data/lib/daytona_api_client/models/{list_secrets_response.rb → user_home_dir_response.rb} +83 -72
  155. data/lib/daytona_api_client/models/user_public_key.rb +74 -3
  156. data/lib/daytona_api_client/models/volume_dto.rb +74 -3
  157. data/lib/daytona_api_client/models/volume_state.rb +3 -4
  158. data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
  159. data/lib/daytona_api_client/models/{preview_warning.rb → webhook_controller_get_status200_response.rb} +76 -23
  160. data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
  161. data/lib/daytona_api_client/models/windows_response.rb +265 -0
  162. data/lib/daytona_api_client/models/{update_job_status.rb → work_dir_response.rb} +83 -72
  163. data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +299 -222
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +76 -87
  166. data/project.json +13 -38
  167. metadata +83 -98
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -176
  170. data/.openapi-generator/VERSION +0 -1
  171. data/.openapi-generator-ignore +0 -31
  172. data/.rspec +0 -2
  173. data/.rubocop.yml +0 -148
  174. data/fix-gemspec.sh +0 -11
  175. data/lib/daytona_api_client/api/admin_api.rb +0 -1618
  176. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  177. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  178. data/lib/daytona_api_client/api/secret_api.rb +0 -441
  179. data/lib/daytona_api_client/api/warm_pools_api.rb +0 -286
  180. data/lib/daytona_api_client/api_model_base.rb +0 -88
  181. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
  182. data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
  183. data/lib/daytona_api_client/models/audit_scenarios.rb +0 -167
  184. data/lib/daytona_api_client/models/create_identity_provider.rb +0 -269
  185. data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
  186. data/lib/daytona_api_client/models/date_filter.rb +0 -178
  187. data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
  188. data/lib/daytona_api_client/models/gpu_type.rb +0 -44
  189. data/lib/daytona_api_client/models/identity_provider.rb +0 -439
  190. data/lib/daytona_api_client/models/int_filter.rb +0 -222
  191. data/lib/daytona_api_client/models/job.rb +0 -366
  192. data/lib/daytona_api_client/models/job_status.rb +0 -43
  193. data/lib/daytona_api_client/models/job_type.rb +0 -55
  194. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  195. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  196. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  197. data/lib/daytona_api_client/models/organization_preview_warning.rb +0 -165
  198. data/lib/daytona_api_client/models/otel_config.rb +0 -188
  199. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  200. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  201. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  202. data/lib/daytona_api_client/models/region_quota.rb +0 -453
  203. data/lib/daytona_api_client/models/region_type.rb +0 -42
  204. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
  205. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
  206. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  207. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  208. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  209. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  210. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  211. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  212. data/lib/daytona_api_client/models/sso_oidc_config.rb +0 -192
  213. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  214. data/lib/daytona_api_client/models/test_identity_provider_connection.rb +0 -165
  215. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  216. data/lib/daytona_api_client/models/update_identity_provider.rb +0 -212
  217. data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +0 -178
  218. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  219. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
  220. data/lib/daytona_api_client/models/update_region.rb +0 -182
  221. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  222. data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
  223. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  224. data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
  225. data/lib/daytona_api_client/models/url.rb +0 -165
  226. data/lib/daytona_api_client/models/warm_pool.rb +0 -490
  227. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
@@ -1,310 +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 TraceSummary < ApiModelBase
18
- # Unique trace identifier
19
- attr_accessor :trace_id
20
-
21
- # Name of the root span
22
- attr_accessor :root_span_name
23
-
24
- # Trace start time
25
- attr_accessor :start_time
26
-
27
- # Trace end time
28
- attr_accessor :end_time
29
-
30
- # Total duration in milliseconds
31
- attr_accessor :duration_ms
32
-
33
- # Number of spans in this trace
34
- attr_accessor :span_count
35
-
36
- # Status code of the trace
37
- attr_accessor :status_code
38
-
39
- # Attribute mapping from ruby-style variable name to JSON key.
40
- def self.attribute_map
41
- {
42
- :'trace_id' => :'traceId',
43
- :'root_span_name' => :'rootSpanName',
44
- :'start_time' => :'startTime',
45
- :'end_time' => :'endTime',
46
- :'duration_ms' => :'durationMs',
47
- :'span_count' => :'spanCount',
48
- :'status_code' => :'statusCode'
49
- }
50
- end
51
-
52
- # Returns attribute mapping this model knows about
53
- def self.acceptable_attribute_map
54
- attribute_map
55
- end
56
-
57
- # Returns all the JSON keys this model knows about
58
- def self.acceptable_attributes
59
- acceptable_attribute_map.values
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'trace_id' => :'String',
66
- :'root_span_name' => :'String',
67
- :'start_time' => :'String',
68
- :'end_time' => :'String',
69
- :'duration_ms' => :'Float',
70
- :'span_count' => :'Float',
71
- :'status_code' => :'String'
72
- }
73
- end
74
-
75
- # List of attributes with nullable: true
76
- def self.openapi_nullable
77
- Set.new([
78
- ])
79
- end
80
-
81
- # Initializes the object
82
- # @param [Hash] attributes Model attributes in the form of hash
83
- def initialize(attributes = {})
84
- if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::TraceSummary` initialize method"
86
- end
87
-
88
- # check to see if the attribute exists and convert string to symbol for hash key
89
- acceptable_attribute_map = self.class.acceptable_attribute_map
90
- attributes = attributes.each_with_object({}) { |(k, v), h|
91
- if (!acceptable_attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::TraceSummary`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
- end
94
- h[k.to_sym] = v
95
- }
96
-
97
- if attributes.key?(:'trace_id')
98
- self.trace_id = attributes[:'trace_id']
99
- else
100
- self.trace_id = nil
101
- end
102
-
103
- if attributes.key?(:'root_span_name')
104
- self.root_span_name = attributes[:'root_span_name']
105
- else
106
- self.root_span_name = nil
107
- end
108
-
109
- if attributes.key?(:'start_time')
110
- self.start_time = attributes[:'start_time']
111
- else
112
- self.start_time = nil
113
- end
114
-
115
- if attributes.key?(:'end_time')
116
- self.end_time = attributes[:'end_time']
117
- else
118
- self.end_time = nil
119
- end
120
-
121
- if attributes.key?(:'duration_ms')
122
- self.duration_ms = attributes[:'duration_ms']
123
- else
124
- self.duration_ms = nil
125
- end
126
-
127
- if attributes.key?(:'span_count')
128
- self.span_count = attributes[:'span_count']
129
- else
130
- self.span_count = nil
131
- end
132
-
133
- if attributes.key?(:'status_code')
134
- self.status_code = attributes[:'status_code']
135
- end
136
- end
137
-
138
- # Show invalid properties with the reasons. Usually used together with valid?
139
- # @return Array for valid properties with the reasons
140
- def list_invalid_properties
141
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
142
- invalid_properties = Array.new
143
- if @trace_id.nil?
144
- invalid_properties.push('invalid value for "trace_id", trace_id cannot be nil.')
145
- end
146
-
147
- if @root_span_name.nil?
148
- invalid_properties.push('invalid value for "root_span_name", root_span_name cannot be nil.')
149
- end
150
-
151
- if @start_time.nil?
152
- invalid_properties.push('invalid value for "start_time", start_time cannot be nil.')
153
- end
154
-
155
- if @end_time.nil?
156
- invalid_properties.push('invalid value for "end_time", end_time cannot be nil.')
157
- end
158
-
159
- if @duration_ms.nil?
160
- invalid_properties.push('invalid value for "duration_ms", duration_ms cannot be nil.')
161
- end
162
-
163
- if @span_count.nil?
164
- invalid_properties.push('invalid value for "span_count", span_count cannot be nil.')
165
- end
166
-
167
- invalid_properties
168
- end
169
-
170
- # Check to see if the all the properties in the model are valid
171
- # @return true if the model is valid
172
- def valid?
173
- warn '[DEPRECATED] the `valid?` method is obsolete'
174
- return false if @trace_id.nil?
175
- return false if @root_span_name.nil?
176
- return false if @start_time.nil?
177
- return false if @end_time.nil?
178
- return false if @duration_ms.nil?
179
- return false if @span_count.nil?
180
- true
181
- end
182
-
183
- # Custom attribute writer method with validation
184
- # @param [Object] trace_id Value to be assigned
185
- def trace_id=(trace_id)
186
- if trace_id.nil?
187
- fail ArgumentError, 'trace_id cannot be nil'
188
- end
189
-
190
- @trace_id = trace_id
191
- end
192
-
193
- # Custom attribute writer method with validation
194
- # @param [Object] root_span_name Value to be assigned
195
- def root_span_name=(root_span_name)
196
- if root_span_name.nil?
197
- fail ArgumentError, 'root_span_name cannot be nil'
198
- end
199
-
200
- @root_span_name = root_span_name
201
- end
202
-
203
- # Custom attribute writer method with validation
204
- # @param [Object] start_time Value to be assigned
205
- def start_time=(start_time)
206
- if start_time.nil?
207
- fail ArgumentError, 'start_time cannot be nil'
208
- end
209
-
210
- @start_time = start_time
211
- end
212
-
213
- # Custom attribute writer method with validation
214
- # @param [Object] end_time Value to be assigned
215
- def end_time=(end_time)
216
- if end_time.nil?
217
- fail ArgumentError, 'end_time cannot be nil'
218
- end
219
-
220
- @end_time = end_time
221
- end
222
-
223
- # Custom attribute writer method with validation
224
- # @param [Object] duration_ms Value to be assigned
225
- def duration_ms=(duration_ms)
226
- if duration_ms.nil?
227
- fail ArgumentError, 'duration_ms cannot be nil'
228
- end
229
-
230
- @duration_ms = duration_ms
231
- end
232
-
233
- # Custom attribute writer method with validation
234
- # @param [Object] span_count Value to be assigned
235
- def span_count=(span_count)
236
- if span_count.nil?
237
- fail ArgumentError, 'span_count cannot be nil'
238
- end
239
-
240
- @span_count = span_count
241
- end
242
-
243
- # Checks equality by comparing each attribute.
244
- # @param [Object] Object to be compared
245
- def ==(o)
246
- return true if self.equal?(o)
247
- self.class == o.class &&
248
- trace_id == o.trace_id &&
249
- root_span_name == o.root_span_name &&
250
- start_time == o.start_time &&
251
- end_time == o.end_time &&
252
- duration_ms == o.duration_ms &&
253
- span_count == o.span_count &&
254
- status_code == o.status_code
255
- end
256
-
257
- # @see the `==` method
258
- # @param [Object] Object to be compared
259
- def eql?(o)
260
- self == o
261
- end
262
-
263
- # Calculates hash code according to all attributes.
264
- # @return [Integer] Hash code
265
- def hash
266
- [trace_id, root_span_name, start_time, end_time, duration_ms, span_count, status_code].hash
267
- end
268
-
269
- # Builds the object from hash
270
- # @param [Hash] attributes Model attributes in the form of hash
271
- # @return [Object] Returns the model itself
272
- def self.build_from_hash(attributes)
273
- return nil unless attributes.is_a?(Hash)
274
- attributes = attributes.transform_keys(&:to_sym)
275
- transformed_hash = {}
276
- openapi_types.each_pair do |key, type|
277
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
278
- transformed_hash["#{key}"] = nil
279
- elsif type =~ /\AArray<(.*)>/i
280
- # check to ensure the input is an array given that the attribute
281
- # is documented as an array but the input is not
282
- if attributes[attribute_map[key]].is_a?(Array)
283
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
284
- end
285
- elsif !attributes[attribute_map[key]].nil?
286
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
287
- end
288
- end
289
- new(transformed_hash)
290
- end
291
-
292
- # Returns the object in the form of hash
293
- # @return [Hash] Returns the object in the form of hash
294
- def to_hash
295
- hash = {}
296
- self.class.attribute_map.each_pair do |attr, param|
297
- value = self.send(attr)
298
- if value.nil?
299
- is_nullable = self.class.openapi_nullable.include?(attr)
300
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
301
- end
302
-
303
- hash[param] = _to_hash(value)
304
- end
305
- hash
306
- end
307
-
308
- end
309
-
310
- end
@@ -1,212 +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 UpdateIdentityProvider < ApiModelBase
18
- # Display name for the identity provider
19
- attr_accessor :name
20
-
21
- # OIDC configuration
22
- attr_accessor :oidc_config
23
-
24
- # Email domains used for IdP discovery on the login form and to validate the user identity returned by the IdP. If provided and `allowAnyDomain` is not being set to true, must contain at least one domain. To clear domains in the same request, set `allowAnyDomain: true` and `emailDomains: []`.
25
- attr_accessor :email_domains
26
-
27
- # When true, the IdP accepts any email domain returned by the external provider. Disables the post-callback domain check and allows `emailDomains` to be empty. Only enable for trusted IdPs that strictly control which users can authenticate.
28
- attr_accessor :allow_any_domain
29
-
30
- # When true, skip the `email_verified` claim check on SSO logins through this identity provider. Only intended for providers that never emit the claim (e.g. Microsoft Entra ID). Risky: only enable if the IdP strictly controls its users' email addresses.
31
- attr_accessor :trust_email_verified
32
-
33
- # Organization role IDs assigned to users who join the organization via SSO through this identity provider. Roles must be global or belong to this organization. Empty grants the lowest access: membership with no resource permissions.
34
- attr_accessor :default_assigned_role_ids
35
-
36
- # Whether the identity provider is enabled
37
- attr_accessor :enabled
38
-
39
- # Attribute mapping from ruby-style variable name to JSON key.
40
- def self.attribute_map
41
- {
42
- :'name' => :'name',
43
- :'oidc_config' => :'oidcConfig',
44
- :'email_domains' => :'emailDomains',
45
- :'allow_any_domain' => :'allowAnyDomain',
46
- :'trust_email_verified' => :'trustEmailVerified',
47
- :'default_assigned_role_ids' => :'defaultAssignedRoleIds',
48
- :'enabled' => :'enabled'
49
- }
50
- end
51
-
52
- # Returns attribute mapping this model knows about
53
- def self.acceptable_attribute_map
54
- attribute_map
55
- end
56
-
57
- # Returns all the JSON keys this model knows about
58
- def self.acceptable_attributes
59
- acceptable_attribute_map.values
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'name' => :'String',
66
- :'oidc_config' => :'UpdateOidcIdPConfig',
67
- :'email_domains' => :'Array<String>',
68
- :'allow_any_domain' => :'Boolean',
69
- :'trust_email_verified' => :'Boolean',
70
- :'default_assigned_role_ids' => :'Array<String>',
71
- :'enabled' => :'Boolean'
72
- }
73
- end
74
-
75
- # List of attributes with nullable: true
76
- def self.openapi_nullable
77
- Set.new([
78
- ])
79
- end
80
-
81
- # Initializes the object
82
- # @param [Hash] attributes Model attributes in the form of hash
83
- def initialize(attributes = {})
84
- if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateIdentityProvider` initialize method"
86
- end
87
-
88
- # check to see if the attribute exists and convert string to symbol for hash key
89
- acceptable_attribute_map = self.class.acceptable_attribute_map
90
- attributes = attributes.each_with_object({}) { |(k, v), h|
91
- if (!acceptable_attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateIdentityProvider`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
- end
94
- h[k.to_sym] = v
95
- }
96
-
97
- if attributes.key?(:'name')
98
- self.name = attributes[:'name']
99
- end
100
-
101
- if attributes.key?(:'oidc_config')
102
- self.oidc_config = attributes[:'oidc_config']
103
- end
104
-
105
- if attributes.key?(:'email_domains')
106
- if (value = attributes[:'email_domains']).is_a?(Array)
107
- self.email_domains = value
108
- end
109
- end
110
-
111
- if attributes.key?(:'allow_any_domain')
112
- self.allow_any_domain = attributes[:'allow_any_domain']
113
- end
114
-
115
- if attributes.key?(:'trust_email_verified')
116
- self.trust_email_verified = attributes[:'trust_email_verified']
117
- end
118
-
119
- if attributes.key?(:'default_assigned_role_ids')
120
- if (value = attributes[:'default_assigned_role_ids']).is_a?(Array)
121
- self.default_assigned_role_ids = value
122
- end
123
- end
124
-
125
- if attributes.key?(:'enabled')
126
- self.enabled = attributes[:'enabled']
127
- end
128
- end
129
-
130
- # Show invalid properties with the reasons. Usually used together with valid?
131
- # @return Array for valid properties with the reasons
132
- def list_invalid_properties
133
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
134
- invalid_properties = Array.new
135
- invalid_properties
136
- end
137
-
138
- # Check to see if the all the properties in the model are valid
139
- # @return true if the model is valid
140
- def valid?
141
- warn '[DEPRECATED] the `valid?` method is obsolete'
142
- true
143
- end
144
-
145
- # Checks equality by comparing each attribute.
146
- # @param [Object] Object to be compared
147
- def ==(o)
148
- return true if self.equal?(o)
149
- self.class == o.class &&
150
- name == o.name &&
151
- oidc_config == o.oidc_config &&
152
- email_domains == o.email_domains &&
153
- allow_any_domain == o.allow_any_domain &&
154
- trust_email_verified == o.trust_email_verified &&
155
- default_assigned_role_ids == o.default_assigned_role_ids &&
156
- enabled == o.enabled
157
- end
158
-
159
- # @see the `==` method
160
- # @param [Object] Object to be compared
161
- def eql?(o)
162
- self == o
163
- end
164
-
165
- # Calculates hash code according to all attributes.
166
- # @return [Integer] Hash code
167
- def hash
168
- [name, oidc_config, email_domains, allow_any_domain, trust_email_verified, default_assigned_role_ids, enabled].hash
169
- end
170
-
171
- # Builds the object from hash
172
- # @param [Hash] attributes Model attributes in the form of hash
173
- # @return [Object] Returns the model itself
174
- def self.build_from_hash(attributes)
175
- return nil unless attributes.is_a?(Hash)
176
- attributes = attributes.transform_keys(&:to_sym)
177
- transformed_hash = {}
178
- openapi_types.each_pair do |key, type|
179
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
- transformed_hash["#{key}"] = nil
181
- elsif type =~ /\AArray<(.*)>/i
182
- # check to ensure the input is an array given that the attribute
183
- # is documented as an array but the input is not
184
- if attributes[attribute_map[key]].is_a?(Array)
185
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
- end
187
- elsif !attributes[attribute_map[key]].nil?
188
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
- end
190
- end
191
- new(transformed_hash)
192
- end
193
-
194
- # Returns the object in the form of hash
195
- # @return [Hash] Returns the object in the form of hash
196
- def to_hash
197
- hash = {}
198
- self.class.attribute_map.each_pair do |attr, param|
199
- value = self.send(attr)
200
- if value.nil?
201
- is_nullable = self.class.openapi_nullable.include?(attr)
202
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
- end
204
-
205
- hash[param] = _to_hash(value)
206
- end
207
- hash
208
- end
209
-
210
- end
211
-
212
- end
@@ -1,178 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class UpdateOidcIdPConfig < ApiModelBase
18
- # OIDC Issuer URL
19
- attr_accessor :issuer_url
20
-
21
- # OAuth Client ID
22
- attr_accessor :client_id
23
-
24
- # OAuth Client Secret
25
- attr_accessor :client_secret
26
-
27
- # OAuth scopes
28
- attr_accessor :scope
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
- :'issuer_url' => :'issuerUrl',
34
- :'client_id' => :'clientId',
35
- :'client_secret' => :'clientSecret',
36
- :'scope' => :'scope'
37
- }
38
- end
39
-
40
- # Returns attribute mapping this model knows about
41
- def self.acceptable_attribute_map
42
- attribute_map
43
- end
44
-
45
- # Returns all the JSON keys this model knows about
46
- def self.acceptable_attributes
47
- acceptable_attribute_map.values
48
- end
49
-
50
- # Attribute type mapping.
51
- def self.openapi_types
52
- {
53
- :'issuer_url' => :'String',
54
- :'client_id' => :'String',
55
- :'client_secret' => :'String',
56
- :'scope' => :'String'
57
- }
58
- end
59
-
60
- # List of attributes with nullable: true
61
- def self.openapi_nullable
62
- Set.new([
63
- ])
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateOidcIdPConfig` initialize method"
71
- end
72
-
73
- # check to see if the attribute exists and convert string to symbol for hash key
74
- acceptable_attribute_map = self.class.acceptable_attribute_map
75
- attributes = attributes.each_with_object({}) { |(k, v), h|
76
- if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateOidcIdPConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
- end
79
- h[k.to_sym] = v
80
- }
81
-
82
- if attributes.key?(:'issuer_url')
83
- self.issuer_url = attributes[:'issuer_url']
84
- end
85
-
86
- if attributes.key?(:'client_id')
87
- self.client_id = attributes[:'client_id']
88
- end
89
-
90
- if attributes.key?(:'client_secret')
91
- self.client_secret = attributes[:'client_secret']
92
- end
93
-
94
- if attributes.key?(:'scope')
95
- self.scope = attributes[:'scope']
96
- end
97
- end
98
-
99
- # Show invalid properties with the reasons. Usually used together with valid?
100
- # @return Array for valid properties with the reasons
101
- def list_invalid_properties
102
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
- invalid_properties = Array.new
104
- invalid_properties
105
- end
106
-
107
- # Check to see if the all the properties in the model are valid
108
- # @return true if the model is valid
109
- def valid?
110
- warn '[DEPRECATED] the `valid?` method is obsolete'
111
- true
112
- end
113
-
114
- # Checks equality by comparing each attribute.
115
- # @param [Object] Object to be compared
116
- def ==(o)
117
- return true if self.equal?(o)
118
- self.class == o.class &&
119
- issuer_url == o.issuer_url &&
120
- client_id == o.client_id &&
121
- client_secret == o.client_secret &&
122
- scope == o.scope
123
- end
124
-
125
- # @see the `==` method
126
- # @param [Object] Object to be compared
127
- def eql?(o)
128
- self == o
129
- end
130
-
131
- # Calculates hash code according to all attributes.
132
- # @return [Integer] Hash code
133
- def hash
134
- [issuer_url, client_id, client_secret, scope].hash
135
- end
136
-
137
- # Builds the object from hash
138
- # @param [Hash] attributes Model attributes in the form of hash
139
- # @return [Object] Returns the model itself
140
- def self.build_from_hash(attributes)
141
- return nil unless attributes.is_a?(Hash)
142
- attributes = attributes.transform_keys(&:to_sym)
143
- transformed_hash = {}
144
- openapi_types.each_pair do |key, type|
145
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
146
- transformed_hash["#{key}"] = nil
147
- elsif type =~ /\AArray<(.*)>/i
148
- # check to ensure the input is an array given that the attribute
149
- # is documented as an array but the input is not
150
- if attributes[attribute_map[key]].is_a?(Array)
151
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
152
- end
153
- elsif !attributes[attribute_map[key]].nil?
154
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
155
- end
156
- end
157
- new(transformed_hash)
158
- end
159
-
160
- # Returns the object in the form of hash
161
- # @return [Hash] Returns the object in the form of hash
162
- def to_hash
163
- hash = {}
164
- self.class.attribute_map.each_pair do |attr, param|
165
- value = self.send(attr)
166
- if value.nil?
167
- is_nullable = self.class.openapi_nullable.include?(attr)
168
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
169
- end
170
-
171
- hash[param] = _to_hash(value)
172
- end
173
- hash
174
- end
175
-
176
- end
177
-
178
- end