Hello Hrishikesh,
As mentioned in my earlier message, you can use the API or "gcloud" reference [1][2] to get the IAM policy for the project.
Now, as equivalent you can set the IAM access control policy for the specified project using the method: "projects.setIamPolicy"
API [3]. However, there are few constraints which are mentioned on the same
link [3]. Also, you can list the grantable roles for the specified project using the "gcloud" reference
command [4].
You can use "gcloud projects set-iam-policy" reference command to set the policy using JASON or YAML file with the IAM policy [
5]. For more information, conditions and examples to set the IAM policy using methods: API, JAVA, and gcloud, refer to this public documentation link [6].