daytona_api_client 0.167.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.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
- data/lib/daytona_api_client/api/audit_api.rb +139 -9
- data/lib/daytona_api_client/api/docker_registry_api.rb +66 -5
- data/lib/daytona_api_client/api/health_api.rb +2 -53
- data/lib/daytona_api_client/api/organizations_api.rb +162 -953
- data/lib/daytona_api_client/api/preview_api.rb +7 -76
- data/lib/daytona_api_client/api/runners_api.rb +21 -408
- data/lib/daytona_api_client/api/sandbox_api.rb +214 -1462
- data/lib/daytona_api_client/api/snapshots_api.rb +110 -36
- data/lib/daytona_api_client/api/toolbox_api.rb +740 -740
- data/lib/daytona_api_client/api/users_api.rb +238 -1
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +267 -4
- data/lib/daytona_api_client/api/workspace_api.rb +5 -5
- data/lib/daytona_api_client/api_client.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +1 -4
- data/lib/daytona_api_client/models/account_provider.rb +0 -2
- data/lib/daytona_api_client/models/announcement.rb +0 -2
- data/lib/daytona_api_client/models/api_key_list.rb +0 -2
- data/lib/daytona_api_client/models/api_key_response.rb +0 -2
- data/lib/daytona_api_client/models/audit_log.rb +1 -21
- data/lib/daytona_api_client/models/build_info.rb +4 -33
- data/lib/daytona_api_client/models/command.rb +0 -2
- data/lib/daytona_api_client/models/completion_context.rb +0 -2
- data/lib/daytona_api_client/models/completion_item.rb +0 -2
- data/lib/daytona_api_client/models/completion_list.rb +0 -2
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -2
- data/lib/daytona_api_client/models/create_api_key.rb +1 -3
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -168
- data/lib/daytona_api_client/models/create_build_info.rb +0 -2
- data/lib/daytona_api_client/models/create_docker_registry.rb +65 -6
- data/lib/daytona_api_client/models/create_linked_account.rb +0 -2
- data/lib/daytona_api_client/models/create_organization.rb +4 -33
- data/lib/daytona_api_client/models/create_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/create_runner.rb +315 -33
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -13
- data/lib/daytona_api_client/models/create_session_request.rb +0 -2
- data/lib/daytona_api_client/models/create_snapshot.rb +14 -16
- data/lib/daytona_api_client/models/create_user.rb +1 -12
- data/lib/daytona_api_client/models/create_volume.rb +0 -2
- data/lib/daytona_api_client/models/create_workspace.rb +0 -2
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -53
- data/lib/daytona_api_client/models/display_info_response.rb +0 -2
- data/lib/daytona_api_client/models/docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/download_files.rb +0 -2
- data/lib/daytona_api_client/models/execute_request.rb +0 -2
- data/lib/daytona_api_client/models/execute_response.rb +0 -2
- data/lib/daytona_api_client/models/file_info.rb +0 -2
- data/lib/daytona_api_client/models/file_status.rb +0 -2
- data/lib/daytona_api_client/models/git_add_request.rb +0 -2
- data/lib/daytona_api_client/models/git_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_checkout_request.rb +0 -2
- data/lib/daytona_api_client/models/git_clone_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_info.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_response.rb +0 -2
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_repo_request.rb +0 -2
- data/lib/daytona_api_client/models/git_status.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -2
- data/lib/daytona_api_client/models/list_branch_response.rb +0 -2
- data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -2
- data/lib/daytona_api_client/models/lsp_document_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_location.rb +0 -2
- data/lib/daytona_api_client/models/lsp_server_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_symbol.rb +0 -2
- data/lib/daytona_api_client/models/match.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_position.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -2
- data/lib/daytona_api_client/models/oidc_config.rb +0 -2
- data/lib/daytona_api_client/models/organization.rb +85 -148
- data/lib/daytona_api_client/models/organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/organization_role.rb +0 -2
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +0 -2
- data/lib/daytona_api_client/models/organization_suspension.rb +5 -9
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -20
- data/lib/daytona_api_client/models/organization_user.rb +0 -2
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -16
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +0 -2
- data/lib/daytona_api_client/models/paginated_snapshots.rb +0 -2
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -33
- data/lib/daytona_api_client/models/position.rb +0 -2
- data/lib/daytona_api_client/models/posthog_config.rb +0 -2
- data/lib/daytona_api_client/models/process_errors_response.rb +0 -2
- data/lib/daytona_api_client/models/process_logs_response.rb +0 -2
- data/lib/daytona_api_client/models/process_restart_response.rb +0 -2
- data/lib/daytona_api_client/models/process_status_response.rb +0 -2
- data/lib/daytona_api_client/models/project_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_list_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_resize_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_session_info.rb +0 -2
- data/lib/daytona_api_client/models/range.rb +0 -2
- data/lib/daytona_api_client/models/region.rb +4 -180
- data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/replace_request.rb +0 -2
- data/lib/daytona_api_client/models/replace_result.rb +0 -2
- data/lib/daytona_api_client/models/runner.rb +117 -108
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -2
- data/lib/daytona_api_client/models/sandbox.rb +14 -80
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_labels.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_state.rb +1 -4
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -16
- data/lib/daytona_api_client/models/screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/search_files_response.rb +0 -2
- data/lib/daytona_api_client/models/send_webhook_dto.rb +1 -25
- data/lib/daytona_api_client/models/session.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_request.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_response.rb +0 -2
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +0 -2
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -38
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -33
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -6
- data/lib/daytona_api_client/models/storage_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/update_docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_member_access.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -92
- data/lib/daytona_api_client/models/update_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -28
- data/lib/daytona_api_client/models/user.rb +0 -2
- data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/user_public_key.rb +0 -2
- data/lib/daytona_api_client/models/volume_dto.rb +0 -2
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +1 -30
- data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +3 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +0 -2
- data/lib/daytona_api_client/models/windows_response.rb +0 -2
- data/lib/daytona_api_client/models/work_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/workspace.rb +27 -66
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +2 -46
- data/project.json +11 -38
- metadata +6 -54
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -209
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -1151
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -387
- data/lib/daytona_api_client/models/create_region.rb +0 -271
- data/lib/daytona_api_client/models/create_region_response.rb +0 -282
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -265
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -238
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -221
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -52
- data/lib/daytona_api_client/models/log_entry.rb +0 -407
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -265
- data/lib/daytona_api_client/models/metric_series.rb +0 -267
- data/lib/daytona_api_client/models/metrics_response.rb +0 -240
- data/lib/daytona_api_client/models/otel_config.rb +0 -251
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -321
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -321
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -240
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -251
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -231
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -238
- data/lib/daytona_api_client/models/region_quota.rb +0 -389
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -393
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -298
- data/lib/daytona_api_client/models/runner_class.rb +0 -40
- data/lib/daytona_api_client/models/runner_full.rb +0 -808
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -535
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -290
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -275
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -319
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -265
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -238
- data/lib/daytona_api_client/models/trace_span.rb +0 -405
- data/lib/daytona_api_client/models/trace_summary.rb +0 -383
- data/lib/daytona_api_client/models/update_job_status.rb +0 -280
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -238
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -287
- data/lib/daytona_api_client/models/update_region.rb +0 -244
- data/lib/daytona_api_client/models/url.rb +0 -238
- data/lib/daytona_api_client/models/webhook_event.rb +0 -45
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -265
|
@@ -21,10 +21,6 @@ module DaytonaApiClient
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :actor_email
|
|
23
23
|
|
|
24
|
-
attr_accessor :actor_api_key_prefix
|
|
25
|
-
|
|
26
|
-
attr_accessor :actor_api_key_suffix
|
|
27
|
-
|
|
28
24
|
attr_accessor :organization_id
|
|
29
25
|
|
|
30
26
|
attr_accessor :action
|
|
@@ -53,8 +49,6 @@ module DaytonaApiClient
|
|
|
53
49
|
:'id' => :'id',
|
|
54
50
|
:'actor_id' => :'actorId',
|
|
55
51
|
:'actor_email' => :'actorEmail',
|
|
56
|
-
:'actor_api_key_prefix' => :'actorApiKeyPrefix',
|
|
57
|
-
:'actor_api_key_suffix' => :'actorApiKeySuffix',
|
|
58
52
|
:'organization_id' => :'organizationId',
|
|
59
53
|
:'action' => :'action',
|
|
60
54
|
:'target_type' => :'targetType',
|
|
@@ -85,8 +79,6 @@ module DaytonaApiClient
|
|
|
85
79
|
:'id' => :'String',
|
|
86
80
|
:'actor_id' => :'String',
|
|
87
81
|
:'actor_email' => :'String',
|
|
88
|
-
:'actor_api_key_prefix' => :'String',
|
|
89
|
-
:'actor_api_key_suffix' => :'String',
|
|
90
82
|
:'organization_id' => :'String',
|
|
91
83
|
:'action' => :'String',
|
|
92
84
|
:'target_type' => :'String',
|
|
@@ -141,14 +133,6 @@ module DaytonaApiClient
|
|
|
141
133
|
self.actor_email = nil
|
|
142
134
|
end
|
|
143
135
|
|
|
144
|
-
if attributes.key?(:'actor_api_key_prefix')
|
|
145
|
-
self.actor_api_key_prefix = attributes[:'actor_api_key_prefix']
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
if attributes.key?(:'actor_api_key_suffix')
|
|
149
|
-
self.actor_api_key_suffix = attributes[:'actor_api_key_suffix']
|
|
150
|
-
end
|
|
151
|
-
|
|
152
136
|
if attributes.key?(:'organization_id')
|
|
153
137
|
self.organization_id = attributes[:'organization_id']
|
|
154
138
|
end
|
|
@@ -298,8 +282,6 @@ module DaytonaApiClient
|
|
|
298
282
|
id == o.id &&
|
|
299
283
|
actor_id == o.actor_id &&
|
|
300
284
|
actor_email == o.actor_email &&
|
|
301
|
-
actor_api_key_prefix == o.actor_api_key_prefix &&
|
|
302
|
-
actor_api_key_suffix == o.actor_api_key_suffix &&
|
|
303
285
|
organization_id == o.organization_id &&
|
|
304
286
|
action == o.action &&
|
|
305
287
|
target_type == o.target_type &&
|
|
@@ -322,7 +304,7 @@ module DaytonaApiClient
|
|
|
322
304
|
# Calculates hash code according to all attributes.
|
|
323
305
|
# @return [Integer] Hash code
|
|
324
306
|
def hash
|
|
325
|
-
[id, actor_id, actor_email,
|
|
307
|
+
[id, actor_id, actor_email, organization_id, action, target_type, target_id, status_code, error_message, ip_address, user_agent, source, metadata, created_at].hash
|
|
326
308
|
end
|
|
327
309
|
|
|
328
310
|
# Builds the object from hash
|
|
@@ -436,7 +418,5 @@ module DaytonaApiClient
|
|
|
436
418
|
value
|
|
437
419
|
end
|
|
438
420
|
end
|
|
439
|
-
|
|
440
421
|
end
|
|
441
|
-
|
|
442
422
|
end
|
|
@@ -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
|
|
170
|
+
[dockerfile_content, context_hashes, created_at, updated_at].hash
|
|
198
171
|
end
|
|
199
172
|
|
|
200
173
|
# Builds the object from hash
|
|
@@ -308,7 +281,5 @@ module DaytonaApiClient
|
|
|
308
281
|
value
|
|
309
282
|
end
|
|
310
283
|
end
|
|
311
|
-
|
|
312
284
|
end
|
|
313
|
-
|
|
314
285
|
end
|
|
@@ -18,7 +18,7 @@ module DaytonaApiClient
|
|
|
18
18
|
# The name of the API key
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
21
|
-
# The list of organization resource permissions
|
|
21
|
+
# The list of organization resource permissions assigned to the API key
|
|
22
22
|
attr_accessor :permissions
|
|
23
23
|
|
|
24
24
|
# When the API key expires
|
|
@@ -284,7 +284,5 @@ module DaytonaApiClient
|
|
|
284
284
|
value
|
|
285
285
|
end
|
|
286
286
|
end
|
|
287
|
-
|
|
288
287
|
end
|
|
289
|
-
|
|
290
288
|
end
|
|
@@ -14,36 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
attr_accessor :id
|
|
17
|
+
class CreateAuditLog
|
|
18
|
+
attr_accessor :actor_id
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :type
|
|
20
|
+
attr_accessor :actor_email
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :status
|
|
22
|
+
attr_accessor :organization_id
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
attr_accessor :resource_type
|
|
24
|
+
attr_accessor :action
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
attr_accessor :resource_id
|
|
26
|
+
attr_accessor :target_type
|
|
32
27
|
|
|
33
|
-
|
|
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
|
-
:'
|
|
74
|
-
:'
|
|
75
|
-
:'
|
|
76
|
-
:'
|
|
77
|
-
:'
|
|
78
|
-
:'
|
|
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
|
-
:'
|
|
100
|
-
:'
|
|
101
|
-
:'
|
|
102
|
-
:'
|
|
103
|
-
:'
|
|
104
|
-
:'
|
|
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::
|
|
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::
|
|
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?(:'
|
|
135
|
-
self.
|
|
136
|
-
else
|
|
137
|
-
self.id = nil
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if attributes.key?(:'type')
|
|
141
|
-
self.type = attributes[:'type']
|
|
108
|
+
if attributes.key?(:'actor_id')
|
|
109
|
+
self.actor_id = attributes[:'actor_id']
|
|
142
110
|
else
|
|
143
|
-
self.
|
|
111
|
+
self.actor_id = nil
|
|
144
112
|
end
|
|
145
113
|
|
|
146
|
-
if attributes.key?(:'
|
|
147
|
-
self.
|
|
114
|
+
if attributes.key?(:'actor_email')
|
|
115
|
+
self.actor_email = attributes[:'actor_email']
|
|
148
116
|
else
|
|
149
|
-
self.
|
|
117
|
+
self.actor_email = nil
|
|
150
118
|
end
|
|
151
119
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
154
|
-
else
|
|
155
|
-
self.resource_type = nil
|
|
120
|
+
if attributes.key?(:'organization_id')
|
|
121
|
+
self.organization_id = attributes[:'organization_id']
|
|
156
122
|
end
|
|
157
123
|
|
|
158
|
-
if attributes.key?(:'
|
|
159
|
-
self.
|
|
124
|
+
if attributes.key?(:'action')
|
|
125
|
+
self.action = attributes[:'action']
|
|
160
126
|
else
|
|
161
|
-
self.
|
|
127
|
+
self.action = nil
|
|
162
128
|
end
|
|
163
129
|
|
|
164
|
-
if attributes.key?(:'
|
|
165
|
-
self.
|
|
130
|
+
if attributes.key?(:'target_type')
|
|
131
|
+
self.target_type = attributes[:'target_type']
|
|
166
132
|
end
|
|
167
133
|
|
|
168
|
-
if attributes.key?(:'
|
|
169
|
-
|
|
170
|
-
self.trace_context = value
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
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 @
|
|
195
|
-
invalid_properties.push('invalid value for "
|
|
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 @
|
|
203
|
-
invalid_properties.push('invalid value for "
|
|
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 @
|
|
207
|
-
invalid_properties.push('invalid value for "
|
|
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 @
|
|
226
|
-
return false if @
|
|
227
|
-
return false if @
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return false
|
|
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]
|
|
238
|
-
def
|
|
239
|
-
if
|
|
240
|
-
fail ArgumentError, '
|
|
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'
|
|
241
178
|
end
|
|
242
179
|
|
|
243
|
-
@
|
|
180
|
+
@actor_id = actor_id
|
|
244
181
|
end
|
|
245
182
|
|
|
246
183
|
# Custom attribute writer method with validation
|
|
247
|
-
# @param [Object]
|
|
248
|
-
def
|
|
249
|
-
if
|
|
250
|
-
fail ArgumentError, '
|
|
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'
|
|
251
188
|
end
|
|
252
189
|
|
|
253
|
-
@
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
# 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'
|
|
261
|
-
end
|
|
262
|
-
|
|
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]
|
|
268
|
-
def
|
|
269
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
270
|
-
unless validator.valid?(
|
|
271
|
-
fail ArgumentError, "invalid value for \"
|
|
272
|
-
end
|
|
273
|
-
@resource_type = resource_type
|
|
274
|
-
end
|
|
275
|
-
|
|
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'
|
|
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}."
|
|
281
199
|
end
|
|
282
|
-
|
|
283
|
-
@resource_id = resource_id
|
|
200
|
+
@action = action
|
|
284
201
|
end
|
|
285
202
|
|
|
286
|
-
# Custom attribute writer method
|
|
287
|
-
# @param [Object]
|
|
288
|
-
def
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
[
|
|
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
|
|
@@ -433,7 +346,5 @@ module DaytonaApiClient
|
|
|
433
346
|
value
|
|
434
347
|
end
|
|
435
348
|
end
|
|
436
|
-
|
|
437
349
|
end
|
|
438
|
-
|
|
439
350
|
end
|