Google Cloud API client - How to enable specific API programmatically?


April 2019


3 time


I am trying to automate few steps for a google cloud project. I will be receiving project ID and service account credentials (json) as input to my program. I would like to enable few APIs like 'Cloud Machine Learning API' or 'Resource Management API' for this service account programmatically.

[Console way to do this is select project, API&Services, locate API, click on enable]

Can anyone please point me to correct API library to achieve this goal or may be some example?


0 answers