daytona_api_client 0.107.0rc2__py3-none-any.whl → 0.108.0rc1__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.

@@ -54,7 +54,7 @@ class PreviewApi:
54
54
  _content_type: Optional[StrictStr] = None,
55
55
  _headers: Optional[Dict[StrictStr, Any]] = None,
56
56
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> None:
57
+ ) -> bool:
58
58
  """Check if user has access to the sandbox
59
59
 
60
60
 
@@ -91,7 +91,7 @@ class PreviewApi:
91
91
  )
92
92
 
93
93
  _response_types_map: Dict[str, Optional[str]] = {
94
- '200': None,
94
+ '200': "bool",
95
95
  }
96
96
  response_data = self.api_client.call_api(
97
97
  *_param,
@@ -120,7 +120,7 @@ class PreviewApi:
120
120
  _content_type: Optional[StrictStr] = None,
121
121
  _headers: Optional[Dict[StrictStr, Any]] = None,
122
122
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
123
- ) -> ApiResponse[None]:
123
+ ) -> ApiResponse[bool]:
124
124
  """Check if user has access to the sandbox
125
125
 
126
126
 
@@ -157,7 +157,7 @@ class PreviewApi:
157
157
  )
158
158
 
159
159
  _response_types_map: Dict[str, Optional[str]] = {
160
- '200': None,
160
+ '200': "bool",
161
161
  }
162
162
  response_data = self.api_client.call_api(
163
163
  *_param,
@@ -223,7 +223,7 @@ class PreviewApi:
223
223
  )
224
224
 
225
225
  _response_types_map: Dict[str, Optional[str]] = {
226
- '200': None,
226
+ '200': "bool",
227
227
  }
228
228
  response_data = self.api_client.call_api(
229
229
  *_param,
@@ -264,6 +264,13 @@ class PreviewApi:
264
264
  # process the body parameter
265
265
 
266
266
 
267
+ # set the HTTP header `Accept`
268
+ if 'Accept' not in _header_params:
269
+ _header_params['Accept'] = self.api_client.select_header_accept(
270
+ [
271
+ 'application/json'
272
+ ]
273
+ )
267
274
 
268
275
 
269
276
  # authentication setting
@@ -37,11 +37,10 @@ class CreateRunner(BaseModel):
37
37
  gpu: Union[StrictFloat, StrictInt]
38
38
  gpu_type: StrictStr = Field(alias="gpuType")
39
39
  var_class: StrictStr = Field(alias="class")
40
- capacity: Union[StrictFloat, StrictInt]
41
40
  region: StrictStr
42
41
  version: StrictStr
43
42
  additional_properties: Dict[str, Any] = {}
44
- __properties: ClassVar[List[str]] = ["domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memoryGiB", "diskGiB", "gpu", "gpuType", "class", "capacity", "region", "version"]
43
+ __properties: ClassVar[List[str]] = ["domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memoryGiB", "diskGiB", "gpu", "gpuType", "class", "region", "version"]
45
44
 
46
45
  @field_validator('var_class')
47
46
  def var_class_validate_enum(cls, value):
@@ -118,7 +117,6 @@ class CreateRunner(BaseModel):
118
117
  "gpu": obj.get("gpu"),
119
118
  "gpuType": obj.get("gpuType"),
120
119
  "class": obj.get("class"),
121
- "capacity": obj.get("capacity"),
122
120
  "region": obj.get("region"),
123
121
  "version": obj.get("version")
124
122
  })
@@ -37,6 +37,7 @@ class DaytonaConfiguration(BaseModel):
37
37
  announcements: Dict[str, Announcement] = Field(description="System announcements")
38
38
  pylon_app_id: Optional[StrictStr] = Field(default=None, description="Pylon application ID", alias="pylonAppId")
39
39
  proxy_template_url: StrictStr = Field(description="Proxy template URL", alias="proxyTemplateUrl")
40
+ proxy_toolbox_url: StrictStr = Field(description="Toolbox template URL", alias="proxyToolboxUrl")
40
41
  default_snapshot: StrictStr = Field(description="Default snapshot for sandboxes", alias="defaultSnapshot")
41
42
  dashboard_url: StrictStr = Field(description="Dashboard URL", alias="dashboardUrl")
42
43
  max_auto_archive_interval: Union[StrictFloat, StrictInt] = Field(description="Maximum auto-archive interval in minutes", alias="maxAutoArchiveInterval")
@@ -46,7 +47,7 @@ class DaytonaConfiguration(BaseModel):
46
47
  ssh_gateway_command: Optional[StrictStr] = Field(default=None, description="SSH Gateway command", alias="sshGatewayCommand")
47
48
  ssh_gateway_public_key: Optional[StrictStr] = Field(default=None, description="Base64 encoded SSH Gateway public key", alias="sshGatewayPublicKey")
48
49
  additional_properties: Dict[str, Any] = {}
49
- __properties: ClassVar[List[str]] = ["version", "posthog", "oidc", "linkedAccountsEnabled", "announcements", "pylonAppId", "proxyTemplateUrl", "defaultSnapshot", "dashboardUrl", "maxAutoArchiveInterval", "maintananceMode", "environment", "billingApiUrl", "sshGatewayCommand", "sshGatewayPublicKey"]
50
+ __properties: ClassVar[List[str]] = ["version", "posthog", "oidc", "linkedAccountsEnabled", "announcements", "pylonAppId", "proxyTemplateUrl", "proxyToolboxUrl", "defaultSnapshot", "dashboardUrl", "maxAutoArchiveInterval", "maintananceMode", "environment", "billingApiUrl", "sshGatewayCommand", "sshGatewayPublicKey"]
50
51
 
51
52
  model_config = ConfigDict(
52
53
  populate_by_name=True,
@@ -131,6 +132,7 @@ class DaytonaConfiguration(BaseModel):
131
132
  else None,
132
133
  "pylonAppId": obj.get("pylonAppId"),
133
134
  "proxyTemplateUrl": obj.get("proxyTemplateUrl"),
135
+ "proxyToolboxUrl": obj.get("proxyToolboxUrl"),
134
136
  "defaultSnapshot": obj.get("defaultSnapshot"),
135
137
  "dashboardUrl": obj.get("dashboardUrl"),
136
138
  "maxAutoArchiveInterval": obj.get("maxAutoArchiveInterval"),
@@ -40,8 +40,6 @@ class Runner(BaseModel):
40
40
  gpu: Union[StrictFloat, StrictInt] = Field(description="The GPU capacity of the runner")
41
41
  gpu_type: StrictStr = Field(description="The type of GPU", alias="gpuType")
42
42
  var_class: SandboxClass = Field(description="The class of the runner", alias="class")
43
- used: Union[StrictFloat, StrictInt] = Field(description="The current usage of the runner")
44
- capacity: Union[StrictFloat, StrictInt] = Field(description="The capacity of the runner")
45
43
  current_cpu_usage_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current CPU usage percentage", alias="currentCpuUsagePercentage")
46
44
  current_memory_usage_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current RAM usage percentage", alias="currentMemoryUsagePercentage")
47
45
  current_disk_usage_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current disk usage percentage", alias="currentDiskUsagePercentage")
@@ -58,7 +56,7 @@ class Runner(BaseModel):
58
56
  updated_at: StrictStr = Field(description="The last update timestamp of the runner", alias="updatedAt")
59
57
  version: StrictStr = Field(description="The version of the runner")
60
58
  additional_properties: Dict[str, Any] = {}
61
- __properties: ClassVar[List[str]] = ["id", "domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memory", "disk", "gpu", "gpuType", "class", "used", "capacity", "currentCpuUsagePercentage", "currentMemoryUsagePercentage", "currentDiskUsagePercentage", "currentAllocatedCpu", "currentAllocatedMemoryGiB", "currentAllocatedDiskGiB", "currentSnapshotCount", "availabilityScore", "region", "state", "lastChecked", "unschedulable", "createdAt", "updatedAt", "version"]
59
+ __properties: ClassVar[List[str]] = ["id", "domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memory", "disk", "gpu", "gpuType", "class", "currentCpuUsagePercentage", "currentMemoryUsagePercentage", "currentDiskUsagePercentage", "currentAllocatedCpu", "currentAllocatedMemoryGiB", "currentAllocatedDiskGiB", "currentSnapshotCount", "availabilityScore", "region", "state", "lastChecked", "unschedulable", "createdAt", "updatedAt", "version"]
62
60
 
63
61
  model_config = ConfigDict(
64
62
  populate_by_name=True,
@@ -129,8 +127,6 @@ class Runner(BaseModel):
129
127
  "gpu": obj.get("gpu"),
130
128
  "gpuType": obj.get("gpuType"),
131
129
  "class": obj.get("class"),
132
- "used": obj.get("used"),
133
- "capacity": obj.get("capacity"),
134
130
  "currentCpuUsagePercentage": obj.get("currentCpuUsagePercentage"),
135
131
  "currentMemoryUsagePercentage": obj.get("currentMemoryUsagePercentage"),
136
132
  "currentDiskUsagePercentage": obj.get("currentDiskUsagePercentage"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client
3
- Version: 0.107.0rc2
3
+ Version: 0.108.0rc1
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -14,7 +14,7 @@ daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzd
14
14
  daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogNoUPzFsc,10533
15
15
  daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0uFt06Axfcb_BX4Q,11605
16
16
  daytona_api_client/api/organizations_api.py,sha256=ve8cb9Oa6fAeKgcysbl4MVZ6I6_0pI51vYs_3g9Yn4g,276339
17
- daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
17
+ daytona_api_client/api/preview_api.py,sha256=_RrF6vmSegN0twpljDooLykhh6MbUVvkFHKOOC7IHJg,31308
18
18
  daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
19
19
  daytona_api_client/api/sandbox_api.py,sha256=UyDKUTSMD779cU2zRM2Le2O7iLTFR0xpBCAe5OpoRN8,235703
20
20
  daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
@@ -47,14 +47,14 @@ daytona_api_client/models/create_organization.py,sha256=0sDPZBYWzMT5pc0edRwPRnDZ
47
47
  daytona_api_client/models/create_organization_invitation.py,sha256=U5uLVrI3b5kfVqffuwzuqaAsZ-Ml-1xGM5RndmIz-Gk,4016
48
48
  daytona_api_client/models/create_organization_quota.py,sha256=HERVvV6pRerMtV05dPTwEec82HcSJ_tKFpEcYfLlLrQ,4716
49
49
  daytona_api_client/models/create_organization_role.py,sha256=vQai9U9x82hVCfRCotP1UKtaDz3yehtHxOqVEIhG_Ds,4069
50
- daytona_api_client/models/create_runner.py,sha256=vbNmuFuefPIdhatTu6qALi8GUT0AyP6quf-ZhL1jzdc,4530
50
+ daytona_api_client/models/create_runner.py,sha256=1dGs6EB7BhoGrMwMQPFMfZMwbGyHj08hTINLJlhb1ok,4429
51
51
  daytona_api_client/models/create_sandbox.py,sha256=Fpw-r_W4Navki333EBbSjqK2YRrjvWgiwnzV-WhyUzo,7571
52
52
  daytona_api_client/models/create_session_request.py,sha256=8Zv23ZXzrW6v2GmygwTUz5bTugAikCT-T8eHwwYRLxc,3136
53
53
  daytona_api_client/models/create_snapshot.py,sha256=WGea9750qOcwwAjSjFRYFhlA3H0m5SUotrGgJm3z6Is,4768
54
54
  daytona_api_client/models/create_user.py,sha256=__5zKvbJCtB44mALgvZBPlYghxlcdPUjLCDiIITKJiM,4390
55
55
  daytona_api_client/models/create_volume.py,sha256=ClRnZzdkEWMIGlGbOix4pbhki7IcKPqF94OiL0Dygj4,3012
56
56
  daytona_api_client/models/create_workspace.py,sha256=Gu60Pe7tkpiObaZbABenpRPpPduI47RwbcgFJrvCCr0,7082
57
- daytona_api_client/models/daytona_configuration.py,sha256=hI5SpnQMKefpl6m40J9VqE9_t8aMcXaI-Jobk5zvCtk,6986
57
+ daytona_api_client/models/daytona_configuration.py,sha256=eCAqTk64W-5j9pDyA8bUQoIG49WPCVzazZJnaQCdU78,7166
58
58
  daytona_api_client/models/display_info_response.py,sha256=ScbtgcWdnqxoVf1UtqolCsDR908Be4VFTyEBaXT_bvc,3142
59
59
  daytona_api_client/models/docker_registry.py,sha256=vsV50KVZMVRHrm5O6ZkKvmbLlX0Lo_XVIzL3lyrRNOY,4326
60
60
  daytona_api_client/models/download_files.py,sha256=kOoubSJieTxqPoRECwDGtMpYZyDdXoMNybJWZ6Rek7Q,3094
@@ -131,7 +131,7 @@ daytona_api_client/models/region_screenshot_response.py,sha256=SCWHyJSAwC26cCxSK
131
131
  daytona_api_client/models/registry_push_access_dto.py,sha256=gTWfFynNH4DTuenBBp6C6CZDABa7lAVtUrP9qYHe4Rs,3862
132
132
  daytona_api_client/models/replace_request.py,sha256=6y6osWGrtr3flOYYW5LK0PCw6dV2QthRlKlwFWoCTWs,3222
133
133
  daytona_api_client/models/replace_result.py,sha256=yqqFWHo2NgsOqTPR-xcOxBPEIVkkSh8Rjzs1rtdoEek,3236
134
- daytona_api_client/models/runner.py,sha256=1IfxPT2n-jmHW3yrtO1gHYmofyX9Lktvn6uP0QXQU_8,8124
134
+ daytona_api_client/models/runner.py,sha256=LMarXEdCzSJUg7A6OKMiyO7tlDHPdMBLKF5gTOTyQUE,7833
135
135
  daytona_api_client/models/runner_region.py,sha256=Lkxx3kYTx8m4w3ntEiaOafMrUknhtNMfk00oD92kXZE,716
136
136
  daytona_api_client/models/runner_snapshot_dto.py,sha256=ZBv1j3_4huI-z4GWbCqxOOT85OSyNYX3FHVAHQU6rbo,3447
137
137
  daytona_api_client/models/runner_state.py,sha256=_cGjUiDdFZtUQjPc76YKgawOdxV1BDq0ehyKqWFMjD4,819
@@ -193,8 +193,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
193
193
  daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
194
194
  daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
195
195
  daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
196
- daytona_api_client-0.107.0rc2.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
197
- daytona_api_client-0.107.0rc2.dist-info/METADATA,sha256=IIAy2kaXlG7IQ3rZpL4e3doEGdm2x4K5TZunLt7jBOg,622
198
- daytona_api_client-0.107.0rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
199
- daytona_api_client-0.107.0rc2.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
200
- daytona_api_client-0.107.0rc2.dist-info/RECORD,,
196
+ daytona_api_client-0.108.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
197
+ daytona_api_client-0.108.0rc1.dist-info/METADATA,sha256=ST23PkOO7HHyMrLqXcHIuXbkEFSAhgwM-SLQ8A4fDps,622
198
+ daytona_api_client-0.108.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
199
+ daytona_api_client-0.108.0rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
200
+ daytona_api_client-0.108.0rc1.dist-info/RECORD,,