prefect_databricks.rest
This is a module containing generic REST tasks.
Functions
serialize_model
pydantic.BaseModel into JSON;
returns original obj if not a BaseModel.
Args:
obj: Input object to serialize.
- Serialized version of object.
strip_kwargs
pydantic.BaseModel types.
Args:
**kwargs: Input keyword arguments.
- Stripped version of kwargs.
execute_endpoint
endpoint: The endpoint route.databricks_credentials: Credentials to use for authentication with Databricks.http_method: Either GET, POST, PUT, DELETE, or PATCH.params: URL query parameters in the request.json: JSON serializable object to include in the body of the request.**kwargs: Additional keyword arguments to pass.
- The httpx.Response from interacting with the endpoint.