terraform-snowflake-api-integration-with-geff-aws
terraform-snowflake-api-integration-with-geff-aws copied to clipboard
Support dict type for json argument
In this function:
def process_row(
data: Optional[Text] = None,
base_url: Text = '',
url: Text = '',
json: Optional[Text] = None,
method: Text = 'get',
headers: Text = '',
kwargs: Union[Dict, Text] = '',
auth: Text = None,
params: Text = '',
verbose: bool = False,
cursor: Text = '',
results_path: Text = '',
destination_uri: Text = '',
):
We need to support dict type for json argument.
maybe —
req_data: Optional[bytes] = (
dumps(json) if isintance(json, dict)
else json if json.startswith('{')
else dumps(parse_header_dict(json))
).encode()