daytona_api_client 0.106.0a2__py3-none-any.whl → 0.106.1__py3-none-any.whl

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.

Potentially problematic release.


This version of daytona_api_client might be problematic. Click here for more details.

@@ -126,8 +126,7 @@ from daytona_api_client.models.organization_suspension import OrganizationSuspen
126
126
  from daytona_api_client.models.organization_usage_overview import OrganizationUsageOverview
127
127
  from daytona_api_client.models.organization_user import OrganizationUser
128
128
  from daytona_api_client.models.paginated_audit_logs import PaginatedAuditLogs
129
- from daytona_api_client.models.paginated_sandboxes import PaginatedSandboxes
130
- from daytona_api_client.models.paginated_snapshots import PaginatedSnapshots
129
+ from daytona_api_client.models.paginated_snapshots_dto import PaginatedSnapshotsDto
131
130
  from daytona_api_client.models.port_preview_url import PortPreviewUrl
132
131
  from daytona_api_client.models.position import Position
133
132
  from daytona_api_client.models.posthog_config import PosthogConfig
@@ -137,7 +136,6 @@ from daytona_api_client.models.process_restart_response import ProcessRestartRes
137
136
  from daytona_api_client.models.process_status_response import ProcessStatusResponse
138
137
  from daytona_api_client.models.project_dir_response import ProjectDirResponse
139
138
  from daytona_api_client.models.range import Range
140
- from daytona_api_client.models.region import Region
141
139
  from daytona_api_client.models.region_screenshot_response import RegionScreenshotResponse
142
140
  from daytona_api_client.models.registry_push_access_dto import RegistryPushAccessDto
143
141
  from daytona_api_client.models.replace_request import ReplaceRequest
@@ -17,7 +17,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import Field, StrictStr
20
+ from pydantic import Field, StrictFloat, StrictInt, StrictStr
21
21
  from typing import Optional, Union
22
22
  from typing_extensions import Annotated
23
23
  from daytona_api_client.models.audit_log import AuditLog
@@ -317,8 +317,8 @@ class AuditApi:
317
317
  @validate_call
318
318
  def get_all_audit_logs(
319
319
  self,
320
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
321
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
320
+ limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page (default: 10)")] = None,
321
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number (default: 1)")] = None,
322
322
  _request_timeout: Union[
323
323
  None,
324
324
  Annotated[StrictFloat, Field(gt=0)],
@@ -335,10 +335,10 @@ class AuditApi:
335
335
  """Get all audit logs
336
336
 
337
337
 
338
- :param page: Page number of the results
339
- :type page: float
340
- :param limit: Number of results per page
338
+ :param limit: Number of items per page (default: 10)
341
339
  :type limit: float
340
+ :param page: Page number (default: 1)
341
+ :type page: float
342
342
  :param _request_timeout: timeout setting for this request. If one
343
343
  number provided, it will be total request
344
344
  timeout. It can also be a pair (tuple) of
@@ -362,8 +362,8 @@ class AuditApi:
362
362
  """ # noqa: E501
363
363
 
364
364
  _param = self._get_all_audit_logs_serialize(
365
- page=page,
366
365
  limit=limit,
366
+ page=page,
367
367
  _request_auth=_request_auth,
368
368
  _content_type=_content_type,
369
369
  _headers=_headers,
@@ -387,8 +387,8 @@ class AuditApi:
387
387
  @validate_call
388
388
  def get_all_audit_logs_with_http_info(
389
389
  self,
390
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
391
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
390
+ limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page (default: 10)")] = None,
391
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number (default: 1)")] = None,
392
392
  _request_timeout: Union[
393
393
  None,
394
394
  Annotated[StrictFloat, Field(gt=0)],
@@ -405,10 +405,10 @@ class AuditApi:
405
405
  """Get all audit logs
406
406
 
407
407
 
408
- :param page: Page number of the results
409
- :type page: float
410
- :param limit: Number of results per page
408
+ :param limit: Number of items per page (default: 10)
411
409
  :type limit: float
410
+ :param page: Page number (default: 1)
411
+ :type page: float
412
412
  :param _request_timeout: timeout setting for this request. If one
413
413
  number provided, it will be total request
414
414
  timeout. It can also be a pair (tuple) of
@@ -432,8 +432,8 @@ class AuditApi:
432
432
  """ # noqa: E501
433
433
 
434
434
  _param = self._get_all_audit_logs_serialize(
435
- page=page,
436
435
  limit=limit,
436
+ page=page,
437
437
  _request_auth=_request_auth,
438
438
  _content_type=_content_type,
439
439
  _headers=_headers,
@@ -457,8 +457,8 @@ class AuditApi:
457
457
  @validate_call
458
458
  def get_all_audit_logs_without_preload_content(
459
459
  self,
460
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
461
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
460
+ limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page (default: 10)")] = None,
461
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number (default: 1)")] = None,
462
462
  _request_timeout: Union[
463
463
  None,
464
464
  Annotated[StrictFloat, Field(gt=0)],
@@ -475,10 +475,10 @@ class AuditApi:
475
475
  """Get all audit logs
476
476
 
477
477
 
478
- :param page: Page number of the results
479
- :type page: float
480
- :param limit: Number of results per page
478
+ :param limit: Number of items per page (default: 10)
481
479
  :type limit: float
480
+ :param page: Page number (default: 1)
481
+ :type page: float
482
482
  :param _request_timeout: timeout setting for this request. If one
483
483
  number provided, it will be total request
484
484
  timeout. It can also be a pair (tuple) of
@@ -502,8 +502,8 @@ class AuditApi:
502
502
  """ # noqa: E501
503
503
 
504
504
  _param = self._get_all_audit_logs_serialize(
505
- page=page,
506
505
  limit=limit,
506
+ page=page,
507
507
  _request_auth=_request_auth,
508
508
  _content_type=_content_type,
509
509
  _headers=_headers,
@@ -522,8 +522,8 @@ class AuditApi:
522
522
 
523
523
  def _get_all_audit_logs_serialize(
524
524
  self,
525
- page,
526
525
  limit,
526
+ page,
527
527
  _request_auth,
528
528
  _content_type,
529
529
  _headers,
@@ -546,14 +546,14 @@ class AuditApi:
546
546
 
547
547
  # process the path parameters
548
548
  # process the query parameters
549
- if page is not None:
550
-
551
- _query_params.append(('page', page))
552
-
553
549
  if limit is not None:
554
550
 
555
551
  _query_params.append(('limit', limit))
556
552
 
553
+ if page is not None:
554
+
555
+ _query_params.append(('page', page))
556
+
557
557
  # process the header parameters
558
558
  # process the form parameters
559
559
  # process the body parameter
@@ -596,8 +596,8 @@ class AuditApi:
596
596
  def get_organization_audit_logs(
597
597
  self,
598
598
  organization_id: Annotated[StrictStr, Field(description="Organization ID")],
599
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
600
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
599
+ limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page (default: 10)")] = None,
600
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number (default: 1)")] = None,
601
601
  _request_timeout: Union[
602
602
  None,
603
603
  Annotated[StrictFloat, Field(gt=0)],
@@ -616,10 +616,10 @@ class AuditApi:
616
616
 
617
617
  :param organization_id: Organization ID (required)
618
618
  :type organization_id: str
619
- :param page: Page number of the results
620
- :type page: float
621
- :param limit: Number of results per page
619
+ :param limit: Number of items per page (default: 10)
622
620
  :type limit: float
621
+ :param page: Page number (default: 1)
622
+ :type page: float
623
623
  :param _request_timeout: timeout setting for this request. If one
624
624
  number provided, it will be total request
625
625
  timeout. It can also be a pair (tuple) of
@@ -644,8 +644,8 @@ class AuditApi:
644
644
 
645
645
  _param = self._get_organization_audit_logs_serialize(
646
646
  organization_id=organization_id,
647
- page=page,
648
647
  limit=limit,
648
+ page=page,
649
649
  _request_auth=_request_auth,
650
650
  _content_type=_content_type,
651
651
  _headers=_headers,
@@ -670,8 +670,8 @@ class AuditApi:
670
670
  def get_organization_audit_logs_with_http_info(
671
671
  self,
672
672
  organization_id: Annotated[StrictStr, Field(description="Organization ID")],
673
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
674
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
673
+ limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page (default: 10)")] = None,
674
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number (default: 1)")] = None,
675
675
  _request_timeout: Union[
676
676
  None,
677
677
  Annotated[StrictFloat, Field(gt=0)],
@@ -690,10 +690,10 @@ class AuditApi:
690
690
 
691
691
  :param organization_id: Organization ID (required)
692
692
  :type organization_id: str
693
- :param page: Page number of the results
694
- :type page: float
695
- :param limit: Number of results per page
693
+ :param limit: Number of items per page (default: 10)
696
694
  :type limit: float
695
+ :param page: Page number (default: 1)
696
+ :type page: float
697
697
  :param _request_timeout: timeout setting for this request. If one
698
698
  number provided, it will be total request
699
699
  timeout. It can also be a pair (tuple) of
@@ -718,8 +718,8 @@ class AuditApi:
718
718
 
719
719
  _param = self._get_organization_audit_logs_serialize(
720
720
  organization_id=organization_id,
721
- page=page,
722
721
  limit=limit,
722
+ page=page,
723
723
  _request_auth=_request_auth,
724
724
  _content_type=_content_type,
725
725
  _headers=_headers,
@@ -744,8 +744,8 @@ class AuditApi:
744
744
  def get_organization_audit_logs_without_preload_content(
745
745
  self,
746
746
  organization_id: Annotated[StrictStr, Field(description="Organization ID")],
747
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
748
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
747
+ limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page (default: 10)")] = None,
748
+ page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number (default: 1)")] = None,
749
749
  _request_timeout: Union[
750
750
  None,
751
751
  Annotated[StrictFloat, Field(gt=0)],
@@ -764,10 +764,10 @@ class AuditApi:
764
764
 
765
765
  :param organization_id: Organization ID (required)
766
766
  :type organization_id: str
767
- :param page: Page number of the results
768
- :type page: float
769
- :param limit: Number of results per page
767
+ :param limit: Number of items per page (default: 10)
770
768
  :type limit: float
769
+ :param page: Page number (default: 1)
770
+ :type page: float
771
771
  :param _request_timeout: timeout setting for this request. If one
772
772
  number provided, it will be total request
773
773
  timeout. It can also be a pair (tuple) of
@@ -792,8 +792,8 @@ class AuditApi:
792
792
 
793
793
  _param = self._get_organization_audit_logs_serialize(
794
794
  organization_id=organization_id,
795
- page=page,
796
795
  limit=limit,
796
+ page=page,
797
797
  _request_auth=_request_auth,
798
798
  _content_type=_content_type,
799
799
  _headers=_headers,
@@ -813,8 +813,8 @@ class AuditApi:
813
813
  def _get_organization_audit_logs_serialize(
814
814
  self,
815
815
  organization_id,
816
- page,
817
816
  limit,
817
+ page,
818
818
  _request_auth,
819
819
  _content_type,
820
820
  _headers,
@@ -839,14 +839,14 @@ class AuditApi:
839
839
  if organization_id is not None:
840
840
  _path_params['organizationId'] = organization_id
841
841
  # process the query parameters
842
- if page is not None:
843
-
844
- _query_params.append(('page', page))
845
-
846
842
  if limit is not None:
847
843
 
848
844
  _query_params.append(('limit', limit))
849
845
 
846
+ if page is not None:
847
+
848
+ _query_params.append(('page', page))
849
+
850
850
  # process the header parameters
851
851
  # process the form parameters
852
852
  # process the body parameter