mixilchenko opened a new issue, #53520:
URL: https://github.com/apache/airflow/issues/53520
### Description
In airflow v2 this is the working code
```python
conn = Connection('storage')
extra = json.loads(conn.extra)
get_token_hook = HttpHook(
method='GET',
http_conn_id='token_api',
)
resp = get_token_hook(data={'refresh_token': refresh_token})
extra['access_token'] = rest.json()['access_token']
conn.set_extra(json.dumps(extra))
# commit db changes
with create_session() as session:
session.add(conn)
```
Airflow 3 sdk `Connection` has no `set` methods
### Use case/motivation
I feel like Connection updates use-cases are pretty similar to Variable
updates ones
### Related issues
_No response_
### Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]