unikraft-cloud-plugin-sandbox-api 1.2.1.dev11__tar.gz → 1.3.0.dev12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (11) hide show
  1. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/PKG-INFO +1 -1
  2. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/pyproject.toml +1 -1
  3. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/_meta.py +3 -3
  4. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/commands_gen.py +3 -0
  5. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/models_gen.py +19 -1
  6. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/LICENSE.md +0 -0
  7. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/README.md +0 -0
  8. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/__init__.py +0 -0
  9. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/fs_gen.py +0 -0
  10. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/py.typed +0 -0
  11. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev11 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/transport.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unikraft-cloud-plugin-sandbox-api
3
- Version: 1.2.1.dev11
3
+ Version: 1.3.0.dev12
4
4
  Summary: Generated Python client for the Unikraft Cloud `sandbox` plugin API
5
5
  Keywords: unikraft,unikraft-cloud,plugin,sandbox,sdk
6
6
  Author: Unikraft GmbH
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "unikraft-cloud-plugin-sandbox-api"
3
- version = "1.2.1.dev11"
3
+ version = "1.3.0.dev12"
4
4
  description = "Generated Python client for the Unikraft Cloud `sandbox` plugin API"
5
5
  readme = "README.md"
6
6
  license = "BSD-3-Clause"
@@ -5,16 +5,16 @@
5
5
  # can tell a rebuild of the same sources from a change under the same version.
6
6
 
7
7
  #: The version this package was published as.
8
- VERSION = "1.2.1.dev11"
8
+ VERSION = "1.3.0.dev12"
9
9
 
10
10
  #: The oldest unikraft-cloud SDK whose ApiClient is a transport for this package.
11
11
  SDK_MIN = "0.2.0"
12
12
 
13
13
  #: SHA-256 of the OpenAPI specification.
14
- SPEC_HASH = "43d763fdcea2d5de297190332794b5a19e794a023af1bce1af3e59df5e2d9d19"
14
+ SPEC_HASH = "a61067deb50829260f8682033d5c58a768cc739c5e7599447894c5d133225842"
15
15
 
16
16
  #: SHA-256 over the generator's templates and static files.
17
17
  TEMPLATES_HASH = "5efe373fc719c482bc42cc6ff89c27852a6bfef78c9e6d841a1f21eab2f97859"
18
18
 
19
19
  #: SHA-256 over the generation configuration: the SDK floor and the generator.
20
- CONFIG_HASH = "5e20af2ba5fda2978d74d18f25e4d200bc8a8e16c55681c9a5fab77e983437b2"
20
+ CONFIG_HASH = "789c897d515590dfaf00ead74b881a8d354fde9c88fa094fcddac84a5186d022"
@@ -156,6 +156,8 @@ class CommandsApi:
156
156
  async def wait_for_command(
157
157
  self,
158
158
  uuid: str,
159
+ *,
160
+ body: models.CommandWaitRequest | None = None,
159
161
  **options: Unpack[CallOptions],
160
162
  ) -> models.EmptyResponse:
161
163
  """Wait for Command"""
@@ -163,6 +165,7 @@ class CommandsApi:
163
165
  models.EmptyResponse,
164
166
  method="POST",
165
167
  path=f"/commands/{quote(uuid, safe='')}/wait",
168
+ body=body,
166
169
  **options,
167
170
  )
168
171
 
@@ -154,6 +154,23 @@ class CommandStdinRequest(BaseModel):
154
154
  """Whether to close standard input after injecting `data`."""
155
155
 
156
156
 
157
+ class CommandWaitRequest(BaseModel):
158
+ """The request to wait for a command to finish."""
159
+
160
+ # Fields the specification does not describe are kept rather than dropped,
161
+ # so a newly added one survives a round trip and does not break this client.
162
+ # A field the specification requires is required here too, so a request
163
+ # missing one fails at construction rather than at the server.
164
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
165
+
166
+ timeout_s: float | None = None
167
+ """
168
+ The longest to wait, in seconds; decimals are accepted, `0` only asks.
169
+ At most 55, and 55 when absent: a proxy in front cuts a silent request
170
+ at about a minute, so a longer wait is a loop on `408`.
171
+ """
172
+
173
+
157
174
  class CommandWaitTimeoutRequest(BaseModel):
158
175
  """The request to wait for a command to finish, up to a timeout."""
159
176
 
@@ -164,7 +181,7 @@ class CommandWaitTimeoutRequest(BaseModel):
164
181
  model_config = ConfigDict(extra="allow", populate_by_name=True)
165
182
 
166
183
  timeout_s: float
167
- """The maximum time to wait, in seconds. Decimals are accepted."""
184
+ """The maximum time to wait, in seconds, at most 55. Decimals are accepted."""
168
185
 
169
186
 
170
187
  class EmptyResponse(BaseModel):
@@ -552,6 +569,7 @@ for _model in (
552
569
  CommandResizeRequest,
553
570
  CommandSignalRequest,
554
571
  CommandStdinRequest,
572
+ CommandWaitRequest,
555
573
  CommandWaitTimeoutRequest,
556
574
  EmptyResponse,
557
575
  GetCommandData,