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.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +4 -4
- data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +98 -55
- data/lib/daytona_api_client/api/config_api.rb +1 -1
- data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
- data/lib/daytona_api_client/api/health_api.rb +3 -54
- data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
- data/lib/daytona_api_client/api/organizations_api.rb +310 -1846
- data/lib/daytona_api_client/api/preview_api.rb +8 -202
- data/lib/daytona_api_client/api/runners_api.rb +22 -470
- data/lib/daytona_api_client/api/sandbox_api.rb +434 -2354
- data/lib/daytona_api_client/api/snapshots_api.rb +113 -42
- data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
- data/lib/daytona_api_client/api/users_api.rb +153 -89
- data/lib/daytona_api_client/api/volumes_api.rb +2 -2
- data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
- data/lib/daytona_api_client/api/workspace_api.rb +955 -0
- data/lib/daytona_api_client/api_client.rb +4 -8
- data/lib/daytona_api_client/api_error.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +2 -5
- data/lib/daytona_api_client/models/account_provider.rb +74 -3
- data/lib/daytona_api_client/models/announcement.rb +74 -3
- data/lib/daytona_api_client/models/api_key_list.rb +74 -3
- data/lib/daytona_api_client/models/api_key_response.rb +74 -3
- data/lib/daytona_api_client/models/audit_log.rb +75 -22
- data/lib/daytona_api_client/models/build_info.rb +78 -34
- data/lib/daytona_api_client/models/{create_runner_response.rb → command.rb} +104 -23
- data/lib/daytona_api_client/models/completion_context.rb +244 -0
- data/lib/daytona_api_client/models/completion_item.rb +289 -0
- data/lib/daytona_api_client/models/{paginated_traces.rb → completion_list.rb} +106 -91
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
- data/lib/daytona_api_client/models/{available_sandbox_class.rb → computer_use_status_response.rb} +97 -86
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
- data/lib/daytona_api_client/models/create_api_key.rb +75 -4
- data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
- data/lib/daytona_api_client/models/create_build_info.rb +74 -3
- data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
- data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
- data/lib/daytona_api_client/models/create_organization.rb +78 -34
- data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/create_organization_quota.rb +78 -26
- data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/create_runner.rb +386 -43
- data/lib/daytona_api_client/models/create_sandbox.rb +117 -108
- data/lib/daytona_api_client/models/{signed_port_preview_url.rb → create_session_request.rb} +93 -103
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
- data/lib/daytona_api_client/models/create_user.rb +97 -40
- data/lib/daytona_api_client/models/create_volume.rb +74 -3
- data/lib/daytona_api_client/models/create_workspace.rb +411 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +78 -96
- data/lib/daytona_api_client/models/{runner_service_health.rb → display_info_response.rb} +95 -59
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/{paginated_jobs.rb → download_files.rb} +94 -100
- data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
- data/lib/daytona_api_client/models/execute_response.rb +263 -0
- data/lib/daytona_api_client/models/file_info.rb +417 -0
- data/lib/daytona_api_client/models/{secret.rb → file_status.rb} +122 -121
- data/lib/daytona_api_client/models/git_add_request.rb +264 -0
- data/lib/daytona_api_client/models/{admin_create_organization.rb → git_branch_request.rb} +95 -53
- data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
- data/lib/daytona_api_client/models/{toolbox_proxy_url.rb → git_clone_request.rb} +142 -10
- data/lib/daytona_api_client/models/{trace_span.rb → git_commit_info.rb} +148 -141
- data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
- data/lib/daytona_api_client/models/{runner_healthcheck.rb → git_commit_response.rb} +92 -74
- data/lib/daytona_api_client/models/{create_secret.rb → git_delete_branch_request.rb} +106 -59
- data/lib/daytona_api_client/models/{snapshot_manager_credentials.rb → git_repo_request.rb} +96 -35
- data/lib/daytona_api_client/models/git_status.rb +290 -0
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
- data/lib/daytona_api_client/models/{oidc_id_p_config_response.rb → keyboard_hotkey_request.rb} +93 -59
- data/lib/daytona_api_client/models/{create_region_response.rb → keyboard_press_request.rb} +102 -63
- data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
- data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
- data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
- data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
- data/lib/daytona_api_client/models/lsp_location.rb +261 -0
- data/lib/daytona_api_client/models/lsp_server_request.rb +263 -0
- data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → lsp_symbol.rb} +132 -22
- data/lib/daytona_api_client/models/match.rb +287 -0
- data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
- data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
- data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_position.rb +263 -0
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
- data/lib/daytona_api_client/models/{test_identity_provider_connection_response.rb → mouse_scroll_response.rb} +81 -30
- data/lib/daytona_api_client/models/oidc_config.rb +74 -3
- data/lib/daytona_api_client/models/organization.rb +159 -270
- data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
- data/lib/daytona_api_client/models/organization_role.rb +74 -3
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +74 -3
- data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
- data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
- data/lib/daytona_api_client/models/organization_user.rb +76 -5
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +78 -17
- data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
- data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
- data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +77 -10
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +261 -0
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
- data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
- data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
- data/lib/daytona_api_client/models/process_status_response.rb +263 -0
- data/lib/daytona_api_client/models/{update_last_activity.rb → project_dir_response.rb} +83 -13
- data/lib/daytona_api_client/models/{pending_sso_link.rb → pty_create_request.rb} +114 -109
- data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
- data/lib/daytona_api_client/models/{metric_data_point.rb → pty_list_response.rb} +95 -49
- data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
- data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
- data/lib/daytona_api_client/models/range.rb +261 -0
- data/lib/daytona_api_client/models/region.rb +78 -192
- data/lib/daytona_api_client/models/{regenerate_api_key_response.rb → region_screenshot_response.rb} +113 -22
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +289 -0
- data/lib/daytona_api_client/models/{oidc_id_p_config.rb → replace_result.rb} +95 -88
- data/lib/daytona_api_client/models/runner.rb +215 -155
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
- data/lib/daytona_api_client/models/runner_state.rb +3 -4
- data/lib/daytona_api_client/models/sandbox.rb +101 -206
- data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -5
- data/lib/daytona_api_client/models/{create_region.rb → sandbox_info.rb} +113 -49
- data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
- data/lib/daytona_api_client/models/sandbox_state.rb +3 -10
- data/lib/daytona_api_client/models/sandbox_volume.rb +79 -18
- data/lib/daytona_api_client/models/screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/{audit_target_scenario.rb → search_files_response.rb} +95 -66
- data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
- data/lib/daytona_api_client/models/session.rb +251 -0
- data/lib/daytona_api_client/models/{list_sandboxes_response.rb → session_execute_request.rb} +110 -34
- data/lib/daytona_api_client/models/{organization_sso_enabled.rb → session_execute_response.rb} +104 -30
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -84
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -5
- data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
- data/lib/daytona_api_client/models/storage_access_dto.rb +78 -34
- data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
- data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_quota.rb +115 -131
- data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
- data/lib/daytona_api_client/models/user.rb +75 -41
- data/lib/daytona_api_client/models/{list_secrets_response.rb → user_home_dir_response.rb} +83 -72
- data/lib/daytona_api_client/models/user_public_key.rb +74 -3
- data/lib/daytona_api_client/models/volume_dto.rb +74 -3
- data/lib/daytona_api_client/models/volume_state.rb +3 -4
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
- data/lib/daytona_api_client/models/{preview_warning.rb → webhook_controller_get_status200_response.rb} +76 -23
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +265 -0
- data/lib/daytona_api_client/models/{update_job_status.rb → work_dir_response.rb} +83 -72
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +299 -222
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +76 -87
- data/project.json +13 -38
- metadata +83 -98
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -176
- 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 -1618
- 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/api/secret_api.rb +0 -441
- data/lib/daytona_api_client/api/warm_pools_api.rb +0 -286
- data/lib/daytona_api_client/api_model_base.rb +0 -88
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
- data/lib/daytona_api_client/models/audit_scenarios.rb +0 -167
- data/lib/daytona_api_client/models/create_identity_provider.rb +0 -269
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
- data/lib/daytona_api_client/models/date_filter.rb +0 -178
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- data/lib/daytona_api_client/models/gpu_type.rb +0 -44
- data/lib/daytona_api_client/models/identity_provider.rb +0 -439
- data/lib/daytona_api_client/models/int_filter.rb +0 -222
- data/lib/daytona_api_client/models/job.rb +0 -366
- data/lib/daytona_api_client/models/job_status.rb +0 -43
- data/lib/daytona_api_client/models/job_type.rb +0 -55
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- data/lib/daytona_api_client/models/metric_series.rb +0 -194
- data/lib/daytona_api_client/models/metrics_response.rb +0 -167
- data/lib/daytona_api_client/models/organization_preview_warning.rb +0 -165
- data/lib/daytona_api_client/models/otel_config.rb +0 -188
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
- data/lib/daytona_api_client/models/region_quota.rb +0 -453
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
- data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
- data/lib/daytona_api_client/models/runner_class.rb +0 -40
- data/lib/daytona_api_client/models/runner_full.rb +0 -757
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
- data/lib/daytona_api_client/models/sso_oidc_config.rb +0 -192
- data/lib/daytona_api_client/models/string_filter.rb +0 -182
- data/lib/daytona_api_client/models/test_identity_provider_connection.rb +0 -165
- data/lib/daytona_api_client/models/trace_summary.rb +0 -310
- data/lib/daytona_api_client/models/update_identity_provider.rb +0 -212
- data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +0 -178
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
- data/lib/daytona_api_client/models/update_region.rb +0 -182
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
- data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
- data/lib/daytona_api_client/models/update_secret.rb +0 -170
- data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
- data/lib/daytona_api_client/models/url.rb +0 -165
- data/lib/daytona_api_client/models/warm_pool.rb +0 -490
- data/lib/daytona_api_client/models/webhook_event.rb +0 -46
|
@@ -1,147 +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 AdminGetWebhookStatus200Response < ApiModelBase
|
|
18
|
-
attr_accessor :enabled
|
|
19
|
-
|
|
20
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
-
def self.attribute_map
|
|
22
|
-
{
|
|
23
|
-
:'enabled' => :'enabled'
|
|
24
|
-
}
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# Returns attribute mapping this model knows about
|
|
28
|
-
def self.acceptable_attribute_map
|
|
29
|
-
attribute_map
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Returns all the JSON keys this model knows about
|
|
33
|
-
def self.acceptable_attributes
|
|
34
|
-
acceptable_attribute_map.values
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Attribute type mapping.
|
|
38
|
-
def self.openapi_types
|
|
39
|
-
{
|
|
40
|
-
:'enabled' => :'Boolean'
|
|
41
|
-
}
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
# List of attributes with nullable: true
|
|
45
|
-
def self.openapi_nullable
|
|
46
|
-
Set.new([
|
|
47
|
-
])
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# Initializes the object
|
|
51
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
-
def initialize(attributes = {})
|
|
53
|
-
if (!attributes.is_a?(Hash))
|
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::AdminGetWebhookStatus200Response` initialize method"
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::AdminGetWebhookStatus200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
-
end
|
|
63
|
-
h[k.to_sym] = v
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if attributes.key?(:'enabled')
|
|
67
|
-
self.enabled = attributes[:'enabled']
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
72
|
-
# @return Array for valid properties with the reasons
|
|
73
|
-
def list_invalid_properties
|
|
74
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
75
|
-
invalid_properties = Array.new
|
|
76
|
-
invalid_properties
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Check to see if the all the properties in the model are valid
|
|
80
|
-
# @return true if the model is valid
|
|
81
|
-
def valid?
|
|
82
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
|
-
true
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Checks equality by comparing each attribute.
|
|
87
|
-
# @param [Object] Object to be compared
|
|
88
|
-
def ==(o)
|
|
89
|
-
return true if self.equal?(o)
|
|
90
|
-
self.class == o.class &&
|
|
91
|
-
enabled == o.enabled
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# @see the `==` method
|
|
95
|
-
# @param [Object] Object to be compared
|
|
96
|
-
def eql?(o)
|
|
97
|
-
self == o
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# Calculates hash code according to all attributes.
|
|
101
|
-
# @return [Integer] Hash code
|
|
102
|
-
def hash
|
|
103
|
-
[enabled].hash
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Builds the object from hash
|
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
-
# @return [Object] Returns the model itself
|
|
109
|
-
def self.build_from_hash(attributes)
|
|
110
|
-
return nil unless attributes.is_a?(Hash)
|
|
111
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
112
|
-
transformed_hash = {}
|
|
113
|
-
openapi_types.each_pair do |key, type|
|
|
114
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
115
|
-
transformed_hash["#{key}"] = nil
|
|
116
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
117
|
-
# check to ensure the input is an array given that the attribute
|
|
118
|
-
# is documented as an array but the input is not
|
|
119
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
120
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
121
|
-
end
|
|
122
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
123
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
new(transformed_hash)
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Returns the object in the form of hash
|
|
130
|
-
# @return [Hash] Returns the object in the form of hash
|
|
131
|
-
def to_hash
|
|
132
|
-
hash = {}
|
|
133
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
134
|
-
value = self.send(attr)
|
|
135
|
-
if value.nil?
|
|
136
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
137
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
hash[param] = _to_hash(value)
|
|
141
|
-
end
|
|
142
|
-
hash
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
end
|
|
@@ -1,167 +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 AuditScenarios < ApiModelBase
|
|
18
|
-
# Supported audit log scenarios grouped by target type. Derived at runtime from the audited routes and system events, sorted by target type.
|
|
19
|
-
attr_accessor :targets
|
|
20
|
-
|
|
21
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
-
def self.attribute_map
|
|
23
|
-
{
|
|
24
|
-
:'targets' => :'targets'
|
|
25
|
-
}
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# Returns attribute mapping this model knows about
|
|
29
|
-
def self.acceptable_attribute_map
|
|
30
|
-
attribute_map
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Returns all the JSON keys this model knows about
|
|
34
|
-
def self.acceptable_attributes
|
|
35
|
-
acceptable_attribute_map.values
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# Attribute type mapping.
|
|
39
|
-
def self.openapi_types
|
|
40
|
-
{
|
|
41
|
-
:'targets' => :'Array<AuditTargetScenario>'
|
|
42
|
-
}
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# List of attributes with nullable: true
|
|
46
|
-
def self.openapi_nullable
|
|
47
|
-
Set.new([
|
|
48
|
-
])
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Initializes the object
|
|
52
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
-
def initialize(attributes = {})
|
|
54
|
-
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::AuditScenarios` initialize method"
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::AuditScenarios`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
-
end
|
|
64
|
-
h[k.to_sym] = v
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if attributes.key?(:'targets')
|
|
68
|
-
if (value = attributes[:'targets']).is_a?(Array)
|
|
69
|
-
self.targets = value
|
|
70
|
-
end
|
|
71
|
-
else
|
|
72
|
-
self.targets = nil
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
-
# @return Array for valid properties with the reasons
|
|
78
|
-
def list_invalid_properties
|
|
79
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
80
|
-
invalid_properties = Array.new
|
|
81
|
-
if @targets.nil?
|
|
82
|
-
invalid_properties.push('invalid value for "targets", targets cannot be nil.')
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
invalid_properties
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Check to see if the all the properties in the model are valid
|
|
89
|
-
# @return true if the model is valid
|
|
90
|
-
def valid?
|
|
91
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
|
-
return false if @targets.nil?
|
|
93
|
-
true
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Custom attribute writer method with validation
|
|
97
|
-
# @param [Object] targets Value to be assigned
|
|
98
|
-
def targets=(targets)
|
|
99
|
-
if targets.nil?
|
|
100
|
-
fail ArgumentError, 'targets cannot be nil'
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
@targets = targets
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Checks equality by comparing each attribute.
|
|
107
|
-
# @param [Object] Object to be compared
|
|
108
|
-
def ==(o)
|
|
109
|
-
return true if self.equal?(o)
|
|
110
|
-
self.class == o.class &&
|
|
111
|
-
targets == o.targets
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# @see the `==` method
|
|
115
|
-
# @param [Object] Object to be compared
|
|
116
|
-
def eql?(o)
|
|
117
|
-
self == o
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# Calculates hash code according to all attributes.
|
|
121
|
-
# @return [Integer] Hash code
|
|
122
|
-
def hash
|
|
123
|
-
[targets].hash
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
# Builds the object from hash
|
|
127
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
-
# @return [Object] Returns the model itself
|
|
129
|
-
def self.build_from_hash(attributes)
|
|
130
|
-
return nil unless attributes.is_a?(Hash)
|
|
131
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
-
transformed_hash = {}
|
|
133
|
-
openapi_types.each_pair do |key, type|
|
|
134
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
135
|
-
transformed_hash["#{key}"] = nil
|
|
136
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
137
|
-
# check to ensure the input is an array given that the attribute
|
|
138
|
-
# is documented as an array but the input is not
|
|
139
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
140
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
141
|
-
end
|
|
142
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
143
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
new(transformed_hash)
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# Returns the object in the form of hash
|
|
150
|
-
# @return [Hash] Returns the object in the form of hash
|
|
151
|
-
def to_hash
|
|
152
|
-
hash = {}
|
|
153
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
154
|
-
value = self.send(attr)
|
|
155
|
-
if value.nil?
|
|
156
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
157
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
hash[param] = _to_hash(value)
|
|
161
|
-
end
|
|
162
|
-
hash
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
end
|
|
@@ -1,269 +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 CreateIdentityProvider < 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. Required and must be non-empty unless `allowAnyDomain` is true.
|
|
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 (default) 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' => :'OidcIdPConfig',
|
|
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::CreateIdentityProvider` 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::CreateIdentityProvider`. 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
|
-
else
|
|
100
|
-
self.name = nil
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'oidc_config')
|
|
104
|
-
self.oidc_config = attributes[:'oidc_config']
|
|
105
|
-
else
|
|
106
|
-
self.oidc_config = nil
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'email_domains')
|
|
110
|
-
if (value = attributes[:'email_domains']).is_a?(Array)
|
|
111
|
-
self.email_domains = value
|
|
112
|
-
end
|
|
113
|
-
else
|
|
114
|
-
self.email_domains = nil
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
if attributes.key?(:'allow_any_domain')
|
|
118
|
-
self.allow_any_domain = attributes[:'allow_any_domain']
|
|
119
|
-
else
|
|
120
|
-
self.allow_any_domain = false
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if attributes.key?(:'trust_email_verified')
|
|
124
|
-
self.trust_email_verified = attributes[:'trust_email_verified']
|
|
125
|
-
else
|
|
126
|
-
self.trust_email_verified = false
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if attributes.key?(:'default_assigned_role_ids')
|
|
130
|
-
if (value = attributes[:'default_assigned_role_ids']).is_a?(Array)
|
|
131
|
-
self.default_assigned_role_ids = value
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
if attributes.key?(:'enabled')
|
|
136
|
-
self.enabled = attributes[:'enabled']
|
|
137
|
-
else
|
|
138
|
-
self.enabled = true
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
143
|
-
# @return Array for valid properties with the reasons
|
|
144
|
-
def list_invalid_properties
|
|
145
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
146
|
-
invalid_properties = Array.new
|
|
147
|
-
if @name.nil?
|
|
148
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
if @oidc_config.nil?
|
|
152
|
-
invalid_properties.push('invalid value for "oidc_config", oidc_config cannot be nil.')
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if @email_domains.nil?
|
|
156
|
-
invalid_properties.push('invalid value for "email_domains", email_domains cannot be nil.')
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
invalid_properties
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
# Check to see if the all the properties in the model are valid
|
|
163
|
-
# @return true if the model is valid
|
|
164
|
-
def valid?
|
|
165
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
166
|
-
return false if @name.nil?
|
|
167
|
-
return false if @oidc_config.nil?
|
|
168
|
-
return false if @email_domains.nil?
|
|
169
|
-
true
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# Custom attribute writer method with validation
|
|
173
|
-
# @param [Object] name Value to be assigned
|
|
174
|
-
def name=(name)
|
|
175
|
-
if name.nil?
|
|
176
|
-
fail ArgumentError, 'name cannot be nil'
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
@name = name
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# Custom attribute writer method with validation
|
|
183
|
-
# @param [Object] oidc_config Value to be assigned
|
|
184
|
-
def oidc_config=(oidc_config)
|
|
185
|
-
if oidc_config.nil?
|
|
186
|
-
fail ArgumentError, 'oidc_config cannot be nil'
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
@oidc_config = oidc_config
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# Custom attribute writer method with validation
|
|
193
|
-
# @param [Object] email_domains Value to be assigned
|
|
194
|
-
def email_domains=(email_domains)
|
|
195
|
-
if email_domains.nil?
|
|
196
|
-
fail ArgumentError, 'email_domains cannot be nil'
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
@email_domains = email_domains
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Checks equality by comparing each attribute.
|
|
203
|
-
# @param [Object] Object to be compared
|
|
204
|
-
def ==(o)
|
|
205
|
-
return true if self.equal?(o)
|
|
206
|
-
self.class == o.class &&
|
|
207
|
-
name == o.name &&
|
|
208
|
-
oidc_config == o.oidc_config &&
|
|
209
|
-
email_domains == o.email_domains &&
|
|
210
|
-
allow_any_domain == o.allow_any_domain &&
|
|
211
|
-
trust_email_verified == o.trust_email_verified &&
|
|
212
|
-
default_assigned_role_ids == o.default_assigned_role_ids &&
|
|
213
|
-
enabled == o.enabled
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# @see the `==` method
|
|
217
|
-
# @param [Object] Object to be compared
|
|
218
|
-
def eql?(o)
|
|
219
|
-
self == o
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
# Calculates hash code according to all attributes.
|
|
223
|
-
# @return [Integer] Hash code
|
|
224
|
-
def hash
|
|
225
|
-
[name, oidc_config, email_domains, allow_any_domain, trust_email_verified, default_assigned_role_ids, enabled].hash
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
# Builds the object from hash
|
|
229
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
230
|
-
# @return [Object] Returns the model itself
|
|
231
|
-
def self.build_from_hash(attributes)
|
|
232
|
-
return nil unless attributes.is_a?(Hash)
|
|
233
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
234
|
-
transformed_hash = {}
|
|
235
|
-
openapi_types.each_pair do |key, type|
|
|
236
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
237
|
-
transformed_hash["#{key}"] = nil
|
|
238
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
239
|
-
# check to ensure the input is an array given that the attribute
|
|
240
|
-
# is documented as an array but the input is not
|
|
241
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
242
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
243
|
-
end
|
|
244
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
245
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
new(transformed_hash)
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
# Returns the object in the form of hash
|
|
252
|
-
# @return [Hash] Returns the object in the form of hash
|
|
253
|
-
def to_hash
|
|
254
|
-
hash = {}
|
|
255
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
256
|
-
value = self.send(attr)
|
|
257
|
-
if value.nil?
|
|
258
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
259
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
hash[param] = _to_hash(value)
|
|
263
|
-
end
|
|
264
|
-
hash
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
end
|