defiant
defiant

Reputation: 3341

Python SDK equivalent of the rest api endpoint apigateway.locations.get?

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.

Upvotes: 0

Views: 193

Answers (1)

guillaume blaquiere
guillaume blaquiere

Reputation: 75715

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)

Upvotes: 1

Related Questions