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,44 +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 GpuType
|
|
18
|
-
H100 = "H100".freeze
|
|
19
|
-
H200 = "H200".freeze
|
|
20
|
-
RTX_PRO_6000 = "RTX-PRO-6000".freeze
|
|
21
|
-
RTX_4090 = "RTX-4090".freeze
|
|
22
|
-
RTX_5090 = "RTX-5090".freeze
|
|
23
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
24
|
-
|
|
25
|
-
def self.all_vars
|
|
26
|
-
@all_vars ||= [H100, H200, RTX_PRO_6000, RTX_4090, RTX_5090, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
# Builds the enum from string
|
|
30
|
-
# @param [String] The enum value in the form of the string
|
|
31
|
-
# @return [String] The enum value
|
|
32
|
-
def self.build_from_hash(value)
|
|
33
|
-
new.build_from_hash(value)
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Builds the enum from string
|
|
37
|
-
# @param [String] The enum value in the form of the string
|
|
38
|
-
# @return [String] The enum value
|
|
39
|
-
def build_from_hash(value)
|
|
40
|
-
return value if GpuType.all_vars.include?(value)
|
|
41
|
-
UNKNOWN_DEFAULT_OPEN_API
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
@@ -1,439 +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 IdentityProvider < ApiModelBase
|
|
18
|
-
# Unique identifier
|
|
19
|
-
attr_accessor :id
|
|
20
|
-
|
|
21
|
-
# Organization ID
|
|
22
|
-
attr_accessor :organization_id
|
|
23
|
-
|
|
24
|
-
# Display name for the identity provider
|
|
25
|
-
attr_accessor :name
|
|
26
|
-
|
|
27
|
-
# OIDC configuration (secret redacted)
|
|
28
|
-
attr_accessor :oidc_config
|
|
29
|
-
|
|
30
|
-
# Email domains used for IdP discovery on the login form. May be empty when `allowAnyDomain` is true.
|
|
31
|
-
attr_accessor :email_domains
|
|
32
|
-
|
|
33
|
-
# Whether the IdP accepts any email domain returned by the external provider
|
|
34
|
-
attr_accessor :allow_any_domain
|
|
35
|
-
|
|
36
|
-
# Whether the `email_verified` claim check is skipped on SSO logins through this identity provider
|
|
37
|
-
attr_accessor :trust_email_verified
|
|
38
|
-
|
|
39
|
-
# Organization role IDs assigned to users who join via SSO through this identity provider
|
|
40
|
-
attr_accessor :default_assigned_role_ids
|
|
41
|
-
|
|
42
|
-
# Whether the identity provider is enabled
|
|
43
|
-
attr_accessor :enabled
|
|
44
|
-
|
|
45
|
-
# Creation timestamp
|
|
46
|
-
attr_accessor :created_at
|
|
47
|
-
|
|
48
|
-
# Last update timestamp
|
|
49
|
-
attr_accessor :updated_at
|
|
50
|
-
|
|
51
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
|
-
def self.attribute_map
|
|
53
|
-
{
|
|
54
|
-
:'id' => :'id',
|
|
55
|
-
:'organization_id' => :'organizationId',
|
|
56
|
-
:'name' => :'name',
|
|
57
|
-
:'oidc_config' => :'oidcConfig',
|
|
58
|
-
:'email_domains' => :'emailDomains',
|
|
59
|
-
:'allow_any_domain' => :'allowAnyDomain',
|
|
60
|
-
:'trust_email_verified' => :'trustEmailVerified',
|
|
61
|
-
:'default_assigned_role_ids' => :'defaultAssignedRoleIds',
|
|
62
|
-
:'enabled' => :'enabled',
|
|
63
|
-
:'created_at' => :'createdAt',
|
|
64
|
-
:'updated_at' => :'updatedAt'
|
|
65
|
-
}
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# Returns attribute mapping this model knows about
|
|
69
|
-
def self.acceptable_attribute_map
|
|
70
|
-
attribute_map
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
# Returns all the JSON keys this model knows about
|
|
74
|
-
def self.acceptable_attributes
|
|
75
|
-
acceptable_attribute_map.values
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# Attribute type mapping.
|
|
79
|
-
def self.openapi_types
|
|
80
|
-
{
|
|
81
|
-
:'id' => :'String',
|
|
82
|
-
:'organization_id' => :'String',
|
|
83
|
-
:'name' => :'String',
|
|
84
|
-
:'oidc_config' => :'OidcIdPConfigResponse',
|
|
85
|
-
:'email_domains' => :'Array<String>',
|
|
86
|
-
:'allow_any_domain' => :'Boolean',
|
|
87
|
-
:'trust_email_verified' => :'Boolean',
|
|
88
|
-
:'default_assigned_role_ids' => :'Array<String>',
|
|
89
|
-
:'enabled' => :'Boolean',
|
|
90
|
-
:'created_at' => :'Time',
|
|
91
|
-
:'updated_at' => :'Time'
|
|
92
|
-
}
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
# List of attributes with nullable: true
|
|
96
|
-
def self.openapi_nullable
|
|
97
|
-
Set.new([
|
|
98
|
-
])
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# Initializes the object
|
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
103
|
-
def initialize(attributes = {})
|
|
104
|
-
if (!attributes.is_a?(Hash))
|
|
105
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::IdentityProvider` initialize method"
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
109
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
110
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
111
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
112
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::IdentityProvider`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
113
|
-
end
|
|
114
|
-
h[k.to_sym] = v
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if attributes.key?(:'id')
|
|
118
|
-
self.id = attributes[:'id']
|
|
119
|
-
else
|
|
120
|
-
self.id = nil
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if attributes.key?(:'organization_id')
|
|
124
|
-
self.organization_id = attributes[:'organization_id']
|
|
125
|
-
else
|
|
126
|
-
self.organization_id = nil
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if attributes.key?(:'name')
|
|
130
|
-
self.name = attributes[:'name']
|
|
131
|
-
else
|
|
132
|
-
self.name = nil
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
if attributes.key?(:'oidc_config')
|
|
136
|
-
self.oidc_config = attributes[:'oidc_config']
|
|
137
|
-
else
|
|
138
|
-
self.oidc_config = nil
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
if attributes.key?(:'email_domains')
|
|
142
|
-
if (value = attributes[:'email_domains']).is_a?(Array)
|
|
143
|
-
self.email_domains = value
|
|
144
|
-
end
|
|
145
|
-
else
|
|
146
|
-
self.email_domains = nil
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'allow_any_domain')
|
|
150
|
-
self.allow_any_domain = attributes[:'allow_any_domain']
|
|
151
|
-
else
|
|
152
|
-
self.allow_any_domain = nil
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if attributes.key?(:'trust_email_verified')
|
|
156
|
-
self.trust_email_verified = attributes[:'trust_email_verified']
|
|
157
|
-
else
|
|
158
|
-
self.trust_email_verified = nil
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
if attributes.key?(:'default_assigned_role_ids')
|
|
162
|
-
if (value = attributes[:'default_assigned_role_ids']).is_a?(Array)
|
|
163
|
-
self.default_assigned_role_ids = value
|
|
164
|
-
end
|
|
165
|
-
else
|
|
166
|
-
self.default_assigned_role_ids = nil
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
if attributes.key?(:'enabled')
|
|
170
|
-
self.enabled = attributes[:'enabled']
|
|
171
|
-
else
|
|
172
|
-
self.enabled = nil
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
if attributes.key?(:'created_at')
|
|
176
|
-
self.created_at = attributes[:'created_at']
|
|
177
|
-
else
|
|
178
|
-
self.created_at = nil
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.key?(:'updated_at')
|
|
182
|
-
self.updated_at = attributes[:'updated_at']
|
|
183
|
-
else
|
|
184
|
-
self.updated_at = nil
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
189
|
-
# @return Array for valid properties with the reasons
|
|
190
|
-
def list_invalid_properties
|
|
191
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
192
|
-
invalid_properties = Array.new
|
|
193
|
-
if @id.nil?
|
|
194
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
if @organization_id.nil?
|
|
198
|
-
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
if @name.nil?
|
|
202
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
if @oidc_config.nil?
|
|
206
|
-
invalid_properties.push('invalid value for "oidc_config", oidc_config cannot be nil.')
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
if @email_domains.nil?
|
|
210
|
-
invalid_properties.push('invalid value for "email_domains", email_domains cannot be nil.')
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
if @allow_any_domain.nil?
|
|
214
|
-
invalid_properties.push('invalid value for "allow_any_domain", allow_any_domain cannot be nil.')
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
if @trust_email_verified.nil?
|
|
218
|
-
invalid_properties.push('invalid value for "trust_email_verified", trust_email_verified cannot be nil.')
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
if @default_assigned_role_ids.nil?
|
|
222
|
-
invalid_properties.push('invalid value for "default_assigned_role_ids", default_assigned_role_ids cannot be nil.')
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
if @enabled.nil?
|
|
226
|
-
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
if @created_at.nil?
|
|
230
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
if @updated_at.nil?
|
|
234
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
invalid_properties
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
# Check to see if the all the properties in the model are valid
|
|
241
|
-
# @return true if the model is valid
|
|
242
|
-
def valid?
|
|
243
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
244
|
-
return false if @id.nil?
|
|
245
|
-
return false if @organization_id.nil?
|
|
246
|
-
return false if @name.nil?
|
|
247
|
-
return false if @oidc_config.nil?
|
|
248
|
-
return false if @email_domains.nil?
|
|
249
|
-
return false if @allow_any_domain.nil?
|
|
250
|
-
return false if @trust_email_verified.nil?
|
|
251
|
-
return false if @default_assigned_role_ids.nil?
|
|
252
|
-
return false if @enabled.nil?
|
|
253
|
-
return false if @created_at.nil?
|
|
254
|
-
return false if @updated_at.nil?
|
|
255
|
-
true
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
# Custom attribute writer method with validation
|
|
259
|
-
# @param [Object] id Value to be assigned
|
|
260
|
-
def id=(id)
|
|
261
|
-
if id.nil?
|
|
262
|
-
fail ArgumentError, 'id cannot be nil'
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
@id = id
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
# Custom attribute writer method with validation
|
|
269
|
-
# @param [Object] organization_id Value to be assigned
|
|
270
|
-
def organization_id=(organization_id)
|
|
271
|
-
if organization_id.nil?
|
|
272
|
-
fail ArgumentError, 'organization_id cannot be nil'
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
@organization_id = organization_id
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
# Custom attribute writer method with validation
|
|
279
|
-
# @param [Object] name Value to be assigned
|
|
280
|
-
def name=(name)
|
|
281
|
-
if name.nil?
|
|
282
|
-
fail ArgumentError, 'name cannot be nil'
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
@name = name
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
# Custom attribute writer method with validation
|
|
289
|
-
# @param [Object] oidc_config Value to be assigned
|
|
290
|
-
def oidc_config=(oidc_config)
|
|
291
|
-
if oidc_config.nil?
|
|
292
|
-
fail ArgumentError, 'oidc_config cannot be nil'
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
@oidc_config = oidc_config
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
# Custom attribute writer method with validation
|
|
299
|
-
# @param [Object] email_domains Value to be assigned
|
|
300
|
-
def email_domains=(email_domains)
|
|
301
|
-
if email_domains.nil?
|
|
302
|
-
fail ArgumentError, 'email_domains cannot be nil'
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
@email_domains = email_domains
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# Custom attribute writer method with validation
|
|
309
|
-
# @param [Object] allow_any_domain Value to be assigned
|
|
310
|
-
def allow_any_domain=(allow_any_domain)
|
|
311
|
-
if allow_any_domain.nil?
|
|
312
|
-
fail ArgumentError, 'allow_any_domain cannot be nil'
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
@allow_any_domain = allow_any_domain
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
# Custom attribute writer method with validation
|
|
319
|
-
# @param [Object] trust_email_verified Value to be assigned
|
|
320
|
-
def trust_email_verified=(trust_email_verified)
|
|
321
|
-
if trust_email_verified.nil?
|
|
322
|
-
fail ArgumentError, 'trust_email_verified cannot be nil'
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
@trust_email_verified = trust_email_verified
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
# Custom attribute writer method with validation
|
|
329
|
-
# @param [Object] default_assigned_role_ids Value to be assigned
|
|
330
|
-
def default_assigned_role_ids=(default_assigned_role_ids)
|
|
331
|
-
if default_assigned_role_ids.nil?
|
|
332
|
-
fail ArgumentError, 'default_assigned_role_ids cannot be nil'
|
|
333
|
-
end
|
|
334
|
-
|
|
335
|
-
@default_assigned_role_ids = default_assigned_role_ids
|
|
336
|
-
end
|
|
337
|
-
|
|
338
|
-
# Custom attribute writer method with validation
|
|
339
|
-
# @param [Object] enabled Value to be assigned
|
|
340
|
-
def enabled=(enabled)
|
|
341
|
-
if enabled.nil?
|
|
342
|
-
fail ArgumentError, 'enabled cannot be nil'
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
@enabled = enabled
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
# Custom attribute writer method with validation
|
|
349
|
-
# @param [Object] created_at Value to be assigned
|
|
350
|
-
def created_at=(created_at)
|
|
351
|
-
if created_at.nil?
|
|
352
|
-
fail ArgumentError, 'created_at cannot be nil'
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
@created_at = created_at
|
|
356
|
-
end
|
|
357
|
-
|
|
358
|
-
# Custom attribute writer method with validation
|
|
359
|
-
# @param [Object] updated_at Value to be assigned
|
|
360
|
-
def updated_at=(updated_at)
|
|
361
|
-
if updated_at.nil?
|
|
362
|
-
fail ArgumentError, 'updated_at cannot be nil'
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
@updated_at = updated_at
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Checks equality by comparing each attribute.
|
|
369
|
-
# @param [Object] Object to be compared
|
|
370
|
-
def ==(o)
|
|
371
|
-
return true if self.equal?(o)
|
|
372
|
-
self.class == o.class &&
|
|
373
|
-
id == o.id &&
|
|
374
|
-
organization_id == o.organization_id &&
|
|
375
|
-
name == o.name &&
|
|
376
|
-
oidc_config == o.oidc_config &&
|
|
377
|
-
email_domains == o.email_domains &&
|
|
378
|
-
allow_any_domain == o.allow_any_domain &&
|
|
379
|
-
trust_email_verified == o.trust_email_verified &&
|
|
380
|
-
default_assigned_role_ids == o.default_assigned_role_ids &&
|
|
381
|
-
enabled == o.enabled &&
|
|
382
|
-
created_at == o.created_at &&
|
|
383
|
-
updated_at == o.updated_at
|
|
384
|
-
end
|
|
385
|
-
|
|
386
|
-
# @see the `==` method
|
|
387
|
-
# @param [Object] Object to be compared
|
|
388
|
-
def eql?(o)
|
|
389
|
-
self == o
|
|
390
|
-
end
|
|
391
|
-
|
|
392
|
-
# Calculates hash code according to all attributes.
|
|
393
|
-
# @return [Integer] Hash code
|
|
394
|
-
def hash
|
|
395
|
-
[id, organization_id, name, oidc_config, email_domains, allow_any_domain, trust_email_verified, default_assigned_role_ids, enabled, created_at, updated_at].hash
|
|
396
|
-
end
|
|
397
|
-
|
|
398
|
-
# Builds the object from hash
|
|
399
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
400
|
-
# @return [Object] Returns the model itself
|
|
401
|
-
def self.build_from_hash(attributes)
|
|
402
|
-
return nil unless attributes.is_a?(Hash)
|
|
403
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
404
|
-
transformed_hash = {}
|
|
405
|
-
openapi_types.each_pair do |key, type|
|
|
406
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
407
|
-
transformed_hash["#{key}"] = nil
|
|
408
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
409
|
-
# check to ensure the input is an array given that the attribute
|
|
410
|
-
# is documented as an array but the input is not
|
|
411
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
412
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
413
|
-
end
|
|
414
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
415
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
416
|
-
end
|
|
417
|
-
end
|
|
418
|
-
new(transformed_hash)
|
|
419
|
-
end
|
|
420
|
-
|
|
421
|
-
# Returns the object in the form of hash
|
|
422
|
-
# @return [Hash] Returns the object in the form of hash
|
|
423
|
-
def to_hash
|
|
424
|
-
hash = {}
|
|
425
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
426
|
-
value = self.send(attr)
|
|
427
|
-
if value.nil?
|
|
428
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
429
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
430
|
-
end
|
|
431
|
-
|
|
432
|
-
hash[param] = _to_hash(value)
|
|
433
|
-
end
|
|
434
|
-
hash
|
|
435
|
-
end
|
|
436
|
-
|
|
437
|
-
end
|
|
438
|
-
|
|
439
|
-
end
|
|
@@ -1,222 +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 IntFilter < ApiModelBase
|
|
18
|
-
# Match values equal to this value.
|
|
19
|
-
attr_accessor :eq
|
|
20
|
-
|
|
21
|
-
# Match values not equal to this value.
|
|
22
|
-
attr_accessor :_not
|
|
23
|
-
|
|
24
|
-
# Match values present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries.
|
|
25
|
-
attr_accessor :_in
|
|
26
|
-
|
|
27
|
-
# Match values not present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries.
|
|
28
|
-
attr_accessor :not_in
|
|
29
|
-
|
|
30
|
-
# Match values greater than or equal to this value.
|
|
31
|
-
attr_accessor :gte
|
|
32
|
-
|
|
33
|
-
# Match values less than or equal to this value.
|
|
34
|
-
attr_accessor :lte
|
|
35
|
-
|
|
36
|
-
# Match values strictly greater than this value.
|
|
37
|
-
attr_accessor :gt
|
|
38
|
-
|
|
39
|
-
# Match values strictly less than this value.
|
|
40
|
-
attr_accessor :lt
|
|
41
|
-
|
|
42
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
-
def self.attribute_map
|
|
44
|
-
{
|
|
45
|
-
:'eq' => :'eq',
|
|
46
|
-
:'_not' => :'not',
|
|
47
|
-
:'_in' => :'in',
|
|
48
|
-
:'not_in' => :'notIn',
|
|
49
|
-
:'gte' => :'gte',
|
|
50
|
-
:'lte' => :'lte',
|
|
51
|
-
:'gt' => :'gt',
|
|
52
|
-
:'lt' => :'lt'
|
|
53
|
-
}
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Returns attribute mapping this model knows about
|
|
57
|
-
def self.acceptable_attribute_map
|
|
58
|
-
attribute_map
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# Returns all the JSON keys this model knows about
|
|
62
|
-
def self.acceptable_attributes
|
|
63
|
-
acceptable_attribute_map.values
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# Attribute type mapping.
|
|
67
|
-
def self.openapi_types
|
|
68
|
-
{
|
|
69
|
-
:'eq' => :'Float',
|
|
70
|
-
:'_not' => :'Float',
|
|
71
|
-
:'_in' => :'Array<Float>',
|
|
72
|
-
:'not_in' => :'Array<Float>',
|
|
73
|
-
:'gte' => :'Float',
|
|
74
|
-
:'lte' => :'Float',
|
|
75
|
-
:'gt' => :'Float',
|
|
76
|
-
:'lt' => :'Float'
|
|
77
|
-
}
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# List of attributes with nullable: true
|
|
81
|
-
def self.openapi_nullable
|
|
82
|
-
Set.new([
|
|
83
|
-
])
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Initializes the object
|
|
87
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
-
def initialize(attributes = {})
|
|
89
|
-
if (!attributes.is_a?(Hash))
|
|
90
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::IntFilter` initialize method"
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
95
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::IntFilter`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
98
|
-
end
|
|
99
|
-
h[k.to_sym] = v
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if attributes.key?(:'eq')
|
|
103
|
-
self.eq = attributes[:'eq']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'_not')
|
|
107
|
-
self._not = attributes[:'_not']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'_in')
|
|
111
|
-
if (value = attributes[:'_in']).is_a?(Array)
|
|
112
|
-
self._in = value
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
if attributes.key?(:'not_in')
|
|
117
|
-
if (value = attributes[:'not_in']).is_a?(Array)
|
|
118
|
-
self.not_in = value
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
if attributes.key?(:'gte')
|
|
123
|
-
self.gte = attributes[:'gte']
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'lte')
|
|
127
|
-
self.lte = attributes[:'lte']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'gt')
|
|
131
|
-
self.gt = attributes[:'gt']
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
if attributes.key?(:'lt')
|
|
135
|
-
self.lt = attributes[:'lt']
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
140
|
-
# @return Array for valid properties with the reasons
|
|
141
|
-
def list_invalid_properties
|
|
142
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
143
|
-
invalid_properties = Array.new
|
|
144
|
-
invalid_properties
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
# Check to see if the all the properties in the model are valid
|
|
148
|
-
# @return true if the model is valid
|
|
149
|
-
def valid?
|
|
150
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
-
true
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# Checks equality by comparing each attribute.
|
|
155
|
-
# @param [Object] Object to be compared
|
|
156
|
-
def ==(o)
|
|
157
|
-
return true if self.equal?(o)
|
|
158
|
-
self.class == o.class &&
|
|
159
|
-
eq == o.eq &&
|
|
160
|
-
_not == o._not &&
|
|
161
|
-
_in == o._in &&
|
|
162
|
-
not_in == o.not_in &&
|
|
163
|
-
gte == o.gte &&
|
|
164
|
-
lte == o.lte &&
|
|
165
|
-
gt == o.gt &&
|
|
166
|
-
lt == o.lt
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
# @see the `==` method
|
|
170
|
-
# @param [Object] Object to be compared
|
|
171
|
-
def eql?(o)
|
|
172
|
-
self == o
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# Calculates hash code according to all attributes.
|
|
176
|
-
# @return [Integer] Hash code
|
|
177
|
-
def hash
|
|
178
|
-
[eq, _not, _in, not_in, gte, lte, gt, lt].hash
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
# Builds the object from hash
|
|
182
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
183
|
-
# @return [Object] Returns the model itself
|
|
184
|
-
def self.build_from_hash(attributes)
|
|
185
|
-
return nil unless attributes.is_a?(Hash)
|
|
186
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
187
|
-
transformed_hash = {}
|
|
188
|
-
openapi_types.each_pair do |key, type|
|
|
189
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
190
|
-
transformed_hash["#{key}"] = nil
|
|
191
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
192
|
-
# check to ensure the input is an array given that the attribute
|
|
193
|
-
# is documented as an array but the input is not
|
|
194
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
195
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
196
|
-
end
|
|
197
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
198
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
new(transformed_hash)
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# Returns the object in the form of hash
|
|
205
|
-
# @return [Hash] Returns the object in the form of hash
|
|
206
|
-
def to_hash
|
|
207
|
-
hash = {}
|
|
208
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
-
value = self.send(attr)
|
|
210
|
-
if value.nil?
|
|
211
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
212
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
hash[param] = _to_hash(value)
|
|
216
|
-
end
|
|
217
|
-
hash
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
end
|