Title: Add a `resource.update` convenience function by negz · Pull Request #98 · crossplane/function-sdk-python · GitHub
Open Graph Title: Add a `resource.update` convenience function by negz · Pull Request #98 · crossplane/function-sdk-python
X Title: Add a `resource.update` convenience function by negz · Pull Request #98 · crossplane/function-sdk-python
Description: Description of your changes 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): resource.update(rsp.desired.resources["bucket"], bucket) Or to update the desired XR: resource.update(rsp.desired.composite.resource, partial_xr) The source resource can be a dictionary, a protobuf struct, or a Pydantic model. I have: Read and followed Crossplane's contribution process. Added or updated unit tests for my change.
Open Graph Description: Description of your changes 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): r...
X Description: Description of your changes 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 y...
Opengraph URL: https://github.com/crossplane/function-sdk-python/pull/98
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:798eb4ac-a3ac-2757-f828-5cb58f9b9978 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AB80:13E1D4:70243D:9B9DCF:6A61B459 |
| html-safe-nonce | 2dff5cbce18aa2472c335492f1fb8e98b68f66c7b2cb35fe3dca8bf154e41928 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjgwOjEzRTFENDo3MDI0M0Q6OUI5RENGOjZBNjFCNDU5IiwidmlzaXRvcl9pZCI6IjU0NDk0MDkxMjUyMDgzNjE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 255ccf6ba993abe997cbbd23abce567d17901103f2a78c40e771461198baea84 |
| hovercard-subject-tag | pull_request:2114095191 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/crossplane/function-sdk-python/pull/98/files |
| twitter:image | https://avatars.githubusercontent.com/u/1049349?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1049349?s=400&v=4 |
| og:image:alt | Description of your changes 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): r... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/crossplane/function-sdk-python git https://github.com/crossplane/function-sdk-python.git |
| octolytics-dimension-user_id | 45158470 |
| octolytics-dimension-user_login | crossplane |
| octolytics-dimension-repository_id | 721365259 |
| octolytics-dimension-repository_nwo | crossplane/function-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 721365259 |
| octolytics-dimension-repository_network_root_nwo | crossplane/function-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width