René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:798eb4ac-a3ac-2757-f828-5cb58f9b9978
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB80:13E1D4:70243D:9B9DCF:6A61B459
html-safe-nonce2dff5cbce18aa2472c335492f1fb8e98b68f66c7b2cb35fe3dca8bf154e41928
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjgwOjEzRTFENDo3MDI0M0Q6OUI5RENGOjZBNjFCNDU5IiwidmlzaXRvcl9pZCI6IjU0NDk0MDkxMjUyMDgzNjE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac255ccf6ba993abe997cbbd23abce567d17901103f2a78c40e771461198baea84
hovercard-subject-tagpull_request:2114095191
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/crossplane/function-sdk-python/pull/98/files
twitter:imagehttps://avatars.githubusercontent.com/u/1049349?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1049349?s=400&v=4
og:image:altDescription 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/crossplane/function-sdk-python git https://github.com/crossplane/function-sdk-python.git
octolytics-dimension-user_id45158470
octolytics-dimension-user_logincrossplane
octolytics-dimension-repository_id721365259
octolytics-dimension-repository_nwocrossplane/function-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id721365259
octolytics-dimension-repository_network_root_nwocrossplane/function-sdk-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac296ae7f21856f1f92adbad22f870b6fbb4b907
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/crossplane/function-sdk-python/pull/98/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcrossplane%2Ffunction-sdk-python%2Fpull%2F98%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcrossplane%2Ffunction-sdk-python%2Fpull%2F98%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=crossplane%2Ffunction-sdk-python
Reloadhttps://github.com/crossplane/function-sdk-python/pull/98/files
Reloadhttps://github.com/crossplane/function-sdk-python/pull/98/files
Reloadhttps://github.com/crossplane/function-sdk-python/pull/98/files
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
crossplane https://github.com/crossplane
function-sdk-pythonhttps://github.com/crossplane/function-sdk-python
Notifications https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Fork 14 https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Star 13 https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Code https://github.com/crossplane/function-sdk-python
Issues 6 https://github.com/crossplane/function-sdk-python/issues
Pull requests 1 https://github.com/crossplane/function-sdk-python/pulls
Actions https://github.com/crossplane/function-sdk-python/actions
Projects https://github.com/crossplane/function-sdk-python/projects
Security and quality 0 https://github.com/crossplane/function-sdk-python/security
Insights https://github.com/crossplane/function-sdk-python/pulse
Code https://github.com/crossplane/function-sdk-python
Issues https://github.com/crossplane/function-sdk-python/issues
Pull requests https://github.com/crossplane/function-sdk-python/pulls
Actions https://github.com/crossplane/function-sdk-python/actions
Projects https://github.com/crossplane/function-sdk-python/projects
Security and quality https://github.com/crossplane/function-sdk-python/security
Insights https://github.com/crossplane/function-sdk-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcrossplane%2Ffunction-sdk-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python%2Fissues%2Fnew%2Fchoose
negzhttps://github.com/negz
crossplane:mainhttps://github.com/crossplane/function-sdk-python/tree/main
negz:pydantshttps://github.com/negz/function-sdk-python/tree/pydants
Conversation 6 https://github.com/crossplane/function-sdk-python/pull/98
Commits 3 https://github.com/crossplane/function-sdk-python/pull/98/commits
Checks 0 https://github.com/crossplane/function-sdk-python/pull/98/checks
Files changed https://github.com/crossplane/function-sdk-python/pull/98/files
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
Add a resource.update convenience function https://github.com/crossplane/function-sdk-python/pull/98/files#top
Show all changes 3 commits https://github.com/crossplane/function-sdk-python/pull/98/files
974bdc4 Add a resource.update convenience function negz Oct 9, 2024 https://github.com/crossplane/function-sdk-python/pull/98/commits/974bdc45a6810e68fc2a37ca428fa44e3984b311
5fe3b5c Don't lint (generated) testdata negz Oct 9, 2024 https://github.com/crossplane/function-sdk-python/pull/98/commits/5fe3b5c9e0cb4b020ece3e188ef1a95858af049e
df655ca Use class matches in resource.update() negz Oct 10, 2024 https://github.com/crossplane/function-sdk-python/pull/98/commits/df655cabecd33a335668ffdc337d397e0b70fc36
Clear filters https://github.com/crossplane/function-sdk-python/pull/98/files
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
resource.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-05f183177eba52e1720d1fb16381620d80c3a5f071a87aa09b57177df0f33934
pyproject.toml https://github.com/crossplane/function-sdk-python/pull/98/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test_resource.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-cbf27c7a6a4139890bca166895b931c6ad62cff4f4c3bb341cc5eac6757a74b6
__init__.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-637c3fcbce6db0b27377158b3626b54a4b09d472bd3c02047b51cc5ca50c31c4
__init__.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-4d099c43f75a805dab111bb4b1bba3f94c9e2e1711bbca6d7eee72a937c49eba
v1.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-6c424b2baab41a9783550bb7026c5100bbeb79512d03184fe64b9e5cc188c4e0
__init__.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-2af2f0bf13f660c69e62e357b30b679411014fbea65f748877e7f29575c63b91
v1beta2.py https://github.com/crossplane/function-sdk-python/pull/98/files#diff-8b1928fef6258c8875cc4da874d71e4a36fd6814890f9a137ab502ca0ea70e24
https://github.com/crossplane/function-sdk-python/blob/main/CODEOWNERS#L22
crossplane/function/resource.pyhttps://github.com/crossplane/function-sdk-python/pull/98/files#diff-05f183177eba52e1720d1fb16381620d80c3a5f071a87aa09b57177df0f33934
View file https://github.com/negz/function-sdk-python/blob/df655cabecd33a335668ffdc337d397e0b70fc36/crossplane/function/resource.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/crossplane/function-sdk-python/pull/98/{{ revealButtonHref }}
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-05f183177eba52e1720d1fb16381620d80c3a5f071a87aa09b57177df0f33934
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-05f183177eba52e1720d1fb16381620d80c3a5f071a87aa09b57177df0f33934
https://github.com/crossplane/function-sdk-python/blob/main/CODEOWNERS#L22
pyproject.tomlhttps://github.com/crossplane/function-sdk-python/pull/98/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/negz/function-sdk-python/blob/df655cabecd33a335668ffdc337d397e0b70fc36/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/crossplane/function-sdk-python/pull/98/{{ revealButtonHref }}
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
negzhttps://github.com/negz
Oct 9, 2024https://github.com/crossplane/function-sdk-python/pull/98/files#r1794375809
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/crossplane/function-sdk-python/blob/main/CODEOWNERS#L22
tests/test_resource.pyhttps://github.com/crossplane/function-sdk-python/pull/98/files#diff-cbf27c7a6a4139890bca166895b931c6ad62cff4f4c3bb341cc5eac6757a74b6
View file https://github.com/negz/function-sdk-python/blob/df655cabecd33a335668ffdc337d397e0b70fc36/tests/test_resource.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/crossplane/function-sdk-python/pull/98/{{ revealButtonHref }}
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-cbf27c7a6a4139890bca166895b931c6ad62cff4f4c3bb341cc5eac6757a74b6
https://github.com/crossplane/function-sdk-python/pull/98/files#diff-cbf27c7a6a4139890bca166895b931c6ad62cff4f4c3bb341cc5eac6757a74b6
https://github.com/crossplane/function-sdk-python/blob/main/CODEOWNERS#L22
tests/testdata/models/io/k8s/apimachinery/pkg/apis/__init__.pyhttps://github.com/crossplane/function-sdk-python/pull/98/files#diff-637c3fcbce6db0b27377158b3626b54a4b09d472bd3c02047b51cc5ca50c31c4
View file https://github.com/negz/function-sdk-python/blob/df655cabecd33a335668ffdc337d397e0b70fc36/tests/testdata/models/io/k8s/apimachinery/pkg/apis/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/crossplane/function-sdk-python/pull/98/{{ revealButtonHref }}
https://github.com/crossplane/function-sdk-python/blob/main/CODEOWNERS#L22
tests/testdata/models/io/k8s/apimachinery/pkg/apis/meta/__init__.pyhttps://github.com/crossplane/function-sdk-python/pull/98/files#diff-4d099c43f75a805dab111bb4b1bba3f94c9e2e1711bbca6d7eee72a937c49eba
View file https://github.com/negz/function-sdk-python/blob/df655cabecd33a335668ffdc337d397e0b70fc36/tests/testdata/models/io/k8s/apimachinery/pkg/apis/meta/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/crossplane/function-sdk-python/pull/98/{{ revealButtonHref }}
Please reload this pagehttps://github.com/crossplane/function-sdk-python/pull/98/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.