I am trying to find the python sdk equivalent of the rest api endpoint apigateway.locations.get
. Here is the URL for the rest api documentation.
I couldn't find any documentation on how to achieve the same using their python SDK. Can someone point me in the right direction.
That's correct, the library google-cloud-api-gateway doesn't include that API Call.
That's why, the discovery API exists to fill the gap between the library and the APIs.
import google.auth
from googleapiclient.discovery import build
service = build('apigateway', 'v1')
resp = service.projects().locations().list(name="projects/<PROJECT_ID>").execute()
print(resp)