daytona_api_client 0.134.0.alpha.1 → 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 (77) 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/audit_api.rb +66 -18
  6. data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
  7. data/lib/daytona_api_client/api/organizations_api.rb +29 -754
  8. data/lib/daytona_api_client/api/preview_api.rb +5 -74
  9. data/lib/daytona_api_client/api/runners_api.rb +20 -343
  10. data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
  11. data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
  12. data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
  13. data/lib/daytona_api_client/api/workspace_api.rb +3 -3
  14. data/lib/daytona_api_client/models/build_info.rb +4 -31
  15. data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
  16. data/lib/daytona_api_client/models/create_organization.rb +4 -31
  17. data/lib/daytona_api_client/models/create_runner.rb +315 -31
  18. data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
  19. data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
  20. data/lib/daytona_api_client/models/create_user.rb +1 -10
  21. data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
  22. data/lib/daytona_api_client/models/organization.rb +85 -53
  23. data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
  24. data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
  25. data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
  26. data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
  27. data/lib/daytona_api_client/models/region.rb +4 -178
  28. data/lib/daytona_api_client/models/runner.rb +117 -79
  29. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
  30. data/lib/daytona_api_client/models/sandbox.rb +14 -51
  31. data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
  32. data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
  33. data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
  34. data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
  35. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
  36. data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
  37. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
  38. data/lib/daytona_api_client/models/workspace.rb +35 -45
  39. data/lib/daytona_api_client/version.rb +1 -1
  40. data/lib/daytona_api_client.rb +1 -30
  41. data/project.json +6 -34
  42. metadata +5 -38
  43. data/.gitignore +0 -39
  44. data/.openapi-generator/FILES +0 -194
  45. data/.openapi-generator/VERSION +0 -1
  46. data/.openapi-generator-ignore +0 -31
  47. data/.rspec +0 -2
  48. data/.rubocop.yml +0 -148
  49. data/fix-gemspec.sh +0 -11
  50. data/lib/daytona_api_client/api/admin_api.rb +0 -325
  51. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  52. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  53. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
  54. data/lib/daytona_api_client/models/create_region.rb +0 -269
  55. data/lib/daytona_api_client/models/create_region_response.rb +0 -280
  56. data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
  57. data/lib/daytona_api_client/models/job_status.rb +0 -42
  58. data/lib/daytona_api_client/models/job_type.rb +0 -49
  59. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
  60. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
  61. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
  62. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
  63. data/lib/daytona_api_client/models/region_quota.rb +0 -339
  64. data/lib/daytona_api_client/models/region_type.rb +0 -41
  65. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
  66. data/lib/daytona_api_client/models/runner_full.rb +0 -779
  67. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
  68. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
  69. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
  70. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
  71. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
  72. data/lib/daytona_api_client/models/update_job_status.rb +0 -278
  73. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
  74. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
  75. data/lib/daytona_api_client/models/update_region.rb +0 -242
  76. data/lib/daytona_api_client/models/url.rb +0 -236
  77. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
@@ -353,7 +353,7 @@ module DaytonaApiClient
353
353
  # @param port [Float] Port number to get preview URL for
354
354
  # @param [Hash] opts the optional parameters
355
355
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
356
- # @return [WorkspacePortPreviewUrl]
356
+ # @return [PortPreviewUrl]
357
357
  def get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {})
358
358
  data, _status_code, _headers = get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts)
359
359
  data
@@ -364,7 +364,7 @@ module DaytonaApiClient
364
364
  # @param port [Float] Port number to get preview URL for
365
365
  # @param [Hash] opts the optional parameters
366
366
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
367
- # @return [Array<(WorkspacePortPreviewUrl, Integer, Hash)>] WorkspacePortPreviewUrl data, response status code and response headers
367
+ # @return [Array<(PortPreviewUrl, Integer, Hash)>] PortPreviewUrl data, response status code and response headers
368
368
  def get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {})
369
369
  if @api_client.config.debugging
370
370
  @api_client.config.logger.debug 'Calling API: WorkspaceApi.get_port_preview_url_workspace_deprecated ...'
@@ -396,7 +396,7 @@ module DaytonaApiClient
396
396
  post_body = opts[:debug_body]
397
397
 
398
398
  # return_type
399
- return_type = opts[:debug_return_type] || 'WorkspacePortPreviewUrl'
399
+ return_type = opts[:debug_return_type] || 'PortPreviewUrl'
400
400
 
401
401
  # auth_names
402
402
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -27,17 +27,13 @@ module DaytonaApiClient
27
27
  # The last update timestamp
28
28
  attr_accessor :updated_at
29
29
 
30
- # The snapshot reference
31
- attr_accessor :snapshot_ref
32
-
33
30
  # Attribute mapping from ruby-style variable name to JSON key.
34
31
  def self.attribute_map
35
32
  {
36
33
  :'dockerfile_content' => :'dockerfileContent',
37
34
  :'context_hashes' => :'contextHashes',
38
35
  :'created_at' => :'createdAt',
39
- :'updated_at' => :'updatedAt',
40
- :'snapshot_ref' => :'snapshotRef'
36
+ :'updated_at' => :'updatedAt'
41
37
  }
42
38
  end
43
39
 
@@ -57,8 +53,7 @@ module DaytonaApiClient
57
53
  :'dockerfile_content' => :'String',
58
54
  :'context_hashes' => :'Array<String>',
59
55
  :'created_at' => :'Time',
60
- :'updated_at' => :'Time',
61
- :'snapshot_ref' => :'String'
56
+ :'updated_at' => :'Time'
62
57
  }
63
58
  end
64
59
 
@@ -105,12 +100,6 @@ module DaytonaApiClient
105
100
  else
106
101
  self.updated_at = nil
107
102
  end
108
-
109
- if attributes.key?(:'snapshot_ref')
110
- self.snapshot_ref = attributes[:'snapshot_ref']
111
- else
112
- self.snapshot_ref = nil
113
- end
114
103
  end
115
104
 
116
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,10 +115,6 @@ module DaytonaApiClient
126
115
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
127
116
  end
128
117
 
129
- if @snapshot_ref.nil?
130
- invalid_properties.push('invalid value for "snapshot_ref", snapshot_ref cannot be nil.')
131
- end
132
-
133
118
  invalid_properties
134
119
  end
135
120
 
@@ -139,7 +124,6 @@ module DaytonaApiClient
139
124
  warn '[DEPRECATED] the `valid?` method is obsolete'
140
125
  return false if @created_at.nil?
141
126
  return false if @updated_at.nil?
142
- return false if @snapshot_ref.nil?
143
127
  true
144
128
  end
145
129
 
@@ -163,16 +147,6 @@ module DaytonaApiClient
163
147
  @updated_at = updated_at
164
148
  end
165
149
 
166
- # Custom attribute writer method with validation
167
- # @param [Object] snapshot_ref Value to be assigned
168
- def snapshot_ref=(snapshot_ref)
169
- if snapshot_ref.nil?
170
- fail ArgumentError, 'snapshot_ref cannot be nil'
171
- end
172
-
173
- @snapshot_ref = snapshot_ref
174
- end
175
-
176
150
  # Checks equality by comparing each attribute.
177
151
  # @param [Object] Object to be compared
178
152
  def ==(o)
@@ -181,8 +155,7 @@ module DaytonaApiClient
181
155
  dockerfile_content == o.dockerfile_content &&
182
156
  context_hashes == o.context_hashes &&
183
157
  created_at == o.created_at &&
184
- updated_at == o.updated_at &&
185
- snapshot_ref == o.snapshot_ref
158
+ updated_at == o.updated_at
186
159
  end
187
160
 
188
161
  # @see the `==` method
@@ -194,7 +167,7 @@ module DaytonaApiClient
194
167
  # Calculates hash code according to all attributes.
195
168
  # @return [Integer] Hash code
196
169
  def hash
197
- [dockerfile_content, context_hashes, created_at, updated_at, snapshot_ref].hash
170
+ [dockerfile_content, context_hashes, created_at, updated_at].hash
198
171
  end
199
172
 
200
173
  # Builds the object from hash
@@ -14,36 +14,18 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
- class Job
18
- # The ID of the job
19
- attr_accessor :id
17
+ class CreateAuditLog
18
+ attr_accessor :actor_id
20
19
 
21
- # The type of the job
22
- attr_accessor :type
20
+ attr_accessor :actor_email
23
21
 
24
- # The status of the job
25
- attr_accessor :status
22
+ attr_accessor :organization_id
26
23
 
27
- # The type of resource this job operates on
28
- attr_accessor :resource_type
24
+ attr_accessor :action
29
25
 
30
- # The ID of the resource this job operates on (sandboxId, snapshotRef, etc.)
31
- attr_accessor :resource_id
26
+ attr_accessor :target_type
32
27
 
33
- # Job-specific JSON-encoded payload data (operational metadata)
34
- attr_accessor :payload
35
-
36
- # OpenTelemetry trace context for distributed tracing (W3C Trace Context format)
37
- attr_accessor :trace_context
38
-
39
- # Error message if the job failed
40
- attr_accessor :error_message
41
-
42
- # The creation timestamp of the job
43
- attr_accessor :created_at
44
-
45
- # The last update timestamp of the job
46
- attr_accessor :updated_at
28
+ attr_accessor :target_id
47
29
 
48
30
  class EnumAttributeValidator
49
31
  attr_reader :datatype
@@ -70,16 +52,12 @@ module DaytonaApiClient
70
52
  # Attribute mapping from ruby-style variable name to JSON key.
71
53
  def self.attribute_map
72
54
  {
73
- :'id' => :'id',
74
- :'type' => :'type',
75
- :'status' => :'status',
76
- :'resource_type' => :'resourceType',
77
- :'resource_id' => :'resourceId',
78
- :'payload' => :'payload',
79
- :'trace_context' => :'traceContext',
80
- :'error_message' => :'errorMessage',
81
- :'created_at' => :'createdAt',
82
- :'updated_at' => :'updatedAt'
55
+ :'actor_id' => :'actorId',
56
+ :'actor_email' => :'actorEmail',
57
+ :'organization_id' => :'organizationId',
58
+ :'action' => :'action',
59
+ :'target_type' => :'targetType',
60
+ :'target_id' => :'targetId'
83
61
  }
84
62
  end
85
63
 
@@ -96,16 +74,12 @@ module DaytonaApiClient
96
74
  # Attribute type mapping.
97
75
  def self.openapi_types
98
76
  {
99
- :'id' => :'String',
100
- :'type' => :'JobType',
101
- :'status' => :'JobStatus',
102
- :'resource_type' => :'String',
103
- :'resource_id' => :'String',
104
- :'payload' => :'String',
105
- :'trace_context' => :'Hash<String, Object>',
106
- :'error_message' => :'String',
107
- :'created_at' => :'String',
108
- :'updated_at' => :'String'
77
+ :'actor_id' => :'String',
78
+ :'actor_email' => :'String',
79
+ :'organization_id' => :'String',
80
+ :'action' => :'String',
81
+ :'target_type' => :'String',
82
+ :'target_id' => :'String'
109
83
  }
110
84
  end
111
85
 
@@ -119,70 +93,46 @@ module DaytonaApiClient
119
93
  # @param [Hash] attributes Model attributes in the form of hash
120
94
  def initialize(attributes = {})
121
95
  if (!attributes.is_a?(Hash))
122
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::Job` initialize method"
96
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::CreateAuditLog` initialize method"
123
97
  end
124
98
 
125
99
  # check to see if the attribute exists and convert string to symbol for hash key
126
100
  acceptable_attribute_map = self.class.acceptable_attribute_map
127
101
  attributes = attributes.each_with_object({}) { |(k, v), h|
128
102
  if (!acceptable_attribute_map.key?(k.to_sym))
129
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::Job`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::CreateAuditLog`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
130
104
  end
131
105
  h[k.to_sym] = v
132
106
  }
133
107
 
134
- if attributes.key?(:'id')
135
- self.id = attributes[:'id']
108
+ if attributes.key?(:'actor_id')
109
+ self.actor_id = attributes[:'actor_id']
136
110
  else
137
- self.id = nil
111
+ self.actor_id = nil
138
112
  end
139
113
 
140
- if attributes.key?(:'type')
141
- self.type = attributes[:'type']
114
+ if attributes.key?(:'actor_email')
115
+ self.actor_email = attributes[:'actor_email']
142
116
  else
143
- self.type = nil
117
+ self.actor_email = nil
144
118
  end
145
119
 
146
- if attributes.key?(:'status')
147
- self.status = attributes[:'status']
148
- else
149
- self.status = nil
120
+ if attributes.key?(:'organization_id')
121
+ self.organization_id = attributes[:'organization_id']
150
122
  end
151
123
 
152
- if attributes.key?(:'resource_type')
153
- self.resource_type = attributes[:'resource_type']
124
+ if attributes.key?(:'action')
125
+ self.action = attributes[:'action']
154
126
  else
155
- self.resource_type = nil
156
- end
157
-
158
- if attributes.key?(:'resource_id')
159
- self.resource_id = attributes[:'resource_id']
160
- else
161
- self.resource_id = nil
162
- end
163
-
164
- if attributes.key?(:'payload')
165
- self.payload = attributes[:'payload']
127
+ self.action = nil
166
128
  end
167
129
 
168
- if attributes.key?(:'trace_context')
169
- if (value = attributes[:'trace_context']).is_a?(Hash)
170
- self.trace_context = value
171
- end
130
+ if attributes.key?(:'target_type')
131
+ self.target_type = attributes[:'target_type']
172
132
  end
173
133
 
174
- if attributes.key?(:'error_message')
175
- self.error_message = attributes[:'error_message']
176
- end
177
-
178
- if attributes.key?(:'created_at')
179
- self.created_at = attributes[:'created_at']
180
- else
181
- self.created_at = nil
182
- end
183
-
184
- if attributes.key?(:'updated_at')
185
- self.updated_at = attributes[:'updated_at']
134
+ if attributes.key?(:'target_id')
135
+ self.target_id = attributes[:'target_id']
186
136
  end
187
137
  end
188
138
 
@@ -191,28 +141,16 @@ module DaytonaApiClient
191
141
  def list_invalid_properties
192
142
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
193
143
  invalid_properties = Array.new
194
- if @id.nil?
195
- invalid_properties.push('invalid value for "id", id cannot be nil.')
196
- end
197
-
198
- if @type.nil?
199
- invalid_properties.push('invalid value for "type", type cannot be nil.')
144
+ if @actor_id.nil?
145
+ invalid_properties.push('invalid value for "actor_id", actor_id cannot be nil.')
200
146
  end
201
147
 
202
- if @status.nil?
203
- invalid_properties.push('invalid value for "status", status cannot be nil.')
148
+ if @actor_email.nil?
149
+ invalid_properties.push('invalid value for "actor_email", actor_email cannot be nil.')
204
150
  end
205
151
 
206
- if @resource_type.nil?
207
- invalid_properties.push('invalid value for "resource_type", resource_type cannot be nil.')
208
- end
209
-
210
- if @resource_id.nil?
211
- invalid_properties.push('invalid value for "resource_id", resource_id cannot be nil.')
212
- end
213
-
214
- if @created_at.nil?
215
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
152
+ if @action.nil?
153
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
216
154
  end
217
155
 
218
156
  invalid_properties
@@ -222,75 +160,54 @@ module DaytonaApiClient
222
160
  # @return true if the model is valid
223
161
  def valid?
224
162
  warn '[DEPRECATED] the `valid?` method is obsolete'
225
- return false if @id.nil?
226
- return false if @type.nil?
227
- return false if @status.nil?
228
- return false if @resource_type.nil?
229
- resource_type_validator = EnumAttributeValidator.new('String', ["SANDBOX", "SNAPSHOT", "BACKUP"])
230
- return false unless resource_type_validator.valid?(@resource_type)
231
- return false if @resource_id.nil?
232
- return false if @created_at.nil?
163
+ return false if @actor_id.nil?
164
+ return false if @actor_email.nil?
165
+ return false if @action.nil?
166
+ action_validator = EnumAttributeValidator.new('String', ["create", "read", "update", "delete", "login", "set_default", "update_access", "update_quota", "suspend", "unsuspend", "accept", "decline", "link_account", "unlink_account", "leave_organization", "regenerate_key_pair", "update_scheduling", "start", "stop", "replace_labels", "create_backup", "update_public_status", "set_auto_stop_interval", "set_auto_archive_interval", "set_auto_delete_interval", "archive", "get_port_preview_url", "set_general_status", "activate", "deactivate", "update_network_settings", "get_webhook_app_portal_access", "send_webhook_message", "initialize_webhooks", "update_sandbox_default_limited_network_egress", "toolbox_delete_file", "toolbox_download_file", "toolbox_create_folder", "toolbox_move_file", "toolbox_set_file_permissions", "toolbox_replace_in_files", "toolbox_upload_file", "toolbox_bulk_upload_files", "toolbox_git_add_files", "toolbox_git_create_branch", "toolbox_git_delete_branch", "toolbox_git_clone_repository", "toolbox_git_commit_changes", "toolbox_git_pull_changes", "toolbox_git_push_changes", "toolbox_git_checkout_branch", "toolbox_execute_command", "toolbox_create_session", "toolbox_session_execute_command", "toolbox_delete_session", "toolbox_computer_use_start", "toolbox_computer_use_stop", "toolbox_computer_use_restart_process"])
167
+ return false unless action_validator.valid?(@action)
168
+ target_type_validator = EnumAttributeValidator.new('String', ["api_key", "organization", "organization_invitation", "organization_role", "organization_user", "docker_registry", "runner", "sandbox", "snapshot", "user", "volume"])
169
+ return false unless target_type_validator.valid?(@target_type)
233
170
  true
234
171
  end
235
172
 
236
173
  # Custom attribute writer method with validation
237
- # @param [Object] id Value to be assigned
238
- def id=(id)
239
- if id.nil?
240
- fail ArgumentError, 'id cannot be nil'
241
- end
242
-
243
- @id = id
244
- end
245
-
246
- # Custom attribute writer method with validation
247
- # @param [Object] type Value to be assigned
248
- def type=(type)
249
- if type.nil?
250
- fail ArgumentError, 'type cannot be nil'
174
+ # @param [Object] actor_id Value to be assigned
175
+ def actor_id=(actor_id)
176
+ if actor_id.nil?
177
+ fail ArgumentError, 'actor_id cannot be nil'
251
178
  end
252
179
 
253
- @type = type
180
+ @actor_id = actor_id
254
181
  end
255
182
 
256
183
  # Custom attribute writer method with validation
257
- # @param [Object] status Value to be assigned
258
- def status=(status)
259
- if status.nil?
260
- fail ArgumentError, 'status cannot be nil'
184
+ # @param [Object] actor_email Value to be assigned
185
+ def actor_email=(actor_email)
186
+ if actor_email.nil?
187
+ fail ArgumentError, 'actor_email cannot be nil'
261
188
  end
262
189
 
263
- @status = status
190
+ @actor_email = actor_email
264
191
  end
265
192
 
266
193
  # Custom attribute writer method checking allowed values (enum).
267
- # @param [Object] resource_type Object to be assigned
268
- def resource_type=(resource_type)
269
- validator = EnumAttributeValidator.new('String', ["SANDBOX", "SNAPSHOT", "BACKUP"])
270
- unless validator.valid?(resource_type)
271
- fail ArgumentError, "invalid value for \"resource_type\", must be one of #{validator.allowable_values}."
194
+ # @param [Object] action Object to be assigned
195
+ def action=(action)
196
+ validator = EnumAttributeValidator.new('String', ["create", "read", "update", "delete", "login", "set_default", "update_access", "update_quota", "suspend", "unsuspend", "accept", "decline", "link_account", "unlink_account", "leave_organization", "regenerate_key_pair", "update_scheduling", "start", "stop", "replace_labels", "create_backup", "update_public_status", "set_auto_stop_interval", "set_auto_archive_interval", "set_auto_delete_interval", "archive", "get_port_preview_url", "set_general_status", "activate", "deactivate", "update_network_settings", "get_webhook_app_portal_access", "send_webhook_message", "initialize_webhooks", "update_sandbox_default_limited_network_egress", "toolbox_delete_file", "toolbox_download_file", "toolbox_create_folder", "toolbox_move_file", "toolbox_set_file_permissions", "toolbox_replace_in_files", "toolbox_upload_file", "toolbox_bulk_upload_files", "toolbox_git_add_files", "toolbox_git_create_branch", "toolbox_git_delete_branch", "toolbox_git_clone_repository", "toolbox_git_commit_changes", "toolbox_git_pull_changes", "toolbox_git_push_changes", "toolbox_git_checkout_branch", "toolbox_execute_command", "toolbox_create_session", "toolbox_session_execute_command", "toolbox_delete_session", "toolbox_computer_use_start", "toolbox_computer_use_stop", "toolbox_computer_use_restart_process"])
197
+ unless validator.valid?(action)
198
+ fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
272
199
  end
273
- @resource_type = resource_type
200
+ @action = action
274
201
  end
275
202
 
276
- # Custom attribute writer method with validation
277
- # @param [Object] resource_id Value to be assigned
278
- def resource_id=(resource_id)
279
- if resource_id.nil?
280
- fail ArgumentError, 'resource_id cannot be nil'
281
- end
282
-
283
- @resource_id = resource_id
284
- end
285
-
286
- # Custom attribute writer method with validation
287
- # @param [Object] created_at Value to be assigned
288
- def created_at=(created_at)
289
- if created_at.nil?
290
- fail ArgumentError, 'created_at cannot be nil'
203
+ # Custom attribute writer method checking allowed values (enum).
204
+ # @param [Object] target_type Object to be assigned
205
+ def target_type=(target_type)
206
+ validator = EnumAttributeValidator.new('String', ["api_key", "organization", "organization_invitation", "organization_role", "organization_user", "docker_registry", "runner", "sandbox", "snapshot", "user", "volume"])
207
+ unless validator.valid?(target_type)
208
+ fail ArgumentError, "invalid value for \"target_type\", must be one of #{validator.allowable_values}."
291
209
  end
292
-
293
- @created_at = created_at
210
+ @target_type = target_type
294
211
  end
295
212
 
296
213
  # Checks equality by comparing each attribute.
@@ -298,16 +215,12 @@ module DaytonaApiClient
298
215
  def ==(o)
299
216
  return true if self.equal?(o)
300
217
  self.class == o.class &&
301
- id == o.id &&
302
- type == o.type &&
303
- status == o.status &&
304
- resource_type == o.resource_type &&
305
- resource_id == o.resource_id &&
306
- payload == o.payload &&
307
- trace_context == o.trace_context &&
308
- error_message == o.error_message &&
309
- created_at == o.created_at &&
310
- updated_at == o.updated_at
218
+ actor_id == o.actor_id &&
219
+ actor_email == o.actor_email &&
220
+ organization_id == o.organization_id &&
221
+ action == o.action &&
222
+ target_type == o.target_type &&
223
+ target_id == o.target_id
311
224
  end
312
225
 
313
226
  # @see the `==` method
@@ -319,7 +232,7 @@ module DaytonaApiClient
319
232
  # Calculates hash code according to all attributes.
320
233
  # @return [Integer] Hash code
321
234
  def hash
322
- [id, type, status, resource_type, resource_id, payload, trace_context, error_message, created_at, updated_at].hash
235
+ [actor_id, actor_email, organization_id, action, target_type, target_id].hash
323
236
  end
324
237
 
325
238
  # Builds the object from hash
@@ -18,14 +18,10 @@ module DaytonaApiClient
18
18
  # The name of organization
19
19
  attr_accessor :name
20
20
 
21
- # The ID of the default region for the organization
22
- attr_accessor :default_region_id
23
-
24
21
  # Attribute mapping from ruby-style variable name to JSON key.
25
22
  def self.attribute_map
26
23
  {
27
- :'name' => :'name',
28
- :'default_region_id' => :'defaultRegionId'
24
+ :'name' => :'name'
29
25
  }
30
26
  end
31
27
 
@@ -42,8 +38,7 @@ module DaytonaApiClient
42
38
  # Attribute type mapping.
43
39
  def self.openapi_types
44
40
  {
45
- :'name' => :'String',
46
- :'default_region_id' => :'String'
41
+ :'name' => :'String'
47
42
  }
48
43
  end
49
44
 
@@ -74,12 +69,6 @@ module DaytonaApiClient
74
69
  else
75
70
  self.name = nil
76
71
  end
77
-
78
- if attributes.key?(:'default_region_id')
79
- self.default_region_id = attributes[:'default_region_id']
80
- else
81
- self.default_region_id = nil
82
- end
83
72
  end
84
73
 
85
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,10 +80,6 @@ module DaytonaApiClient
91
80
  invalid_properties.push('invalid value for "name", name cannot be nil.')
92
81
  end
93
82
 
94
- if @default_region_id.nil?
95
- invalid_properties.push('invalid value for "default_region_id", default_region_id cannot be nil.')
96
- end
97
-
98
83
  invalid_properties
99
84
  end
100
85
 
@@ -103,7 +88,6 @@ module DaytonaApiClient
103
88
  def valid?
104
89
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
90
  return false if @name.nil?
106
- return false if @default_region_id.nil?
107
91
  true
108
92
  end
109
93
 
@@ -117,23 +101,12 @@ module DaytonaApiClient
117
101
  @name = name
118
102
  end
119
103
 
120
- # Custom attribute writer method with validation
121
- # @param [Object] default_region_id Value to be assigned
122
- def default_region_id=(default_region_id)
123
- if default_region_id.nil?
124
- fail ArgumentError, 'default_region_id cannot be nil'
125
- end
126
-
127
- @default_region_id = default_region_id
128
- end
129
-
130
104
  # Checks equality by comparing each attribute.
131
105
  # @param [Object] Object to be compared
132
106
  def ==(o)
133
107
  return true if self.equal?(o)
134
108
  self.class == o.class &&
135
- name == o.name &&
136
- default_region_id == o.default_region_id
109
+ name == o.name
137
110
  end
138
111
 
139
112
  # @see the `==` method
@@ -145,7 +118,7 @@ module DaytonaApiClient
145
118
  # Calculates hash code according to all attributes.
146
119
  # @return [Integer] Hash code
147
120
  def hash
148
- [name, default_region_id].hash
121
+ [name].hash
149
122
  end
150
123
 
151
124
  # Builds the object from hash