broker_utils.schema_maps

The schema_maps module loads and returns schema maps stored in Cloud Storage.

broker.broker_utils.broker_utils.schema_maps.load_schema_map(survey, testid, schema=None)[source]
Parameters
  • survey (str) – Name of the survey associated with the broker instance. Along with the testid, this determines which GCS bucket the schema map will be loaded from. If schema is not provided, this will also determine which schema map is returned.

  • testid (str) – Name of the testid associated with the broker instance. Along with the survey, this determines which GCS bucket the schema map will be loaded from. If this is a bool, it must be False (indicates a production instance).

  • schema (Optional[str]) – Survey name of the schema to be returned. If not provided, the map corresponding to survey will be returned.

Return type

dict