function-sdk-python/tests/testdata/models/io/k8s/apimachinery/pkg/apis
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
..
meta Add a resource.update convenience function 2024-10-09 18:04:33 -07:00
__init__.py Add a resource.update convenience function 2024-10-09 18:04:33 -07:00