Package com.launchdarkly.api.api
Class CustomRolesApi
- java.lang.Object
-
- com.launchdarkly.api.api.CustomRolesApi
-
public class CustomRolesApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CustomRolesApi()CustomRolesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteCustomRole(java.lang.String customRoleKey)Delete custom role Delete a custom role by keyokhttp3.CalldeleteCustomRoleAsync(java.lang.String customRoleKey, ApiCallback<java.lang.Void> _callback)Delete custom role (asynchronously) Delete a custom role by keyokhttp3.CalldeleteCustomRoleCall(java.lang.String customRoleKey, ApiCallback _callback)Build call for deleteCustomRoleApiResponse<java.lang.Void>deleteCustomRoleWithHttpInfo(java.lang.String customRoleKey)Delete custom role Delete a custom role by keyApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()CustomRolegetCustomRole(java.lang.String customRoleKey)Get custom role Get a single custom role by key or IDokhttp3.CallgetCustomRoleAsync(java.lang.String customRoleKey, ApiCallback<CustomRole> _callback)Get custom role (asynchronously) Get a single custom role by key or IDokhttp3.CallgetCustomRoleCall(java.lang.String customRoleKey, ApiCallback _callback)Build call for getCustomRoleCustomRolesgetCustomRoles(java.lang.Long limit, java.lang.Long offset)List custom roles Get a complete list of custom roles.okhttp3.CallgetCustomRolesAsync(java.lang.Long limit, java.lang.Long offset, ApiCallback<CustomRoles> _callback)List custom roles (asynchronously) Get a complete list of custom roles.okhttp3.CallgetCustomRolesCall(java.lang.Long limit, java.lang.Long offset, ApiCallback _callback)Build call for getCustomRolesApiResponse<CustomRoles>getCustomRolesWithHttpInfo(java.lang.Long limit, java.lang.Long offset)List custom roles Get a complete list of custom roles.ApiResponse<CustomRole>getCustomRoleWithHttpInfo(java.lang.String customRoleKey)Get custom role Get a single custom role by key or IDintgetHostIndex()CustomRolepatchCustomRole(java.lang.String customRoleKey, PatchWithComment patchWithComment)Update custom role Update a single custom role.okhttp3.CallpatchCustomRoleAsync(java.lang.String customRoleKey, PatchWithComment patchWithComment, ApiCallback<CustomRole> _callback)Update custom role (asynchronously) Update a single custom role.okhttp3.CallpatchCustomRoleCall(java.lang.String customRoleKey, PatchWithComment patchWithComment, ApiCallback _callback)Build call for patchCustomRoleApiResponse<CustomRole>patchCustomRoleWithHttpInfo(java.lang.String customRoleKey, PatchWithComment patchWithComment)Update custom role Update a single custom role.CustomRolepostCustomRole(CustomRolePost customRolePost)Create custom role Create a new custom roleokhttp3.CallpostCustomRoleAsync(CustomRolePost customRolePost, ApiCallback<CustomRole> _callback)Create custom role (asynchronously) Create a new custom roleokhttp3.CallpostCustomRoleCall(CustomRolePost customRolePost, ApiCallback _callback)Build call for postCustomRoleApiResponse<CustomRole>postCustomRoleWithHttpInfo(CustomRolePost customRolePost)Create custom role Create a new custom rolevoidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
CustomRolesApi
public CustomRolesApi()
-
CustomRolesApi
public CustomRolesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public java.lang.String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(java.lang.String customBaseUrl)
-
deleteCustomRoleCall
public okhttp3.Call deleteCustomRoleCall(java.lang.String customRoleKey, ApiCallback _callback) throws ApiExceptionBuild call for deleteCustomRole- Parameters:
customRoleKey- The custom role key (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 customRoleKey) throws ApiExceptionDelete custom role Delete a custom role by key- Parameters:
customRoleKey- The custom role key (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 customRoleKey) throws ApiException
Delete custom role Delete a custom role by key- Parameters:
customRoleKey- The custom role key (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 customRoleKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete custom role (asynchronously) Delete a custom role by key- Parameters:
customRoleKey- The custom role key (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 customRoleKey, ApiCallback _callback) throws ApiExceptionBuild call for getCustomRole- Parameters:
customRoleKey- The custom role 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 customRoleKey) throws ApiException
Get custom role Get a single custom role by key or ID- Parameters:
customRoleKey- The custom role 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 customRoleKey) throws ApiException
Get custom role Get a single custom role by key or ID- Parameters:
customRoleKey- The custom role 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 customRoleKey, ApiCallback<CustomRole> _callback) throws ApiExceptionGet custom role (asynchronously) Get a single custom role by key or ID- Parameters:
customRoleKey- The custom role 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(java.lang.Long limit, java.lang.Long offset, ApiCallback _callback) throws ApiExceptionBuild call for getCustomRoles- Parameters:
limit- The maximum number of custom roles to return. Defaults to 20. (optional)offset- Where to start in the list. Defaults to 0. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getCustomRoles
public CustomRoles getCustomRoles(java.lang.Long limit, java.lang.Long offset) 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 sales@launchdarkly.com.- Parameters:
limit- The maximum number of custom roles to return. Defaults to 20. (optional)offset- Where to start in the list. Defaults to 0. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)- 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(java.lang.Long limit, java.lang.Long offset) 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 sales@launchdarkly.com.- Parameters:
limit- The maximum number of custom roles to return. Defaults to 20. (optional)offset- Where to start in the list. Defaults to 0. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)- 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(java.lang.Long limit, java.lang.Long offset, ApiCallback<CustomRoles> _callback) throws ApiExceptionList 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 sales@launchdarkly.com.- Parameters:
limit- The maximum number of custom roles to return. Defaults to 20. (optional)offset- Where to start in the list. Defaults to 0. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)_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 customRoleKey, PatchWithComment patchWithComment, ApiCallback _callback) throws ApiExceptionBuild call for patchCustomRole- Parameters:
customRoleKey- The custom role key (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 customRoleKey, PatchWithComment patchWithComment) throws ApiException
Update custom role Update a single custom role. Updating a custom role uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) or [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates).<br/><br/>To add an element to the `policy` array, set the `path` to `/policy` and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.- Parameters:
customRoleKey- The custom role key (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 customRoleKey, PatchWithComment patchWithComment) throws ApiException
Update custom role Update a single custom role. Updating a custom role uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) or [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates).<br/><br/>To add an element to the `policy` array, set the `path` to `/policy` and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.- Parameters:
customRoleKey- The custom role key (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 customRoleKey, PatchWithComment patchWithComment, ApiCallback<CustomRole> _callback) throws ApiExceptionUpdate custom role (asynchronously) Update a single custom role. Updating a custom role uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) or [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates).<br/><br/>To add an element to the `policy` array, set the `path` to `/policy` and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.- Parameters:
customRoleKey- The custom role key (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
-
-