daytona_api_client 0.195.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 +140 -40
- 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 +155 -1075
- data/lib/daytona_api_client/api/preview_api.rb +8 -77
- data/lib/daytona_api_client/api/runners_api.rb +22 -412
- data/lib/daytona_api_client/api/sandbox_api.rb +346 -1901
- data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
- data/lib/daytona_api_client/api/toolbox_api.rb +741 -741
- data/lib/daytona_api_client/api/users_api.rb +239 -2
- 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/command.rb +74 -3
- data/lib/daytona_api_client/models/completion_context.rb +74 -3
- data/lib/daytona_api_client/models/completion_item.rb +74 -3
- data/lib/daytona_api_client/models/completion_list.rb +74 -3
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_start_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_status_response.rb +76 -5
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +74 -3
- 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 -17
- 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 -56
- data/lib/daytona_api_client/models/create_session_request.rb +74 -3
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
- data/lib/daytona_api_client/models/create_user.rb +77 -15
- 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 -64
- data/lib/daytona_api_client/models/display_info_response.rb +74 -3
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/download_files.rb +74 -3
- data/lib/daytona_api_client/models/execute_request.rb +74 -3
- data/lib/daytona_api_client/models/execute_response.rb +74 -3
- data/lib/daytona_api_client/models/file_info.rb +74 -3
- data/lib/daytona_api_client/models/file_status.rb +74 -3
- data/lib/daytona_api_client/models/git_add_request.rb +74 -3
- data/lib/daytona_api_client/models/git_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_checkout_request.rb +74 -3
- data/lib/daytona_api_client/models/git_clone_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_info.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_response.rb +74 -3
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_repo_request.rb +74 -3
- data/lib/daytona_api_client/models/git_status.rb +74 -3
- 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/keyboard_hotkey_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_press_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_type_request.rb +74 -3
- data/lib/daytona_api_client/models/list_branch_response.rb +74 -3
- data/lib/daytona_api_client/models/lsp_completion_params.rb +74 -3
- data/lib/daytona_api_client/models/lsp_document_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_location.rb +74 -3
- data/lib/daytona_api_client/models/lsp_server_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_symbol.rb +74 -3
- data/lib/daytona_api_client/models/match.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_position.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +74 -3
- data/lib/daytona_api_client/models/oidc_config.rb +74 -3
- data/lib/daytona_api_client/models/organization.rb +159 -216
- 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_jobs.rb → paginated_snapshots_dto.rb} +77 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +74 -3
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +74 -3
- data/lib/daytona_api_client/models/process_logs_response.rb +74 -3
- data/lib/daytona_api_client/models/process_restart_response.rb +74 -3
- data/lib/daytona_api_client/models/process_status_response.rb +74 -3
- data/lib/daytona_api_client/models/project_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_list_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_resize_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_session_info.rb +74 -3
- data/lib/daytona_api_client/models/range.rb +74 -3
- data/lib/daytona_api_client/models/region.rb +78 -181
- data/lib/daytona_api_client/models/region_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +74 -3
- data/lib/daytona_api_client/models/replace_result.rb +74 -3
- 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 +104 -137
- 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/{admin_create_organization.rb → sandbox_info.rb} +102 -48
- 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 +74 -3
- data/lib/daytona_api_client/models/search_files_response.rb +74 -3
- data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
- data/lib/daytona_api_client/models/session.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_request.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_response.rb +74 -3
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -71
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -4
- 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 +74 -3
- 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 +74 -3
- data/lib/daytona_api_client/models/user_home_dir_response.rb +74 -3
- 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/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +76 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +74 -3
- data/lib/daytona_api_client/models/work_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +344 -168
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +8 -65
- data/project.json +13 -38
- metadata +15 -76
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -222
- 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 -1545
- 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_model_base.rb +0 -88
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -372
- data/lib/daytona_api_client/models/create_region.rb +0 -198
- data/lib/daytona_api_client/models/create_region_response.rb +0 -209
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -192
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -177
- data/lib/daytona_api_client/models/create_secret.rb +0 -214
- 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/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 -54
- data/lib/daytona_api_client/models/list_sandboxes_response.rb +0 -180
- data/lib/daytona_api_client/models/list_secrets_response.rb +0 -207
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
- 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/otel_config.rb +0 -188
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -248
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
- 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/regenerate_api_key_response.rb +0 -165
- data/lib/daytona_api_client/models/region_quota.rb +0 -437
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -515
- 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/runner_healthcheck.rb +0 -217
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
- 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/secret.rb +0 -312
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
- data/lib/daytona_api_client/models/string_filter.rb +0 -182
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -165
- data/lib/daytona_api_client/models/trace_span.rb +0 -332
- data/lib/daytona_api_client/models/trace_summary.rb +0 -310
- data/lib/daytona_api_client/models/update_job_status.rb +0 -207
- 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 -299
- data/lib/daytona_api_client/models/update_region.rb +0 -171
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
- data/lib/daytona_api_client/models/update_secret.rb +0 -170
- data/lib/daytona_api_client/models/url.rb +0 -165
- data/lib/daytona_api_client/models/webhook_event.rb +0 -46
|
@@ -1,54 +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 JobType
|
|
18
|
-
CREATE_SANDBOX = "CREATE_SANDBOX".freeze
|
|
19
|
-
START_SANDBOX = "START_SANDBOX".freeze
|
|
20
|
-
STOP_SANDBOX = "STOP_SANDBOX".freeze
|
|
21
|
-
DESTROY_SANDBOX = "DESTROY_SANDBOX".freeze
|
|
22
|
-
RESIZE_SANDBOX = "RESIZE_SANDBOX".freeze
|
|
23
|
-
CREATE_BACKUP = "CREATE_BACKUP".freeze
|
|
24
|
-
BUILD_SNAPSHOT = "BUILD_SNAPSHOT".freeze
|
|
25
|
-
PULL_SNAPSHOT = "PULL_SNAPSHOT".freeze
|
|
26
|
-
RECOVER_SANDBOX = "RECOVER_SANDBOX".freeze
|
|
27
|
-
INSPECT_SNAPSHOT_IN_REGISTRY = "INSPECT_SNAPSHOT_IN_REGISTRY".freeze
|
|
28
|
-
REMOVE_SNAPSHOT = "REMOVE_SNAPSHOT".freeze
|
|
29
|
-
UPDATE_SANDBOX_NETWORK_SETTINGS = "UPDATE_SANDBOX_NETWORK_SETTINGS".freeze
|
|
30
|
-
SNAPSHOT_SANDBOX = "SNAPSHOT_SANDBOX".freeze
|
|
31
|
-
FORK_SANDBOX = "FORK_SANDBOX".freeze
|
|
32
|
-
PAUSE_SANDBOX = "PAUSE_SANDBOX".freeze
|
|
33
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
34
|
-
|
|
35
|
-
def self.all_vars
|
|
36
|
-
@all_vars ||= [CREATE_SANDBOX, START_SANDBOX, STOP_SANDBOX, DESTROY_SANDBOX, RESIZE_SANDBOX, CREATE_BACKUP, BUILD_SNAPSHOT, PULL_SNAPSHOT, RECOVER_SANDBOX, INSPECT_SNAPSHOT_IN_REGISTRY, REMOVE_SNAPSHOT, UPDATE_SANDBOX_NETWORK_SETTINGS, SNAPSHOT_SANDBOX, FORK_SANDBOX, PAUSE_SANDBOX, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# Builds the enum from string
|
|
40
|
-
# @param [String] The enum value in the form of the string
|
|
41
|
-
# @return [String] The enum value
|
|
42
|
-
def self.build_from_hash(value)
|
|
43
|
-
new.build_from_hash(value)
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Builds the enum from string
|
|
47
|
-
# @param [String] The enum value in the form of the string
|
|
48
|
-
# @return [String] The enum value
|
|
49
|
-
def build_from_hash(value)
|
|
50
|
-
return value if JobType.all_vars.include?(value)
|
|
51
|
-
UNKNOWN_DEFAULT_OPEN_API
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
@@ -1,180 +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 ListSandboxesResponse < ApiModelBase
|
|
18
|
-
# List of results for the current page
|
|
19
|
-
attr_accessor :items
|
|
20
|
-
|
|
21
|
-
# Cursor for the next page of results
|
|
22
|
-
attr_accessor :next_cursor
|
|
23
|
-
|
|
24
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
-
def self.attribute_map
|
|
26
|
-
{
|
|
27
|
-
:'items' => :'items',
|
|
28
|
-
:'next_cursor' => :'nextCursor'
|
|
29
|
-
}
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Returns attribute mapping this model knows about
|
|
33
|
-
def self.acceptable_attribute_map
|
|
34
|
-
attribute_map
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Returns all the JSON keys this model knows about
|
|
38
|
-
def self.acceptable_attributes
|
|
39
|
-
acceptable_attribute_map.values
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Attribute type mapping.
|
|
43
|
-
def self.openapi_types
|
|
44
|
-
{
|
|
45
|
-
:'items' => :'Array<SandboxListItem>',
|
|
46
|
-
:'next_cursor' => :'String'
|
|
47
|
-
}
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# List of attributes with nullable: true
|
|
51
|
-
def self.openapi_nullable
|
|
52
|
-
Set.new([
|
|
53
|
-
:'next_cursor'
|
|
54
|
-
])
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Initializes the object
|
|
58
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
-
def initialize(attributes = {})
|
|
60
|
-
if (!attributes.is_a?(Hash))
|
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ListSandboxesResponse` initialize method"
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ListSandboxesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
-
end
|
|
70
|
-
h[k.to_sym] = v
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if attributes.key?(:'items')
|
|
74
|
-
if (value = attributes[:'items']).is_a?(Array)
|
|
75
|
-
self.items = value
|
|
76
|
-
end
|
|
77
|
-
else
|
|
78
|
-
self.items = nil
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
if attributes.key?(:'next_cursor')
|
|
82
|
-
self.next_cursor = attributes[:'next_cursor']
|
|
83
|
-
else
|
|
84
|
-
self.next_cursor = nil
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
89
|
-
# @return Array for valid properties with the reasons
|
|
90
|
-
def list_invalid_properties
|
|
91
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
92
|
-
invalid_properties = Array.new
|
|
93
|
-
if @items.nil?
|
|
94
|
-
invalid_properties.push('invalid value for "items", items cannot be nil.')
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
invalid_properties
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# Check to see if the all the properties in the model are valid
|
|
101
|
-
# @return true if the model is valid
|
|
102
|
-
def valid?
|
|
103
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
|
-
return false if @items.nil?
|
|
105
|
-
true
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
# Custom attribute writer method with validation
|
|
109
|
-
# @param [Object] items Value to be assigned
|
|
110
|
-
def items=(items)
|
|
111
|
-
if items.nil?
|
|
112
|
-
fail ArgumentError, 'items cannot be nil'
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
@items = items
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
# Checks equality by comparing each attribute.
|
|
119
|
-
# @param [Object] Object to be compared
|
|
120
|
-
def ==(o)
|
|
121
|
-
return true if self.equal?(o)
|
|
122
|
-
self.class == o.class &&
|
|
123
|
-
items == o.items &&
|
|
124
|
-
next_cursor == o.next_cursor
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
# @see the `==` method
|
|
128
|
-
# @param [Object] Object to be compared
|
|
129
|
-
def eql?(o)
|
|
130
|
-
self == o
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
# Calculates hash code according to all attributes.
|
|
134
|
-
# @return [Integer] Hash code
|
|
135
|
-
def hash
|
|
136
|
-
[items, next_cursor].hash
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
# Builds the object from hash
|
|
140
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
141
|
-
# @return [Object] Returns the model itself
|
|
142
|
-
def self.build_from_hash(attributes)
|
|
143
|
-
return nil unless attributes.is_a?(Hash)
|
|
144
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
145
|
-
transformed_hash = {}
|
|
146
|
-
openapi_types.each_pair do |key, type|
|
|
147
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
148
|
-
transformed_hash["#{key}"] = nil
|
|
149
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
150
|
-
# check to ensure the input is an array given that the attribute
|
|
151
|
-
# is documented as an array but the input is not
|
|
152
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
153
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
154
|
-
end
|
|
155
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
156
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
new(transformed_hash)
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
# Returns the object in the form of hash
|
|
163
|
-
# @return [Hash] Returns the object in the form of hash
|
|
164
|
-
def to_hash
|
|
165
|
-
hash = {}
|
|
166
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
167
|
-
value = self.send(attr)
|
|
168
|
-
if value.nil?
|
|
169
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
170
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
hash[param] = _to_hash(value)
|
|
174
|
-
end
|
|
175
|
-
hash
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
end
|
|
@@ -1,207 +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 ListSecretsResponse < ApiModelBase
|
|
18
|
-
# List of results for the current page
|
|
19
|
-
attr_accessor :items
|
|
20
|
-
|
|
21
|
-
# Total number of secrets matching the filters
|
|
22
|
-
attr_accessor :total
|
|
23
|
-
|
|
24
|
-
# Cursor for the next page of results
|
|
25
|
-
attr_accessor :next_cursor
|
|
26
|
-
|
|
27
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
-
def self.attribute_map
|
|
29
|
-
{
|
|
30
|
-
:'items' => :'items',
|
|
31
|
-
:'total' => :'total',
|
|
32
|
-
:'next_cursor' => :'nextCursor'
|
|
33
|
-
}
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Returns attribute mapping this model knows about
|
|
37
|
-
def self.acceptable_attribute_map
|
|
38
|
-
attribute_map
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Returns all the JSON keys this model knows about
|
|
42
|
-
def self.acceptable_attributes
|
|
43
|
-
acceptable_attribute_map.values
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Attribute type mapping.
|
|
47
|
-
def self.openapi_types
|
|
48
|
-
{
|
|
49
|
-
:'items' => :'Array<Secret>',
|
|
50
|
-
:'total' => :'Float',
|
|
51
|
-
:'next_cursor' => :'String'
|
|
52
|
-
}
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# List of attributes with nullable: true
|
|
56
|
-
def self.openapi_nullable
|
|
57
|
-
Set.new([
|
|
58
|
-
:'next_cursor'
|
|
59
|
-
])
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Initializes the object
|
|
63
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
-
def initialize(attributes = {})
|
|
65
|
-
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ListSecretsResponse` initialize method"
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ListSecretsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
-
end
|
|
75
|
-
h[k.to_sym] = v
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if attributes.key?(:'items')
|
|
79
|
-
if (value = attributes[:'items']).is_a?(Array)
|
|
80
|
-
self.items = value
|
|
81
|
-
end
|
|
82
|
-
else
|
|
83
|
-
self.items = nil
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
if attributes.key?(:'total')
|
|
87
|
-
self.total = attributes[:'total']
|
|
88
|
-
else
|
|
89
|
-
self.total = nil
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'next_cursor')
|
|
93
|
-
self.next_cursor = attributes[:'next_cursor']
|
|
94
|
-
else
|
|
95
|
-
self.next_cursor = nil
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
100
|
-
# @return Array for valid properties with the reasons
|
|
101
|
-
def list_invalid_properties
|
|
102
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
103
|
-
invalid_properties = Array.new
|
|
104
|
-
if @items.nil?
|
|
105
|
-
invalid_properties.push('invalid value for "items", items cannot be nil.')
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if @total.nil?
|
|
109
|
-
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
invalid_properties
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# Check to see if the all the properties in the model are valid
|
|
116
|
-
# @return true if the model is valid
|
|
117
|
-
def valid?
|
|
118
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
119
|
-
return false if @items.nil?
|
|
120
|
-
return false if @total.nil?
|
|
121
|
-
true
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] items Value to be assigned
|
|
126
|
-
def items=(items)
|
|
127
|
-
if items.nil?
|
|
128
|
-
fail ArgumentError, 'items cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@items = items
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object] total Value to be assigned
|
|
136
|
-
def total=(total)
|
|
137
|
-
if total.nil?
|
|
138
|
-
fail ArgumentError, 'total cannot be nil'
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@total = total
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Checks equality by comparing each attribute.
|
|
145
|
-
# @param [Object] Object to be compared
|
|
146
|
-
def ==(o)
|
|
147
|
-
return true if self.equal?(o)
|
|
148
|
-
self.class == o.class &&
|
|
149
|
-
items == o.items &&
|
|
150
|
-
total == o.total &&
|
|
151
|
-
next_cursor == o.next_cursor
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# @see the `==` method
|
|
155
|
-
# @param [Object] Object to be compared
|
|
156
|
-
def eql?(o)
|
|
157
|
-
self == o
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
# Calculates hash code according to all attributes.
|
|
161
|
-
# @return [Integer] Hash code
|
|
162
|
-
def hash
|
|
163
|
-
[items, total, next_cursor].hash
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
# Builds the object from hash
|
|
167
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
168
|
-
# @return [Object] Returns the model itself
|
|
169
|
-
def self.build_from_hash(attributes)
|
|
170
|
-
return nil unless attributes.is_a?(Hash)
|
|
171
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
172
|
-
transformed_hash = {}
|
|
173
|
-
openapi_types.each_pair do |key, type|
|
|
174
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
175
|
-
transformed_hash["#{key}"] = nil
|
|
176
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
177
|
-
# check to ensure the input is an array given that the attribute
|
|
178
|
-
# is documented as an array but the input is not
|
|
179
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
180
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
181
|
-
end
|
|
182
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
183
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
new(transformed_hash)
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# Returns the object in the form of hash
|
|
190
|
-
# @return [Hash] Returns the object in the form of hash
|
|
191
|
-
def to_hash
|
|
192
|
-
hash = {}
|
|
193
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
194
|
-
value = self.send(attr)
|
|
195
|
-
if value.nil?
|
|
196
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
197
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
hash[param] = _to_hash(value)
|
|
201
|
-
end
|
|
202
|
-
hash
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
end
|