gigl.src.mocking.lib.constants#
Attributes#
Functions#
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | Replaces the bucket and path of a GCS URI with the test assets bucket and path. | 
Module Contents#
- gigl.src.mocking.lib.constants.get_example_task_edge_features_gcs_dir(task_name, version, edge_type, edge_usage_type)[source]#
- Parameters:
- task_name (str) 
- version (str) 
- edge_type (gigl.src.common.types.graph_data.EdgeType) 
- edge_usage_type (gigl.src.common.types.graph_data.EdgeUsageType) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.get_example_task_edge_features_schema_gcs_path(task_name, version, edge_type, edge_usage_type)[source]#
- Parameters:
- task_name (str) 
- version (str) 
- edge_type (gigl.src.common.types.graph_data.EdgeType) 
- edge_usage_type (gigl.src.common.types.graph_data.EdgeUsageType) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.get_example_task_edges_bq_table_path(task_name, version, edge_type, edge_usage_type)[source]#
- Parameters:
- task_name (str) 
- version (str) 
- edge_type (gigl.src.common.types.graph_data.EdgeType) 
- edge_usage_type (gigl.src.common.types.graph_data.EdgeUsageType) 
 
- Return type:
- str 
 
- gigl.src.mocking.lib.constants.get_example_task_frozen_gbml_config_gcs_path(task_name, version)[source]#
- Parameters:
- task_name (str) 
- version (str) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.get_example_task_node_features_gcs_dir(task_name, version, node_type)[source]#
- Parameters:
- task_name (str) 
- version (str) 
- node_type (gigl.src.common.types.graph_data.NodeType) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.get_example_task_node_features_schema_gcs_path(task_name, version, node_type)[source]#
- Parameters:
- task_name (str) 
- version (str) 
- node_type (gigl.src.common.types.graph_data.NodeType) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.get_example_task_nodes_bq_table_path(task_name, version, node_type)[source]#
- Parameters:
- task_name (str) 
- version (str) 
- node_type (gigl.src.common.types.graph_data.NodeType) 
 
- Return type:
- str 
 
- gigl.src.mocking.lib.constants.get_example_task_preprocess_gcs_prefix(task_name, version)[source]#
- Parameters:
- task_name (str) 
- version (str) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.get_example_task_static_assets_gcs_dir(task_name, version)[source]#
- Parameters:
- task_name (str) 
- version (str) 
 
- Return type:
 
- gigl.src.mocking.lib.constants.update_bq_table_with_test_assets_and_version(bq_table, version)[source]#
- Parameters:
- bq_table (str) 
- version (str) 
 
- Return type:
- str 
 
- gigl.src.mocking.lib.constants.update_gcs_uri_with_test_assets_and_version(uri_str, version)[source]#
- Replaces the bucket and path of a GCS URI with the test assets bucket and path. - Example - input gs://some_bucket_name/<task_identifier>/data_preprocess/preprocessed_metadata.yaml output gs://{MOCK_DATA_GCS_BUCKET}/mocked_assets/<version>/<task_identifier>/data_preprocess/preprocessed_metadata.yaml - Parameters:
- uri_str (str) 
- version (str) 
 
- Return type:
- str 
 
