Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cloud Identity #10604

Open
kbroughton opened this issue Oct 26, 2021 · 12 comments
Open

Support Cloud Identity #10604

kbroughton opened this issue Oct 26, 2021 · 12 comments
Assignees
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@kbroughton
Copy link

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.

@busunkim96 busunkim96 added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Oct 27, 2021
@busunkim96
Copy link
Contributor

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.

from googleapiclient import discovery
service = discovery.build("cloudidentity", "v1")
service.groups().memberships().list(parent="groups/abc").execute()

@busunkim96 busunkim96 self-assigned this Oct 27, 2021
@busunkim96
Copy link
Contributor

It looks like there are no major blockers to getting a google-cloud-* library published. The libraries should be available 1-4 weeks.

@bcbwatt
Copy link

bcbwatt commented May 17, 2022

@busunkim96 Are they available now?

@simon-anz
Copy link

I'm keen for this also: using discovery.build('cloudidentity', ... is a bit painful

@jasonpnnl
Copy link

We would also like Cloud Identity APIs to be available through a Cloud Client Library for Python.

@Andy-Zhan
Copy link

Hi, any updates on this library?

@ngander64
Copy link

Also looking for an update. It's been a year since this issue was opened.

@emilianooddo
Copy link

emilianooddo commented Oct 6, 2022

@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

@thor
Copy link

thor commented Nov 25, 2022

A friendly november bump. Feel free to delete or hide this comment.

@undadasea
Copy link

I'm still having this problem. Has anybody taken a look at this issue again?
Thank you in advance!

@pcarleton
Copy link

would like this too

@parthea
Copy link
Contributor

parthea commented Sep 6, 2024

Googlers see internal feature request: b/365129966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests