Keerthi421 opened a new pull request, #49472:
URL: https://github.com/apache/airflow/pull/49472

   PR Title:
   Implement parse_from_uri, from_json, and as_json methods for SDK Connection 
class
   
   PR Description:
   This PR adds three methods to the SDK's Connection class in 
task-sdk/src/airflow/sdk/definitions/connection.py:
   parse_from_uri(): Parses connection parameters from a URI string.
   from_json(): Creates a Connection object from a JSON string.
   as_json(): Converts a Connection object to a JSON string representation.
   
   These methods follow the logic from models.Connection but are adapted for 
the SDK’s attrs-based structure.
   Tests for these methods are included in a separate test file.
   While tests couldn't be run due to PowerShell syntax limitations, the 
implementation is complete and follows established patterns.
   
   Closes: https://github.com/apache/airflow/issues/49404


-- 
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]

Reply via email to