google.cloud.forseti.common.util.file_uploader module

Utility functions for file uploads.

upload_csv(resource_name, data, gcs_upload_path)[source]

Upload data in csv format.

Parameters:
  • resource_name (str) – what kind of CSV file are we creating?
  • data (dict) – the data to upload
  • gcs_upload_path (string) – the GCS upload path.
upload_json(data, gcs_upload_path)[source]

Upload data in json format.

Parameters:
  • data (dict) – the data to upload
  • gcs_upload_path (string) – the GCS upload path.