daytona_api_client 0.176.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93a14bf03c7efe0a32acede7192758645a23a1b4a0c7e097307a1134a9e2a489
4
- data.tar.gz: 13adbc77835ae630f5936442d627df71bab60b010b4f478ecb55781cd3550974
3
+ metadata.gz: 3b0291744c96aa39595ecfb2d1d44804a8b5ead68bdd3a1c0bd5095472a3beff
4
+ data.tar.gz: 173a6f49a2ba37611f899e49944e578b846ecb77a5a81e293010c73abbeb02ec
5
5
  SHA512:
6
- metadata.gz: a1be1d7ceee88ff92adb6e4a308a3c8c86a656d980ce7974617eed09a851c17f10d190ad59ddf438340a6a82d3beba7f2521e9082d11a46c12cc6e4f9c6a8045
7
- data.tar.gz: 8f1dadbad87f775e9a7f06919c48040c68c4757d8412f59059d8a77ccfa52ce0d07ed83184fda08834c3d27b4451024811b074c42edd3aa3d42fcd76d2fff02f
6
+ metadata.gz: 947019277c3d9d30f97d7d175c7259a628b345543f845f73d0ba31f649677ea519e3d841c99d216525d07ddac6b299076b3c3c03a003832404728bf7e372e33e
7
+ data.tar.gz: f5a3c174bfa39fb3cb5979cef0a20fde4a7cb166309a67cd0af756c8f852979eddda01a0c7d3d6416d11ac206cdeb10dd53c15c2f51ac818dc813e2ed97580ec
@@ -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/paginated_sandboxes.rb
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 all sandboxes
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 [Boolean] :verbose Include verbose output
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 sandboxes
1705
- # @return [Array<Sandbox>]
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 all sandboxes
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 [Boolean] :verbose Include verbose output
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 sandboxes
1717
- # @return [Array<(Array<Sandbox>, Integer, Hash)>] Array<Sandbox> data, response status code and response headers
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[:'verbose'] = opts[:'verbose'] if !opts[:'verbose'].nil?
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] || 'Array<Sandbox>'
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 [PaginatedSandboxes]
1789
- def list_sandboxes_paginated(opts = {})
1790
- data, _status_code, _headers = list_sandboxes_paginated_with_http_info(opts)
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<(PaginatedSandboxes, Integer, Hash)>] PaginatedSandboxes data, response status code and response headers
1817
- def list_sandboxes_paginated_with_http_info(opts = {})
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.list_sandboxes_paginated ...'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be smaller than or equal to 200.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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.list_sandboxes_paginated, must be greater than or equal to 1.'
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] || 'PaginatedSandboxes'
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.list_sandboxes_paginated",
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#list_sandboxes_paginated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
@@ -147,6 +147,70 @@ module DaytonaApiClient
147
147
  return data, status_code, headers
148
148
  end
149
149
 
150
+ # Initialize webhooks for an organization
151
+ # @param organization_id [String] Organization ID
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
154
+ # @return [WebhookInitializationStatus]
155
+ def webhook_controller_initialize_webhooks(organization_id, opts = {})
156
+ data, _status_code, _headers = webhook_controller_initialize_webhooks_with_http_info(organization_id, opts)
157
+ data
158
+ end
159
+
160
+ # Initialize webhooks for an organization
161
+ # @param organization_id [String] Organization ID
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
164
+ # @return [Array<(WebhookInitializationStatus, Integer, Hash)>] WebhookInitializationStatus data, response status code and response headers
165
+ def webhook_controller_initialize_webhooks_with_http_info(organization_id, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_initialize_webhooks ...'
168
+ end
169
+ # verify the required parameter 'organization_id' is set
170
+ if @api_client.config.client_side_validation && organization_id.nil?
171
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling WebhooksApi.webhook_controller_initialize_webhooks"
172
+ end
173
+ # resource path
174
+ local_var_path = '/webhooks/organizations/{organizationId}/initialize'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
183
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
184
+
185
+ # form parameters
186
+ form_params = opts[:form_params] || {}
187
+
188
+ # http body (model)
189
+ post_body = opts[:debug_body]
190
+
191
+ # return_type
192
+ return_type = opts[:debug_return_type] || 'WebhookInitializationStatus'
193
+
194
+ # auth_names
195
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
196
+
197
+ new_options = opts.merge(
198
+ :operation => :"WebhooksApi.webhook_controller_initialize_webhooks",
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_initialize_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
150
214
  # Refresh cached endpoint presence flag for an organization
151
215
  # @param organization_id [String]
152
216
  # @param [Hash] opts the optional parameters
@@ -19,6 +19,9 @@ module DaytonaApiClient
19
19
 
20
20
  attr_accessor :name
21
21
 
22
+ # Tags to associate with the runner
23
+ attr_accessor :tags
24
+
22
25
  attr_accessor :api_key
23
26
 
24
27
  # The api version of the runner to create
@@ -47,6 +50,7 @@ module DaytonaApiClient
47
50
  {
48
51
  :'region_id' => :'regionId',
49
52
  :'name' => :'name',
53
+ :'tags' => :'tags',
50
54
  :'api_key' => :'apiKey',
51
55
  :'api_version' => :'apiVersion',
52
56
  :'domain' => :'domain',
@@ -73,6 +77,7 @@ module DaytonaApiClient
73
77
  {
74
78
  :'region_id' => :'String',
75
79
  :'name' => :'String',
80
+ :'tags' => :'Array<String>',
76
81
  :'api_key' => :'String',
77
82
  :'api_version' => :'String',
78
83
  :'domain' => :'String',
@@ -118,6 +123,12 @@ module DaytonaApiClient
118
123
  self.name = nil
119
124
  end
120
125
 
126
+ if attributes.key?(:'tags')
127
+ if (value = attributes[:'tags']).is_a?(Array)
128
+ self.tags = value
129
+ end
130
+ end
131
+
121
132
  if attributes.key?(:'api_key')
122
133
  self.api_key = attributes[:'api_key']
123
134
  else
@@ -248,6 +259,7 @@ module DaytonaApiClient
248
259
  self.class == o.class &&
249
260
  region_id == o.region_id &&
250
261
  name == o.name &&
262
+ tags == o.tags &&
251
263
  api_key == o.api_key &&
252
264
  api_version == o.api_version &&
253
265
  domain == o.domain &&
@@ -267,7 +279,7 @@ module DaytonaApiClient
267
279
  # Calculates hash code according to all attributes.
268
280
  # @return [Integer] Hash code
269
281
  def hash
270
- [region_id, name, api_key, api_version, domain, api_url, proxy_url, cpu, memory_gi_b, disk_gi_b].hash
282
+ [region_id, name, tags, api_key, api_version, domain, api_url, proxy_url, cpu, memory_gi_b, disk_gi_b].hash
271
283
  end
272
284
 
273
285
  # Builds the object from hash
@@ -19,11 +19,15 @@ module DaytonaApiClient
19
19
 
20
20
  attr_accessor :name
21
21
 
22
+ # Tags to associate with the runner
23
+ attr_accessor :tags
24
+
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
25
28
  :'region_id' => :'regionId',
26
- :'name' => :'name'
29
+ :'name' => :'name',
30
+ :'tags' => :'tags'
27
31
  }
28
32
  end
29
33
 
@@ -41,7 +45,8 @@ module DaytonaApiClient
41
45
  def self.openapi_types
42
46
  {
43
47
  :'region_id' => :'String',
44
- :'name' => :'String'
48
+ :'name' => :'String',
49
+ :'tags' => :'Array<String>'
45
50
  }
46
51
  end
47
52
 
@@ -78,6 +83,12 @@ module DaytonaApiClient
78
83
  else
79
84
  self.name = nil
80
85
  end
86
+
87
+ if attributes.key?(:'tags')
88
+ if (value = attributes[:'tags']).is_a?(Array)
89
+ self.tags = value
90
+ end
91
+ end
81
92
  end
82
93
 
83
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -131,7 +142,8 @@ module DaytonaApiClient
131
142
  return true if self.equal?(o)
132
143
  self.class == o.class &&
133
144
  region_id == o.region_id &&
134
- name == o.name
145
+ name == o.name &&
146
+ tags == o.tags
135
147
  end
136
148
 
137
149
  # @see the `==` method
@@ -143,7 +155,7 @@ module DaytonaApiClient
143
155
  # Calculates hash code according to all attributes.
144
156
  # @return [Integer] Hash code
145
157
  def hash
146
- [region_id, name].hash
158
+ [region_id, name, tags].hash
147
159
  end
148
160
 
149
161
  # Builds the object from hash