function-sdk-python/tests
Nic Cope 974bdc45a6 Add a resource.update convenience function
This function can be used to add or update a resource.

For example, to add a desired composed bucket (assuming the "bucket"
resource doesn't yet exist):

```python
resource.update(rsp.desired.resources["bucket"], bucket)
```

Or to update the desired XR:

```python
resource.update(rsp.desired.composite.resource, partial_xr)
```

The source resource can be a dictionary, a protobuf struct, or a
Pydantic model.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 18:04:33 -07:00
..
testdata/models/io Add a resource.update convenience function 2024-10-09 18:04:33 -07:00
test_resource.py Add a resource.update convenience function 2024-10-09 18:04:33 -07:00
test_response.py Promote composition functions to v1 2024-08-16 15:05:29 -07:00
test_runtime.py Return a response, not a request 2024-08-16 17:17:05 -07:00