J. Fernández
54d6e39371
Merge branch 'main' into main
2025-01-15 10:01:42 +01:00
Bob Haddleton
9ef55d251c
fix(unittests): fix bucket api version
2025-01-08 13:33:33 -06:00
Christopher Haar
70e86c0d30
fix(defaults): add apiVersion and kind
...
Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
2025-01-06 17:10:32 +01:00
Jesús Fernández
c632b0c1ad
feat: use json_format.ParseDict to convert dicts to structs
...
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-11-25 12:08:06 +01:00
Jesús Fernández
25e49cf3bd
fix: structs containing listvalues are properly converted
...
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-11-13 22:23:14 +01:00
Nic Cope
d10f084b84
Use the new hatch test command to run tests
...
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 19:54:19 -07:00
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
Nic Cope
39b1128332
Return a response, not a request
...
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-08-16 17:17:05 -07:00
Nic Cope
0f7d85f43d
Promote composition functions to v1
...
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-08-16 15:05:29 -07:00
Jesús Fernández
556607ede7
fix: recursively convert struct to dict
...
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
2024-08-13 10:13:28 +02:00
Bob Haddleton
86e715d718
Add support for credentials
...
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
2024-06-26 13:36:08 -05:00
Nic Cope
502f567d4a
Add license headers
...
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-21 19:06:10 -08:00
Nic Cope
e247d8766e
Break the SDK out into its own repo
...
I prototyped this in https://github.com/negz/function-auto-python .
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 13:37:50 -08:00