in src/utils/compile_utils.py [0:0]
def get_filestore_info(project_id: str, instance_id: str, location: str):
"""Returns the IP address and the full network name of a given Filestore"""
client = resourcemanager_v3.ProjectsClient()
response = client.get_project(name=f'projects/{project_id}')
project_number = response.name.split('/')[1]
client = filestore_v1.CloudFilestoreManagerClient()
instance_name = f'projects/{project_id}/locations/{location}/instances/{instance_id}'
response = client.get_instance(name=instance_name)
network = response.networks[0].network
network = network.replace(project_id, project_number, 1)
return response.networks[0].ip_addresses[0], network