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

com.ringcentral.paths.restapi.account.extension.features.Index Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.ringcentral.paths.restapi.account.extension.features;

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

public class Index {
    public RestClient rc;
    public com.ringcentral.paths.restapi.account.extension.Index parent;

    public Index(com.ringcentral.paths.restapi.account.extension.Index parent) {
        this.parent = parent;
        this.rc = parent.rc;
    }

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

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

    /**
     * Returns a list of supported features and information on their
     * availability for the current extension. Specific feature(s) might
     * be checked by providing `featureId` query parameter. Multiple values
     * are supported in the format: `?featureId=Feature1&featureId=Feature2`.
     * To get only available features in order to decrease response size,
     * `availableOnly=true` query param might be specified. In case a feature
     * is available for the current user, `"available": true` is returned in
     * response for the record with the corresponding feature ID. Otherwise,
     * additional attribute `reason` is returned with the appropriate code:
     * - `ServicePlanLimitation` -  a feature is not included in account service plan;
     * - `AccountLimitation` - a feature is turned off for account;
     * - `ExtensionTypeLimitation` - a feature is not applicable for extension type;
     * - `ExtensionLimitation` - a feature is not available for extension, e.g., additional license required;
     * - `InsufficientPermissions` - required permission not granted to the current user (not the one, who is specified in the URL, but the one who's access token is used);
     * - `ConfigurationLimitation` - a feature is turned off for extension, e.g., by account administrator.
     * 

* Also, some features may have additional parameters, e.g., limits, which are returned in `params` attribute as a name-value collection: *

* { * "id": "HUD", * "available": true, * "params": [ * { * "name": "limitMax", * "value": "100" * } * ] * } *

* HTTP Method: get * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/features * Rate Limit Group: Medium * App Permission: ReadAccounts * User Permission: ReadExtensions */ public FeatureList get(ReadExtensionFeaturesParameters queryParams) throws com.ringcentral.RestException, java.io.IOException { okhttp3.ResponseBody rb = this.rc.get(this.path(), queryParams); return com.ringcentral.Utils.gson.fromJson(rb.string(), FeatureList.class); } public FeatureList get() throws com.ringcentral.RestException, java.io.IOException { return this.get(null); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy