All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ringcentral.paths.scim.users.dotsearch.Index Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.ringcentral.paths.scim.users.dotsearch;

import com.ringcentral.*;
import com.ringcentral.definitions.*;

public class Index {
    public RestClient rc;
    public com.ringcentral.paths.scim.users.Index parent;

    public Index(com.ringcentral.paths.scim.users.Index parent) {
        this.parent = parent;
        this.rc = parent.rc;
    }

    public String path() {
        return parent.path() + "/.search";
    }

    public String path(Boolean withParameter) {
        return path();
    }

    /**
     * Returns the list of users satisfying search criteria
     * HTTP Method: post
     * Endpoint: /scim/{version}/Users/dotSearch
     * Rate Limit Group: Light
     * App Permission: ReadAccounts
     */
    public ScimUserSearchResponse post(ScimSearchRequest scimSearchRequest) throws com.ringcentral.RestException, java.io.IOException {
        okhttp3.ResponseBody rb = this.rc.post(this.path(), scimSearchRequest, null);
        return com.ringcentral.Utils.gson.fromJson(rb.string(), ScimUserSearchResponse.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy