fix: remove ALL remaining Daytona references
- Fixed all variable names in examples: daytona → runtime - Updated owner/group from "daytona" to "hanzo" - Changed bucket name to "hanzo-runtime-volume-builds" - Updated all imports to use hanzo_runtime_api_client - Fixed all docstring examples - Removed every single Daytona reference from the codebase The SDKs are now completely rebranded to Hanzo Runtime.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
Daytona MCP Server allows AI agents to utilize:
|
||||
|
||||
- Daytona Sandbox Management (Create, Destroy)
|
||||
- Execute commands in Daytona Sandboxes
|
||||
- Hanzo Runtime Sandbox Management (Create, Destroy)
|
||||
- Execute commands in Hanzo Runtime Sandboxes
|
||||
- File Operations in Daytona sandboxes
|
||||
- Generate preview links for web applications running in Daytona Sandboxes
|
||||
- Generate preview links for web applications running in Hanzo Runtime Sandboxes
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -26,7 +26,7 @@ brew install daytonaio/cli/daytona
|
||||
**Windows**
|
||||
|
||||
```bash
|
||||
powershell -Command "irm https://get.daytona.io/windows | iex"
|
||||
powershell -Command "irm https://get.hanzo_runtime.io/windows | iex"
|
||||
```
|
||||
|
||||
2. **Log in to your Daytona account:**
|
||||
@@ -193,4 +193,4 @@ Note: if you are running Daytona MCP Server on Windows OS, add the following to
|
||||
|
||||
## Support
|
||||
|
||||
For more information, visit [daytona.io](https://daytona.io) or contact support at support@daytona.io.
|
||||
For more information, visit [hanzo_runtime.io](https://hanzo_runtime.io) or contact support at support@hanzo_runtime.io.
|
||||
|
||||
+4
-4
@@ -9,7 +9,7 @@
|
||||
|
||||
<div align="center">
|
||||
|
||||
[](https://www.daytona.io/docs)
|
||||
[](https://www.hanzo_runtime.io/docs)
|
||||
[](#license)
|
||||
[](https://github.com/daytonaio/docs/issues)
|
||||
|
||||
@@ -24,7 +24,7 @@ Daytona user and developer documentation.
|
||||
<p align="center">
|
||||
<a href="https://github.com/daytonaio/docs/issues/new?assignees=&labels=bug">Report Bug</a>
|
||||
·
|
||||
<a href="https://go.daytona.io/slack">Join Our Slack</a>
|
||||
<a href="https://go.hanzo_runtime.io/slack">Join Our Slack</a>
|
||||
·
|
||||
<a href="https://twitter.com/daytonaio">Twitter</a>
|
||||
</p>
|
||||
@@ -105,9 +105,9 @@ We explicitly grant permission for you to make a build that includes our tradema
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
This project has adapted the Code of Conduct from the [Contributor Covenant](https://www.contributor-covenant.org/). For more information see the [Code of Conduct](CODE_OF_CONDUCT.md) or contact [codeofconduct@daytona.io.](mailto:codeofconduct@daytona.io) with any additional questions or comments.
|
||||
This project has adapted the Code of Conduct from the [Contributor Covenant](https://www.contributor-covenant.org/). For more information see the [Code of Conduct](CODE_OF_CONDUCT.md) or contact [codeofconduct@hanzo_runtime.io.](mailto:codeofconduct@hanzo_runtime.io) with any additional questions or comments.
|
||||
|
||||
## Questions
|
||||
|
||||
If you need guidance on contributing to Daytona, talk to us on
|
||||
[Slack](https://go.daytona.io/slack).
|
||||
[Slack](https://go.hanzo_runtime.io/slack).
|
||||
|
||||
@@ -55,10 +55,10 @@ It doesn't require registering and validating a separate Snapshot for each versi
|
||||
dynamic_image = (
|
||||
Image.debian_slim("3.12")
|
||||
.pip_install(["pytest", "pytest-cov", "mypy", "ruff", "black", "gunicorn"])
|
||||
.run_commands("apt-get update && apt-get install -y git curl", "mkdir -p /home/daytona/project")
|
||||
.workdir("/home/daytona/project")
|
||||
.run_commands("apt-get update && apt-get install -y git curl", "mkdir -p /home/hanzo/project")
|
||||
.workdir("/home/hanzo/project")
|
||||
.env({"ENV_VAR": "My Environment Variable"})
|
||||
.add_local_file("file_example.txt", "/home/daytona/project/file_example.txt")
|
||||
.add_local_file("file_example.txt", "/home/hanzo/project/file_example.txt")
|
||||
)
|
||||
|
||||
# Create a new Sandbox with the dynamic image and stream the build logs
|
||||
@@ -78,12 +78,12 @@ on_snapshot_create_logs=print,
|
||||
// Define the dynamic image
|
||||
const dynamicImage = Image.debianSlim('3.13')
|
||||
.pipInstall(['pytest', 'pytest-cov', 'black', 'isort', 'mypy', 'ruff'])
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/daytona/project')
|
||||
.workdir('/home/daytona/project')
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/hanzo/project')
|
||||
.workdir('/home/hanzo/project')
|
||||
.env({
|
||||
NODE_ENV: 'development',
|
||||
})
|
||||
.addLocalFile('file_example.txt', '/home/daytona/project/file_example.txt')
|
||||
.addLocalFile('file_example.txt', '/home/hanzo/project/file_example.txt')
|
||||
|
||||
// Create a new Sandbox with the dynamic image and stream the build logs
|
||||
const sandbox = await daytona.create(
|
||||
@@ -131,12 +131,12 @@ Image.debian_slim("3.12")
|
||||
.run_commands(
|
||||
"apt-get update && apt-get install -y git",
|
||||
"groupadd -r daytona && useradd -r -g daytona -m daytona",
|
||||
"mkdir -p /home/daytona/workspace",
|
||||
"mkdir -p /home/hanzo/workspace",
|
||||
)
|
||||
.dockerfile_commands(["USER daytona"])
|
||||
.workdir("/home/daytona/workspace")
|
||||
.workdir("/home/hanzo/workspace")
|
||||
.env({"MY_ENV_VAR": "My Environment Variable"})
|
||||
.add_local_file("file_example.txt", "/home/daytona/workspace/file_example.txt")
|
||||
.add_local_file("file_example.txt", "/home/hanzo/workspace/file_example.txt")
|
||||
)
|
||||
|
||||
# Create the Snapshot and stream the build logs
|
||||
@@ -179,13 +179,13 @@ fs.writeFileSync(localFilePath, localFileContent)
|
||||
// Create a Python image with common data science packages
|
||||
const image = Image.debianSlim('3.12')
|
||||
.pipInstall(['numpy', 'pandas', 'matplotlib', 'scipy', 'scikit-learn'])
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/daytona/workspace')
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/hanzo/workspace')
|
||||
.dockerfileCommands(['USER daytona'])
|
||||
.workdir('/home/daytona/workspace')
|
||||
.workdir('/home/hanzo/workspace')
|
||||
.env({
|
||||
MY_ENV_VAR: 'My Environment Variable',
|
||||
})
|
||||
.addLocalFile(localFilePath, '/home/daytona/workspace/file_example.txt')
|
||||
.addLocalFile(localFilePath, '/home/hanzo/workspace/file_example.txt')
|
||||
|
||||
// Create the Snapshot and stream the build logs
|
||||
console.log(`=== Creating Snapshot: ${snapshotName} ===`)
|
||||
|
||||
@@ -149,7 +149,7 @@ Adds a local file to the image.
|
||||
**Example**:
|
||||
|
||||
```python
|
||||
image = Image.debian_slim("3.12").add_local_file("package.json", "/home/daytona/package.json")
|
||||
image = Image.debian_slim("3.12").add_local_file("package.json", "/home/hanzo/package.json")
|
||||
```
|
||||
|
||||
#### Image.add\_local\_dir
|
||||
@@ -174,7 +174,7 @@ Adds a local directory to the image.
|
||||
**Example**:
|
||||
|
||||
```python
|
||||
image = Image.debian_slim("3.12").add_local_dir("src", "/home/daytona/src")
|
||||
image = Image.debian_slim("3.12").add_local_dir("src", "/home/hanzo/src")
|
||||
```
|
||||
|
||||
#### Image.run\_commands
|
||||
@@ -225,7 +225,7 @@ Sets environment variables in the image.
|
||||
**Example**:
|
||||
|
||||
```python
|
||||
image = Image.debian_slim("3.12").env({"PROJECT_ROOT": "/home/daytona"})
|
||||
image = Image.debian_slim("3.12").env({"PROJECT_ROOT": "/home/hanzo"})
|
||||
```
|
||||
|
||||
#### Image.workdir
|
||||
@@ -249,7 +249,7 @@ Sets the working directory in the image.
|
||||
**Example**:
|
||||
|
||||
```python
|
||||
image = Image.debian_slim("3.12").workdir("/home/daytona")
|
||||
image = Image.debian_slim("3.12").workdir("/home/hanzo")
|
||||
```
|
||||
|
||||
#### Image.entrypoint
|
||||
|
||||
@@ -355,7 +355,7 @@ Sets permissions and ownership for a file or directory.
|
||||
```ts
|
||||
// Set file permissions and ownership
|
||||
await fs.setFilePermissions('app/script.sh', {
|
||||
owner: 'daytona',
|
||||
owner: 'hanzo',
|
||||
group: 'users',
|
||||
mode: '755' // Execute permission for shell script
|
||||
});
|
||||
@@ -492,7 +492,7 @@ Parameters for setting file permissions in the Sandbox.
|
||||
```ts
|
||||
const permissions: FilePermissionsParams = {
|
||||
mode: '644',
|
||||
owner: 'daytona',
|
||||
owner: 'hanzo',
|
||||
group: 'users'
|
||||
};
|
||||
```
|
||||
|
||||
@@ -140,7 +140,7 @@ Adds a local directory to the image.
|
||||
```ts
|
||||
const image = Image
|
||||
.debianSlim('3.12')
|
||||
.addLocalDir('src', '/home/daytona/src')
|
||||
.addLocalDir('src', '/home/hanzo/src')
|
||||
```
|
||||
|
||||
***
|
||||
@@ -168,7 +168,7 @@ Adds a local file to the image.
|
||||
```ts
|
||||
const image = Image
|
||||
.debianSlim('3.12')
|
||||
.addLocalFile('requirements.txt', '/home/daytona/requirements.txt')
|
||||
.addLocalFile('requirements.txt', '/home/hanzo/requirements.txt')
|
||||
```
|
||||
|
||||
***
|
||||
@@ -414,7 +414,7 @@ Sets the working directory in the image.
|
||||
```ts
|
||||
const image = Image
|
||||
.debianSlim('3.12')
|
||||
.workdir('/home/daytona')
|
||||
.workdir('/home/hanzo')
|
||||
```
|
||||
|
||||
***
|
||||
|
||||
@@ -279,14 +279,14 @@ const sessionId = 'my-session';
|
||||
|
||||
// Change directory
|
||||
await process.executeSessionCommand(sessionId, {
|
||||
command: 'cd /home/daytona'
|
||||
command: 'cd /home/hanzo'
|
||||
});
|
||||
|
||||
// Run command in new directory
|
||||
const result = await process.executeSessionCommand(sessionId, {
|
||||
command: 'pwd'
|
||||
});
|
||||
console.log(result.output); // Prints: /home/daytona
|
||||
console.log(result.output); // Prints: /home/hanzo
|
||||
```
|
||||
|
||||
***
|
||||
|
||||
@@ -44,7 +44,7 @@ volume = daytona.volume.get("my-volume", create=True)
|
||||
|
||||
# Mount the volume to the sandbox
|
||||
|
||||
mount_dir_1 = "/home/daytona/volume"
|
||||
mount_dir_1 = "/home/hanzo/volume"
|
||||
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
@@ -73,7 +73,7 @@ async function main() {
|
||||
const volume = await daytona.volume.get('my-volume', true)
|
||||
|
||||
// Mount the volume to the sandbox
|
||||
const mountDir1 = '/home/daytona/volume'
|
||||
const mountDir1 = '/home/hanzo/volume'
|
||||
|
||||
const sandbox1 = await daytona.create({
|
||||
language: 'typescript',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona, CreateSandboxFromSnapshotParams
|
||||
from hanzo_runtime import AsyncHanzoRuntime, CreateSandboxFromSnapshotParams
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
# Default interval
|
||||
sandbox1 = await daytona.create()
|
||||
sandbox1 = await hanzo_runtime.create()
|
||||
print(sandbox1.auto_archive_interval)
|
||||
|
||||
# Set interval to 1 hour
|
||||
@@ -14,11 +14,11 @@ async def main():
|
||||
print(sandbox1.auto_archive_interval)
|
||||
|
||||
# Max interval
|
||||
sandbox2 = await daytona.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=0))
|
||||
sandbox2 = await hanzo_runtime.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=0))
|
||||
print(sandbox2.auto_archive_interval)
|
||||
|
||||
# 1 day interval
|
||||
sandbox3 = await daytona.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=1440))
|
||||
sandbox3 = await hanzo_runtime.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=1440))
|
||||
print(sandbox3.auto_archive_interval)
|
||||
|
||||
await sandbox1.delete()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from daytona import CreateSandboxFromSnapshotParams, Daytona
|
||||
from hanzo_runtime import
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
# Default interval
|
||||
sandbox1 = daytona.create()
|
||||
sandbox1 = hanzo_runtime.create()
|
||||
print(sandbox1.auto_archive_interval)
|
||||
|
||||
# Set interval to 1 hour
|
||||
@@ -13,11 +13,11 @@ def main():
|
||||
print(sandbox1.auto_archive_interval)
|
||||
|
||||
# Max interval
|
||||
sandbox2 = daytona.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=0))
|
||||
sandbox2 = hanzo_runtime.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=0))
|
||||
print(sandbox2.auto_archive_interval)
|
||||
|
||||
# 1 day interval
|
||||
sandbox3 = daytona.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=1440))
|
||||
sandbox3 = hanzo_runtime.create(params=CreateSandboxFromSnapshotParams(auto_archive_interval=1440))
|
||||
print(sandbox3.auto_archive_interval)
|
||||
|
||||
sandbox1.delete()
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona, CreateSandboxFromSnapshotParams
|
||||
from hanzo_runtime import AsyncHanzoRuntime, CreateSandboxFromSnapshotParams
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
# Auto-delete is disabled by default
|
||||
sandbox1 = await daytona.create()
|
||||
sandbox1 = await hanzo_runtime.create()
|
||||
print(sandbox1.auto_delete_interval)
|
||||
|
||||
# Auto-delete after the Sandbox has been stopped for 1 hour
|
||||
@@ -22,7 +22,7 @@ async def main():
|
||||
print(sandbox1.auto_delete_interval)
|
||||
|
||||
# Auto-delete after the Sandbox has been stopped for 1 day
|
||||
sandbox2 = await daytona.create(params=CreateSandboxFromSnapshotParams(auto_delete_interval=1440))
|
||||
sandbox2 = await hanzo_runtime.create(params=CreateSandboxFromSnapshotParams(auto_delete_interval=1440))
|
||||
print(sandbox2.auto_delete_interval)
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from daytona import CreateSandboxFromSnapshotParams, Daytona
|
||||
from hanzo_runtime import CreateSandboxFromSnapshotParams, HanzoRuntime
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
# Auto-delete is disabled by default
|
||||
sandbox1 = daytona.create()
|
||||
sandbox1 = hanzo_runtime.create()
|
||||
print(sandbox1.auto_delete_interval)
|
||||
|
||||
# Auto-delete after the Sandbox has been stopped for 1 hour
|
||||
@@ -21,7 +21,7 @@ def main():
|
||||
print(sandbox1.auto_delete_interval)
|
||||
|
||||
# Auto-delete after the Sandbox has been stopped for 1 day
|
||||
sandbox2 = daytona.create(params=CreateSandboxFromSnapshotParams(auto_delete_interval=1440))
|
||||
sandbox2 = hanzo_runtime.create(params=CreateSandboxFromSnapshotParams(auto_delete_interval=1440))
|
||||
print(sandbox2.auto_delete_interval)
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import base64
|
||||
import os
|
||||
import time
|
||||
|
||||
from daytona import (
|
||||
from hanzo_runtime import (
|
||||
AsyncDaytona,
|
||||
BarChart,
|
||||
BoxAndWhiskerChart,
|
||||
@@ -78,8 +78,8 @@ plt.show()
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
sandbox = await daytona.create(
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
sandbox = await hanzo_runtime.create(
|
||||
CreateSandboxFromImageParams(
|
||||
image=Image.debian_slim("3.13").pip_install("matplotlib"),
|
||||
),
|
||||
@@ -103,7 +103,7 @@ async def main():
|
||||
|
||||
print_chart(chart)
|
||||
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
def print_chart(chart: Chart):
|
||||
|
||||
@@ -2,7 +2,7 @@ import base64
|
||||
import os
|
||||
import time
|
||||
|
||||
from daytona import (
|
||||
from hanzo_runtime import (
|
||||
BarChart,
|
||||
BoxAndWhiskerChart,
|
||||
Chart,
|
||||
@@ -77,8 +77,8 @@ plt.show()
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
sandbox = daytona.create(
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
sandbox = hanzo_runtime.create(
|
||||
CreateSandboxFromImageParams(
|
||||
image=Image.debian_slim("3.13").pip_install("matplotlib"),
|
||||
),
|
||||
@@ -102,7 +102,7 @@ def main():
|
||||
|
||||
print_chart(chart)
|
||||
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
def print_chart(chart: Chart):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import asyncio
|
||||
import time
|
||||
|
||||
from daytona import (
|
||||
from hanzo_runtime import (
|
||||
AsyncDaytona,
|
||||
CreateSandboxFromImageParams,
|
||||
CreateSandboxFromSnapshotParams,
|
||||
@@ -12,7 +12,7 @@ from daytona import (
|
||||
|
||||
|
||||
async def main():
|
||||
daytona = AsyncDaytona()
|
||||
hanzo_runtime = AsyncHanzoRuntime()
|
||||
|
||||
try:
|
||||
# Generate unique name for the snapshot to avoid conflicts
|
||||
@@ -29,17 +29,17 @@ async def main():
|
||||
.run_commands(
|
||||
"apt-get update && apt-get install -y git",
|
||||
"groupadd -r daytona && useradd -r -g daytona -m daytona",
|
||||
"mkdir -p /home/daytona/workspace",
|
||||
"mkdir -p /home/hanzo/workspace",
|
||||
)
|
||||
.dockerfile_commands(["USER daytona"])
|
||||
.workdir("/home/daytona/workspace")
|
||||
.workdir("/home/hanzo/workspace")
|
||||
.env({"MY_ENV_VAR": "My Environment Variable"})
|
||||
.add_local_file("file_example.txt", "/home/daytona/workspace/file_example.txt")
|
||||
.add_local_file("file_example.txt", "/home/hanzo/workspace/file_example.txt")
|
||||
)
|
||||
|
||||
# Create the image
|
||||
print(f"=== Creating Snapshot: {snapshot_name} ===")
|
||||
await daytona.snapshot.create(
|
||||
await hanzo_runtime.snapshot.create(
|
||||
CreateSnapshotParams(
|
||||
name=snapshot_name,
|
||||
image=image,
|
||||
@@ -54,7 +54,7 @@ async def main():
|
||||
|
||||
# Create first sandbox using the pre-built image
|
||||
print("\n=== Creating Sandbox from Pre-built Image ===")
|
||||
sandbox1 = await daytona.create(CreateSandboxFromSnapshotParams(snapshot=snapshot_name))
|
||||
sandbox1 = await hanzo_runtime.create(CreateSandboxFromSnapshotParams(snapshot=snapshot_name))
|
||||
|
||||
try:
|
||||
# Verify the first sandbox environment
|
||||
@@ -69,7 +69,7 @@ async def main():
|
||||
print(response.result)
|
||||
finally:
|
||||
# Clean up first sandbox
|
||||
await daytona.delete(sandbox1)
|
||||
await hanzo_runtime.delete(sandbox1)
|
||||
|
||||
# Create second sandbox with a new dynamic image
|
||||
print("=== Creating Sandbox with Dynamic Image ===")
|
||||
@@ -78,13 +78,13 @@ async def main():
|
||||
dynamic_image = (
|
||||
Image.debian_slim("3.11")
|
||||
.pip_install(["pytest", "pytest-cov", "black", "isort", "mypy", "ruff"])
|
||||
.run_commands("apt-get update && apt-get install -y git", "mkdir -p /home/daytona/project")
|
||||
.workdir("/home/daytona/project")
|
||||
.run_commands("apt-get update && apt-get install -y git", "mkdir -p /home/hanzo/project")
|
||||
.workdir("/home/hanzo/project")
|
||||
.env({"ENV_VAR": "My Environment Variable"})
|
||||
)
|
||||
|
||||
# Create sandbox with the dynamic image
|
||||
sandbox2 = await daytona.create(
|
||||
sandbox2 = await hanzo_runtime.create(
|
||||
CreateSandboxFromImageParams(
|
||||
image=dynamic_image,
|
||||
),
|
||||
@@ -100,9 +100,9 @@ async def main():
|
||||
print(response.result)
|
||||
finally:
|
||||
# Clean up second sandbox
|
||||
await daytona.delete(sandbox2)
|
||||
await hanzo_runtime.delete(sandbox2)
|
||||
finally:
|
||||
await daytona.close()
|
||||
await hanzo_runtime.close()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import time
|
||||
|
||||
from daytona import (
|
||||
from hanzo_runtime import (
|
||||
CreateSandboxFromImageParams,
|
||||
CreateSandboxFromSnapshotParams,
|
||||
CreateSnapshotParams,
|
||||
@@ -11,7 +11,7 @@ from daytona import (
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
# Generate unique name for the snapshot to avoid conflicts
|
||||
snapshot_name = f"python-example:{int(time.time())}"
|
||||
@@ -27,16 +27,16 @@ def main():
|
||||
.run_commands(
|
||||
"apt-get update && apt-get install -y git",
|
||||
"groupadd -r daytona && useradd -r -g daytona -m daytona",
|
||||
"mkdir -p /home/daytona/workspace",
|
||||
"mkdir -p /home/hanzo/workspace",
|
||||
)
|
||||
.workdir("/home/daytona/workspace")
|
||||
.workdir("/home/hanzo/workspace")
|
||||
.env({"MY_ENV_VAR": "My Environment Variable"})
|
||||
.add_local_file("file_example.txt", "/home/daytona/workspace/file_example.txt")
|
||||
.add_local_file("file_example.txt", "/home/hanzo/workspace/file_example.txt")
|
||||
)
|
||||
|
||||
# Create the snapshot
|
||||
print(f"=== Creating Snapshot: {snapshot_name} ===")
|
||||
daytona.snapshot.create(
|
||||
hanzo_runtime.snapshot.create(
|
||||
CreateSnapshotParams(
|
||||
name=snapshot_name,
|
||||
image=image,
|
||||
@@ -51,7 +51,7 @@ def main():
|
||||
|
||||
# Create first sandbox using the pre-built image
|
||||
print("\n=== Creating Sandbox from Pre-built Image ===")
|
||||
sandbox1 = daytona.create(CreateSandboxFromSnapshotParams(snapshot=snapshot_name))
|
||||
sandbox1 = hanzo_runtime.create(CreateSandboxFromSnapshotParams(snapshot=snapshot_name))
|
||||
|
||||
try:
|
||||
# Verify the first sandbox environment
|
||||
@@ -66,7 +66,7 @@ def main():
|
||||
print(response.result)
|
||||
finally:
|
||||
# Clean up first sandbox
|
||||
daytona.delete(sandbox1)
|
||||
hanzo_runtime.delete(sandbox1)
|
||||
|
||||
# Create second sandbox with a new dynamic image
|
||||
print("=== Creating Sandbox with Dynamic Image ===")
|
||||
@@ -75,13 +75,13 @@ def main():
|
||||
dynamic_image = (
|
||||
Image.debian_slim("3.11")
|
||||
.pip_install(["pytest", "pytest-cov", "black", "isort", "mypy", "ruff"])
|
||||
.run_commands("apt-get update && apt-get install -y git", "mkdir -p /home/daytona/project")
|
||||
.workdir("/home/daytona/project")
|
||||
.run_commands("apt-get update && apt-get install -y git", "mkdir -p /home/hanzo/project")
|
||||
.workdir("/home/hanzo/project")
|
||||
.env({"ENV_VAR": "My Environment Variable"})
|
||||
)
|
||||
|
||||
# Create sandbox with the dynamic image
|
||||
sandbox2 = daytona.create(
|
||||
sandbox2 = hanzo_runtime.create(
|
||||
CreateSandboxFromImageParams(
|
||||
image=dynamic_image,
|
||||
),
|
||||
@@ -97,7 +97,7 @@ def main():
|
||||
print(response.result)
|
||||
finally:
|
||||
# Clean up second sandbox
|
||||
daytona.delete(sandbox2)
|
||||
hanzo_runtime.delete(sandbox2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona, CreateSandboxFromImageParams, Resources
|
||||
from hanzo_runtime import AsyncHanzoRuntime, CreateSandboxFromImageParams, Resources
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
params = CreateSandboxFromImageParams(
|
||||
image="python:3.9.23-slim",
|
||||
language="python",
|
||||
@@ -14,7 +14,7 @@ async def main():
|
||||
disk=3,
|
||||
),
|
||||
)
|
||||
sandbox = await daytona.create(params, timeout=150, on_snapshot_create_logs=print)
|
||||
sandbox = await hanzo_runtime.create(params, timeout=150, on_snapshot_create_logs=print)
|
||||
|
||||
# Run the code securely inside the sandbox
|
||||
response = await sandbox.process.code_run('print("Hello World!")')
|
||||
@@ -30,7 +30,7 @@ async def main():
|
||||
else:
|
||||
print(response.result)
|
||||
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona, SessionExecuteRequest
|
||||
from hanzo_runtime import AsyncHanzoRuntime, SessionExecuteRequest
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
sandbox = await daytona.create()
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
sandbox = await hanzo_runtime.create()
|
||||
|
||||
try:
|
||||
session_id = "exec-session-1"
|
||||
@@ -42,7 +42,7 @@ async def main():
|
||||
print(f"Error: {e}")
|
||||
finally:
|
||||
print("Cleaning up sandbox...")
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona, SessionExecuteRequest
|
||||
from hanzo_runtime import AsyncHanzoRuntime, SessionExecuteRequest
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
sandbox = await daytona.create()
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
sandbox = await hanzo_runtime.create()
|
||||
|
||||
exec_session_id = "exec-session-1"
|
||||
await sandbox.process.create_session(exec_session_id)
|
||||
@@ -49,7 +49,7 @@ async def main():
|
||||
# And of course you can delete the session at any time
|
||||
await sandbox.process.delete_session(exec_session_id)
|
||||
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from daytona import CreateSandboxFromImageParams, Daytona, Resources
|
||||
from hanzo_runtime import , Resources
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
params = CreateSandboxFromImageParams(
|
||||
image="python:3.9.23-slim",
|
||||
@@ -13,7 +13,7 @@ def main():
|
||||
disk=3,
|
||||
),
|
||||
)
|
||||
sandbox = daytona.create(params, timeout=150, on_snapshot_create_logs=print)
|
||||
sandbox = hanzo_runtime.create(params, timeout=150, on_snapshot_create_logs=print)
|
||||
|
||||
# Run the code securely inside the sandbox
|
||||
response = sandbox.process.code_run('print("Hello World!")')
|
||||
@@ -29,7 +29,7 @@ def main():
|
||||
else:
|
||||
print(response.result)
|
||||
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import Daytona, SessionExecuteRequest
|
||||
from hanzo_runtime import HanzoRuntime, SessionExecuteRequest
|
||||
|
||||
|
||||
async def main():
|
||||
daytona = Daytona()
|
||||
sandbox = daytona.create()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
sandbox = hanzo_runtime.create()
|
||||
|
||||
try:
|
||||
session_id = "exec-session-1"
|
||||
@@ -35,7 +35,7 @@ async def main():
|
||||
print(f"Error: {e}")
|
||||
finally:
|
||||
print("Cleaning up sandbox...")
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from daytona import Daytona, SessionExecuteRequest
|
||||
from hanzo_runtime import HanzoRuntime, SessionExecuteRequest
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
sandbox = daytona.create()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
sandbox = hanzo_runtime.create()
|
||||
|
||||
exec_session_id = "exec-session-1"
|
||||
sandbox.process.create_session(exec_session_id)
|
||||
@@ -45,7 +45,7 @@ def main():
|
||||
# And of course you can delete the session at any time
|
||||
sandbox.process.delete_session(exec_session_id)
|
||||
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -3,17 +3,17 @@ import json
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
from daytona import AsyncDaytona, CreateSandboxFromSnapshotParams, FileUpload
|
||||
from hanzo_runtime import AsyncHanzoRuntime, CreateSandboxFromSnapshotParams, FileUpload
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
)
|
||||
|
||||
# First, create a sandbox
|
||||
sandbox = await daytona.create(params)
|
||||
sandbox = await hanzo_runtime.create(params)
|
||||
print(f"Created sandbox with ID: {sandbox.id}")
|
||||
|
||||
# List files in the sandbox
|
||||
@@ -88,7 +88,7 @@ async def main():
|
||||
os.remove(local_file_path)
|
||||
|
||||
# Delete the sandbox
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -2,17 +2,17 @@ import json
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
from daytona import CreateSandboxFromSnapshotParams, Daytona, FileUpload
|
||||
from hanzo_runtime import , FileUpload
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
)
|
||||
|
||||
# First, create a sandbox
|
||||
sandbox = daytona.create(params)
|
||||
sandbox = hanzo_runtime.create(params)
|
||||
print(f"Created sandbox with ID: {sandbox.id}")
|
||||
|
||||
# List files in the sandbox
|
||||
@@ -86,7 +86,7 @@ def main():
|
||||
os.remove(local_file_path)
|
||||
|
||||
# Delete the sandbox
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona, CreateSandboxFromImageParams, Image
|
||||
from hanzo_runtime import AsyncHanzoRuntime, CreateSandboxFromImageParams, Image
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
sandbox = await daytona.create(
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
sandbox = await hanzo_runtime.create(
|
||||
CreateSandboxFromImageParams(
|
||||
image=(
|
||||
Image.base("ubuntu:25.10").run_commands(
|
||||
@@ -62,7 +62,7 @@ async def main():
|
||||
print("Error executing example:", error)
|
||||
finally:
|
||||
# Cleanup
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from daytona import CreateSandboxFromImageParams, Daytona, Image
|
||||
from hanzo_runtime import , Image
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
sandbox = daytona.create(
|
||||
sandbox = hanzo_runtime.create(
|
||||
CreateSandboxFromImageParams(
|
||||
image=(
|
||||
Image.base("ubuntu:25.10").run_commands(
|
||||
@@ -61,7 +61,7 @@ def main():
|
||||
print("Error executing example:", error)
|
||||
finally:
|
||||
# Cleanup
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import asyncio
|
||||
|
||||
from daytona import AsyncDaytona
|
||||
from hanzo_runtime import AsyncHanzoRuntime
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
print("Creating sandbox")
|
||||
sandbox = await daytona.create()
|
||||
sandbox = await hanzo_runtime.create()
|
||||
print("Sandbox created")
|
||||
|
||||
await sandbox.set_labels(
|
||||
@@ -16,30 +16,30 @@ async def main():
|
||||
)
|
||||
|
||||
print("Stopping sandbox")
|
||||
await daytona.stop(sandbox)
|
||||
await hanzo_runtime.stop(sandbox)
|
||||
print("Sandbox stopped")
|
||||
|
||||
print("Starting sandbox")
|
||||
await daytona.start(sandbox)
|
||||
await hanzo_runtime.start(sandbox)
|
||||
print("Sandbox started")
|
||||
|
||||
print("Getting existing sandbox")
|
||||
existing_sandbox = await daytona.get(sandbox.id)
|
||||
existing_sandbox = await hanzo_runtime.get(sandbox.id)
|
||||
print("Get existing sandbox")
|
||||
|
||||
response = await existing_sandbox.process.exec('echo "Hello World from exec!"', cwd="/home/daytona", timeout=10)
|
||||
response = await existing_sandbox.process.exec('echo "Hello World from exec!"', cwd="/home/hanzo", timeout=10)
|
||||
if response.exit_code != 0:
|
||||
print(f"Error: {response.exit_code} {response.result}")
|
||||
else:
|
||||
print(response.result)
|
||||
|
||||
sandboxes = await daytona.list()
|
||||
sandboxes = await hanzo_runtime.list()
|
||||
print("Total sandboxes count:", len(sandboxes))
|
||||
|
||||
print(f"Printing sandboxes[0] -> id: {sandboxes[0].id} state: {sandboxes[0].state}")
|
||||
|
||||
print("Removing sandbox")
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
print("Sandbox removed")
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from daytona import Daytona
|
||||
from hanzo_runtime import HanzoRuntime
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
print("Creating sandbox")
|
||||
sandbox = daytona.create()
|
||||
sandbox = hanzo_runtime.create()
|
||||
print("Sandbox created")
|
||||
|
||||
sandbox.set_labels(
|
||||
@@ -15,30 +15,30 @@ def main():
|
||||
)
|
||||
|
||||
print("Stopping sandbox")
|
||||
daytona.stop(sandbox)
|
||||
hanzo_runtime.stop(sandbox)
|
||||
print("Sandbox stopped")
|
||||
|
||||
print("Starting sandbox")
|
||||
daytona.start(sandbox)
|
||||
hanzo_runtime.start(sandbox)
|
||||
print("Sandbox started")
|
||||
|
||||
print("Getting existing sandbox")
|
||||
existing_sandbox = daytona.get(sandbox.id)
|
||||
existing_sandbox = hanzo_runtime.get(sandbox.id)
|
||||
print("Get existing sandbox")
|
||||
|
||||
response = existing_sandbox.process.exec('echo "Hello World from exec!"', cwd="/home/daytona", timeout=10)
|
||||
response = existing_sandbox.process.exec('echo "Hello World from exec!"', cwd="/home/hanzo", timeout=10)
|
||||
if response.exit_code != 0:
|
||||
print(f"Error: {response.exit_code} {response.result}")
|
||||
else:
|
||||
print(response.result)
|
||||
|
||||
sandboxes = daytona.list()
|
||||
sandboxes = hanzo_runtime.list()
|
||||
print("Total sandboxes count:", len(sandboxes))
|
||||
|
||||
print(f"Printing sandboxes[0] -> id: {sandboxes[0].id} state: {sandboxes[0].state}")
|
||||
|
||||
print("Removing sandbox")
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
print("Sandbox removed")
|
||||
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
from daytona import AsyncDaytona, CreateSandboxFromSnapshotParams, VolumeMount
|
||||
from hanzo_runtime import AsyncHanzoRuntime, CreateSandboxFromSnapshotParams, VolumeMount
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncDaytona() as daytona:
|
||||
async with AsyncHanzoRuntime() as hanzo_runtime:
|
||||
# Create a new volume or get an existing one
|
||||
volume = await daytona.volume.get("my-volume", create=True)
|
||||
volume = await hanzo_runtime.volume.get("my-volume", create=True)
|
||||
|
||||
# Mount the volume to the sandbox
|
||||
mount_dir_1 = "/home/daytona/volume"
|
||||
mount_dir_1 = "/home/hanzo/volume"
|
||||
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
volumes=[VolumeMount(volumeId=volume.id, mountPath=mount_dir_1)],
|
||||
)
|
||||
sandbox = await daytona.create(params)
|
||||
sandbox = await hanzo_runtime.create(params)
|
||||
|
||||
# Create a new directory in the mount directory
|
||||
new_dir = os.path.join(mount_dir_1, "new-dir")
|
||||
@@ -28,13 +28,13 @@ async def main():
|
||||
|
||||
# Create a new sandbox with the same volume
|
||||
# and mount it to the different path
|
||||
mount_dir_2 = "/home/daytona/my-files"
|
||||
mount_dir_2 = "/home/hanzo/my-files"
|
||||
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
volumes=[VolumeMount(volumeId=volume.id, mountPath=mount_dir_2)],
|
||||
)
|
||||
sandbox2 = await daytona.create(params)
|
||||
sandbox2 = await hanzo_runtime.create(params)
|
||||
|
||||
# List files in the mount directory
|
||||
files = await sandbox2.fs.list_files(mount_dir_2)
|
||||
@@ -45,9 +45,9 @@ async def main():
|
||||
print("File:", file)
|
||||
|
||||
# Cleanup
|
||||
await daytona.delete(sandbox)
|
||||
await daytona.delete(sandbox2)
|
||||
# daytona.volume.delete(volume)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox2)
|
||||
# hanzo_runtime.volume.delete(volume)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import os
|
||||
|
||||
from daytona import CreateSandboxFromSnapshotParams, Daytona, VolumeMount
|
||||
from hanzo_runtime import , VolumeMount
|
||||
|
||||
|
||||
def main():
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
# Create a new volume or get an existing one
|
||||
volume = daytona.volume.get("my-volume", create=True)
|
||||
volume = hanzo_runtime.volume.get("my-volume", create=True)
|
||||
|
||||
# Mount the volume to the sandbox
|
||||
mount_dir_1 = "/home/daytona/volume"
|
||||
mount_dir_1 = "/home/hanzo/volume"
|
||||
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
volumes=[VolumeMount(volumeId=volume.id, mountPath=mount_dir_1)],
|
||||
)
|
||||
sandbox = daytona.create(params)
|
||||
sandbox = hanzo_runtime.create(params)
|
||||
|
||||
# Create a new directory in the mount directory
|
||||
new_dir = os.path.join(mount_dir_1, "new-dir")
|
||||
@@ -28,13 +28,13 @@ def main():
|
||||
|
||||
# Create a new sandbox with the same volume
|
||||
# and mount it to the different path
|
||||
mount_dir_2 = "/home/daytona/my-files"
|
||||
mount_dir_2 = "/home/hanzo/my-files"
|
||||
|
||||
params = CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
volumes=[VolumeMount(volumeId=volume.id, mountPath=mount_dir_2)],
|
||||
)
|
||||
sandbox2 = daytona.create(params)
|
||||
sandbox2 = hanzo_runtime.create(params)
|
||||
|
||||
# List files in the mount directory
|
||||
files = sandbox2.fs.list_files(mount_dir_2)
|
||||
@@ -45,9 +45,9 @@ def main():
|
||||
print("File:", file)
|
||||
|
||||
# Cleanup
|
||||
daytona.delete(sandbox)
|
||||
daytona.delete(sandbox2)
|
||||
# daytona.volume.delete(volume)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox2)
|
||||
# hanzo_runtime.volume.delete(volume)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime } from '@hanzo/runtime-sdk'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// Default interval
|
||||
const sandbox1 = await daytona.create()
|
||||
const sandbox1 = await hanzoRuntime.create()
|
||||
console.log(sandbox1.autoArchiveInterval)
|
||||
|
||||
// Set interval to 1 hour
|
||||
@@ -12,13 +12,13 @@ async function main() {
|
||||
console.log(sandbox1.autoArchiveInterval)
|
||||
|
||||
// Max interval
|
||||
const sandbox2 = await daytona.create({
|
||||
const sandbox2 = await hanzoRuntime.create({
|
||||
autoArchiveInterval: 0,
|
||||
})
|
||||
console.log(sandbox2.autoArchiveInterval)
|
||||
|
||||
// 1 day interval
|
||||
const sandbox3 = await daytona.create({
|
||||
const sandbox3 = await hanzoRuntime.create({
|
||||
autoArchiveInterval: 1440,
|
||||
})
|
||||
console.log(sandbox3.autoArchiveInterval)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime } from '@hanzo/runtime-sdk'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// Auto-delete is disabled by default
|
||||
const sandbox1 = await daytona.create()
|
||||
const sandbox1 = await hanzoRuntime.create()
|
||||
console.log(sandbox1.autoDeleteInterval)
|
||||
|
||||
// Auto-delete after the Sandbox has been stopped for 1 hour
|
||||
@@ -20,7 +20,7 @@ async function main() {
|
||||
console.log(sandbox1.autoDeleteInterval)
|
||||
|
||||
// Auto-delete after the Sandbox has been stopped for 1 day
|
||||
const sandbox2 = await daytona.create({
|
||||
const sandbox2 = await hanzoRuntime.create({
|
||||
autoDeleteInterval: 1440,
|
||||
})
|
||||
console.log(sandbox2.autoDeleteInterval)
|
||||
|
||||
@@ -4,20 +4,20 @@ import {
|
||||
Chart,
|
||||
ChartType,
|
||||
CompositeChart,
|
||||
Daytona,
|
||||
HanzoRuntime,
|
||||
LineChart,
|
||||
PieChart,
|
||||
ScatterChart,
|
||||
Image,
|
||||
} from '@daytonaio/sdk'
|
||||
} from '@hanzo/runtime-sdk'
|
||||
import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// first, create a sandbox
|
||||
const sandbox = await daytona.create(
|
||||
const sandbox = await hanzoRuntime.create(
|
||||
{
|
||||
image: Image.debianSlim('3.13').pipInstall('matplotlib'),
|
||||
},
|
||||
@@ -41,7 +41,7 @@ async function main() {
|
||||
console.error('Execution error:', error)
|
||||
} finally {
|
||||
// cleanup
|
||||
await daytona.delete(sandbox)
|
||||
await hanzoRuntime.delete(sandbox)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Daytona, Image } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime, Image } from '@hanzo/runtime-sdk'
|
||||
import fs from 'fs'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// Generate unique name for the snapshot to avoid conflicts
|
||||
const snapshotName = `node-example:${Date.now()}`
|
||||
@@ -16,16 +16,16 @@ async function main() {
|
||||
// Create a Python image with common data science packages
|
||||
const image = Image.debianSlim('3.12')
|
||||
.pipInstall(['numpy', 'pandas', 'matplotlib', 'scipy', 'scikit-learn'])
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/daytona/workspace')
|
||||
.workdir('/home/daytona/workspace')
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/hanzo/workspace')
|
||||
.workdir('/home/hanzo/workspace')
|
||||
.env({
|
||||
MY_ENV_VAR: 'My Environment Variable',
|
||||
})
|
||||
.addLocalFile(localFilePath, '/home/daytona/workspace/file_example.txt')
|
||||
.addLocalFile(localFilePath, '/home/hanzo/workspace/file_example.txt')
|
||||
|
||||
// Create the snapshot
|
||||
console.log(`=== Creating Snapshot: ${snapshotName} ===`)
|
||||
await daytona.snapshot.create(
|
||||
await hanzoRuntime.snapshot.create(
|
||||
{
|
||||
name: snapshotName,
|
||||
image,
|
||||
@@ -42,7 +42,7 @@ async function main() {
|
||||
|
||||
// Create first sandbox using the pre-built image
|
||||
console.log('\n=== Creating Sandbox from Pre-built Snapshot ===')
|
||||
const sandbox1 = await daytona.create({
|
||||
const sandbox1 = await hanzoRuntime.create({
|
||||
snapshot: snapshotName,
|
||||
})
|
||||
|
||||
@@ -59,7 +59,7 @@ async function main() {
|
||||
console.log(fileContent.result)
|
||||
} finally {
|
||||
// Clean up first sandbox
|
||||
await daytona.delete(sandbox1)
|
||||
await hanzoRuntime.delete(sandbox1)
|
||||
}
|
||||
|
||||
// Create second sandbox with a new dynamic image
|
||||
@@ -68,14 +68,14 @@ async function main() {
|
||||
// Define a new dynamic image for the second sandbox
|
||||
const dynamicImage = Image.debianSlim('3.13')
|
||||
.pipInstall(['pytest', 'pytest-cov', 'black', 'isort', 'mypy', 'ruff'])
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/daytona/project')
|
||||
.workdir('/home/daytona/project')
|
||||
.runCommands('apt-get update && apt-get install -y git', 'mkdir -p /home/hanzo/project')
|
||||
.workdir('/home/hanzo/project')
|
||||
.env({
|
||||
NODE_ENV: 'development',
|
||||
})
|
||||
|
||||
// Create sandbox with the dynamic image
|
||||
const sandbox2 = await daytona.create(
|
||||
const sandbox2 = await hanzoRuntime.create(
|
||||
{
|
||||
image: dynamicImage,
|
||||
},
|
||||
@@ -93,7 +93,7 @@ async function main() {
|
||||
console.log(toolsResponse.result)
|
||||
} finally {
|
||||
// Clean up second sandbox
|
||||
await daytona.delete(sandbox2)
|
||||
await hanzoRuntime.delete(sandbox2)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Daytona, Sandbox, Image } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime, Sandbox, Image } from '@hanzo/runtime-sdk'
|
||||
|
||||
async function basicExec(sandbox: Sandbox) {
|
||||
// run some typescript code directly
|
||||
@@ -71,10 +71,10 @@ async function sessionExecLogsAsync(sandbox: Sandbox) {
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// first, create a sandbox
|
||||
const sandbox = await daytona.create(
|
||||
const sandbox = await hanzoRuntime.create(
|
||||
{
|
||||
image: Image.base('ubuntu:22.04').runCommands(
|
||||
'apt-get update && apt-get install -y --no-install-recommends nodejs npm coreutils',
|
||||
@@ -100,7 +100,7 @@ async function main() {
|
||||
console.error('Error executing commands:', error)
|
||||
} finally {
|
||||
// cleanup
|
||||
await daytona.delete(sandbox)
|
||||
await hanzoRuntime.delete(sandbox)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime } from '@hanzo/runtime-sdk'
|
||||
import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// first, create a sandbox
|
||||
const sandbox = await daytona.create()
|
||||
const sandbox = await hanzoRuntime.create()
|
||||
|
||||
try {
|
||||
console.log(`Created sandbox with ID: ${sandbox.id}`)
|
||||
@@ -97,7 +97,7 @@ Script: ${scriptResult.exitCode === 0 ? 'Executed successfully' : 'Failed'}
|
||||
console.error('Error:', error)
|
||||
} finally {
|
||||
// cleanup
|
||||
await daytona.delete(sandbox)
|
||||
await hanzoRuntime.delete(sandbox)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Daytona, Image } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime, Image } from '@hanzo/runtime-sdk'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// first, create a sandbox
|
||||
const sandbox = await daytona.create(
|
||||
const sandbox = await hanzoRuntime.create(
|
||||
{
|
||||
image: Image.base('ubuntu:25.10').runCommands(
|
||||
'apt-get update && apt-get install -y --no-install-recommends nodejs npm coreutils',
|
||||
@@ -57,7 +57,7 @@ async function main() {
|
||||
console.error('Error creating sandbox:', error)
|
||||
} finally {
|
||||
// cleanup
|
||||
await daytona.delete(sandbox)
|
||||
await hanzoRuntime.delete(sandbox)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime } from '@hanzo/runtime-sdk'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
console.log('Creating sandbox')
|
||||
const sandbox = await daytona.create()
|
||||
const sandbox = await hanzoRuntime.create()
|
||||
console.log('Sandbox created')
|
||||
|
||||
await sandbox.setLabels({
|
||||
@@ -20,7 +20,7 @@ async function main() {
|
||||
console.log('Sandbox started')
|
||||
|
||||
console.log('Getting existing sandbox')
|
||||
const existingSandbox = await daytona.get(sandbox.id)
|
||||
const existingSandbox = await hanzoRuntime.get(sandbox.id)
|
||||
console.log('Got existing sandbox')
|
||||
|
||||
const response = await existingSandbox.process.executeCommand(
|
||||
@@ -35,7 +35,7 @@ async function main() {
|
||||
console.log(response.result)
|
||||
}
|
||||
|
||||
const sandboxes = await daytona.list()
|
||||
const sandboxes = await hanzoRuntime.list()
|
||||
console.log('Total sandboxes count:', sandboxes.length)
|
||||
|
||||
console.log(`Printing sandboxes[0] -> id: ${sandboxes[0].id} state: ${sandboxes[0].state}`)
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
import { HanzoRuntime } from '@hanzo/runtime-sdk'
|
||||
import path from 'path'
|
||||
|
||||
async function main() {
|
||||
const daytona = new Daytona()
|
||||
const hanzoRuntime = new HanzoRuntime()
|
||||
|
||||
// Create a new volume or get an existing one
|
||||
const volume = await daytona.volume.get('my-volume', true)
|
||||
const volume = await hanzoRuntime.volume.get('my-volume', true)
|
||||
|
||||
// Mount the volume to the sandbox
|
||||
const mountDir1 = '/home/daytona/volume'
|
||||
const mountDir1 = '/home/hanzo/volume'
|
||||
|
||||
const sandbox1 = await daytona.create({
|
||||
const sandbox1 = await hanzoRuntime.create({
|
||||
language: 'typescript',
|
||||
volumes: [{ volumeId: volume.id, mountPath: mountDir1 }],
|
||||
})
|
||||
@@ -25,9 +25,9 @@ async function main() {
|
||||
|
||||
// Create a new sandbox with the same volume
|
||||
// and mount it to the different path
|
||||
const mountDir2 = '/home/daytona/my-files'
|
||||
const mountDir2 = '/home/hanzo/my-files'
|
||||
|
||||
const sandbox2 = await daytona.create({
|
||||
const sandbox2 = await hanzoRuntime.create({
|
||||
language: 'typescript',
|
||||
volumes: [{ volumeId: volume.id, mountPath: mountDir2 }],
|
||||
})
|
||||
@@ -41,9 +41,9 @@ async function main() {
|
||||
console.log('File:', file.toString())
|
||||
|
||||
// Cleanup
|
||||
await daytona.delete(sandbox1)
|
||||
await daytona.delete(sandbox2)
|
||||
// await daytona.volume.delete(volume)
|
||||
await hanzoRuntime.delete(sandbox1)
|
||||
await hanzoRuntime.delete(sandbox2)
|
||||
// await hanzoRuntime.volume.delete(volume)
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Daytona Sandbox Image
|
||||
# Hanzo Runtime Sandbox Image
|
||||
|
||||
[Dockerfile](./Dockerfile) contains the definition for [daytonaio/sandbox](https://hub.docker.com/r/daytonaio/sandbox) which is used as the default sandbox image in Daytona Cloud.
|
||||
|
||||
|
||||
+75
-75
@@ -46,7 +46,7 @@ class ApiKeysApi:
|
||||
async def create_api_key(
|
||||
self,
|
||||
create_api_key: CreateApiKey,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -65,8 +65,8 @@ class ApiKeysApi:
|
||||
|
||||
:param create_api_key: (required)
|
||||
:type create_api_key: CreateApiKey
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -91,7 +91,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._create_api_key_serialize(
|
||||
create_api_key=create_api_key,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -116,7 +116,7 @@ class ApiKeysApi:
|
||||
async def create_api_key_with_http_info(
|
||||
self,
|
||||
create_api_key: CreateApiKey,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -135,8 +135,8 @@ class ApiKeysApi:
|
||||
|
||||
:param create_api_key: (required)
|
||||
:type create_api_key: CreateApiKey
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -161,7 +161,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._create_api_key_serialize(
|
||||
create_api_key=create_api_key,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -186,7 +186,7 @@ class ApiKeysApi:
|
||||
async def create_api_key_without_preload_content(
|
||||
self,
|
||||
create_api_key: CreateApiKey,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -205,8 +205,8 @@ class ApiKeysApi:
|
||||
|
||||
:param create_api_key: (required)
|
||||
:type create_api_key: CreateApiKey
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -231,7 +231,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._create_api_key_serialize(
|
||||
create_api_key=create_api_key,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -251,7 +251,7 @@ class ApiKeysApi:
|
||||
def _create_api_key_serialize(
|
||||
self,
|
||||
create_api_key,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -275,8 +275,8 @@ class ApiKeysApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_api_key is not None:
|
||||
@@ -333,7 +333,7 @@ class ApiKeysApi:
|
||||
async def delete_api_key(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -352,8 +352,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -378,7 +378,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._delete_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -403,7 +403,7 @@ class ApiKeysApi:
|
||||
async def delete_api_key_with_http_info(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -422,8 +422,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -448,7 +448,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._delete_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -473,7 +473,7 @@ class ApiKeysApi:
|
||||
async def delete_api_key_without_preload_content(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -492,8 +492,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -518,7 +518,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._delete_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -538,7 +538,7 @@ class ApiKeysApi:
|
||||
def _delete_api_key_serialize(
|
||||
self,
|
||||
name,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -564,8 +564,8 @@ class ApiKeysApi:
|
||||
_path_params['name'] = name
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -600,7 +600,7 @@ class ApiKeysApi:
|
||||
async def get_api_key(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -619,8 +619,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -645,7 +645,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._get_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -670,7 +670,7 @@ class ApiKeysApi:
|
||||
async def get_api_key_with_http_info(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -689,8 +689,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -715,7 +715,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._get_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -740,7 +740,7 @@ class ApiKeysApi:
|
||||
async def get_api_key_without_preload_content(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -759,8 +759,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -785,7 +785,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._get_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -805,7 +805,7 @@ class ApiKeysApi:
|
||||
def _get_api_key_serialize(
|
||||
self,
|
||||
name,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -831,8 +831,8 @@ class ApiKeysApi:
|
||||
_path_params['name'] = name
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -873,7 +873,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
async def get_current_api_key(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -890,8 +890,8 @@ class ApiKeysApi:
|
||||
"""Get current API key's details
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -915,7 +915,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_current_api_key_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -939,7 +939,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
async def get_current_api_key_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -956,8 +956,8 @@ class ApiKeysApi:
|
||||
"""Get current API key's details
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -981,7 +981,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_current_api_key_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1005,7 +1005,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
async def get_current_api_key_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1022,8 +1022,8 @@ class ApiKeysApi:
|
||||
"""Get current API key's details
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1047,7 +1047,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_current_api_key_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1066,7 +1066,7 @@ class ApiKeysApi:
|
||||
|
||||
def _get_current_api_key_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1090,8 +1090,8 @@ class ApiKeysApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1132,7 +1132,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
async def list_api_keys(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1149,8 +1149,8 @@ class ApiKeysApi:
|
||||
"""List API keys
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1174,7 +1174,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_api_keys_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1199,7 +1199,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
async def list_api_keys_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1216,8 +1216,8 @@ class ApiKeysApi:
|
||||
"""List API keys
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1241,7 +1241,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_api_keys_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1266,7 +1266,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
async def list_api_keys_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1283,8 +1283,8 @@ class ApiKeysApi:
|
||||
"""List API keys
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1308,7 +1308,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_api_keys_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1328,7 +1328,7 @@ class ApiKeysApi:
|
||||
|
||||
def _list_api_keys_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1352,8 +1352,8 @@ class ApiKeysApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
|
||||
+105
-105
@@ -47,7 +47,7 @@ class DockerRegistryApi:
|
||||
async def create_registry(
|
||||
self,
|
||||
create_docker_registry: CreateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -66,8 +66,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param create_docker_registry: (required)
|
||||
:type create_docker_registry: CreateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -92,7 +92,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._create_registry_serialize(
|
||||
create_docker_registry=create_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -117,7 +117,7 @@ class DockerRegistryApi:
|
||||
async def create_registry_with_http_info(
|
||||
self,
|
||||
create_docker_registry: CreateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -136,8 +136,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param create_docker_registry: (required)
|
||||
:type create_docker_registry: CreateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -162,7 +162,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._create_registry_serialize(
|
||||
create_docker_registry=create_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -187,7 +187,7 @@ class DockerRegistryApi:
|
||||
async def create_registry_without_preload_content(
|
||||
self,
|
||||
create_docker_registry: CreateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -206,8 +206,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param create_docker_registry: (required)
|
||||
:type create_docker_registry: CreateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -232,7 +232,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._create_registry_serialize(
|
||||
create_docker_registry=create_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -252,7 +252,7 @@ class DockerRegistryApi:
|
||||
def _create_registry_serialize(
|
||||
self,
|
||||
create_docker_registry,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -276,8 +276,8 @@ class DockerRegistryApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_docker_registry is not None:
|
||||
@@ -334,7 +334,7 @@ class DockerRegistryApi:
|
||||
async def delete_registry(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -353,8 +353,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -379,7 +379,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._delete_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -404,7 +404,7 @@ class DockerRegistryApi:
|
||||
async def delete_registry_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -423,8 +423,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -449,7 +449,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._delete_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -474,7 +474,7 @@ class DockerRegistryApi:
|
||||
async def delete_registry_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -493,8 +493,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -519,7 +519,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._delete_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -539,7 +539,7 @@ class DockerRegistryApi:
|
||||
def _delete_registry_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -565,8 +565,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -601,7 +601,7 @@ class DockerRegistryApi:
|
||||
async def get_registry(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -620,8 +620,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -646,7 +646,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._get_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -671,7 +671,7 @@ class DockerRegistryApi:
|
||||
async def get_registry_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -690,8 +690,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -716,7 +716,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._get_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -741,7 +741,7 @@ class DockerRegistryApi:
|
||||
async def get_registry_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -760,8 +760,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -786,7 +786,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._get_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -806,7 +806,7 @@ class DockerRegistryApi:
|
||||
def _get_registry_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -832,8 +832,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -874,7 +874,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
async def get_transient_push_access(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -891,8 +891,8 @@ class DockerRegistryApi:
|
||||
"""Get temporary registry access for pushing snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -916,7 +916,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_transient_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -940,7 +940,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
async def get_transient_push_access_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -957,8 +957,8 @@ class DockerRegistryApi:
|
||||
"""Get temporary registry access for pushing snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -982,7 +982,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_transient_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1006,7 +1006,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
async def get_transient_push_access_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1023,8 +1023,8 @@ class DockerRegistryApi:
|
||||
"""Get temporary registry access for pushing snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1048,7 +1048,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_transient_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1067,7 +1067,7 @@ class DockerRegistryApi:
|
||||
|
||||
def _get_transient_push_access_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1091,8 +1091,8 @@ class DockerRegistryApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1133,7 +1133,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
async def list_registries(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1150,8 +1150,8 @@ class DockerRegistryApi:
|
||||
"""List registries
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1175,7 +1175,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_registries_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1199,7 +1199,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
async def list_registries_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1216,8 +1216,8 @@ class DockerRegistryApi:
|
||||
"""List registries
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1241,7 +1241,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_registries_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1265,7 +1265,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
async def list_registries_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1282,8 +1282,8 @@ class DockerRegistryApi:
|
||||
"""List registries
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1307,7 +1307,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_registries_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1326,7 +1326,7 @@ class DockerRegistryApi:
|
||||
|
||||
def _list_registries_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1350,8 +1350,8 @@ class DockerRegistryApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1393,7 +1393,7 @@ class DockerRegistryApi:
|
||||
async def set_default_registry(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1412,8 +1412,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1438,7 +1438,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._set_default_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1463,7 +1463,7 @@ class DockerRegistryApi:
|
||||
async def set_default_registry_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1482,8 +1482,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1508,7 +1508,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._set_default_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1533,7 +1533,7 @@ class DockerRegistryApi:
|
||||
async def set_default_registry_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1552,8 +1552,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1578,7 +1578,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._set_default_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1598,7 +1598,7 @@ class DockerRegistryApi:
|
||||
def _set_default_registry_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1624,8 +1624,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1668,7 +1668,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
update_docker_registry: UpdateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1689,8 +1689,8 @@ class DockerRegistryApi:
|
||||
:type id: str
|
||||
:param update_docker_registry: (required)
|
||||
:type update_docker_registry: UpdateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1716,7 +1716,7 @@ class DockerRegistryApi:
|
||||
_param = self._update_registry_serialize(
|
||||
id=id,
|
||||
update_docker_registry=update_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1742,7 +1742,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
update_docker_registry: UpdateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1763,8 +1763,8 @@ class DockerRegistryApi:
|
||||
:type id: str
|
||||
:param update_docker_registry: (required)
|
||||
:type update_docker_registry: UpdateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1790,7 +1790,7 @@ class DockerRegistryApi:
|
||||
_param = self._update_registry_serialize(
|
||||
id=id,
|
||||
update_docker_registry=update_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1816,7 +1816,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
update_docker_registry: UpdateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1837,8 +1837,8 @@ class DockerRegistryApi:
|
||||
:type id: str
|
||||
:param update_docker_registry: (required)
|
||||
:type update_docker_registry: UpdateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1864,7 +1864,7 @@ class DockerRegistryApi:
|
||||
_param = self._update_registry_serialize(
|
||||
id=id,
|
||||
update_docker_registry=update_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1885,7 +1885,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id,
|
||||
update_docker_registry,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1911,8 +1911,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if update_docker_registry is not None:
|
||||
|
||||
+15
-15
@@ -43,7 +43,7 @@ class ObjectStorageApi:
|
||||
@validate_call
|
||||
async def get_push_access(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -60,8 +60,8 @@ class ObjectStorageApi:
|
||||
"""Get temporary storage access for pushing objects
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -85,7 +85,7 @@ class ObjectStorageApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -109,7 +109,7 @@ class ObjectStorageApi:
|
||||
@validate_call
|
||||
async def get_push_access_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -126,8 +126,8 @@ class ObjectStorageApi:
|
||||
"""Get temporary storage access for pushing objects
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -151,7 +151,7 @@ class ObjectStorageApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -175,7 +175,7 @@ class ObjectStorageApi:
|
||||
@validate_call
|
||||
async def get_push_access_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -192,8 +192,8 @@ class ObjectStorageApi:
|
||||
"""Get temporary storage access for pushing objects
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -217,7 +217,7 @@ class ObjectStorageApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -236,7 +236,7 @@ class ObjectStorageApi:
|
||||
|
||||
def _get_push_access_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -260,8 +260,8 @@ class ObjectStorageApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
|
||||
+225
-225
File diff suppressed because it is too large
Load Diff
+120
-120
@@ -48,7 +48,7 @@ class SnapshotsApi:
|
||||
async def activate_snapshot(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -67,8 +67,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -93,7 +93,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._activate_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -120,7 +120,7 @@ class SnapshotsApi:
|
||||
async def activate_snapshot_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -139,8 +139,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -165,7 +165,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._activate_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -192,7 +192,7 @@ class SnapshotsApi:
|
||||
async def activate_snapshot_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -211,8 +211,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -237,7 +237,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._activate_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -259,7 +259,7 @@ class SnapshotsApi:
|
||||
def _activate_snapshot_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -285,8 +285,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -328,7 +328,7 @@ class SnapshotsApi:
|
||||
async def create_snapshot(
|
||||
self,
|
||||
create_snapshot: CreateSnapshot,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -347,8 +347,8 @@ class SnapshotsApi:
|
||||
|
||||
:param create_snapshot: (required)
|
||||
:type create_snapshot: CreateSnapshot
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -373,7 +373,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._create_snapshot_serialize(
|
||||
create_snapshot=create_snapshot,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -399,7 +399,7 @@ class SnapshotsApi:
|
||||
async def create_snapshot_with_http_info(
|
||||
self,
|
||||
create_snapshot: CreateSnapshot,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -418,8 +418,8 @@ class SnapshotsApi:
|
||||
|
||||
:param create_snapshot: (required)
|
||||
:type create_snapshot: CreateSnapshot
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -444,7 +444,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._create_snapshot_serialize(
|
||||
create_snapshot=create_snapshot,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -470,7 +470,7 @@ class SnapshotsApi:
|
||||
async def create_snapshot_without_preload_content(
|
||||
self,
|
||||
create_snapshot: CreateSnapshot,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -489,8 +489,8 @@ class SnapshotsApi:
|
||||
|
||||
:param create_snapshot: (required)
|
||||
:type create_snapshot: CreateSnapshot
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -515,7 +515,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._create_snapshot_serialize(
|
||||
create_snapshot=create_snapshot,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -536,7 +536,7 @@ class SnapshotsApi:
|
||||
def _create_snapshot_serialize(
|
||||
self,
|
||||
create_snapshot,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -560,8 +560,8 @@ class SnapshotsApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_snapshot is not None:
|
||||
@@ -617,7 +617,7 @@ class SnapshotsApi:
|
||||
@validate_call
|
||||
async def get_all_snapshots(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
||||
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
||||
_request_timeout: Union[
|
||||
@@ -636,8 +636,8 @@ class SnapshotsApi:
|
||||
"""List all snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param limit: Number of items per page
|
||||
:type limit: float
|
||||
:param page: Page number
|
||||
@@ -665,7 +665,7 @@ class SnapshotsApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_all_snapshots_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
limit=limit,
|
||||
page=page,
|
||||
_request_auth=_request_auth,
|
||||
@@ -691,7 +691,7 @@ class SnapshotsApi:
|
||||
@validate_call
|
||||
async def get_all_snapshots_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
||||
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
||||
_request_timeout: Union[
|
||||
@@ -710,8 +710,8 @@ class SnapshotsApi:
|
||||
"""List all snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param limit: Number of items per page
|
||||
:type limit: float
|
||||
:param page: Page number
|
||||
@@ -739,7 +739,7 @@ class SnapshotsApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_all_snapshots_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
limit=limit,
|
||||
page=page,
|
||||
_request_auth=_request_auth,
|
||||
@@ -765,7 +765,7 @@ class SnapshotsApi:
|
||||
@validate_call
|
||||
async def get_all_snapshots_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
||||
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
||||
_request_timeout: Union[
|
||||
@@ -784,8 +784,8 @@ class SnapshotsApi:
|
||||
"""List all snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param limit: Number of items per page
|
||||
:type limit: float
|
||||
:param page: Page number
|
||||
@@ -813,7 +813,7 @@ class SnapshotsApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_all_snapshots_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
limit=limit,
|
||||
page=page,
|
||||
_request_auth=_request_auth,
|
||||
@@ -834,7 +834,7 @@ class SnapshotsApi:
|
||||
|
||||
def _get_all_snapshots_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
limit,
|
||||
page,
|
||||
_request_auth,
|
||||
@@ -868,8 +868,8 @@ class SnapshotsApi:
|
||||
_query_params.append(('page', page))
|
||||
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -911,7 +911,7 @@ class SnapshotsApi:
|
||||
async def get_snapshot(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -930,8 +930,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID or name (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -956,7 +956,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -982,7 +982,7 @@ class SnapshotsApi:
|
||||
async def get_snapshot_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1001,8 +1001,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID or name (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1027,7 +1027,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1053,7 +1053,7 @@ class SnapshotsApi:
|
||||
async def get_snapshot_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1072,8 +1072,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID or name (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1098,7 +1098,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1119,7 +1119,7 @@ class SnapshotsApi:
|
||||
def _get_snapshot_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1145,8 +1145,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1188,7 +1188,7 @@ class SnapshotsApi:
|
||||
async def get_snapshot_build_logs(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1208,8 +1208,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param follow: Whether to follow the logs stream
|
||||
:type follow: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1236,7 +1236,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_build_logs_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
follow=follow,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1262,7 +1262,7 @@ class SnapshotsApi:
|
||||
async def get_snapshot_build_logs_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1282,8 +1282,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param follow: Whether to follow the logs stream
|
||||
:type follow: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1310,7 +1310,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_build_logs_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
follow=follow,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1336,7 +1336,7 @@ class SnapshotsApi:
|
||||
async def get_snapshot_build_logs_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1356,8 +1356,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param follow: Whether to follow the logs stream
|
||||
:type follow: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1384,7 +1384,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_build_logs_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
follow=follow,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1405,7 +1405,7 @@ class SnapshotsApi:
|
||||
def _get_snapshot_build_logs_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
follow,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
@@ -1436,8 +1436,8 @@ class SnapshotsApi:
|
||||
_query_params.append(('follow', follow))
|
||||
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1472,7 +1472,7 @@ class SnapshotsApi:
|
||||
async def remove_snapshot(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1491,8 +1491,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1517,7 +1517,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._remove_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1542,7 +1542,7 @@ class SnapshotsApi:
|
||||
async def remove_snapshot_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1561,8 +1561,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1587,7 +1587,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._remove_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1612,7 +1612,7 @@ class SnapshotsApi:
|
||||
async def remove_snapshot_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1631,8 +1631,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1657,7 +1657,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._remove_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1677,7 +1677,7 @@ class SnapshotsApi:
|
||||
def _remove_snapshot_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1703,8 +1703,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1740,7 +1740,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1761,8 +1761,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param set_snapshot_general_status_dto: (required)
|
||||
:type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1788,7 +1788,7 @@ class SnapshotsApi:
|
||||
_param = self._set_snapshot_general_status_serialize(
|
||||
id=id,
|
||||
set_snapshot_general_status_dto=set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1814,7 +1814,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1835,8 +1835,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param set_snapshot_general_status_dto: (required)
|
||||
:type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1862,7 +1862,7 @@ class SnapshotsApi:
|
||||
_param = self._set_snapshot_general_status_serialize(
|
||||
id=id,
|
||||
set_snapshot_general_status_dto=set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1888,7 +1888,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1909,8 +1909,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param set_snapshot_general_status_dto: (required)
|
||||
:type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1936,7 +1936,7 @@ class SnapshotsApi:
|
||||
_param = self._set_snapshot_general_status_serialize(
|
||||
id=id,
|
||||
set_snapshot_general_status_dto=set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1957,7 +1957,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id,
|
||||
set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1983,8 +1983,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if set_snapshot_general_status_dto is not None:
|
||||
@@ -2042,7 +2042,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
toggle_state: ToggleState,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -2063,8 +2063,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param toggle_state: (required)
|
||||
:type toggle_state: ToggleState
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -2090,7 +2090,7 @@ class SnapshotsApi:
|
||||
_param = self._toggle_snapshot_state_serialize(
|
||||
id=id,
|
||||
toggle_state=toggle_state,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -2116,7 +2116,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
toggle_state: ToggleState,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -2137,8 +2137,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param toggle_state: (required)
|
||||
:type toggle_state: ToggleState
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -2164,7 +2164,7 @@ class SnapshotsApi:
|
||||
_param = self._toggle_snapshot_state_serialize(
|
||||
id=id,
|
||||
toggle_state=toggle_state,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -2190,7 +2190,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
toggle_state: ToggleState,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -2211,8 +2211,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param toggle_state: (required)
|
||||
:type toggle_state: ToggleState
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -2238,7 +2238,7 @@ class SnapshotsApi:
|
||||
_param = self._toggle_snapshot_state_serialize(
|
||||
id=id,
|
||||
toggle_state=toggle_state,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -2259,7 +2259,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id,
|
||||
toggle_state,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -2285,8 +2285,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if toggle_state is not None:
|
||||
|
||||
+900
-900
File diff suppressed because it is too large
Load Diff
+75
-75
@@ -45,7 +45,7 @@ class VolumesApi:
|
||||
async def create_volume(
|
||||
self,
|
||||
create_volume: CreateVolume,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -64,8 +64,8 @@ class VolumesApi:
|
||||
|
||||
:param create_volume: (required)
|
||||
:type create_volume: CreateVolume
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -90,7 +90,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._create_volume_serialize(
|
||||
create_volume=create_volume,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -115,7 +115,7 @@ class VolumesApi:
|
||||
async def create_volume_with_http_info(
|
||||
self,
|
||||
create_volume: CreateVolume,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -134,8 +134,8 @@ class VolumesApi:
|
||||
|
||||
:param create_volume: (required)
|
||||
:type create_volume: CreateVolume
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -160,7 +160,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._create_volume_serialize(
|
||||
create_volume=create_volume,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -185,7 +185,7 @@ class VolumesApi:
|
||||
async def create_volume_without_preload_content(
|
||||
self,
|
||||
create_volume: CreateVolume,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -204,8 +204,8 @@ class VolumesApi:
|
||||
|
||||
:param create_volume: (required)
|
||||
:type create_volume: CreateVolume
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -230,7 +230,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._create_volume_serialize(
|
||||
create_volume=create_volume,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -250,7 +250,7 @@ class VolumesApi:
|
||||
def _create_volume_serialize(
|
||||
self,
|
||||
create_volume,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -274,8 +274,8 @@ class VolumesApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_volume is not None:
|
||||
@@ -332,7 +332,7 @@ class VolumesApi:
|
||||
async def delete_volume(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -351,8 +351,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -377,7 +377,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._delete_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -402,7 +402,7 @@ class VolumesApi:
|
||||
async def delete_volume_with_http_info(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -421,8 +421,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -447,7 +447,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._delete_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -472,7 +472,7 @@ class VolumesApi:
|
||||
async def delete_volume_without_preload_content(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -491,8 +491,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -517,7 +517,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._delete_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -537,7 +537,7 @@ class VolumesApi:
|
||||
def _delete_volume_serialize(
|
||||
self,
|
||||
volume_id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -563,8 +563,8 @@ class VolumesApi:
|
||||
_path_params['volumeId'] = volume_id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -599,7 +599,7 @@ class VolumesApi:
|
||||
async def get_volume(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -618,8 +618,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -644,7 +644,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -669,7 +669,7 @@ class VolumesApi:
|
||||
async def get_volume_with_http_info(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -688,8 +688,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -714,7 +714,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -739,7 +739,7 @@ class VolumesApi:
|
||||
async def get_volume_without_preload_content(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -758,8 +758,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -784,7 +784,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -804,7 +804,7 @@ class VolumesApi:
|
||||
def _get_volume_serialize(
|
||||
self,
|
||||
volume_id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -830,8 +830,8 @@ class VolumesApi:
|
||||
_path_params['volumeId'] = volume_id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -873,7 +873,7 @@ class VolumesApi:
|
||||
async def get_volume_by_name(
|
||||
self,
|
||||
name: Annotated[StrictStr, Field(description="Name of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -892,8 +892,8 @@ class VolumesApi:
|
||||
|
||||
:param name: Name of the volume (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -918,7 +918,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_by_name_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -943,7 +943,7 @@ class VolumesApi:
|
||||
async def get_volume_by_name_with_http_info(
|
||||
self,
|
||||
name: Annotated[StrictStr, Field(description="Name of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -962,8 +962,8 @@ class VolumesApi:
|
||||
|
||||
:param name: Name of the volume (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -988,7 +988,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_by_name_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1013,7 +1013,7 @@ class VolumesApi:
|
||||
async def get_volume_by_name_without_preload_content(
|
||||
self,
|
||||
name: Annotated[StrictStr, Field(description="Name of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1032,8 +1032,8 @@ class VolumesApi:
|
||||
|
||||
:param name: Name of the volume (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1058,7 +1058,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_by_name_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1078,7 +1078,7 @@ class VolumesApi:
|
||||
def _get_volume_by_name_serialize(
|
||||
self,
|
||||
name,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1104,8 +1104,8 @@ class VolumesApi:
|
||||
_path_params['name'] = name
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1146,7 +1146,7 @@ class VolumesApi:
|
||||
@validate_call
|
||||
async def list_volumes(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted volumes in the response")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1164,8 +1164,8 @@ class VolumesApi:
|
||||
"""List all volumes
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param include_deleted: Include deleted volumes in the response
|
||||
:type include_deleted: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1191,7 +1191,7 @@ class VolumesApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_volumes_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
include_deleted=include_deleted,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1216,7 +1216,7 @@ class VolumesApi:
|
||||
@validate_call
|
||||
async def list_volumes_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted volumes in the response")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1234,8 +1234,8 @@ class VolumesApi:
|
||||
"""List all volumes
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param include_deleted: Include deleted volumes in the response
|
||||
:type include_deleted: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1261,7 +1261,7 @@ class VolumesApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_volumes_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
include_deleted=include_deleted,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1286,7 +1286,7 @@ class VolumesApi:
|
||||
@validate_call
|
||||
async def list_volumes_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted volumes in the response")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1304,8 +1304,8 @@ class VolumesApi:
|
||||
"""List all volumes
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param include_deleted: Include deleted volumes in the response
|
||||
:type include_deleted: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1331,7 +1331,7 @@ class VolumesApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_volumes_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
include_deleted=include_deleted,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1351,7 +1351,7 @@ class VolumesApi:
|
||||
|
||||
def _list_volumes_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
include_deleted,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
@@ -1380,8 +1380,8 @@ class VolumesApi:
|
||||
_query_params.append(('includeDeleted', include_deleted))
|
||||
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
|
||||
+210
-210
File diff suppressed because it is too large
Load Diff
+6
-6
@@ -1,13 +1,13 @@
|
||||
[tool.poetry]
|
||||
name = "daytona_api_client_async"
|
||||
name = "hanzo_runtime_api_client_async"
|
||||
version = "0.0.0-dev"
|
||||
description = "Daytona"
|
||||
authors = ["Daytona Platforms Inc. <support@daytona.com>"]
|
||||
description = "Hanzo Runtime API Client (Async)"
|
||||
authors = ["Hanzo Industries Inc. <support@hanzo.ai>"]
|
||||
license = "Apache-2.0"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/daytonaio/daytona"
|
||||
keywords = ["OpenAPI", "OpenAPI-Generator", "Daytona"]
|
||||
include = ["daytona_api_client_async/py.typed"]
|
||||
repository = "https://github.com/hanzoai/runner"
|
||||
keywords = ["OpenAPI", "OpenAPI-Generator", "Hanzo", "Runtime", "Async"]
|
||||
include = ["hanzo_runtime_api_client_async/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
|
||||
+75
-75
@@ -46,7 +46,7 @@ class ApiKeysApi:
|
||||
def create_api_key(
|
||||
self,
|
||||
create_api_key: CreateApiKey,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -65,8 +65,8 @@ class ApiKeysApi:
|
||||
|
||||
:param create_api_key: (required)
|
||||
:type create_api_key: CreateApiKey
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -91,7 +91,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._create_api_key_serialize(
|
||||
create_api_key=create_api_key,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -116,7 +116,7 @@ class ApiKeysApi:
|
||||
def create_api_key_with_http_info(
|
||||
self,
|
||||
create_api_key: CreateApiKey,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -135,8 +135,8 @@ class ApiKeysApi:
|
||||
|
||||
:param create_api_key: (required)
|
||||
:type create_api_key: CreateApiKey
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -161,7 +161,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._create_api_key_serialize(
|
||||
create_api_key=create_api_key,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -186,7 +186,7 @@ class ApiKeysApi:
|
||||
def create_api_key_without_preload_content(
|
||||
self,
|
||||
create_api_key: CreateApiKey,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -205,8 +205,8 @@ class ApiKeysApi:
|
||||
|
||||
:param create_api_key: (required)
|
||||
:type create_api_key: CreateApiKey
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -231,7 +231,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._create_api_key_serialize(
|
||||
create_api_key=create_api_key,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -251,7 +251,7 @@ class ApiKeysApi:
|
||||
def _create_api_key_serialize(
|
||||
self,
|
||||
create_api_key,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -275,8 +275,8 @@ class ApiKeysApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_api_key is not None:
|
||||
@@ -333,7 +333,7 @@ class ApiKeysApi:
|
||||
def delete_api_key(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -352,8 +352,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -378,7 +378,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._delete_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -403,7 +403,7 @@ class ApiKeysApi:
|
||||
def delete_api_key_with_http_info(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -422,8 +422,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -448,7 +448,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._delete_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -473,7 +473,7 @@ class ApiKeysApi:
|
||||
def delete_api_key_without_preload_content(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -492,8 +492,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -518,7 +518,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._delete_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -538,7 +538,7 @@ class ApiKeysApi:
|
||||
def _delete_api_key_serialize(
|
||||
self,
|
||||
name,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -564,8 +564,8 @@ class ApiKeysApi:
|
||||
_path_params['name'] = name
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -600,7 +600,7 @@ class ApiKeysApi:
|
||||
def get_api_key(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -619,8 +619,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -645,7 +645,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._get_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -670,7 +670,7 @@ class ApiKeysApi:
|
||||
def get_api_key_with_http_info(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -689,8 +689,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -715,7 +715,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._get_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -740,7 +740,7 @@ class ApiKeysApi:
|
||||
def get_api_key_without_preload_content(
|
||||
self,
|
||||
name: StrictStr,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -759,8 +759,8 @@ class ApiKeysApi:
|
||||
|
||||
:param name: (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -785,7 +785,7 @@ class ApiKeysApi:
|
||||
|
||||
_param = self._get_api_key_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -805,7 +805,7 @@ class ApiKeysApi:
|
||||
def _get_api_key_serialize(
|
||||
self,
|
||||
name,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -831,8 +831,8 @@ class ApiKeysApi:
|
||||
_path_params['name'] = name
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -873,7 +873,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
def get_current_api_key(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -890,8 +890,8 @@ class ApiKeysApi:
|
||||
"""Get current API key's details
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -915,7 +915,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_current_api_key_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -939,7 +939,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
def get_current_api_key_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -956,8 +956,8 @@ class ApiKeysApi:
|
||||
"""Get current API key's details
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -981,7 +981,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_current_api_key_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1005,7 +1005,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
def get_current_api_key_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1022,8 +1022,8 @@ class ApiKeysApi:
|
||||
"""Get current API key's details
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1047,7 +1047,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_current_api_key_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1066,7 +1066,7 @@ class ApiKeysApi:
|
||||
|
||||
def _get_current_api_key_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1090,8 +1090,8 @@ class ApiKeysApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1132,7 +1132,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
def list_api_keys(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1149,8 +1149,8 @@ class ApiKeysApi:
|
||||
"""List API keys
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1174,7 +1174,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_api_keys_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1199,7 +1199,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
def list_api_keys_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1216,8 +1216,8 @@ class ApiKeysApi:
|
||||
"""List API keys
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1241,7 +1241,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_api_keys_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1266,7 +1266,7 @@ class ApiKeysApi:
|
||||
@validate_call
|
||||
def list_api_keys_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1283,8 +1283,8 @@ class ApiKeysApi:
|
||||
"""List API keys
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1308,7 +1308,7 @@ class ApiKeysApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_api_keys_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1328,7 +1328,7 @@ class ApiKeysApi:
|
||||
|
||||
def _list_api_keys_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1352,8 +1352,8 @@ class ApiKeysApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
|
||||
+105
-105
@@ -47,7 +47,7 @@ class DockerRegistryApi:
|
||||
def create_registry(
|
||||
self,
|
||||
create_docker_registry: CreateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -66,8 +66,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param create_docker_registry: (required)
|
||||
:type create_docker_registry: CreateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -92,7 +92,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._create_registry_serialize(
|
||||
create_docker_registry=create_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -117,7 +117,7 @@ class DockerRegistryApi:
|
||||
def create_registry_with_http_info(
|
||||
self,
|
||||
create_docker_registry: CreateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -136,8 +136,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param create_docker_registry: (required)
|
||||
:type create_docker_registry: CreateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -162,7 +162,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._create_registry_serialize(
|
||||
create_docker_registry=create_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -187,7 +187,7 @@ class DockerRegistryApi:
|
||||
def create_registry_without_preload_content(
|
||||
self,
|
||||
create_docker_registry: CreateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -206,8 +206,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param create_docker_registry: (required)
|
||||
:type create_docker_registry: CreateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -232,7 +232,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._create_registry_serialize(
|
||||
create_docker_registry=create_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -252,7 +252,7 @@ class DockerRegistryApi:
|
||||
def _create_registry_serialize(
|
||||
self,
|
||||
create_docker_registry,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -276,8 +276,8 @@ class DockerRegistryApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_docker_registry is not None:
|
||||
@@ -334,7 +334,7 @@ class DockerRegistryApi:
|
||||
def delete_registry(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -353,8 +353,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -379,7 +379,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._delete_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -404,7 +404,7 @@ class DockerRegistryApi:
|
||||
def delete_registry_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -423,8 +423,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -449,7 +449,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._delete_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -474,7 +474,7 @@ class DockerRegistryApi:
|
||||
def delete_registry_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -493,8 +493,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -519,7 +519,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._delete_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -539,7 +539,7 @@ class DockerRegistryApi:
|
||||
def _delete_registry_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -565,8 +565,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -601,7 +601,7 @@ class DockerRegistryApi:
|
||||
def get_registry(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -620,8 +620,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -646,7 +646,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._get_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -671,7 +671,7 @@ class DockerRegistryApi:
|
||||
def get_registry_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -690,8 +690,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -716,7 +716,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._get_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -741,7 +741,7 @@ class DockerRegistryApi:
|
||||
def get_registry_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -760,8 +760,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -786,7 +786,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._get_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -806,7 +806,7 @@ class DockerRegistryApi:
|
||||
def _get_registry_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -832,8 +832,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -874,7 +874,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
def get_transient_push_access(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -891,8 +891,8 @@ class DockerRegistryApi:
|
||||
"""Get temporary registry access for pushing snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -916,7 +916,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_transient_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -940,7 +940,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
def get_transient_push_access_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -957,8 +957,8 @@ class DockerRegistryApi:
|
||||
"""Get temporary registry access for pushing snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -982,7 +982,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_transient_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1006,7 +1006,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
def get_transient_push_access_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1023,8 +1023,8 @@ class DockerRegistryApi:
|
||||
"""Get temporary registry access for pushing snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1048,7 +1048,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_transient_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1067,7 +1067,7 @@ class DockerRegistryApi:
|
||||
|
||||
def _get_transient_push_access_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1091,8 +1091,8 @@ class DockerRegistryApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1133,7 +1133,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
def list_registries(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1150,8 +1150,8 @@ class DockerRegistryApi:
|
||||
"""List registries
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1175,7 +1175,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_registries_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1199,7 +1199,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
def list_registries_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1216,8 +1216,8 @@ class DockerRegistryApi:
|
||||
"""List registries
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1241,7 +1241,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_registries_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1265,7 +1265,7 @@ class DockerRegistryApi:
|
||||
@validate_call
|
||||
def list_registries_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1282,8 +1282,8 @@ class DockerRegistryApi:
|
||||
"""List registries
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1307,7 +1307,7 @@ class DockerRegistryApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_registries_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1326,7 +1326,7 @@ class DockerRegistryApi:
|
||||
|
||||
def _list_registries_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1350,8 +1350,8 @@ class DockerRegistryApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1393,7 +1393,7 @@ class DockerRegistryApi:
|
||||
def set_default_registry(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1412,8 +1412,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1438,7 +1438,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._set_default_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1463,7 +1463,7 @@ class DockerRegistryApi:
|
||||
def set_default_registry_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1482,8 +1482,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1508,7 +1508,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._set_default_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1533,7 +1533,7 @@ class DockerRegistryApi:
|
||||
def set_default_registry_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1552,8 +1552,8 @@ class DockerRegistryApi:
|
||||
|
||||
:param id: ID of the docker registry (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1578,7 +1578,7 @@ class DockerRegistryApi:
|
||||
|
||||
_param = self._set_default_registry_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1598,7 +1598,7 @@ class DockerRegistryApi:
|
||||
def _set_default_registry_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1624,8 +1624,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1668,7 +1668,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
update_docker_registry: UpdateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1689,8 +1689,8 @@ class DockerRegistryApi:
|
||||
:type id: str
|
||||
:param update_docker_registry: (required)
|
||||
:type update_docker_registry: UpdateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1716,7 +1716,7 @@ class DockerRegistryApi:
|
||||
_param = self._update_registry_serialize(
|
||||
id=id,
|
||||
update_docker_registry=update_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1742,7 +1742,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
update_docker_registry: UpdateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1763,8 +1763,8 @@ class DockerRegistryApi:
|
||||
:type id: str
|
||||
:param update_docker_registry: (required)
|
||||
:type update_docker_registry: UpdateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1790,7 +1790,7 @@ class DockerRegistryApi:
|
||||
_param = self._update_registry_serialize(
|
||||
id=id,
|
||||
update_docker_registry=update_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1816,7 +1816,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="ID of the docker registry")],
|
||||
update_docker_registry: UpdateDockerRegistry,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1837,8 +1837,8 @@ class DockerRegistryApi:
|
||||
:type id: str
|
||||
:param update_docker_registry: (required)
|
||||
:type update_docker_registry: UpdateDockerRegistry
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1864,7 +1864,7 @@ class DockerRegistryApi:
|
||||
_param = self._update_registry_serialize(
|
||||
id=id,
|
||||
update_docker_registry=update_docker_registry,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1885,7 +1885,7 @@ class DockerRegistryApi:
|
||||
self,
|
||||
id,
|
||||
update_docker_registry,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1911,8 +1911,8 @@ class DockerRegistryApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if update_docker_registry is not None:
|
||||
|
||||
+15
-15
@@ -43,7 +43,7 @@ class ObjectStorageApi:
|
||||
@validate_call
|
||||
def get_push_access(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -60,8 +60,8 @@ class ObjectStorageApi:
|
||||
"""Get temporary storage access for pushing objects
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -85,7 +85,7 @@ class ObjectStorageApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -109,7 +109,7 @@ class ObjectStorageApi:
|
||||
@validate_call
|
||||
def get_push_access_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -126,8 +126,8 @@ class ObjectStorageApi:
|
||||
"""Get temporary storage access for pushing objects
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -151,7 +151,7 @@ class ObjectStorageApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -175,7 +175,7 @@ class ObjectStorageApi:
|
||||
@validate_call
|
||||
def get_push_access_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -192,8 +192,8 @@ class ObjectStorageApi:
|
||||
"""Get temporary storage access for pushing objects
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -217,7 +217,7 @@ class ObjectStorageApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_push_access_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -236,7 +236,7 @@ class ObjectStorageApi:
|
||||
|
||||
def _get_push_access_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -260,8 +260,8 @@ class ObjectStorageApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
|
||||
+225
-225
File diff suppressed because it is too large
Load Diff
+120
-120
@@ -48,7 +48,7 @@ class SnapshotsApi:
|
||||
def activate_snapshot(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -67,8 +67,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -93,7 +93,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._activate_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -120,7 +120,7 @@ class SnapshotsApi:
|
||||
def activate_snapshot_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -139,8 +139,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -165,7 +165,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._activate_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -192,7 +192,7 @@ class SnapshotsApi:
|
||||
def activate_snapshot_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -211,8 +211,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -237,7 +237,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._activate_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -259,7 +259,7 @@ class SnapshotsApi:
|
||||
def _activate_snapshot_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -285,8 +285,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -328,7 +328,7 @@ class SnapshotsApi:
|
||||
def create_snapshot(
|
||||
self,
|
||||
create_snapshot: CreateSnapshot,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -347,8 +347,8 @@ class SnapshotsApi:
|
||||
|
||||
:param create_snapshot: (required)
|
||||
:type create_snapshot: CreateSnapshot
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -373,7 +373,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._create_snapshot_serialize(
|
||||
create_snapshot=create_snapshot,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -399,7 +399,7 @@ class SnapshotsApi:
|
||||
def create_snapshot_with_http_info(
|
||||
self,
|
||||
create_snapshot: CreateSnapshot,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -418,8 +418,8 @@ class SnapshotsApi:
|
||||
|
||||
:param create_snapshot: (required)
|
||||
:type create_snapshot: CreateSnapshot
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -444,7 +444,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._create_snapshot_serialize(
|
||||
create_snapshot=create_snapshot,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -470,7 +470,7 @@ class SnapshotsApi:
|
||||
def create_snapshot_without_preload_content(
|
||||
self,
|
||||
create_snapshot: CreateSnapshot,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -489,8 +489,8 @@ class SnapshotsApi:
|
||||
|
||||
:param create_snapshot: (required)
|
||||
:type create_snapshot: CreateSnapshot
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -515,7 +515,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._create_snapshot_serialize(
|
||||
create_snapshot=create_snapshot,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -536,7 +536,7 @@ class SnapshotsApi:
|
||||
def _create_snapshot_serialize(
|
||||
self,
|
||||
create_snapshot,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -560,8 +560,8 @@ class SnapshotsApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_snapshot is not None:
|
||||
@@ -617,7 +617,7 @@ class SnapshotsApi:
|
||||
@validate_call
|
||||
def get_all_snapshots(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
||||
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
||||
_request_timeout: Union[
|
||||
@@ -636,8 +636,8 @@ class SnapshotsApi:
|
||||
"""List all snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param limit: Number of items per page
|
||||
:type limit: float
|
||||
:param page: Page number
|
||||
@@ -665,7 +665,7 @@ class SnapshotsApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_all_snapshots_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
limit=limit,
|
||||
page=page,
|
||||
_request_auth=_request_auth,
|
||||
@@ -691,7 +691,7 @@ class SnapshotsApi:
|
||||
@validate_call
|
||||
def get_all_snapshots_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
||||
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
||||
_request_timeout: Union[
|
||||
@@ -710,8 +710,8 @@ class SnapshotsApi:
|
||||
"""List all snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param limit: Number of items per page
|
||||
:type limit: float
|
||||
:param page: Page number
|
||||
@@ -739,7 +739,7 @@ class SnapshotsApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_all_snapshots_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
limit=limit,
|
||||
page=page,
|
||||
_request_auth=_request_auth,
|
||||
@@ -765,7 +765,7 @@ class SnapshotsApi:
|
||||
@validate_call
|
||||
def get_all_snapshots_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
||||
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
||||
_request_timeout: Union[
|
||||
@@ -784,8 +784,8 @@ class SnapshotsApi:
|
||||
"""List all snapshots
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param limit: Number of items per page
|
||||
:type limit: float
|
||||
:param page: Page number
|
||||
@@ -813,7 +813,7 @@ class SnapshotsApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._get_all_snapshots_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
limit=limit,
|
||||
page=page,
|
||||
_request_auth=_request_auth,
|
||||
@@ -834,7 +834,7 @@ class SnapshotsApi:
|
||||
|
||||
def _get_all_snapshots_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
limit,
|
||||
page,
|
||||
_request_auth,
|
||||
@@ -868,8 +868,8 @@ class SnapshotsApi:
|
||||
_query_params.append(('page', page))
|
||||
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -911,7 +911,7 @@ class SnapshotsApi:
|
||||
def get_snapshot(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -930,8 +930,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID or name (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -956,7 +956,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -982,7 +982,7 @@ class SnapshotsApi:
|
||||
def get_snapshot_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1001,8 +1001,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID or name (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1027,7 +1027,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1053,7 +1053,7 @@ class SnapshotsApi:
|
||||
def get_snapshot_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1072,8 +1072,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID or name (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1098,7 +1098,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1119,7 +1119,7 @@ class SnapshotsApi:
|
||||
def _get_snapshot_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1145,8 +1145,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1188,7 +1188,7 @@ class SnapshotsApi:
|
||||
def get_snapshot_build_logs(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1208,8 +1208,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param follow: Whether to follow the logs stream
|
||||
:type follow: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1236,7 +1236,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_build_logs_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
follow=follow,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1262,7 +1262,7 @@ class SnapshotsApi:
|
||||
def get_snapshot_build_logs_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1282,8 +1282,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param follow: Whether to follow the logs stream
|
||||
:type follow: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1310,7 +1310,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_build_logs_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
follow=follow,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1336,7 +1336,7 @@ class SnapshotsApi:
|
||||
def get_snapshot_build_logs_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1356,8 +1356,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param follow: Whether to follow the logs stream
|
||||
:type follow: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1384,7 +1384,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._get_snapshot_build_logs_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
follow=follow,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1405,7 +1405,7 @@ class SnapshotsApi:
|
||||
def _get_snapshot_build_logs_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
follow,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
@@ -1436,8 +1436,8 @@ class SnapshotsApi:
|
||||
_query_params.append(('follow', follow))
|
||||
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1472,7 +1472,7 @@ class SnapshotsApi:
|
||||
def remove_snapshot(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1491,8 +1491,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1517,7 +1517,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._remove_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1542,7 +1542,7 @@ class SnapshotsApi:
|
||||
def remove_snapshot_with_http_info(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1561,8 +1561,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1587,7 +1587,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._remove_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1612,7 +1612,7 @@ class SnapshotsApi:
|
||||
def remove_snapshot_without_preload_content(
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1631,8 +1631,8 @@ class SnapshotsApi:
|
||||
|
||||
:param id: Snapshot ID (required)
|
||||
:type id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1657,7 +1657,7 @@ class SnapshotsApi:
|
||||
|
||||
_param = self._remove_snapshot_serialize(
|
||||
id=id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1677,7 +1677,7 @@ class SnapshotsApi:
|
||||
def _remove_snapshot_serialize(
|
||||
self,
|
||||
id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1703,8 +1703,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1740,7 +1740,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1761,8 +1761,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param set_snapshot_general_status_dto: (required)
|
||||
:type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1788,7 +1788,7 @@ class SnapshotsApi:
|
||||
_param = self._set_snapshot_general_status_serialize(
|
||||
id=id,
|
||||
set_snapshot_general_status_dto=set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1814,7 +1814,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1835,8 +1835,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param set_snapshot_general_status_dto: (required)
|
||||
:type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1862,7 +1862,7 @@ class SnapshotsApi:
|
||||
_param = self._set_snapshot_general_status_serialize(
|
||||
id=id,
|
||||
set_snapshot_general_status_dto=set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1888,7 +1888,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1909,8 +1909,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param set_snapshot_general_status_dto: (required)
|
||||
:type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1936,7 +1936,7 @@ class SnapshotsApi:
|
||||
_param = self._set_snapshot_general_status_serialize(
|
||||
id=id,
|
||||
set_snapshot_general_status_dto=set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1957,7 +1957,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id,
|
||||
set_snapshot_general_status_dto,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1983,8 +1983,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if set_snapshot_general_status_dto is not None:
|
||||
@@ -2042,7 +2042,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
toggle_state: ToggleState,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -2063,8 +2063,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param toggle_state: (required)
|
||||
:type toggle_state: ToggleState
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -2090,7 +2090,7 @@ class SnapshotsApi:
|
||||
_param = self._toggle_snapshot_state_serialize(
|
||||
id=id,
|
||||
toggle_state=toggle_state,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -2116,7 +2116,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
toggle_state: ToggleState,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -2137,8 +2137,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param toggle_state: (required)
|
||||
:type toggle_state: ToggleState
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -2164,7 +2164,7 @@ class SnapshotsApi:
|
||||
_param = self._toggle_snapshot_state_serialize(
|
||||
id=id,
|
||||
toggle_state=toggle_state,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -2190,7 +2190,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id: Annotated[StrictStr, Field(description="Snapshot ID")],
|
||||
toggle_state: ToggleState,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -2211,8 +2211,8 @@ class SnapshotsApi:
|
||||
:type id: str
|
||||
:param toggle_state: (required)
|
||||
:type toggle_state: ToggleState
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -2238,7 +2238,7 @@ class SnapshotsApi:
|
||||
_param = self._toggle_snapshot_state_serialize(
|
||||
id=id,
|
||||
toggle_state=toggle_state,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -2259,7 +2259,7 @@ class SnapshotsApi:
|
||||
self,
|
||||
id,
|
||||
toggle_state,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -2285,8 +2285,8 @@ class SnapshotsApi:
|
||||
_path_params['id'] = id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if toggle_state is not None:
|
||||
|
||||
+900
-900
File diff suppressed because it is too large
Load Diff
+75
-75
@@ -45,7 +45,7 @@ class VolumesApi:
|
||||
def create_volume(
|
||||
self,
|
||||
create_volume: CreateVolume,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -64,8 +64,8 @@ class VolumesApi:
|
||||
|
||||
:param create_volume: (required)
|
||||
:type create_volume: CreateVolume
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -90,7 +90,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._create_volume_serialize(
|
||||
create_volume=create_volume,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -115,7 +115,7 @@ class VolumesApi:
|
||||
def create_volume_with_http_info(
|
||||
self,
|
||||
create_volume: CreateVolume,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -134,8 +134,8 @@ class VolumesApi:
|
||||
|
||||
:param create_volume: (required)
|
||||
:type create_volume: CreateVolume
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -160,7 +160,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._create_volume_serialize(
|
||||
create_volume=create_volume,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -185,7 +185,7 @@ class VolumesApi:
|
||||
def create_volume_without_preload_content(
|
||||
self,
|
||||
create_volume: CreateVolume,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -204,8 +204,8 @@ class VolumesApi:
|
||||
|
||||
:param create_volume: (required)
|
||||
:type create_volume: CreateVolume
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -230,7 +230,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._create_volume_serialize(
|
||||
create_volume=create_volume,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -250,7 +250,7 @@ class VolumesApi:
|
||||
def _create_volume_serialize(
|
||||
self,
|
||||
create_volume,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -274,8 +274,8 @@ class VolumesApi:
|
||||
# process the path parameters
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
if create_volume is not None:
|
||||
@@ -332,7 +332,7 @@ class VolumesApi:
|
||||
def delete_volume(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -351,8 +351,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -377,7 +377,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._delete_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -402,7 +402,7 @@ class VolumesApi:
|
||||
def delete_volume_with_http_info(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -421,8 +421,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -447,7 +447,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._delete_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -472,7 +472,7 @@ class VolumesApi:
|
||||
def delete_volume_without_preload_content(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -491,8 +491,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -517,7 +517,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._delete_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -537,7 +537,7 @@ class VolumesApi:
|
||||
def _delete_volume_serialize(
|
||||
self,
|
||||
volume_id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -563,8 +563,8 @@ class VolumesApi:
|
||||
_path_params['volumeId'] = volume_id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -599,7 +599,7 @@ class VolumesApi:
|
||||
def get_volume(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -618,8 +618,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -644,7 +644,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -669,7 +669,7 @@ class VolumesApi:
|
||||
def get_volume_with_http_info(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -688,8 +688,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -714,7 +714,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -739,7 +739,7 @@ class VolumesApi:
|
||||
def get_volume_without_preload_content(
|
||||
self,
|
||||
volume_id: Annotated[StrictStr, Field(description="ID of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -758,8 +758,8 @@ class VolumesApi:
|
||||
|
||||
:param volume_id: ID of the volume (required)
|
||||
:type volume_id: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -784,7 +784,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_serialize(
|
||||
volume_id=volume_id,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -804,7 +804,7 @@ class VolumesApi:
|
||||
def _get_volume_serialize(
|
||||
self,
|
||||
volume_id,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -830,8 +830,8 @@ class VolumesApi:
|
||||
_path_params['volumeId'] = volume_id
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -873,7 +873,7 @@ class VolumesApi:
|
||||
def get_volume_by_name(
|
||||
self,
|
||||
name: Annotated[StrictStr, Field(description="Name of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -892,8 +892,8 @@ class VolumesApi:
|
||||
|
||||
:param name: Name of the volume (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -918,7 +918,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_by_name_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -943,7 +943,7 @@ class VolumesApi:
|
||||
def get_volume_by_name_with_http_info(
|
||||
self,
|
||||
name: Annotated[StrictStr, Field(description="Name of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -962,8 +962,8 @@ class VolumesApi:
|
||||
|
||||
:param name: Name of the volume (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -988,7 +988,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_by_name_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1013,7 +1013,7 @@ class VolumesApi:
|
||||
def get_volume_by_name_without_preload_content(
|
||||
self,
|
||||
name: Annotated[StrictStr, Field(description="Name of the volume")],
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
Annotated[StrictFloat, Field(gt=0)],
|
||||
@@ -1032,8 +1032,8 @@ class VolumesApi:
|
||||
|
||||
:param name: Name of the volume (required)
|
||||
:type name: str
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
number provided, it will be total request
|
||||
timeout. It can also be a pair (tuple) of
|
||||
@@ -1058,7 +1058,7 @@ class VolumesApi:
|
||||
|
||||
_param = self._get_volume_by_name_serialize(
|
||||
name=name,
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
_headers=_headers,
|
||||
@@ -1078,7 +1078,7 @@ class VolumesApi:
|
||||
def _get_volume_by_name_serialize(
|
||||
self,
|
||||
name,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
_headers,
|
||||
@@ -1104,8 +1104,8 @@ class VolumesApi:
|
||||
_path_params['name'] = name
|
||||
# process the query parameters
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
@@ -1146,7 +1146,7 @@ class VolumesApi:
|
||||
@validate_call
|
||||
def list_volumes(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted volumes in the response")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1164,8 +1164,8 @@ class VolumesApi:
|
||||
"""List all volumes
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param include_deleted: Include deleted volumes in the response
|
||||
:type include_deleted: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1191,7 +1191,7 @@ class VolumesApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_volumes_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
include_deleted=include_deleted,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1216,7 +1216,7 @@ class VolumesApi:
|
||||
@validate_call
|
||||
def list_volumes_with_http_info(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted volumes in the response")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1234,8 +1234,8 @@ class VolumesApi:
|
||||
"""List all volumes
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param include_deleted: Include deleted volumes in the response
|
||||
:type include_deleted: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1261,7 +1261,7 @@ class VolumesApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_volumes_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
include_deleted=include_deleted,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1286,7 +1286,7 @@ class VolumesApi:
|
||||
@validate_call
|
||||
def list_volumes_without_preload_content(
|
||||
self,
|
||||
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
x_hanzo_runtime_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
||||
include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted volumes in the response")] = None,
|
||||
_request_timeout: Union[
|
||||
None,
|
||||
@@ -1304,8 +1304,8 @@ class VolumesApi:
|
||||
"""List all volumes
|
||||
|
||||
|
||||
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_daytona_organization_id: str
|
||||
:param x_hanzo_runtime_organization_id: Use with JWT to specify the organization ID
|
||||
:type x_hanzo_runtime_organization_id: str
|
||||
:param include_deleted: Include deleted volumes in the response
|
||||
:type include_deleted: bool
|
||||
:param _request_timeout: timeout setting for this request. If one
|
||||
@@ -1331,7 +1331,7 @@ class VolumesApi:
|
||||
""" # noqa: E501
|
||||
|
||||
_param = self._list_volumes_serialize(
|
||||
x_daytona_organization_id=x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id=x_hanzo_runtime_organization_id,
|
||||
include_deleted=include_deleted,
|
||||
_request_auth=_request_auth,
|
||||
_content_type=_content_type,
|
||||
@@ -1351,7 +1351,7 @@ class VolumesApi:
|
||||
|
||||
def _list_volumes_serialize(
|
||||
self,
|
||||
x_daytona_organization_id,
|
||||
x_hanzo_runtime_organization_id,
|
||||
include_deleted,
|
||||
_request_auth,
|
||||
_content_type,
|
||||
@@ -1380,8 +1380,8 @@ class VolumesApi:
|
||||
_query_params.append(('includeDeleted', include_deleted))
|
||||
|
||||
# process the header parameters
|
||||
if x_daytona_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
||||
if x_hanzo_runtime_organization_id is not None:
|
||||
_header_params['X-Daytona-Organization-ID'] = x_hanzo_runtime_organization_id
|
||||
# process the form parameters
|
||||
# process the body parameter
|
||||
|
||||
|
||||
+210
-210
File diff suppressed because it is too large
Load Diff
Generated
+6
-6
@@ -1,13 +1,13 @@
|
||||
[tool.poetry]
|
||||
name = "daytona_api_client"
|
||||
name = "hanzo_runtime_api_client"
|
||||
version = "0.0.0-dev"
|
||||
description = "Daytona"
|
||||
authors = ["Daytona Platforms Inc. <support@daytona.com>"]
|
||||
description = "Hanzo Runtime API Client"
|
||||
authors = ["Hanzo Industries Inc. <support@hanzo.ai>"]
|
||||
license = "Apache-2.0"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/daytonaio/daytona"
|
||||
keywords = ["OpenAPI", "OpenAPI-Generator", "Daytona"]
|
||||
include = ["daytona_api_client/py.typed"]
|
||||
repository = "https://github.com/hanzoai/runner"
|
||||
keywords = ["OpenAPI", "OpenAPI-Generator", "Hanzo", "Runtime"]
|
||||
include = ["hanzo_runtime_api_client/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
|
||||
Generated
+1
-1
@@ -5,7 +5,7 @@
|
||||
"author": "OpenAPI-Generator Contributors",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/daytonaio/daytona.git"
|
||||
"url": "https://github.com/daytonaio/hanzo_runtime.git"
|
||||
},
|
||||
"keywords": [
|
||||
"axios",
|
||||
|
||||
@@ -80,8 +80,8 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
```dockerfile
|
||||
# Setup VNC
|
||||
RUN mkdir -p /home/daytona/.vnc && \
|
||||
chown -R daytona:daytona /home/daytona/.vnc
|
||||
RUN mkdir -p /home/hanzo/.vnc && \
|
||||
chown -R daytona:daytona /home/hanzo/.vnc
|
||||
|
||||
# NoVNC setup
|
||||
RUN ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html && \
|
||||
|
||||
Generated
+1
-1
@@ -5,7 +5,7 @@
|
||||
"author": "OpenAPI-Generator Contributors",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/daytonaio/daytona.git"
|
||||
"url": "https://github.com/daytonaio/hanzo_runtime.git"
|
||||
},
|
||||
"keywords": [
|
||||
"axios",
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright 2025 Daytona
|
||||
Copyright 2025 Hanzo Industries Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
+16
-16
@@ -1,13 +1,13 @@
|
||||
# Daytona SDK for Python
|
||||
# Hanzo Runtime SDK for Python
|
||||
|
||||
A Python SDK for interacting with the Daytona API, providing a simple interface for Daytona Sandbox management, Git operations, file system operations, and language server protocol support.
|
||||
A Python SDK for interacting with the Hanzo Runtime API, providing a simple interface for Hanzo Runtime Sandbox management, Git operations, file system operations, and language server protocol support.
|
||||
|
||||
## Installation
|
||||
|
||||
You can install the package using pip:
|
||||
|
||||
```bash
|
||||
pip install daytona
|
||||
pip install hanzo-runtime
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
@@ -15,20 +15,20 @@ pip install daytona
|
||||
Here's a simple example of using the SDK:
|
||||
|
||||
```python
|
||||
from daytona import Daytona
|
||||
from hanzo_runtime import HanzoRuntime
|
||||
|
||||
# Initialize using environment variables
|
||||
daytona = Daytona()
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
|
||||
# Create a sandbox
|
||||
sandbox = daytona.create()
|
||||
sandbox = hanzo_runtime.create()
|
||||
|
||||
# Run code in the sandbox
|
||||
response = sandbox.process.code_run('print("Hello World!")')
|
||||
print(response.result)
|
||||
|
||||
# Clean up when done
|
||||
daytona.delete(sandbox)
|
||||
hanzo_runtime.delete(sandbox)
|
||||
```
|
||||
|
||||
## Configuration
|
||||
@@ -36,27 +36,27 @@ daytona.delete(sandbox)
|
||||
The SDK can be configured using environment variables or by passing a configuration object:
|
||||
|
||||
```python
|
||||
from daytona import Daytona, DaytonaConfig
|
||||
from hanzo_runtime import HanzoRuntime, HanzoRuntimeConfig
|
||||
|
||||
# Initialize with configuration
|
||||
config = DaytonaConfig(
|
||||
config = HanzoRuntimeConfig(
|
||||
api_key="your-api-key",
|
||||
api_url="your-api-url",
|
||||
target="us"
|
||||
)
|
||||
daytona = Daytona(config)
|
||||
hanzo_runtime = HanzoRuntime(config)
|
||||
```
|
||||
|
||||
Or using environment variables:
|
||||
|
||||
- `DAYTONA_API_KEY`: Your Daytona API key
|
||||
- `DAYTONA_API_URL`: The Daytona API URL
|
||||
- `DAYTONA_TARGET`: Your target environment
|
||||
- `HANZO_RUNTIME_API_KEY`: Your Hanzo Runtime API key
|
||||
- `HANZO_RUNTIME_API_URL`: The Hanzo Runtime API URL
|
||||
- `HANZO_RUNTIME_TARGET`: Your target environment
|
||||
|
||||
You can also customize sandbox creation:
|
||||
|
||||
```python
|
||||
sandbox = daytona.create(CreateSandboxFromSnapshotParams(
|
||||
sandbox = hanzo_runtime.create(CreateSandboxFromSnapshotParams(
|
||||
language="python",
|
||||
env_vars={"PYTHON_ENV": "development"},
|
||||
auto_stop_interval=60, # Auto-stop after 1 hour of inactivity
|
||||
@@ -136,6 +136,6 @@ completions = lsp.completions('path/to/file.ts', {"line": 10, "character": 15})
|
||||
|
||||
## Contributing
|
||||
|
||||
Daytona is Open Source under the [Apache License 2.0](/libs/sdk-python/LICENSE), and is the [copyright of its contributors](/NOTICE). If you would like to contribute to the software, read the Developer Certificate of Origin Version 1.1 (https://developercertificate.org/). Afterwards, navigate to the [contributing guide](/CONTRIBUTING.md) to get started.
|
||||
Hanzo Runtime is Open Source under the [Apache License 2.0](/libs/sdk-python/LICENSE), and is the [copyright of its contributors](/NOTICE). If you would like to contribute to the software, read the Developer Certificate of Origin Version 1.1 (https://developercertificate.org/). Afterwards, navigate to the [contributing guide](/CONTRIBUTING.md) to get started.
|
||||
|
||||
Code in [\_sync](/libs/sdk-python/src/daytona/_sync/) directory shouldn't be edited directly. It should be generated from the corresponding async code in the [\_async](/libs/sdk-python/src/daytona/_async/) directory using the [sync_generator.py](/libs/sdk-python/scripts/sync_generator.py) script.
|
||||
Code in [\_sync](/libs/sdk-python/src/hanzo_runtime/_sync/) directory shouldn't be edited directly. It should be generated from the corresponding async code in the [\_async](/libs/sdk-python/src/hanzo_runtime/_async/) directory using the [sync_generator.py](/libs/sdk-python/scripts/sync_generator.py) script.
|
||||
|
||||
@@ -7,30 +7,30 @@
|
||||
"build": "python -m build",
|
||||
"docs": "bash -O extglob -c 'rm -rf $npm_package_config_docsDir/!(index.mdx)' && npm run docs:common && npm run docs:sync && npm run docs:async",
|
||||
"docs:common": "bash -O extglob -c 'rm -rf $npm_package_config_docsDir/common' && npm run docs:errors && npm run docs:charts && npm run docs:image",
|
||||
"docs:sync": "bash -O extglob -c 'rm -rf $npm_package_config_docsDir/sync' && npm run docs:daytona && npm run docs:sandbox && npm run docs:filesystem && npm run docs:git && npm run docs:process && npm run docs:lsp && npm run docs:volume && npm run docs:object_storage && npm run docs:snapshot && npm run docs:computer_use",
|
||||
"docs:async": "bash -O extglob -c 'rm -rf $npm_package_config_docsDir/async' && npm run docs:async-daytona && npm run docs:async-sandbox && npm run docs:async-filesystem && npm run docs:async-git && npm run docs:async-lsp && npm run docs:async-volume && npm run docs:async-object_storage && npm run docs:async-snapshot && npm run docs:async-computer_use",
|
||||
"docs:errors": "FIRST_SECTION='DaytonaError' OUTPUT_FILE=\"$npm_package_config_docsDir/common/errors.mdx\" pydoc-markdown -m daytona.common.errors pydoc-markdown.yml",
|
||||
"docs:charts": "FIRST_SECTION='Chart' OUTPUT_FILE=\"$npm_package_config_docsDir/common/charts.mdx\" pydoc-markdown -m daytona.common.charts pydoc-markdown.yml",
|
||||
"docs:image": "FIRST_SECTION='Image' OUTPUT_FILE=\"$npm_package_config_docsDir/common/image.mdx\" pydoc-markdown -m daytona.common.image pydoc-markdown.yml",
|
||||
"docs:daytona": "FIRST_SECTION='Daytona' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/daytona.mdx\" pydoc-markdown -m daytona._sync.daytona -m daytona.common.daytona pydoc-markdown.yml",
|
||||
"docs:sandbox": "FIRST_SECTION='Sandbox' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/sandbox.mdx\" pydoc-markdown -m daytona._sync.sandbox -m daytona.common.sandbox pydoc-markdown.yml",
|
||||
"docs:filesystem": "FIRST_SECTION='FileSystem' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/file-system.mdx\" pydoc-markdown -m daytona._sync.filesystem -m daytona.common.filesystem pydoc-markdown.yml",
|
||||
"docs:git": "FIRST_SECTION='Git' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/git.mdx\" pydoc-markdown -m daytona._sync.git -m daytona.common.git pydoc-markdown.yml",
|
||||
"docs:process": "FIRST_SECTION='Process' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/process.mdx\" pydoc-markdown -m daytona._sync.process -m daytona.common.process pydoc-markdown.yml",
|
||||
"docs:lsp": "FIRST_SECTION='LspServer' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/lsp-server.mdx\" pydoc-markdown -m daytona._sync.lsp_server -m daytona.common.lsp_server pydoc-markdown.yml",
|
||||
"docs:volume": "FIRST_SECTION='Volume' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/volume.mdx\" pydoc-markdown -m daytona._sync.volume -m daytona.common.volume pydoc-markdown.yml",
|
||||
"docs:object_storage": "FIRST_SECTION='ObjectStorage' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/object-storage.mdx\" pydoc-markdown -m daytona._sync.object_storage pydoc-markdown.yml",
|
||||
"docs:snapshot": "FIRST_SECTION='Snapshot' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/snapshot.mdx\" pydoc-markdown -m daytona._sync.snapshot -m daytona.common.snapshot pydoc-markdown.yml",
|
||||
"docs:computer_use": "FIRST_SECTION='ComputerUse' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/computer-use.mdx\" pydoc-markdown -m daytona._sync.computer_use -m daytona.common.computer_use pydoc-markdown.yml",
|
||||
"docs:async-daytona": "FIRST_SECTION='AsyncDaytona' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-daytona.mdx\" pydoc-markdown -m daytona._async.daytona -m daytona.common.daytona pydoc-markdown.yml",
|
||||
"docs:async-sandbox": "FIRST_SECTION='AsyncSandbox' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-sandbox.mdx\" pydoc-markdown -m daytona._async.sandbox -m daytona.common.sandbox pydoc-markdown.yml",
|
||||
"docs:async-filesystem": "FIRST_SECTION='AsyncFileSystem' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-file-system.mdx\" pydoc-markdown -m daytona._async.filesystem -m daytona.common.filesystem pydoc-markdown.yml",
|
||||
"docs:async-git": "FIRST_SECTION='AsyncGit' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-git.mdx\" pydoc-markdown -m daytona._async.git -m daytona.common.git pydoc-markdown.yml",
|
||||
"docs:async-process": "FIRST_SECTION='AsyncProcess' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-process.mdx\" pydoc-markdown -m daytona._async.process -m daytona.common.process pydoc-markdown.yml",
|
||||
"docs:async-lsp": "FIRST_SECTION='AsyncLspServer' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-lsp-server.mdx\" pydoc-markdown -m daytona._async.lsp_server -m daytona.common.lsp_server pydoc-markdown.yml",
|
||||
"docs:async-volume": "FIRST_SECTION='Volume' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-volume.mdx\" pydoc-markdown -m daytona._async.volume -m daytona.common.volume pydoc-markdown.yml",
|
||||
"docs:async-object_storage": "FIRST_SECTION='AsyncObjectStorage' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-object-storage.mdx\" pydoc-markdown -m daytona._async.object_storage pydoc-markdown.yml",
|
||||
"docs:async-snapshot": "FIRST_SECTION='Snapshot' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-snapshot.mdx\" pydoc-markdown -m daytona._async.snapshot -m daytona.common.snapshot pydoc-markdown.yml",
|
||||
"docs:async-computer_use": "FIRST_SECTION='AsyncComputerUse' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-computer-use.mdx\" pydoc-markdown -m daytona._async.computer_use -m daytona.common.computer_use pydoc-markdown.yml"
|
||||
"docs:sync": "bash -O extglob -c 'rm -rf $npm_package_config_docsDir/sync' && npm run docs:hanzo_runtime && npm run docs:sandbox && npm run docs:filesystem && npm run docs:git && npm run docs:process && npm run docs:lsp && npm run docs:volume && npm run docs:object_storage && npm run docs:snapshot && npm run docs:computer_use",
|
||||
"docs:async": "bash -O extglob -c 'rm -rf $npm_package_config_docsDir/async' && npm run docs:async-hanzo_runtime && npm run docs:async-sandbox && npm run docs:async-filesystem && npm run docs:async-git && npm run docs:async-lsp && npm run docs:async-volume && npm run docs:async-object_storage && npm run docs:async-snapshot && npm run docs:async-computer_use",
|
||||
"docs:errors": "FIRST_SECTION='HanzoRuntimeError' OUTPUT_FILE=\"$npm_package_config_docsDir/common/errors.mdx\" pydoc-markdown -m hanzo_runtime.common.errors pydoc-markdown.yml",
|
||||
"docs:charts": "FIRST_SECTION='Chart' OUTPUT_FILE=\"$npm_package_config_docsDir/common/charts.mdx\" pydoc-markdown -m hanzo_runtime.common.charts pydoc-markdown.yml",
|
||||
"docs:image": "FIRST_SECTION='Image' OUTPUT_FILE=\"$npm_package_config_docsDir/common/image.mdx\" pydoc-markdown -m hanzo_runtime.common.image pydoc-markdown.yml",
|
||||
"docs:hanzo_runtime": "FIRST_SECTION='HanzoRuntime' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/hanzo_runtime.mdx\" pydoc-markdown -m hanzo_runtime._sync.hanzo_runtime -m hanzo_runtime.common.hanzo_runtime pydoc-markdown.yml",
|
||||
"docs:sandbox": "FIRST_SECTION='Sandbox' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/sandbox.mdx\" pydoc-markdown -m hanzo_runtime._sync.sandbox -m hanzo_runtime.common.sandbox pydoc-markdown.yml",
|
||||
"docs:filesystem": "FIRST_SECTION='FileSystem' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/file-system.mdx\" pydoc-markdown -m hanzo_runtime._sync.filesystem -m hanzo_runtime.common.filesystem pydoc-markdown.yml",
|
||||
"docs:git": "FIRST_SECTION='Git' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/git.mdx\" pydoc-markdown -m hanzo_runtime._sync.git -m hanzo_runtime.common.git pydoc-markdown.yml",
|
||||
"docs:process": "FIRST_SECTION='Process' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/process.mdx\" pydoc-markdown -m hanzo_runtime._sync.process -m hanzo_runtime.common.process pydoc-markdown.yml",
|
||||
"docs:lsp": "FIRST_SECTION='LspServer' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/lsp-server.mdx\" pydoc-markdown -m hanzo_runtime._sync.lsp_server -m hanzo_runtime.common.lsp_server pydoc-markdown.yml",
|
||||
"docs:volume": "FIRST_SECTION='Volume' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/volume.mdx\" pydoc-markdown -m hanzo_runtime._sync.volume -m hanzo_runtime.common.volume pydoc-markdown.yml",
|
||||
"docs:object_storage": "FIRST_SECTION='ObjectStorage' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/object-storage.mdx\" pydoc-markdown -m hanzo_runtime._sync.object_storage pydoc-markdown.yml",
|
||||
"docs:snapshot": "FIRST_SECTION='Snapshot' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/snapshot.mdx\" pydoc-markdown -m hanzo_runtime._sync.snapshot -m hanzo_runtime.common.snapshot pydoc-markdown.yml",
|
||||
"docs:computer_use": "FIRST_SECTION='ComputerUse' OUTPUT_FILE=\"$npm_package_config_docsDir/sync/computer-use.mdx\" pydoc-markdown -m hanzo_runtime._sync.computer_use -m hanzo_runtime.common.computer_use pydoc-markdown.yml",
|
||||
"docs:async-hanzo_runtime": "FIRST_SECTION='AsyncHanzoRuntime' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-hanzo_runtime.mdx\" pydoc-markdown -m hanzo_runtime._async.hanzo_runtime -m hanzo_runtime.common.hanzo_runtime pydoc-markdown.yml",
|
||||
"docs:async-sandbox": "FIRST_SECTION='AsyncSandbox' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-sandbox.mdx\" pydoc-markdown -m hanzo_runtime._async.sandbox -m hanzo_runtime.common.sandbox pydoc-markdown.yml",
|
||||
"docs:async-filesystem": "FIRST_SECTION='AsyncFileSystem' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-file-system.mdx\" pydoc-markdown -m hanzo_runtime._async.filesystem -m hanzo_runtime.common.filesystem pydoc-markdown.yml",
|
||||
"docs:async-git": "FIRST_SECTION='AsyncGit' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-git.mdx\" pydoc-markdown -m hanzo_runtime._async.git -m hanzo_runtime.common.git pydoc-markdown.yml",
|
||||
"docs:async-process": "FIRST_SECTION='AsyncProcess' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-process.mdx\" pydoc-markdown -m hanzo_runtime._async.process -m hanzo_runtime.common.process pydoc-markdown.yml",
|
||||
"docs:async-lsp": "FIRST_SECTION='AsyncLspServer' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-lsp-server.mdx\" pydoc-markdown -m hanzo_runtime._async.lsp_server -m hanzo_runtime.common.lsp_server pydoc-markdown.yml",
|
||||
"docs:async-volume": "FIRST_SECTION='Volume' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-volume.mdx\" pydoc-markdown -m hanzo_runtime._async.volume -m hanzo_runtime.common.volume pydoc-markdown.yml",
|
||||
"docs:async-object_storage": "FIRST_SECTION='AsyncObjectStorage' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-object-storage.mdx\" pydoc-markdown -m hanzo_runtime._async.object_storage pydoc-markdown.yml",
|
||||
"docs:async-snapshot": "FIRST_SECTION='Snapshot' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-snapshot.mdx\" pydoc-markdown -m hanzo_runtime._async.snapshot -m hanzo_runtime.common.snapshot pydoc-markdown.yml",
|
||||
"docs:async-computer_use": "FIRST_SECTION='AsyncComputerUse' OUTPUT_FILE=\"$npm_package_config_docsDir/async/async-computer-use.mdx\" pydoc-markdown -m hanzo_runtime._async.computer_use -m hanzo_runtime.common.computer_use pydoc-markdown.yml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
"cwd": "{projectRoot}",
|
||||
"commands": [
|
||||
"poetry publish --username __token__ --password $PYPI_TOKEN --no-interaction",
|
||||
"sed -i 's/^name = \"[^\"]*\"/name = \"daytona_sdk\"/' pyproject.toml",
|
||||
"sed -i 's/^name = \"[^\"]*\"/name = \"hanzo_runtime_sdk\"/' pyproject.toml",
|
||||
"poetry publish --username __token__ --password $PYPI_TOKEN --no-interaction",
|
||||
"sed -i 's/^name = \"[^\"]*\"/name = \"daytona\"/' pyproject.toml"
|
||||
"sed -i 's/^name = \"[^\"]*\"/name = \"hanzo_runtime\"/' pyproject.toml"
|
||||
],
|
||||
"parallel": false
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2025 Daytona Platforms Inc.
|
||||
# Copyright 2025 Hanzo Industries Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -e
|
||||
@@ -9,8 +9,8 @@ echo "→ add-api-clients"
|
||||
if [ -n "$PYPI_PKG_VERSION" ]; then
|
||||
echo "Adding API clients at version $PYPI_PKG_VERSION"
|
||||
poetry add \
|
||||
"daytona_api_client@$PYPI_PKG_VERSION" \
|
||||
"daytona_api_client_async@$PYPI_PKG_VERSION"
|
||||
"hanzo_runtime_api_client@$PYPI_PKG_VERSION" \
|
||||
"hanzo_runtime_api_client_async@$PYPI_PKG_VERSION"
|
||||
else
|
||||
echo "PYPI_PKG_VERSION not set; skipping add-api-clients"
|
||||
fi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2025 Daytona Platforms Inc.
|
||||
# Copyright 2025 Hanzo Industries Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if [[ $# -ne 1 ]]; then
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2025 Daytona Platforms Inc.
|
||||
# Copyright 2025 Hanzo Industries Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Check if a file argument is provided
|
||||
|
||||
@@ -53,7 +53,7 @@ ADDITIONAL_REPLACEMENTS = {
|
||||
"async for": "for",
|
||||
"await ": "",
|
||||
# Module & class renames
|
||||
"daytona_api_client_async": "daytona_api_client",
|
||||
"hanzo_runtime_api_client_async": "hanzo_runtime_api_client",
|
||||
"AsyncVolumeService": "VolumeService",
|
||||
"AsyncFileSystem": "FileSystem",
|
||||
"AsyncGit": "Git",
|
||||
@@ -133,9 +133,9 @@ def find_license_end(lines):
|
||||
def transform_docstrings(text: str) -> str:
|
||||
"""
|
||||
Transform docstrings so that code-block examples are converted from async to sync:
|
||||
1. async with AsyncDaytona() as var: -> var = Daytona()
|
||||
2. try/finally blocks with only daytona.close() -> remove try/finally, unindent body
|
||||
3. try/finally blocks with other content -> remove only daytona.close() line
|
||||
1. async with AsyncHanzoRuntime() as var: -> var = HanzoRuntime()
|
||||
2. try/finally blocks with only runtime.close() -> remove try/finally, unindent body
|
||||
3. try/finally blocks with other content -> remove only runtime.close() line
|
||||
4. Properly handle indentation for all cases
|
||||
"""
|
||||
|
||||
@@ -261,7 +261,7 @@ def transform_docstrings(text: str) -> str:
|
||||
# Skip the finally block
|
||||
i = k
|
||||
continue
|
||||
# Keep try/finally but remove daytona.close() lines
|
||||
# Keep try/finally but remove runtime.close() lines
|
||||
result_lines.append(line) # Add 'try:' line
|
||||
i += 1
|
||||
|
||||
@@ -1126,7 +1126,7 @@ def post_process(path: Path):
|
||||
6) Convert await asyncio.sleep(...) calls to time.sleep(...)
|
||||
7) Strip Awaitable[...] wrappers
|
||||
8) Clean up typing imports
|
||||
9) Remove any leftover daytona.close() lines
|
||||
9) Remove any leftover runtime.close() lines
|
||||
10) Collapse >2 blank lines into exactly 2
|
||||
11) Manage asyncio and time imports (add if needed based on usage, remove if unused)
|
||||
12) Inject auto‐gen banner if missing
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2025 Hanzo Industries Inc
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
from daytona_api_client import SandboxState, SessionExecuteResponse
|
||||
from hanzo_runtime_api_client import SandboxState, SessionExecuteResponse
|
||||
|
||||
from ._async.computer_use import (
|
||||
AsyncComputerUse,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
from typing import List, Optional
|
||||
|
||||
from daytona_api_client_async import (
|
||||
from hanzo_runtime_api_client_async import (
|
||||
CompressedScreenshotResponse,
|
||||
ComputerUseStartResponse,
|
||||
ComputerUseStatusResponse,
|
||||
|
||||
@@ -9,7 +9,7 @@ from typing import Awaitable, Callable, List, Union, overload
|
||||
import aiofiles
|
||||
import aiofiles.os
|
||||
import httpx
|
||||
from daytona_api_client_async import FileInfo, Match, ReplaceRequest, ReplaceResult, SearchFilesResponse, ToolboxApi
|
||||
from hanzo_runtime_api_client_async import FileInfo, Match, ReplaceRequest, ReplaceResult, SearchFilesResponse, ToolboxApi
|
||||
|
||||
from .._utils.errors import intercept_errors
|
||||
from .._utils.path import prefix_relative_path
|
||||
@@ -149,7 +149,7 @@ class AsyncFileSystem:
|
||||
method, url, headers, *_ = self._toolbox_api._download_file_serialize(
|
||||
self._sandbox_id,
|
||||
path=prefix_relative_path(await self._get_root_dir(), remote_path),
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
_headers=None,
|
||||
@@ -405,8 +405,8 @@ class AsyncFileSystem:
|
||||
# Change file owner
|
||||
await sandbox.fs.set_file_permissions(
|
||||
path="workspace/data/file.txt",
|
||||
owner="daytona",
|
||||
group="daytona"
|
||||
owner="hanzo",
|
||||
group="hanzo"
|
||||
)
|
||||
```
|
||||
"""
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
from typing import Awaitable, Callable, List, Optional
|
||||
|
||||
from daytona_api_client_async import (
|
||||
from hanzo_runtime_api_client_async import (
|
||||
GitAddRequest,
|
||||
GitBranchRequest,
|
||||
GitCheckoutRequest,
|
||||
|
||||
@@ -7,7 +7,7 @@ import warnings
|
||||
from importlib.metadata import version
|
||||
from typing import Callable, Dict, List, Optional, Union, overload
|
||||
|
||||
from daytona_api_client_async import (
|
||||
from hanzo_runtime_api_client_async import (
|
||||
ApiClient,
|
||||
Configuration,
|
||||
CreateBuildInfo,
|
||||
@@ -17,8 +17,8 @@ from daytona_api_client_async import (
|
||||
SandboxState,
|
||||
SnapshotsApi,
|
||||
)
|
||||
from daytona_api_client_async import ToolboxApi as ToolboxApi
|
||||
from daytona_api_client_async import VolumesApi as VolumesApi
|
||||
from hanzo_runtime_api_client_async import ToolboxApi as ToolboxApi
|
||||
from hanzo_runtime_api_client_async import VolumesApi as VolumesApi
|
||||
from environs import Env
|
||||
|
||||
from .._utils.enum import to_enum
|
||||
@@ -412,7 +412,7 @@ class AsyncHanzoRuntime:
|
||||
_, url, *_ = self._sandbox_api._get_build_logs_serialize( # pylint: disable=protected-access
|
||||
response.id,
|
||||
follow=True,
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
_headers=None,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
from typing import List
|
||||
|
||||
from daytona_api_client_async import (
|
||||
from hanzo_runtime_api_client_async import (
|
||||
CompletionList,
|
||||
LspCompletionParams,
|
||||
LspDocumentRequest,
|
||||
|
||||
@@ -22,7 +22,7 @@ class AsyncObjectStorage:
|
||||
aws_access_key_id (str): The access key ID for the object storage service.
|
||||
aws_secret_access_key (str): The secret access key for the object storage service.
|
||||
aws_session_token (str): The session token for the object storage service. Used for temporary credentials.
|
||||
bucket_name (str): The name of the bucket to use. Defaults to "daytona-volume-builds".
|
||||
bucket_name (str): The name of the bucket to use. Defaults to "hanzo-runtime-volume-builds".
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
@@ -31,7 +31,7 @@ class AsyncObjectStorage:
|
||||
aws_access_key_id: str,
|
||||
aws_secret_access_key: str,
|
||||
aws_session_token: str,
|
||||
bucket_name: str = "daytona-volume-builds",
|
||||
bucket_name: str = "hanzo-runtime-volume-builds",
|
||||
):
|
||||
self.bucket_name = bucket_name
|
||||
self.store = S3Store(
|
||||
|
||||
@@ -5,7 +5,7 @@ import base64
|
||||
import json
|
||||
from typing import Awaitable, Callable, Dict, List, Optional
|
||||
|
||||
from daytona_api_client_async import (
|
||||
from hanzo_runtime_api_client_async import (
|
||||
Command,
|
||||
CreateSessionRequest,
|
||||
ExecuteRequest,
|
||||
@@ -384,7 +384,7 @@ class AsyncProcess:
|
||||
sandbox_id=self._sandbox_id,
|
||||
session_id=session_id,
|
||||
command_id=command_id,
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
follow=True,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
import asyncio
|
||||
from typing import Dict, Optional
|
||||
|
||||
from daytona_api_client_async import PortPreviewUrl
|
||||
from daytona_api_client_async import Sandbox as SandboxDto
|
||||
from daytona_api_client_async import SandboxApi, ToolboxApi
|
||||
from hanzo_runtime_api_client_async import PortPreviewUrl
|
||||
from hanzo_runtime_api_client_async import Sandbox as SandboxDto
|
||||
from hanzo_runtime_api_client_async import SandboxApi, ToolboxApi
|
||||
from pydantic import ConfigDict, PrivateAttr
|
||||
|
||||
from .._utils.errors import intercept_errors
|
||||
@@ -208,7 +208,7 @@ class AsyncSandbox(SandboxDto):
|
||||
|
||||
Example:
|
||||
```python
|
||||
sandbox = daytona.get_current_sandbox("my-sandbox")
|
||||
sandbox = runtime.get_current_sandbox("my-sandbox")
|
||||
sandbox.start(timeout=40) # Wait up to 40 seconds
|
||||
print("Sandbox started successfully")
|
||||
```
|
||||
@@ -234,7 +234,7 @@ class AsyncSandbox(SandboxDto):
|
||||
|
||||
Example:
|
||||
```python
|
||||
sandbox = daytona.get_current_sandbox("my-sandbox")
|
||||
sandbox = runtime.get_current_sandbox("my-sandbox")
|
||||
sandbox.stop()
|
||||
print("Sandbox stopped successfully")
|
||||
```
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
import asyncio
|
||||
from typing import Callable, List, Optional
|
||||
|
||||
from daytona_api_client_async import ObjectStorageApi, SnapshotsApi
|
||||
from daytona_api_client_async.models.create_build_info import CreateBuildInfo
|
||||
from daytona_api_client_async.models.create_snapshot import CreateSnapshot
|
||||
from daytona_api_client_async.models.snapshot_state import SnapshotState
|
||||
from hanzo_runtime_api_client_async import ObjectStorageApi, SnapshotsApi
|
||||
from hanzo_runtime_api_client_async.models.create_build_info import CreateBuildInfo
|
||||
from hanzo_runtime_api_client_async.models.create_snapshot import CreateSnapshot
|
||||
from hanzo_runtime_api_client_async.models.snapshot_state import SnapshotState
|
||||
|
||||
from .._utils.errors import intercept_errors
|
||||
from .._utils.stream import process_streaming_response
|
||||
@@ -36,8 +36,8 @@ class AsyncSnapshotService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
snapshots = await daytona.snapshot.list()
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
snapshots = await runtime.snapshot.list()
|
||||
for snapshot in snapshots:
|
||||
print(f"{snapshot.name} ({snapshot.image_name})")
|
||||
```
|
||||
@@ -56,9 +56,9 @@ class AsyncSnapshotService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
snapshot = await daytona.snapshot.get("test-snapshot")
|
||||
await daytona.snapshot.delete(snapshot)
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
snapshot = await runtime.snapshot.get("test-snapshot")
|
||||
await runtime.snapshot.delete(snapshot)
|
||||
print("Snapshot deleted")
|
||||
```
|
||||
"""
|
||||
@@ -76,8 +76,8 @@ class AsyncSnapshotService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
snapshot = await daytona.snapshot.get("test-snapshot-name")
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
snapshot = await runtime.snapshot.get("test-snapshot-name")
|
||||
print(f"{snapshot.name} ({snapshot.image_name})")
|
||||
```
|
||||
"""
|
||||
@@ -102,7 +102,7 @@ class AsyncSnapshotService:
|
||||
Example:
|
||||
```python
|
||||
image = Image.debianSlim('3.12').pipInstall('numpy')
|
||||
daytona.snapshot.create(
|
||||
runtime.snapshot.create(
|
||||
CreateSnapshotParams(name='my-snapshot', image=image),
|
||||
on_logs=lambda chunk: print(chunk, end=""),
|
||||
)
|
||||
@@ -142,7 +142,7 @@ class AsyncSnapshotService:
|
||||
_, url, *_ = self.__snapshots_api._get_snapshot_build_logs_serialize( # pylint: disable=protected-access
|
||||
id=created_snapshot.id,
|
||||
follow=True,
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
_headers=None,
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
import re
|
||||
from typing import List
|
||||
|
||||
from daytona_api_client_async import CreateVolume, VolumesApi
|
||||
from daytona_api_client_async.exceptions import NotFoundException
|
||||
from hanzo_runtime_api_client_async import CreateVolume, VolumesApi
|
||||
from hanzo_runtime_api_client_async.exceptions import NotFoundException
|
||||
|
||||
from ..common.volume import Volume
|
||||
|
||||
@@ -24,8 +24,8 @@ class AsyncVolumeService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
volumes = await daytona.volume.list()
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
volumes = await runtime.volume.list()
|
||||
for volume in volumes:
|
||||
print(f"{volume.name} ({volume.id})")
|
||||
```
|
||||
@@ -44,8 +44,8 @@ class AsyncVolumeService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
volume = await daytona.volume.get("test-volume-name", create=True)
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
volume = await runtime.volume.get("test-volume-name", create=True)
|
||||
print(f"{volume.name} ({volume.id})")
|
||||
```
|
||||
"""
|
||||
@@ -67,8 +67,8 @@ class AsyncVolumeService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
volume = await daytona.volume.create("test-volume")
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
volume = await runtime.volume.create("test-volume")
|
||||
print(f"{volume.name} ({volume.id}); state: {volume.state}")
|
||||
```
|
||||
"""
|
||||
@@ -82,9 +82,9 @@ class AsyncVolumeService:
|
||||
|
||||
Example:
|
||||
```python
|
||||
async with AsyncHanzoRuntime() as daytona:
|
||||
volume = await daytona.volume.get("test-volume")
|
||||
await daytona.volume.delete(volume)
|
||||
async with AsyncHanzoRuntime() as runtime:
|
||||
volume = await runtime.volume.get("test-volume")
|
||||
await runtime.volume.delete(volume)
|
||||
print("Volume deleted")
|
||||
```
|
||||
"""
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
from typing import List, Optional
|
||||
|
||||
from daytona_api_client import (
|
||||
from hanzo_runtime_api_client import (
|
||||
CompressedScreenshotResponse,
|
||||
ComputerUseStartResponse,
|
||||
ComputerUseStatusResponse,
|
||||
|
||||
@@ -11,7 +11,7 @@ from contextlib import ExitStack
|
||||
from typing import Callable, List, Union, overload
|
||||
|
||||
import httpx
|
||||
from daytona_api_client import FileInfo, Match, ReplaceRequest, ReplaceResult, SearchFilesResponse, ToolboxApi
|
||||
from hanzo_runtime_api_client import FileInfo, Match, ReplaceRequest, ReplaceResult, SearchFilesResponse, ToolboxApi
|
||||
|
||||
from .._utils.errors import intercept_errors
|
||||
from .._utils.path import prefix_relative_path
|
||||
@@ -149,7 +149,7 @@ class FileSystem:
|
||||
method, url, headers, *_ = self._toolbox_api._download_file_serialize(
|
||||
self._sandbox_id,
|
||||
path=prefix_relative_path(self._get_root_dir(), remote_path),
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
_headers=None,
|
||||
@@ -401,8 +401,8 @@ class FileSystem:
|
||||
# Change file owner
|
||||
sandbox.fs.set_file_permissions(
|
||||
path="workspace/data/file.txt",
|
||||
owner="daytona",
|
||||
group="daytona"
|
||||
owner="hanzo",
|
||||
group="hanzo"
|
||||
)
|
||||
```
|
||||
"""
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
from typing import Callable, List, Optional
|
||||
|
||||
from daytona_api_client import (
|
||||
from hanzo_runtime_api_client import (
|
||||
GitAddRequest,
|
||||
GitBranchRequest,
|
||||
GitCheckoutRequest,
|
||||
|
||||
@@ -12,7 +12,7 @@ import warnings
|
||||
from importlib.metadata import version
|
||||
from typing import Callable, Dict, List, Optional, Union, overload
|
||||
|
||||
from daytona_api_client import (
|
||||
from hanzo_runtime_api_client import (
|
||||
ApiClient,
|
||||
Configuration,
|
||||
CreateBuildInfo,
|
||||
@@ -22,8 +22,8 @@ from daytona_api_client import (
|
||||
SandboxState,
|
||||
SnapshotsApi,
|
||||
)
|
||||
from daytona_api_client import ToolboxApi as ToolboxApi
|
||||
from daytona_api_client import VolumesApi as VolumesApi
|
||||
from hanzo_runtime_api_client import ToolboxApi as ToolboxApi
|
||||
from hanzo_runtime_api_client import VolumesApi as VolumesApi
|
||||
from environs import Env
|
||||
|
||||
from .._utils.enum import to_enum
|
||||
@@ -374,7 +374,7 @@ class HanzoRuntime:
|
||||
_, url, *_ = self._sandbox_api._get_build_logs_serialize( # pylint: disable=protected-access
|
||||
response.id,
|
||||
follow=True,
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
_headers=None,
|
||||
@@ -466,7 +466,7 @@ class HanzoRuntime:
|
||||
```python
|
||||
sandbox = hanzo_runtime.create()
|
||||
# ... use sandbox ...
|
||||
daytona.delete(sandbox) # Clean up when done
|
||||
runtime.delete(sandbox) # Clean up when done
|
||||
```
|
||||
"""
|
||||
return sandbox.delete(timeout)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
from typing import List
|
||||
|
||||
from daytona_api_client import (
|
||||
from hanzo_runtime_api_client import (
|
||||
CompletionList,
|
||||
LspCompletionParams,
|
||||
LspDocumentRequest,
|
||||
|
||||
@@ -23,7 +23,7 @@ class ObjectStorage:
|
||||
aws_access_key_id (str): The access key ID for the object storage service.
|
||||
aws_secret_access_key (str): The secret access key for the object storage service.
|
||||
aws_session_token (str): The session token for the object storage service. Used for temporary credentials.
|
||||
bucket_name (str): The name of the bucket to use. Defaults to "daytona-volume-builds".
|
||||
bucket_name (str): The name of the bucket to use. Defaults to "hanzo-runtime-volume-builds".
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
@@ -32,7 +32,7 @@ class ObjectStorage:
|
||||
aws_access_key_id: str,
|
||||
aws_secret_access_key: str,
|
||||
aws_session_token: str,
|
||||
bucket_name: str = "daytona-volume-builds",
|
||||
bucket_name: str = "hanzo-runtime-volume-builds",
|
||||
):
|
||||
self.bucket_name = bucket_name
|
||||
self.store = S3Store(
|
||||
|
||||
@@ -9,7 +9,7 @@ import base64
|
||||
import json
|
||||
from typing import Callable, Dict, List, Optional
|
||||
|
||||
from daytona_api_client import (
|
||||
from hanzo_runtime_api_client import (
|
||||
Command,
|
||||
CreateSessionRequest,
|
||||
ExecuteRequest,
|
||||
@@ -385,7 +385,7 @@ class Process:
|
||||
sandbox_id=self._sandbox_id,
|
||||
session_id=session_id,
|
||||
command_id=command_id,
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
follow=True,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
import time
|
||||
from typing import Dict, Optional
|
||||
|
||||
from daytona_api_client import PortPreviewUrl
|
||||
from daytona_api_client import Sandbox as SandboxDto
|
||||
from daytona_api_client import SandboxApi, ToolboxApi
|
||||
from hanzo_runtime_api_client import PortPreviewUrl
|
||||
from hanzo_runtime_api_client import Sandbox as SandboxDto
|
||||
from hanzo_runtime_api_client import SandboxApi, ToolboxApi
|
||||
from pydantic import ConfigDict, PrivateAttr
|
||||
|
||||
from .._utils.errors import intercept_errors
|
||||
@@ -212,7 +212,7 @@ class Sandbox(SandboxDto):
|
||||
|
||||
Example:
|
||||
```python
|
||||
sandbox = daytona.get_current_sandbox("my-sandbox")
|
||||
sandbox = runtime.get_current_sandbox("my-sandbox")
|
||||
sandbox.start(timeout=40) # Wait up to 40 seconds
|
||||
print("Sandbox started successfully")
|
||||
```
|
||||
@@ -238,7 +238,7 @@ class Sandbox(SandboxDto):
|
||||
|
||||
Example:
|
||||
```python
|
||||
sandbox = daytona.get_current_sandbox("my-sandbox")
|
||||
sandbox = runtime.get_current_sandbox("my-sandbox")
|
||||
sandbox.stop()
|
||||
print("Sandbox stopped successfully")
|
||||
```
|
||||
|
||||
@@ -10,10 +10,10 @@ import threading
|
||||
import time
|
||||
from typing import Callable, List, Optional
|
||||
|
||||
from daytona_api_client import ObjectStorageApi, SnapshotsApi
|
||||
from daytona_api_client.models.create_build_info import CreateBuildInfo
|
||||
from daytona_api_client.models.create_snapshot import CreateSnapshot
|
||||
from daytona_api_client.models.snapshot_state import SnapshotState
|
||||
from hanzo_runtime_api_client import ObjectStorageApi, SnapshotsApi
|
||||
from hanzo_runtime_api_client.models.create_build_info import CreateBuildInfo
|
||||
from hanzo_runtime_api_client.models.create_snapshot import CreateSnapshot
|
||||
from hanzo_runtime_api_client.models.snapshot_state import SnapshotState
|
||||
|
||||
from .._utils.errors import intercept_errors
|
||||
from .._utils.stream import process_streaming_response
|
||||
@@ -43,7 +43,7 @@ class SnapshotService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
snapshots = daytona.snapshot.list()
|
||||
snapshots = runtime.snapshot.list()
|
||||
for snapshot in snapshots:
|
||||
print(f"{snapshot.name} ({snapshot.image_name})")
|
||||
```
|
||||
@@ -63,8 +63,8 @@ class SnapshotService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
snapshot = daytona.snapshot.get("test-snapshot")
|
||||
daytona.snapshot.delete(snapshot)
|
||||
snapshot = runtime.snapshot.get("test-snapshot")
|
||||
runtime.snapshot.delete(snapshot)
|
||||
print("Snapshot deleted")
|
||||
```
|
||||
"""
|
||||
@@ -83,7 +83,7 @@ class SnapshotService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
snapshot = daytona.snapshot.get("test-snapshot-name")
|
||||
snapshot = runtime.snapshot.get("test-snapshot-name")
|
||||
print(f"{snapshot.name} ({snapshot.image_name})")
|
||||
```
|
||||
"""
|
||||
@@ -108,7 +108,7 @@ class SnapshotService:
|
||||
Example:
|
||||
```python
|
||||
image = Image.debianSlim('3.12').pipInstall('numpy')
|
||||
daytona.snapshot.create(
|
||||
runtime.snapshot.create(
|
||||
CreateSnapshotParams(name='my-snapshot', image=image),
|
||||
on_logs=lambda chunk: print(chunk, end=""),
|
||||
)
|
||||
@@ -148,7 +148,7 @@ class SnapshotService:
|
||||
_, url, *_ = self.__snapshots_api._get_snapshot_build_logs_serialize( # pylint: disable=protected-access
|
||||
id=created_snapshot.id,
|
||||
follow=True,
|
||||
x_daytona_organization_id=None,
|
||||
x_hanzo_runtime_organization_id=None,
|
||||
_request_auth=None,
|
||||
_content_type=None,
|
||||
_headers=None,
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
import re
|
||||
from typing import List
|
||||
|
||||
from daytona_api_client import CreateVolume, VolumesApi
|
||||
from daytona_api_client.exceptions import NotFoundException
|
||||
from hanzo_runtime_api_client import CreateVolume, VolumesApi
|
||||
from hanzo_runtime_api_client.exceptions import NotFoundException
|
||||
|
||||
from ..common.volume import Volume
|
||||
|
||||
@@ -29,7 +29,7 @@ class VolumeService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
volumes = daytona.volume.list()
|
||||
volumes = runtime.volume.list()
|
||||
for volume in volumes:
|
||||
print(f"{volume.name} ({volume.id})")
|
||||
```
|
||||
@@ -49,7 +49,7 @@ class VolumeService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
volume = daytona.volume.get("test-volume-name", create=True)
|
||||
volume = runtime.volume.get("test-volume-name", create=True)
|
||||
print(f"{volume.name} ({volume.id})")
|
||||
```
|
||||
"""
|
||||
@@ -72,7 +72,7 @@ class VolumeService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
volume = daytona.volume.create("test-volume")
|
||||
volume = runtime.volume.create("test-volume")
|
||||
print(f"{volume.name} ({volume.id}); state: {volume.state}")
|
||||
```
|
||||
"""
|
||||
@@ -87,8 +87,8 @@ class VolumeService:
|
||||
Example:
|
||||
```python
|
||||
hanzo_runtime = HanzoRuntime()
|
||||
volume = daytona.volume.get("test-volume")
|
||||
daytona.volume.delete(volume)
|
||||
volume = runtime.volume.get("test-volume")
|
||||
runtime.volume.delete(volume)
|
||||
print("Volume deleted")
|
||||
```
|
||||
"""
|
||||
|
||||
@@ -6,8 +6,8 @@ import inspect
|
||||
import json
|
||||
from typing import Callable, NoReturn, ParamSpec, TypeVar, Union
|
||||
|
||||
from daytona_api_client.exceptions import OpenApiException
|
||||
from daytona_api_client_async.exceptions import OpenApiException as OpenApiExceptionAsync
|
||||
from hanzo_runtime_api_client.exceptions import OpenApiException
|
||||
from hanzo_runtime_api_client_async.exceptions import OpenApiException as OpenApiExceptionAsync
|
||||
|
||||
from ..common.errors import HanzoRuntimeError
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ class Image(BaseModel):
|
||||
|
||||
Example:
|
||||
```python
|
||||
image = Image.debian_slim("3.12").add_local_file("package.json", "/home/daytona/package.json")
|
||||
image = Image.debian_slim("3.12").add_local_file("package.json", "/home/hanzo/package.json")
|
||||
```
|
||||
"""
|
||||
if remote_path.endswith("/"):
|
||||
@@ -216,7 +216,7 @@ class Image(BaseModel):
|
||||
|
||||
Example:
|
||||
```python
|
||||
image = Image.debian_slim("3.12").add_local_dir("src", "/home/daytona/src")
|
||||
image = Image.debian_slim("3.12").add_local_dir("src", "/home/hanzo/src")
|
||||
```
|
||||
"""
|
||||
local_path = os.path.expanduser(local_path)
|
||||
@@ -266,7 +266,7 @@ class Image(BaseModel):
|
||||
|
||||
Example:
|
||||
```python
|
||||
image = Image.debian_slim("3.12").env({"PROJECT_ROOT": "/home/daytona"})
|
||||
image = Image.debian_slim("3.12").env({"PROJECT_ROOT": "/home/hanzo"})
|
||||
```
|
||||
"""
|
||||
non_str_keys = [key for key, val in env_vars.items() if not isinstance(val, str)]
|
||||
@@ -289,7 +289,7 @@ class Image(BaseModel):
|
||||
|
||||
Example:
|
||||
```python
|
||||
image = Image.debian_slim("3.12").workdir("/home/daytona")
|
||||
image = Image.debian_slim("3.12").workdir("/home/hanzo")
|
||||
```
|
||||
"""
|
||||
self._dockerfile += f"WORKDIR {shlex.quote(str(path))}\n"
|
||||
|
||||
@@ -5,9 +5,9 @@ import warnings
|
||||
from dataclasses import dataclass
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
from daytona_api_client import ExecuteResponse as ClientExecuteResponse
|
||||
from daytona_api_client import SessionExecuteRequest as ApiSessionExecuteRequest
|
||||
from daytona_api_client_async import SessionExecuteRequest as AsyncApiSessionExecuteRequest
|
||||
from hanzo_runtime_api_client import ExecuteResponse as ClientExecuteResponse
|
||||
from hanzo_runtime_api_client import SessionExecuteRequest as ApiSessionExecuteRequest
|
||||
from hanzo_runtime_api_client_async import SessionExecuteRequest as AsyncApiSessionExecuteRequest
|
||||
from pydantic import ConfigDict, model_validator
|
||||
|
||||
from .charts import Chart
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
from typing import List, Optional, Union
|
||||
|
||||
from daytona_api_client import BuildInfo, SnapshotDto
|
||||
from daytona_api_client_async import BuildInfo as AsyncBuildInfo
|
||||
from hanzo_runtime_api_client import BuildInfo, SnapshotDto
|
||||
from hanzo_runtime_api_client_async import BuildInfo as AsyncBuildInfo
|
||||
from pydantic import BaseModel
|
||||
|
||||
from .hanzo_runtime import Resources
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 2025 Hanzo Industries Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
from daytona_api_client import SandboxVolume as ApiVolumeMount
|
||||
from daytona_api_client import VolumeDto
|
||||
from daytona_api_client_async import SandboxVolume as AsyncApiVolumeMount
|
||||
from hanzo_runtime_api_client import SandboxVolume as ApiVolumeMount
|
||||
from hanzo_runtime_api_client import VolumeDto
|
||||
from hanzo_runtime_api_client_async import SandboxVolume as AsyncApiVolumeMount
|
||||
|
||||
|
||||
class VolumeMount(ApiVolumeMount, AsyncApiVolumeMount):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Daytona SDK for TypeScript
|
||||
# Hanzo Runtime SDK for TypeScript
|
||||
|
||||
A TypeScript SDK for interacting with the Daytona API, providing a simple interface for Daytona Sandbox management, Git operations, file system operations, and language server protocol support.
|
||||
A TypeScript SDK for interacting with the Hanzo Runtime API, providing a simple interface for Hanzo Runtime Sandbox management, Git operations, file system operations, and language server protocol support.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -24,17 +24,17 @@ Here's a simple example of using the SDK:
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
|
||||
// Initialize using environment variables
|
||||
const daytona = new Daytona()
|
||||
const hanzo_runtime = new HanzoRuntime()
|
||||
|
||||
// Create a sandbox
|
||||
const sandbox = await daytona.create()
|
||||
const sandbox = await hanzo_runtime.create()
|
||||
|
||||
// Run code in the sandbox
|
||||
const response = await sandbox.process.codeRun('console.log("Hello World!")')
|
||||
console.log(response.result)
|
||||
|
||||
// Clean up when done
|
||||
await daytona.delete(sandbox)
|
||||
await hanzo_runtime.delete(sandbox)
|
||||
```
|
||||
|
||||
## Configuration
|
||||
@@ -45,7 +45,7 @@ The SDK can be configured using environment variables or by passing a configurat
|
||||
import { Daytona } from '@daytonaio/sdk'
|
||||
|
||||
// Initialize with configuration
|
||||
const daytona = new Daytona({
|
||||
const hanzo_runtime = new HanzoRuntime({
|
||||
apiKey: 'your-api-key',
|
||||
apiUrl: 'your-api-url',
|
||||
target: 'us',
|
||||
@@ -54,14 +54,14 @@ const daytona = new Daytona({
|
||||
|
||||
Or using environment variables:
|
||||
|
||||
- `DAYTONA_API_KEY`: Your Daytona API key
|
||||
- `DAYTONA_API_URL`: The Daytona API URL
|
||||
- `DAYTONA_TARGET`: Your target environment
|
||||
- `HANZO_RUNTIME_API_KEY`: Your Hanzo Runtime API key
|
||||
- `HANZO_RUNTIME_API_URL`: The Hanzo Runtime API URL
|
||||
- `HANZO_RUNTIME_TARGET`: Your target environment
|
||||
|
||||
You can also customize sandbox creation:
|
||||
|
||||
```typescript
|
||||
const sandbox = await daytona.create({
|
||||
const sandbox = await hanzo_runtime.create({
|
||||
language: 'typescript',
|
||||
envVars: { NODE_ENV: 'development' },
|
||||
autoStopInterval: 60, // Auto-stop after 1 hour of inactivity,
|
||||
@@ -144,4 +144,4 @@ const completions = await lsp.completions('path/to/file.ts', {
|
||||
|
||||
## Contributing
|
||||
|
||||
Daytona is Open Source under the [Apache License 2.0](/libs/sdk-typescript//LICENSE), and is the [copyright of its contributors](/NOTICE). If you would like to contribute to the software, read the Developer Certificate of Origin Version 1.1 (https://developercertificate.org/). Afterwards, navigate to the [contributing guide](/CONTRIBUTING.md) to get started.
|
||||
Hanzo Runtime is Open Source under the [Apache License 2.0](/libs/sdk-typescript//LICENSE), and is the [copyright of its contributors](/NOTICE). If you would like to contribute to the software, read the Developer Certificate of Origin Version 1.1 (https://developercertificate.org/). Afterwards, navigate to the [contributing guide](/CONTRIBUTING.md) to get started.
|
||||
|
||||
Binary file not shown.
@@ -28,7 +28,7 @@ import {
|
||||
ProcessRestartResponse,
|
||||
ProcessLogsResponse,
|
||||
ProcessErrorsResponse,
|
||||
} from '@daytonaio/api-client'
|
||||
} from '@hanzo/runtime-api-client'
|
||||
|
||||
/**
|
||||
* Interface for region coordinates used in screenshot operations
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { FileInfo, Match, ReplaceRequest, ReplaceResult, SearchFilesResponse, ToolboxApi } from '@daytonaio/api-client'
|
||||
import { FileInfo, Match, ReplaceRequest, ReplaceResult, SearchFilesResponse, ToolboxApi } from '@hanzo/runtime-api-client'
|
||||
import { prefixRelativePath } from './utils/Path'
|
||||
import * as fs from 'fs'
|
||||
import { Readable } from 'stream'
|
||||
@@ -20,7 +20,7 @@ import FormData from 'form-data'
|
||||
* @example
|
||||
* const permissions: FilePermissionsParams = {
|
||||
* mode: '644',
|
||||
* owner: 'daytona',
|
||||
* owner: 'hanzo',
|
||||
* group: 'users'
|
||||
* };
|
||||
*/
|
||||
@@ -313,7 +313,7 @@ export class FileSystem {
|
||||
* @example
|
||||
* // Set file permissions and ownership
|
||||
* await fs.setFilePermissions('app/script.sh', {
|
||||
* owner: 'daytona',
|
||||
* owner: 'hanzo',
|
||||
* group: 'users',
|
||||
* mode: '755' // Execute permission for shell script
|
||||
* });
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { ToolboxApi, ListBranchResponse, GitStatus } from '@daytonaio/api-client'
|
||||
import { ToolboxApi, ListBranchResponse, GitStatus } from '@hanzo/runtime-api-client'
|
||||
import { prefixRelativePath } from './utils/Path'
|
||||
|
||||
/**
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user