google-cloud-python
google-cloud-python copied to clipboard
Support Cloud Identity
I can see the gcloud client has python code for cloud identity at ~/google-cloud-sdk/lib/googlecloudsdk/command_lib/identity/groups
I want to run gcloud identity groups describe
type calls using the python SDK but it doesn't appear to be supported in the new googleapis libs.
I can see this in mirrors of the googlecloudsdk at https://github.com/twistedpair/google-cloud-sdk/blob/master/google-cloud-sdk/lib/googlecloudsdk/command_lib/identity/groups/memberships/hooks.py
But it is no longer available. So it appears that the gcloud experience and the API experience will now diverge substantially.
One thing AWS did very well was match the boto3 experience with the awscli. Azure did a terrible job of this requiring cobbling together various APIs to get coverage. I hope GCP is not going down this path.
Hi @kbroughton,
Thanks for opening an issue. It looks like cloudidentity/v1
is in our list of Google Cloud Client Libraries to generate. I've asked for an update on a pre-requisite step (publishing protos to https://github.com/googleapis/googleapis). I will let you know when I get a response.
Googlers see internal issue 179725617.
You may be able to use the older library google-api-python-client
to access the API programmatically in the meantime.
- https://github.com/googleapis/google-api-python-client
- https://googleapis.github.io/google-api-python-client/docs/dyn/cloudidentity_v1.html
from googleapiclient import discovery
service = discovery.build("cloudidentity", "v1")
service.groups().memberships().list(parent="groups/abc").execute()
It looks like there are no major blockers to getting a google-cloud-*
library published. The libraries should be available 1-4 weeks.
@busunkim96 Are they available now?
I'm keen for this also: using discovery.build('cloudidentity', ...
is a bit painful
We would also like Cloud Identity APIs to be available through a Cloud Client Library for Python.
Hi, any updates on this library?
Also looking for an update. It's been a year since this issue was opened.
@busunkim96 I have a problem with the groups().search() API. I tried to use that command with gcloud on Google Cloud console to retrieve the groups specifying an organization id, but I can't do the same thing using the API. What is the syntax for doing the query in the groups().search() method? I've tried as follow:
response = service.groups().search(query="parent == 'organization/{org_id}' && 'cloudidentity.googleapis.com/groups.discussion_forum' in labels").execute()
But I've received a googleapiclient.errors.HttpError: HttpError 400 with "Request contains an invalid argument." as error detail.
Can you help me? Many thanks in advance
A friendly november bump. Feel free to delete or hide this comment.
I'm still having this problem. Has anybody taken a look at this issue again? Thank you in advance!
would like this too
Googlers see internal feature request: b/365129966