unikraft-cloud-plugin-sandbox-api 1.2.1.dev10__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.dev10 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/PKG-INFO +1 -1
  2. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev10 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/pyproject.toml +1 -1
  3. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev10 → 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.dev10 → 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.dev10 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/src/unikraft_cloud_plugin_sandbox_api/models_gen.py +23 -2
  6. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev10 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/LICENSE.md +0 -0
  7. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev10 → unikraft_cloud_plugin_sandbox_api-1.3.0.dev12}/README.md +0 -0
  8. {unikraft_cloud_plugin_sandbox_api-1.2.1.dev10 → 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.dev10 → 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.dev10 → 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.dev10 → 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.dev10
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.dev10"
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.dev10"
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 = "8b2d9c85dd0f9747cdb842a33eff3eab3918a123c92ed9049d6e853d47415e56"
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
 
@@ -132,7 +132,10 @@ class CommandSignalRequest(BaseModel):
132
132
  signal: int | str
133
133
  """
134
134
  The signal to send, either as a number or as a name, with or without the
135
- `SIG` prefix, e.g. `15`, `TERM` or `SIGTERM`.
135
+ `SIG` prefix, e.g. `15`, `TERM` or `SIGTERM`. `0` sends nothing and only
136
+ checks that the command can be signalled. Real-time signals go by number:
137
+ where `SIGRTMIN` sits is up to the program's libc (34 on glibc, 35 on
138
+ musl), so they have no names here.
136
139
  """
137
140
 
138
141
 
@@ -151,6 +154,23 @@ class CommandStdinRequest(BaseModel):
151
154
  """Whether to close standard input after injecting `data`."""
152
155
 
153
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
+
154
174
  class CommandWaitTimeoutRequest(BaseModel):
155
175
  """The request to wait for a command to finish, up to a timeout."""
156
176
 
@@ -161,7 +181,7 @@ class CommandWaitTimeoutRequest(BaseModel):
161
181
  model_config = ConfigDict(extra="allow", populate_by_name=True)
162
182
 
163
183
  timeout_s: float
164
- """The maximum time to wait, in seconds. Decimals are accepted."""
184
+ """The maximum time to wait, in seconds, at most 55. Decimals are accepted."""
165
185
 
166
186
 
167
187
  class EmptyResponse(BaseModel):
@@ -549,6 +569,7 @@ for _model in (
549
569
  CommandResizeRequest,
550
570
  CommandSignalRequest,
551
571
  CommandStdinRequest,
572
+ CommandWaitRequest,
552
573
  CommandWaitTimeoutRequest,
553
574
  EmptyResponse,
554
575
  GetCommandData,