Class CustomRolesApi


  • public class CustomRolesApi
    extends java.lang.Object
    • Constructor Detail

      • CustomRolesApi

        public CustomRolesApi()
      • CustomRolesApi

        public CustomRolesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • deleteCustomRoleCall

        public okhttp3.Call deleteCustomRoleCall​(java.lang.String key,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for deleteCustomRole
        Parameters:
        key - The key of the custom role to delete (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteCustomRole

        public void deleteCustomRole​(java.lang.String key)
                              throws ApiException
        Delete custom role Delete a custom role by key
        Parameters:
        key - The key of the custom role to delete (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteCustomRoleWithHttpInfo

        public ApiResponse<java.lang.Void> deleteCustomRoleWithHttpInfo​(java.lang.String key)
                                                                 throws ApiException
        Delete custom role Delete a custom role by key
        Parameters:
        key - The key of the custom role to delete (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteCustomRoleAsync

        public okhttp3.Call deleteCustomRoleAsync​(java.lang.String key,
                                                  ApiCallback<java.lang.Void> _callback)
                                           throws ApiException
        Delete custom role (asynchronously) Delete a custom role by key
        Parameters:
        key - The key of the custom role to delete (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getCustomRoleCall

        public okhttp3.Call getCustomRoleCall​(java.lang.String key,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for getCustomRole
        Parameters:
        key - The custom role's key or ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getCustomRole

        public CustomRole getCustomRole​(java.lang.String key)
                                 throws ApiException
        Get custom role Get a single custom role by key or ID
        Parameters:
        key - The custom role's key or ID (required)
        Returns:
        CustomRole
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getCustomRoleWithHttpInfo

        public ApiResponse<CustomRole> getCustomRoleWithHttpInfo​(java.lang.String key)
                                                          throws ApiException
        Get custom role Get a single custom role by key or ID
        Parameters:
        key - The custom role's key or ID (required)
        Returns:
        ApiResponse<CustomRole>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getCustomRoleAsync

        public okhttp3.Call getCustomRoleAsync​(java.lang.String key,
                                               ApiCallback<CustomRole> _callback)
                                        throws ApiException
        Get custom role (asynchronously) Get a single custom role by key or ID
        Parameters:
        key - The custom role's key or ID (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getCustomRolesCall

        public okhttp3.Call getCustomRolesCall​(ApiCallback _callback)
                                        throws ApiException
        Build call for getCustomRoles
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getCustomRoles

        public CustomRoles getCustomRoles()
                                   throws ApiException
        List custom roles Get a complete list of custom roles. Custom roles let you create flexible policies providing fine-grained access control to everything in LaunchDarkly, from feature flags to goals, environments, and teams. With custom roles, it's possible to enforce access policies that meet your exact workflow needs. Custom roles are available to customers on our enterprise plans. If you're interested in learning more about our enterprise plans, contact [email protected].
        Returns:
        CustomRoles
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getCustomRolesWithHttpInfo

        public ApiResponse<CustomRoles> getCustomRolesWithHttpInfo()
                                                            throws ApiException
        List custom roles Get a complete list of custom roles. Custom roles let you create flexible policies providing fine-grained access control to everything in LaunchDarkly, from feature flags to goals, environments, and teams. With custom roles, it's possible to enforce access policies that meet your exact workflow needs. Custom roles are available to customers on our enterprise plans. If you're interested in learning more about our enterprise plans, contact [email protected].
        Returns:
        ApiResponse<CustomRoles>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getCustomRolesAsync

        public okhttp3.Call getCustomRolesAsync​(ApiCallback<CustomRoles> _callback)
                                         throws ApiException
        List custom roles (asynchronously) Get a complete list of custom roles. Custom roles let you create flexible policies providing fine-grained access control to everything in LaunchDarkly, from feature flags to goals, environments, and teams. With custom roles, it's possible to enforce access policies that meet your exact workflow needs. Custom roles are available to customers on our enterprise plans. If you're interested in learning more about our enterprise plans, contact [email protected].
        Parameters:
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • patchCustomRoleCall

        public okhttp3.Call patchCustomRoleCall​(java.lang.String key,
                                                PatchWithComment patchWithComment,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for patchCustomRole
        Parameters:
        key - The key of the custom role to update (required)
        patchWithComment - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchCustomRole

        public CustomRole patchCustomRole​(java.lang.String key,
                                          PatchWithComment patchWithComment)
                                   throws ApiException
        Update custom role Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role.
        Parameters:
        key - The key of the custom role to update (required)
        patchWithComment - (required)
        Returns:
        CustomRole
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchCustomRoleWithHttpInfo

        public ApiResponse<CustomRole> patchCustomRoleWithHttpInfo​(java.lang.String key,
                                                                   PatchWithComment patchWithComment)
                                                            throws ApiException
        Update custom role Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role.
        Parameters:
        key - The key of the custom role to update (required)
        patchWithComment - (required)
        Returns:
        ApiResponse<CustomRole>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchCustomRoleAsync

        public okhttp3.Call patchCustomRoleAsync​(java.lang.String key,
                                                 PatchWithComment patchWithComment,
                                                 ApiCallback<CustomRole> _callback)
                                          throws ApiException
        Update custom role (asynchronously) Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role.
        Parameters:
        key - The key of the custom role to update (required)
        patchWithComment - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postCustomRoleCall

        public okhttp3.Call postCustomRoleCall​(CustomRolePost customRolePost,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for postCustomRole
        Parameters:
        customRolePost - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postCustomRole

        public CustomRole postCustomRole​(CustomRolePost customRolePost)
                                  throws ApiException
        Create custom role Create a new custom role
        Parameters:
        customRolePost - (required)
        Returns:
        CustomRole
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postCustomRoleWithHttpInfo

        public ApiResponse<CustomRole> postCustomRoleWithHttpInfo​(CustomRolePost customRolePost)
                                                           throws ApiException
        Create custom role Create a new custom role
        Parameters:
        customRolePost - (required)
        Returns:
        ApiResponse<CustomRole>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postCustomRoleAsync

        public okhttp3.Call postCustomRoleAsync​(CustomRolePost customRolePost,
                                                ApiCallback<CustomRole> _callback)
                                         throws ApiException
        Create custom role (asynchronously) Create a new custom role
        Parameters:
        customRolePost - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object