Anyone with a script to retrieve compute engine details (PROJECT NAME, INSTANCE NAME , ZONE , NETWORK , SUB-NETWORK , PRIVATE-IP, PUBLIC-IP") will be appreciated
This is one approach, that captures the primary interface (it doesn't have the project name, but you can easily derive that):
gcloud compute instances list --format="csv(name,zone,networkInterfaces[0].network,networkInterfaces[0].subnetwork,networkInterfaces[0].networkIP,networkInterfaces[0].accessConfigs[0].natIP)"
Take a look at this documentation for more details on formatting gcloud output: