daytona_api_client 0.179.0 → 0.180.0.alpha.1
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/.openapi-generator/FILES +5 -6
- data/lib/daytona_api_client/api/sandbox_api.rb +124 -30
- data/lib/daytona_api_client/models/{workspace_port_preview_url.rb → list_sandboxes_response.rb} +31 -43
- data/lib/daytona_api_client/models/{paginated_sandboxes.rb → paginated_sandboxes_deprecated.rb} +3 -3
- data/lib/daytona_api_client/models/{workspace.rb → sandbox_list_item.rb} +123 -273
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +41 -0
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +45 -0
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +5 -6
- metadata +6 -7
- data/lib/daytona_api_client/api/workspace_api.rb +0 -955
- data/lib/daytona_api_client/models/create_workspace.rb +0 -340
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -202
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b0291744c96aa39595ecfb2d1d44804a8b5ead68bdd3a1c0bd5095472a3beff
|
|
4
|
+
data.tar.gz: 173a6f49a2ba37611f899e49944e578b846ecb77a5a81e293010c73abbeb02ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 947019277c3d9d30f97d7d175c7259a628b345543f845f73d0ba31f649677ea519e3d841c99d216525d07ddac6b299076b3c3c03a003832404728bf7e372e33e
|
|
7
|
+
data.tar.gz: f5a3c174bfa39fb3cb5979cef0a20fde4a7cb166309a67cd0af756c8f852979eddda01a0c7d3d6416d11ac206cdeb10dd53c15c2f51ac818dc813e2ed97580ec
|
data/.openapi-generator/FILES
CHANGED
|
@@ -22,7 +22,6 @@ lib/daytona_api_client/api/toolbox_api.rb
|
|
|
22
22
|
lib/daytona_api_client/api/users_api.rb
|
|
23
23
|
lib/daytona_api_client/api/volumes_api.rb
|
|
24
24
|
lib/daytona_api_client/api/webhooks_api.rb
|
|
25
|
-
lib/daytona_api_client/api/workspace_api.rb
|
|
26
25
|
lib/daytona_api_client/api_client.rb
|
|
27
26
|
lib/daytona_api_client/api_error.rb
|
|
28
27
|
lib/daytona_api_client/api_model_base.rb
|
|
@@ -61,7 +60,6 @@ lib/daytona_api_client/models/create_session_request.rb
|
|
|
61
60
|
lib/daytona_api_client/models/create_snapshot.rb
|
|
62
61
|
lib/daytona_api_client/models/create_user.rb
|
|
63
62
|
lib/daytona_api_client/models/create_volume.rb
|
|
64
|
-
lib/daytona_api_client/models/create_workspace.rb
|
|
65
63
|
lib/daytona_api_client/models/daytona_configuration.rb
|
|
66
64
|
lib/daytona_api_client/models/display_info_response.rb
|
|
67
65
|
lib/daytona_api_client/models/docker_registry.rb
|
|
@@ -91,6 +89,7 @@ lib/daytona_api_client/models/keyboard_hotkey_request.rb
|
|
|
91
89
|
lib/daytona_api_client/models/keyboard_press_request.rb
|
|
92
90
|
lib/daytona_api_client/models/keyboard_type_request.rb
|
|
93
91
|
lib/daytona_api_client/models/list_branch_response.rb
|
|
92
|
+
lib/daytona_api_client/models/list_sandboxes_response.rb
|
|
94
93
|
lib/daytona_api_client/models/log_entry.rb
|
|
95
94
|
lib/daytona_api_client/models/lsp_completion_params.rb
|
|
96
95
|
lib/daytona_api_client/models/lsp_document_request.rb
|
|
@@ -122,7 +121,7 @@ lib/daytona_api_client/models/otel_config.rb
|
|
|
122
121
|
lib/daytona_api_client/models/paginated_audit_logs.rb
|
|
123
122
|
lib/daytona_api_client/models/paginated_jobs.rb
|
|
124
123
|
lib/daytona_api_client/models/paginated_logs.rb
|
|
125
|
-
lib/daytona_api_client/models/
|
|
124
|
+
lib/daytona_api_client/models/paginated_sandboxes_deprecated.rb
|
|
126
125
|
lib/daytona_api_client/models/paginated_snapshots.rb
|
|
127
126
|
lib/daytona_api_client/models/paginated_traces.rb
|
|
128
127
|
lib/daytona_api_client/models/poll_jobs_response.rb
|
|
@@ -163,8 +162,10 @@ lib/daytona_api_client/models/runner_state.rb
|
|
|
163
162
|
lib/daytona_api_client/models/sandbox.rb
|
|
164
163
|
lib/daytona_api_client/models/sandbox_class.rb
|
|
165
164
|
lib/daytona_api_client/models/sandbox_desired_state.rb
|
|
166
|
-
lib/daytona_api_client/models/sandbox_info.rb
|
|
167
165
|
lib/daytona_api_client/models/sandbox_labels.rb
|
|
166
|
+
lib/daytona_api_client/models/sandbox_list_item.rb
|
|
167
|
+
lib/daytona_api_client/models/sandbox_list_sort_direction.rb
|
|
168
|
+
lib/daytona_api_client/models/sandbox_list_sort_field.rb
|
|
168
169
|
lib/daytona_api_client/models/sandbox_state.rb
|
|
169
170
|
lib/daytona_api_client/models/sandbox_volume.rb
|
|
170
171
|
lib/daytona_api_client/models/screenshot_response.rb
|
|
@@ -206,6 +207,4 @@ lib/daytona_api_client/models/webhook_event.rb
|
|
|
206
207
|
lib/daytona_api_client/models/webhook_initialization_status.rb
|
|
207
208
|
lib/daytona_api_client/models/windows_response.rb
|
|
208
209
|
lib/daytona_api_client/models/work_dir_response.rb
|
|
209
|
-
lib/daytona_api_client/models/workspace.rb
|
|
210
|
-
lib/daytona_api_client/models/workspace_port_preview_url.rb
|
|
211
210
|
lib/daytona_api_client/version.rb
|
|
@@ -1696,37 +1696,131 @@ module DaytonaApiClient
|
|
|
1696
1696
|
return data, status_code, headers
|
|
1697
1697
|
end
|
|
1698
1698
|
|
|
1699
|
-
# List
|
|
1699
|
+
# List sandboxes
|
|
1700
|
+
# Advanced filtering and ordering. Eventually consistent.
|
|
1700
1701
|
# @param [Hash] opts the optional parameters
|
|
1701
1702
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1702
|
-
# @option opts [
|
|
1703
|
+
# @option opts [String] :cursor Pagination cursor from a previous response
|
|
1704
|
+
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
1705
|
+
# @option opts [String] :id Filter by ID prefix (case-insensitive)
|
|
1706
|
+
# @option opts [String] :name Filter by name prefix (case-insensitive)
|
|
1703
1707
|
# @option opts [String] :labels JSON encoded labels to filter by
|
|
1704
|
-
# @option opts [Boolean] :include_errored_deleted Include errored and deleted
|
|
1705
|
-
# @
|
|
1708
|
+
# @option opts [Boolean] :include_errored_deleted Include results with errored state and deleted desired state (default to false)
|
|
1709
|
+
# @option opts [Array<SandboxState>] :states List of states to filter by.
|
|
1710
|
+
# @option opts [Array<String>] :snapshots List of snapshot names to filter by
|
|
1711
|
+
# @option opts [Array<String>] :region_ids List of regions IDs to filter by
|
|
1712
|
+
# @option opts [Float] :min_cpu Minimum CPU
|
|
1713
|
+
# @option opts [Float] :max_cpu Maximum CPU
|
|
1714
|
+
# @option opts [Float] :min_memory_gi_b Minimum memory in GiB
|
|
1715
|
+
# @option opts [Float] :max_memory_gi_b Maximum memory in GiB
|
|
1716
|
+
# @option opts [Float] :min_disk_gi_b Minimum disk space in GiB
|
|
1717
|
+
# @option opts [Float] :max_disk_gi_b Maximum disk space in GiB
|
|
1718
|
+
# @option opts [Boolean] :is_public Filter by public status
|
|
1719
|
+
# @option opts [Boolean] :is_recoverable Filter by recoverable status
|
|
1720
|
+
# @option opts [Time] :created_at_after Include items created after this timestamp
|
|
1721
|
+
# @option opts [Time] :created_at_before Include items created before this timestamp
|
|
1722
|
+
# @option opts [Time] :last_event_after Include items with last event after this timestamp
|
|
1723
|
+
# @option opts [Time] :last_event_before Include items with last event before this timestamp
|
|
1724
|
+
# @option opts [SandboxListSortField] :sort Field to sort by
|
|
1725
|
+
# @option opts [SandboxListSortDirection] :order Direction to sort by
|
|
1726
|
+
# @return [ListSandboxesResponse]
|
|
1706
1727
|
def list_sandboxes(opts = {})
|
|
1707
1728
|
data, _status_code, _headers = list_sandboxes_with_http_info(opts)
|
|
1708
1729
|
data
|
|
1709
1730
|
end
|
|
1710
1731
|
|
|
1711
|
-
# List
|
|
1732
|
+
# List sandboxes
|
|
1733
|
+
# Advanced filtering and ordering. Eventually consistent.
|
|
1712
1734
|
# @param [Hash] opts the optional parameters
|
|
1713
1735
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1714
|
-
# @option opts [
|
|
1736
|
+
# @option opts [String] :cursor Pagination cursor from a previous response
|
|
1737
|
+
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
1738
|
+
# @option opts [String] :id Filter by ID prefix (case-insensitive)
|
|
1739
|
+
# @option opts [String] :name Filter by name prefix (case-insensitive)
|
|
1715
1740
|
# @option opts [String] :labels JSON encoded labels to filter by
|
|
1716
|
-
# @option opts [Boolean] :include_errored_deleted Include errored and deleted
|
|
1717
|
-
# @
|
|
1741
|
+
# @option opts [Boolean] :include_errored_deleted Include results with errored state and deleted desired state (default to false)
|
|
1742
|
+
# @option opts [Array<SandboxState>] :states List of states to filter by.
|
|
1743
|
+
# @option opts [Array<String>] :snapshots List of snapshot names to filter by
|
|
1744
|
+
# @option opts [Array<String>] :region_ids List of regions IDs to filter by
|
|
1745
|
+
# @option opts [Float] :min_cpu Minimum CPU
|
|
1746
|
+
# @option opts [Float] :max_cpu Maximum CPU
|
|
1747
|
+
# @option opts [Float] :min_memory_gi_b Minimum memory in GiB
|
|
1748
|
+
# @option opts [Float] :max_memory_gi_b Maximum memory in GiB
|
|
1749
|
+
# @option opts [Float] :min_disk_gi_b Minimum disk space in GiB
|
|
1750
|
+
# @option opts [Float] :max_disk_gi_b Maximum disk space in GiB
|
|
1751
|
+
# @option opts [Boolean] :is_public Filter by public status
|
|
1752
|
+
# @option opts [Boolean] :is_recoverable Filter by recoverable status
|
|
1753
|
+
# @option opts [Time] :created_at_after Include items created after this timestamp
|
|
1754
|
+
# @option opts [Time] :created_at_before Include items created before this timestamp
|
|
1755
|
+
# @option opts [Time] :last_event_after Include items with last event after this timestamp
|
|
1756
|
+
# @option opts [Time] :last_event_before Include items with last event before this timestamp
|
|
1757
|
+
# @option opts [SandboxListSortField] :sort Field to sort by
|
|
1758
|
+
# @option opts [SandboxListSortDirection] :order Direction to sort by
|
|
1759
|
+
# @return [Array<(ListSandboxesResponse, Integer, Hash)>] ListSandboxesResponse data, response status code and response headers
|
|
1718
1760
|
def list_sandboxes_with_http_info(opts = {})
|
|
1719
1761
|
if @api_client.config.debugging
|
|
1720
1762
|
@api_client.config.logger.debug 'Calling API: SandboxApi.list_sandboxes ...'
|
|
1721
1763
|
end
|
|
1764
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 200
|
|
1765
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.list_sandboxes, must be smaller than or equal to 200.'
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1769
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1770
|
+
end
|
|
1771
|
+
|
|
1772
|
+
if @api_client.config.client_side_validation && !opts[:'min_cpu'].nil? && opts[:'min_cpu'] < 1
|
|
1773
|
+
fail ArgumentError, 'invalid value for "opts[:"min_cpu"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1774
|
+
end
|
|
1775
|
+
|
|
1776
|
+
if @api_client.config.client_side_validation && !opts[:'max_cpu'].nil? && opts[:'max_cpu'] < 1
|
|
1777
|
+
fail ArgumentError, 'invalid value for "opts[:"max_cpu"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1778
|
+
end
|
|
1779
|
+
|
|
1780
|
+
if @api_client.config.client_side_validation && !opts[:'min_memory_gi_b'].nil? && opts[:'min_memory_gi_b'] < 1
|
|
1781
|
+
fail ArgumentError, 'invalid value for "opts[:"min_memory_gi_b"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1782
|
+
end
|
|
1783
|
+
|
|
1784
|
+
if @api_client.config.client_side_validation && !opts[:'max_memory_gi_b'].nil? && opts[:'max_memory_gi_b'] < 1
|
|
1785
|
+
fail ArgumentError, 'invalid value for "opts[:"max_memory_gi_b"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1786
|
+
end
|
|
1787
|
+
|
|
1788
|
+
if @api_client.config.client_side_validation && !opts[:'min_disk_gi_b'].nil? && opts[:'min_disk_gi_b'] < 1
|
|
1789
|
+
fail ArgumentError, 'invalid value for "opts[:"min_disk_gi_b"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1790
|
+
end
|
|
1791
|
+
|
|
1792
|
+
if @api_client.config.client_side_validation && !opts[:'max_disk_gi_b'].nil? && opts[:'max_disk_gi_b'] < 1
|
|
1793
|
+
fail ArgumentError, 'invalid value for "opts[:"max_disk_gi_b"]" when calling SandboxApi.list_sandboxes, must be greater than or equal to 1.'
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1722
1796
|
# resource path
|
|
1723
1797
|
local_var_path = '/sandbox'
|
|
1724
1798
|
|
|
1725
1799
|
# query parameters
|
|
1726
1800
|
query_params = opts[:query_params] || {}
|
|
1727
|
-
query_params[:'
|
|
1801
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1802
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1803
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
|
1804
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
1728
1805
|
query_params[:'labels'] = opts[:'labels'] if !opts[:'labels'].nil?
|
|
1729
1806
|
query_params[:'includeErroredDeleted'] = opts[:'include_errored_deleted'] if !opts[:'include_errored_deleted'].nil?
|
|
1807
|
+
query_params[:'states'] = @api_client.build_collection_param(opts[:'states'], :multi) if !opts[:'states'].nil?
|
|
1808
|
+
query_params[:'snapshots'] = @api_client.build_collection_param(opts[:'snapshots'], :multi) if !opts[:'snapshots'].nil?
|
|
1809
|
+
query_params[:'regionIds'] = @api_client.build_collection_param(opts[:'region_ids'], :multi) if !opts[:'region_ids'].nil?
|
|
1810
|
+
query_params[:'minCpu'] = opts[:'min_cpu'] if !opts[:'min_cpu'].nil?
|
|
1811
|
+
query_params[:'maxCpu'] = opts[:'max_cpu'] if !opts[:'max_cpu'].nil?
|
|
1812
|
+
query_params[:'minMemoryGiB'] = opts[:'min_memory_gi_b'] if !opts[:'min_memory_gi_b'].nil?
|
|
1813
|
+
query_params[:'maxMemoryGiB'] = opts[:'max_memory_gi_b'] if !opts[:'max_memory_gi_b'].nil?
|
|
1814
|
+
query_params[:'minDiskGiB'] = opts[:'min_disk_gi_b'] if !opts[:'min_disk_gi_b'].nil?
|
|
1815
|
+
query_params[:'maxDiskGiB'] = opts[:'max_disk_gi_b'] if !opts[:'max_disk_gi_b'].nil?
|
|
1816
|
+
query_params[:'isPublic'] = opts[:'is_public'] if !opts[:'is_public'].nil?
|
|
1817
|
+
query_params[:'isRecoverable'] = opts[:'is_recoverable'] if !opts[:'is_recoverable'].nil?
|
|
1818
|
+
query_params[:'createdAtAfter'] = opts[:'created_at_after'] if !opts[:'created_at_after'].nil?
|
|
1819
|
+
query_params[:'createdAtBefore'] = opts[:'created_at_before'] if !opts[:'created_at_before'].nil?
|
|
1820
|
+
query_params[:'lastEventAfter'] = opts[:'last_event_after'] if !opts[:'last_event_after'].nil?
|
|
1821
|
+
query_params[:'lastEventBefore'] = opts[:'last_event_before'] if !opts[:'last_event_before'].nil?
|
|
1822
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1823
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
1730
1824
|
|
|
1731
1825
|
# header parameters
|
|
1732
1826
|
header_params = opts[:header_params] || {}
|
|
@@ -1741,7 +1835,7 @@ module DaytonaApiClient
|
|
|
1741
1835
|
post_body = opts[:debug_body]
|
|
1742
1836
|
|
|
1743
1837
|
# return_type
|
|
1744
|
-
return_type = opts[:debug_return_type] || '
|
|
1838
|
+
return_type = opts[:debug_return_type] || 'ListSandboxesResponse'
|
|
1745
1839
|
|
|
1746
1840
|
# auth_names
|
|
1747
1841
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -1763,7 +1857,7 @@ module DaytonaApiClient
|
|
|
1763
1857
|
return data, status_code, headers
|
|
1764
1858
|
end
|
|
1765
1859
|
|
|
1766
|
-
# List all sandboxes paginated
|
|
1860
|
+
# [DEPRECATED] List all sandboxes paginated
|
|
1767
1861
|
# @param [Hash] opts the optional parameters
|
|
1768
1862
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1769
1863
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
@@ -1785,13 +1879,13 @@ module DaytonaApiClient
|
|
|
1785
1879
|
# @option opts [Time] :last_event_before Include items with last event before this timestamp
|
|
1786
1880
|
# @option opts [String] :sort Field to sort by (default to 'createdAt')
|
|
1787
1881
|
# @option opts [String] :order Direction to sort by (default to 'desc')
|
|
1788
|
-
# @return [
|
|
1789
|
-
def
|
|
1790
|
-
data, _status_code, _headers =
|
|
1882
|
+
# @return [PaginatedSandboxesDeprecated]
|
|
1883
|
+
def list_sandboxes_paginated_deprecated(opts = {})
|
|
1884
|
+
data, _status_code, _headers = list_sandboxes_paginated_deprecated_with_http_info(opts)
|
|
1791
1885
|
data
|
|
1792
1886
|
end
|
|
1793
1887
|
|
|
1794
|
-
# List all sandboxes paginated
|
|
1888
|
+
# [DEPRECATED] List all sandboxes paginated
|
|
1795
1889
|
# @param [Hash] opts the optional parameters
|
|
1796
1890
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1797
1891
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
@@ -1813,21 +1907,21 @@ module DaytonaApiClient
|
|
|
1813
1907
|
# @option opts [Time] :last_event_before Include items with last event before this timestamp
|
|
1814
1908
|
# @option opts [String] :sort Field to sort by (default to 'createdAt')
|
|
1815
1909
|
# @option opts [String] :order Direction to sort by (default to 'desc')
|
|
1816
|
-
# @return [Array<(
|
|
1817
|
-
def
|
|
1910
|
+
# @return [Array<(PaginatedSandboxesDeprecated, Integer, Hash)>] PaginatedSandboxesDeprecated data, response status code and response headers
|
|
1911
|
+
def list_sandboxes_paginated_deprecated_with_http_info(opts = {})
|
|
1818
1912
|
if @api_client.config.debugging
|
|
1819
|
-
@api_client.config.logger.debug 'Calling API: SandboxApi.
|
|
1913
|
+
@api_client.config.logger.debug 'Calling API: SandboxApi.list_sandboxes_paginated_deprecated ...'
|
|
1820
1914
|
end
|
|
1821
1915
|
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
1822
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling SandboxApi.
|
|
1916
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1823
1917
|
end
|
|
1824
1918
|
|
|
1825
1919
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 200
|
|
1826
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.
|
|
1920
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be smaller than or equal to 200.'
|
|
1827
1921
|
end
|
|
1828
1922
|
|
|
1829
1923
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1830
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.
|
|
1924
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1831
1925
|
end
|
|
1832
1926
|
|
|
1833
1927
|
allowable_values = ["creating", "restoring", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "unknown_default_open_api"]
|
|
@@ -1835,27 +1929,27 @@ module DaytonaApiClient
|
|
|
1835
1929
|
fail ArgumentError, "invalid value for \"states\", must include one of #{allowable_values}"
|
|
1836
1930
|
end
|
|
1837
1931
|
if @api_client.config.client_side_validation && !opts[:'min_cpu'].nil? && opts[:'min_cpu'] < 1
|
|
1838
|
-
fail ArgumentError, 'invalid value for "opts[:"min_cpu"]" when calling SandboxApi.
|
|
1932
|
+
fail ArgumentError, 'invalid value for "opts[:"min_cpu"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1839
1933
|
end
|
|
1840
1934
|
|
|
1841
1935
|
if @api_client.config.client_side_validation && !opts[:'max_cpu'].nil? && opts[:'max_cpu'] < 1
|
|
1842
|
-
fail ArgumentError, 'invalid value for "opts[:"max_cpu"]" when calling SandboxApi.
|
|
1936
|
+
fail ArgumentError, 'invalid value for "opts[:"max_cpu"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1843
1937
|
end
|
|
1844
1938
|
|
|
1845
1939
|
if @api_client.config.client_side_validation && !opts[:'min_memory_gi_b'].nil? && opts[:'min_memory_gi_b'] < 1
|
|
1846
|
-
fail ArgumentError, 'invalid value for "opts[:"min_memory_gi_b"]" when calling SandboxApi.
|
|
1940
|
+
fail ArgumentError, 'invalid value for "opts[:"min_memory_gi_b"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1847
1941
|
end
|
|
1848
1942
|
|
|
1849
1943
|
if @api_client.config.client_side_validation && !opts[:'max_memory_gi_b'].nil? && opts[:'max_memory_gi_b'] < 1
|
|
1850
|
-
fail ArgumentError, 'invalid value for "opts[:"max_memory_gi_b"]" when calling SandboxApi.
|
|
1944
|
+
fail ArgumentError, 'invalid value for "opts[:"max_memory_gi_b"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1851
1945
|
end
|
|
1852
1946
|
|
|
1853
1947
|
if @api_client.config.client_side_validation && !opts[:'min_disk_gi_b'].nil? && opts[:'min_disk_gi_b'] < 1
|
|
1854
|
-
fail ArgumentError, 'invalid value for "opts[:"min_disk_gi_b"]" when calling SandboxApi.
|
|
1948
|
+
fail ArgumentError, 'invalid value for "opts[:"min_disk_gi_b"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1855
1949
|
end
|
|
1856
1950
|
|
|
1857
1951
|
if @api_client.config.client_side_validation && !opts[:'max_disk_gi_b'].nil? && opts[:'max_disk_gi_b'] < 1
|
|
1858
|
-
fail ArgumentError, 'invalid value for "opts[:"max_disk_gi_b"]" when calling SandboxApi.
|
|
1952
|
+
fail ArgumentError, 'invalid value for "opts[:"max_disk_gi_b"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
|
|
1859
1953
|
end
|
|
1860
1954
|
|
|
1861
1955
|
allowable_values = ["id", "name", "state", "snapshot", "region", "updatedAt", "createdAt", "lastActivityAt", "unknown_default_open_api"]
|
|
@@ -1904,13 +1998,13 @@ module DaytonaApiClient
|
|
|
1904
1998
|
post_body = opts[:debug_body]
|
|
1905
1999
|
|
|
1906
2000
|
# return_type
|
|
1907
|
-
return_type = opts[:debug_return_type] || '
|
|
2001
|
+
return_type = opts[:debug_return_type] || 'PaginatedSandboxesDeprecated'
|
|
1908
2002
|
|
|
1909
2003
|
# auth_names
|
|
1910
2004
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1911
2005
|
|
|
1912
2006
|
new_options = opts.merge(
|
|
1913
|
-
:operation => :"SandboxApi.
|
|
2007
|
+
:operation => :"SandboxApi.list_sandboxes_paginated_deprecated",
|
|
1914
2008
|
:header_params => header_params,
|
|
1915
2009
|
:query_params => query_params,
|
|
1916
2010
|
:form_params => form_params,
|
|
@@ -1921,7 +2015,7 @@ module DaytonaApiClient
|
|
|
1921
2015
|
|
|
1922
2016
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1923
2017
|
if @api_client.config.debugging
|
|
1924
|
-
@api_client.config.logger.debug "API called: SandboxApi#
|
|
2018
|
+
@api_client.config.logger.debug "API called: SandboxApi#list_sandboxes_paginated_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1925
2019
|
end
|
|
1926
2020
|
return data, status_code, headers
|
|
1927
2021
|
end
|
data/lib/daytona_api_client/models/{workspace_port_preview_url.rb → list_sandboxes_response.rb}
RENAMED
|
@@ -14,18 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class ListSandboxesResponse < ApiModelBase
|
|
18
|
+
# List of results for the current page
|
|
19
|
+
attr_accessor :items
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Cursor for the next page of results
|
|
22
|
+
attr_accessor :next_cursor
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
27
|
+
:'items' => :'items',
|
|
28
|
+
:'next_cursor' => :'nextCursor'
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -42,14 +42,15 @@ module DaytonaApiClient
|
|
|
42
42
|
# Attribute type mapping.
|
|
43
43
|
def self.openapi_types
|
|
44
44
|
{
|
|
45
|
-
:'
|
|
46
|
-
:'
|
|
45
|
+
:'items' => :'Array<SandboxListItem>',
|
|
46
|
+
:'next_cursor' => :'String'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
# List of attributes with nullable: true
|
|
51
51
|
def self.openapi_nullable
|
|
52
52
|
Set.new([
|
|
53
|
+
:'next_cursor'
|
|
53
54
|
])
|
|
54
55
|
end
|
|
55
56
|
|
|
@@ -57,28 +58,30 @@ module DaytonaApiClient
|
|
|
57
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
59
|
def initialize(attributes = {})
|
|
59
60
|
if (!attributes.is_a?(Hash))
|
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ListSandboxesResponse` initialize method"
|
|
61
62
|
end
|
|
62
63
|
|
|
63
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
65
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
66
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
67
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
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
|
|
68
69
|
end
|
|
69
70
|
h[k.to_sym] = v
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
if attributes.key?(:'
|
|
73
|
-
|
|
73
|
+
if attributes.key?(:'items')
|
|
74
|
+
if (value = attributes[:'items']).is_a?(Array)
|
|
75
|
+
self.items = value
|
|
76
|
+
end
|
|
74
77
|
else
|
|
75
|
-
self.
|
|
78
|
+
self.items = nil
|
|
76
79
|
end
|
|
77
80
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
81
|
+
if attributes.key?(:'next_cursor')
|
|
82
|
+
self.next_cursor = attributes[:'next_cursor']
|
|
80
83
|
else
|
|
81
|
-
self.
|
|
84
|
+
self.next_cursor = nil
|
|
82
85
|
end
|
|
83
86
|
end
|
|
84
87
|
|
|
@@ -87,12 +90,8 @@ module DaytonaApiClient
|
|
|
87
90
|
def list_invalid_properties
|
|
88
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
92
|
invalid_properties = Array.new
|
|
90
|
-
if @
|
|
91
|
-
invalid_properties.push('invalid value for "
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
if @token.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
|
93
|
+
if @items.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "items", items cannot be nil.')
|
|
96
95
|
end
|
|
97
96
|
|
|
98
97
|
invalid_properties
|
|
@@ -102,29 +101,18 @@ module DaytonaApiClient
|
|
|
102
101
|
# @return true if the model is valid
|
|
103
102
|
def valid?
|
|
104
103
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
-
return false if @
|
|
106
|
-
return false if @token.nil?
|
|
104
|
+
return false if @items.nil?
|
|
107
105
|
true
|
|
108
106
|
end
|
|
109
107
|
|
|
110
108
|
# Custom attribute writer method with validation
|
|
111
|
-
# @param [Object]
|
|
112
|
-
def
|
|
113
|
-
if
|
|
114
|
-
fail ArgumentError, '
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@url = url
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object] token Value to be assigned
|
|
122
|
-
def token=(token)
|
|
123
|
-
if token.nil?
|
|
124
|
-
fail ArgumentError, 'token cannot be nil'
|
|
109
|
+
# @param [Object] items Value to be assigned
|
|
110
|
+
def items=(items)
|
|
111
|
+
if items.nil?
|
|
112
|
+
fail ArgumentError, 'items cannot be nil'
|
|
125
113
|
end
|
|
126
114
|
|
|
127
|
-
@
|
|
115
|
+
@items = items
|
|
128
116
|
end
|
|
129
117
|
|
|
130
118
|
# Checks equality by comparing each attribute.
|
|
@@ -132,8 +120,8 @@ module DaytonaApiClient
|
|
|
132
120
|
def ==(o)
|
|
133
121
|
return true if self.equal?(o)
|
|
134
122
|
self.class == o.class &&
|
|
135
|
-
|
|
136
|
-
|
|
123
|
+
items == o.items &&
|
|
124
|
+
next_cursor == o.next_cursor
|
|
137
125
|
end
|
|
138
126
|
|
|
139
127
|
# @see the `==` method
|
|
@@ -145,7 +133,7 @@ module DaytonaApiClient
|
|
|
145
133
|
# Calculates hash code according to all attributes.
|
|
146
134
|
# @return [Integer] Hash code
|
|
147
135
|
def hash
|
|
148
|
-
[
|
|
136
|
+
[items, next_cursor].hash
|
|
149
137
|
end
|
|
150
138
|
|
|
151
139
|
# Builds the object from hash
|
data/lib/daytona_api_client/models/{paginated_sandboxes.rb → paginated_sandboxes_deprecated.rb}
RENAMED
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
17
|
+
class PaginatedSandboxesDeprecated < ApiModelBase
|
|
18
18
|
attr_accessor :items
|
|
19
19
|
|
|
20
20
|
attr_accessor :total
|
|
@@ -63,14 +63,14 @@ module DaytonaApiClient
|
|
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
64
|
def initialize(attributes = {})
|
|
65
65
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PaginatedSandboxesDeprecated` initialize method"
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PaginatedSandboxesDeprecated`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
74
|
end
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|