gigl.src.mocking.lib.constants#

Attributes#

Functions#

Module Contents#

gigl.src.mocking.lib.constants.get_example_task_edge_features_gcs_dir(task_name, version, edge_type, edge_usage_type)[source]#
Parameters:
Return type:

gigl.common.GcsUri

gigl.src.mocking.lib.constants.get_example_task_edge_features_schema_gcs_path(task_name, version, edge_type, edge_usage_type)[source]#
Parameters:
Return type:

gigl.common.GcsUri

gigl.src.mocking.lib.constants.get_example_task_edges_bq_table_path(task_name, version, edge_type, edge_usage_type)[source]#
Parameters:
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.common.GcsUri

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.common.GcsUri

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.common.GcsUri

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.common.GcsUri

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.common.GcsUri

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

gigl.src.mocking.lib.constants.EXAMPLE_TASK_ASSETS_GCS_PATH[source]#
gigl.src.mocking.lib.constants.MOCKED_DATASET_ARTIFACT_METADATA_LOCAL_PATH[source]#
gigl.src.mocking.lib.constants.MOCK_DATA_BQ_DATASET_NAME = 'external-snap-ci-github-gigl.public_gigl'[source]#
gigl.src.mocking.lib.constants.MOCK_DATA_GCS_BUCKET[source]#