Skip to content

Provide proper SDK Documentation #790

Description

@aquamatthias

I see that the go SDK has great API documentation (example).

The python SDK only provides rather useless text parts:

The value to assign to XXX of this YYY.

It would be great if also the python folks can benefit from good documentation.

Thanks!

Activity

  1. bethdehart commented on Aug 29, 2025

    @bethdehart

    Welcome to OCI...

    The examples here are better then the docs.

  2. bethdehart commented on Aug 29, 2025

    @bethdehart

    @aquamatthias ,

    Just ran into this and it was range inducing. This example on using the newer Idenity APi's is miss leading. This patch will remove ALL the users from the group. In order to only remove one user. You need to read the RFC... for this "PATCH" you can find here on the next page (from the link), you will find this

       Remove a single member from a group.  Some text removed for
       readability ("..."):
    
       PATCH /Groups/acbf3ae7-8463-...-9b4da3f908ce
       Host: example.com
       Accept: application/scim+json
       Content-Type: application/scim+json
       Authorization: Bearer h480djs93hd8
       If-Match: W/"a330bc54f0671c9"
    
       {
         "schemas":
          ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
         "Operations":[{
           "op":"remove",
           "path":"members[value eq \"2819c223-7f76-...413861904646\"]"
         }]
       }
    

    Now I would "assume" I would not have to escape path string value, but you do... Like this:

        path=f"members[value eq \"{user.id}\"]"

    If not, it will not work at all.

    Also don't expect the Group Object that is returned to be correct. The members will return None as of writing this. If you want to verify the user was removed from the group. You need to make another call to get the group details.

    I really hope this helps you. I have spend a long time banging my head trying to work though there api's and lack of clear docs.

    EDIT
    I forgot to say the id (of that object) I reference above is NOT the OCID value. It's the user_id that is also called id.

    See the models:

  3. aquamatthias commented on Mar 20, 2026

    @aquamatthias
    Author

    Examples are always good - but this does not solve the problem of good documentation.
    The links you were sharing actually show the problem pretty well:

    active Gets the active of this User.

    This documentation is not helpful - not even proper English.

  4. added
    SDKIssue pertains to the SDK itself and not specific to any service
    on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SDKIssue pertains to the SDK itself and not specific to any service

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions