Package com.launchdarkly.api.api
Class ViewsBetaApi
- java.lang.Object
-
- com.launchdarkly.api.api.ViewsBetaApi
-
public class ViewsBetaApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ViewsBetaApi()ViewsBetaApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewcreateView(java.lang.String ldAPIVersion, java.lang.String projectKey, ViewPost viewPost)Create view Create a new view in the given project.okhttp3.CallcreateViewAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, ViewPost viewPost, ApiCallback<View> _callback)Create view (asynchronously) Create a new view in the given project.okhttp3.CallcreateViewCall(java.lang.String ldAPIVersion, java.lang.String projectKey, ViewPost viewPost, ApiCallback _callback)Build call for createViewApiResponse<View>createViewWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, ViewPost viewPost)Create view Create a new view in the given project.voiddeleteView(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey)Delete view Delete a specific view by its key.okhttp3.CalldeleteViewAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, ApiCallback<java.lang.Void> _callback)Delete view (asynchronously) Delete a specific view by its key.okhttp3.CalldeleteViewCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, ApiCallback _callback)Build call for deleteViewApiResponse<java.lang.Void>deleteViewWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey)Delete view Delete a specific view by its key.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()ViewLinkedResourcesgetLinkedResources(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, java.lang.Integer limit, java.lang.Integer offset, java.lang.String sort, java.lang.String query, java.lang.String filter, java.util.List<java.lang.String> expand)Get linked resources Get a list of all linked resources for a given view.okhttp3.CallgetLinkedResourcesAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, java.lang.Integer limit, java.lang.Integer offset, java.lang.String sort, java.lang.String query, java.lang.String filter, java.util.List<java.lang.String> expand, ApiCallback<ViewLinkedResources> _callback)Get linked resources (asynchronously) Get a list of all linked resources for a given view.okhttp3.CallgetLinkedResourcesCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, java.lang.Integer limit, java.lang.Integer offset, java.lang.String sort, java.lang.String query, java.lang.String filter, java.util.List<java.lang.String> expand, ApiCallback _callback)Build call for getLinkedResourcesApiResponse<ViewLinkedResources>getLinkedResourcesWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, java.lang.Integer limit, java.lang.Integer offset, java.lang.String sort, java.lang.String query, java.lang.String filter, java.util.List<java.lang.String> expand)Get linked resources Get a list of all linked resources for a given view.ViewsgetLinkedViews(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String resourceType, java.lang.String resourceKey, java.lang.String environmentId, java.lang.Integer limit, java.lang.Integer offset)Get linked views for a given resource Get a list of all linked views for a resource.okhttp3.CallgetLinkedViewsAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String resourceType, java.lang.String resourceKey, java.lang.String environmentId, java.lang.Integer limit, java.lang.Integer offset, ApiCallback<Views> _callback)Get linked views for a given resource (asynchronously) Get a list of all linked views for a resource.okhttp3.CallgetLinkedViewsCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String resourceType, java.lang.String resourceKey, java.lang.String environmentId, java.lang.Integer limit, java.lang.Integer offset, ApiCallback _callback)Build call for getLinkedViewsApiResponse<Views>getLinkedViewsWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String resourceType, java.lang.String resourceKey, java.lang.String environmentId, java.lang.Integer limit, java.lang.Integer offset)Get linked views for a given resource Get a list of all linked views for a resource.ViewgetView(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand)Get view Retrieve a specific view by its key.okhttp3.CallgetViewAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand, ApiCallback<View> _callback)Get view (asynchronously) Retrieve a specific view by its key.okhttp3.CallgetViewCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand, ApiCallback _callback)Build call for getViewViewsgetViews(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand)List views Get a list of all views in the given project.okhttp3.CallgetViewsAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand, ApiCallback<Views> _callback)List views (asynchronously) Get a list of all views in the given project.okhttp3.CallgetViewsCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand, ApiCallback _callback)Build call for getViewsApiResponse<Views>getViewsWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand)List views Get a list of all views in the given project.ApiResponse<View>getViewWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.String filter, java.util.List<java.lang.String> expand)Get view Retrieve a specific view by its key.LinkResourceSuccessResponselinkResource(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest)Link resource Link one or multiple resources to a view by keys, filters, or both: - Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query) - Link segments using segment IDs or filters (tags, query, unbounded) When both keys and filters are provided, resources matching either condition are linked (union).okhttp3.CalllinkResourceAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest, ApiCallback<LinkResourceSuccessResponse> _callback)Link resource (asynchronously) Link one or multiple resources to a view by keys, filters, or both: - Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query) - Link segments using segment IDs or filters (tags, query, unbounded) When both keys and filters are provided, resources matching either condition are linked (union).okhttp3.CalllinkResourceCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest, ApiCallback _callback)Build call for linkResourceApiResponse<LinkResourceSuccessResponse>linkResourceWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest)Link resource Link one or multiple resources to a view by keys, filters, or both: - Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query) - Link segments using segment IDs or filters (tags, query, unbounded) When both keys and filters are provided, resources matching either condition are linked (union).voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)UnlinkResourceSuccessResponseunlinkResource(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest)Unlink resource Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDsokhttp3.CallunlinkResourceAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest, ApiCallback<UnlinkResourceSuccessResponse> _callback)Unlink resource (asynchronously) Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDsokhttp3.CallunlinkResourceCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest, ApiCallback _callback)Build call for unlinkResourceApiResponse<UnlinkResourceSuccessResponse>unlinkResourceWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, java.lang.String resourceType, ViewLinkRequest viewLinkRequest)Unlink resource Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDsViewupdateView(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, ViewPatch viewPatch)Update view Edit an existing view.okhttp3.CallupdateViewAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, ViewPatch viewPatch, ApiCallback<View> _callback)Update view (asynchronously) Edit an existing view.okhttp3.CallupdateViewCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, ViewPatch viewPatch, ApiCallback _callback)Build call for updateViewApiResponse<View>updateViewWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String viewKey, ViewPatch viewPatch)Update view Edit an existing view.
-
-
-
Constructor Detail
-
ViewsBetaApi
public ViewsBetaApi()
-
ViewsBetaApi
public ViewsBetaApi(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)
-
createViewCall
public okhttp3.Call createViewCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull ViewPost viewPost, ApiCallback _callback) throws ApiExceptionBuild call for createView- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewPost- View object to create (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createView
public View createView(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull ViewPost viewPost) throws ApiException
Create view Create a new view in the given project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewPost- View object to create (required)- Returns:
- View
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createViewWithHttpInfo
public ApiResponse<View> createViewWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull ViewPost viewPost) throws ApiException
Create view Create a new view in the given project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewPost- View object to create (required)- Returns:
- ApiResponse<View>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createViewAsync
public okhttp3.Call createViewAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull ViewPost viewPost, ApiCallback<View> _callback) throws ApiExceptionCreate view (asynchronously) Create a new view in the given project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewPost- View object to create (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
-
deleteViewCall
public okhttp3.Call deleteViewCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, ApiCallback _callback) throws ApiExceptionBuild call for deleteView- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteView
public void deleteView(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey) throws ApiExceptionDelete view Delete a specific view by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteViewWithHttpInfo
public ApiResponse<java.lang.Void> deleteViewWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey) throws ApiException
Delete view Delete a specific view by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteViewAsync
public okhttp3.Call deleteViewAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete view (asynchronously) Delete a specific view by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (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
-
getLinkedResourcesCall
public okhttp3.Call getLinkedResourcesCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String sort, @Nullable java.lang.String query, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand, ApiCallback _callback) throws ApiExceptionBuild call for getLinkedResources- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)limit- The number of views to return. (optional)offset- Where to start in the list. 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)sort- Field to sort by. Default field is `linkedAt`, default order is ascending. (optional, default to linkedAt)query- Case-insensitive search query for linked resources. Matches resource key and, when expanded, resource name. (optional)filter- Optional resource filter expression for linked resources. - Supported for `flags` and `segments` resource types. - Uses the same syntax as link/unlink and list endpoints. - For `segments`, `environmentId` is required when `filter` is provided. (optional)expand- A comma-separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getLinkedResources
public ViewLinkedResources getLinkedResources(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String sort, @Nullable java.lang.String query, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand) throws ApiException
Get linked resources Get a list of all linked resources for a given view.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)limit- The number of views to return. (optional)offset- Where to start in the list. 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)sort- Field to sort by. Default field is `linkedAt`, default order is ascending. (optional, default to linkedAt)query- Case-insensitive search query for linked resources. Matches resource key and, when expanded, resource name. (optional)filter- Optional resource filter expression for linked resources. - Supported for `flags` and `segments` resource types. - Uses the same syntax as link/unlink and list endpoints. - For `segments`, `environmentId` is required when `filter` is provided. (optional)expand- A comma-separated list of fields to expand. (optional)- Returns:
- ViewLinkedResources
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getLinkedResourcesWithHttpInfo
public ApiResponse<ViewLinkedResources> getLinkedResourcesWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String sort, @Nullable java.lang.String query, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand) throws ApiException
Get linked resources Get a list of all linked resources for a given view.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)limit- The number of views to return. (optional)offset- Where to start in the list. 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)sort- Field to sort by. Default field is `linkedAt`, default order is ascending. (optional, default to linkedAt)query- Case-insensitive search query for linked resources. Matches resource key and, when expanded, resource name. (optional)filter- Optional resource filter expression for linked resources. - Supported for `flags` and `segments` resource types. - Uses the same syntax as link/unlink and list endpoints. - For `segments`, `environmentId` is required when `filter` is provided. (optional)expand- A comma-separated list of fields to expand. (optional)- Returns:
- ApiResponse<ViewLinkedResources>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getLinkedResourcesAsync
public okhttp3.Call getLinkedResourcesAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String sort, @Nullable java.lang.String query, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand, ApiCallback<ViewLinkedResources> _callback) throws ApiExceptionGet linked resources (asynchronously) Get a list of all linked resources for a given view.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)limit- The number of views to return. (optional)offset- Where to start in the list. 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)sort- Field to sort by. Default field is `linkedAt`, default order is ascending. (optional, default to linkedAt)query- Case-insensitive search query for linked resources. Matches resource key and, when expanded, resource name. (optional)filter- Optional resource filter expression for linked resources. - Supported for `flags` and `segments` resource types. - Uses the same syntax as link/unlink and list endpoints. - For `segments`, `environmentId` is required when `filter` is provided. (optional)expand- A comma-separated list of fields to expand. (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
-
getLinkedViewsCall
public okhttp3.Call getLinkedViewsCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String resourceType, @Nonnull java.lang.String resourceKey, @Nullable java.lang.String environmentId, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback _callback) throws ApiExceptionBuild call for getLinkedViews- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)resourceType- (required)resourceKey- (required)environmentId- Environment ID. Required when resourceType is 'segments' (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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
-
getLinkedViews
public Views getLinkedViews(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String resourceType, @Nonnull java.lang.String resourceKey, @Nullable java.lang.String environmentId, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
Get linked views for a given resource Get a list of all linked views for a resource. Flags are identified by key. Segments are identified by segment ID.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)resourceType- (required)resourceKey- (required)environmentId- Environment ID. Required when resourceType is 'segments' (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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:
- Views
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getLinkedViewsWithHttpInfo
public ApiResponse<Views> getLinkedViewsWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String resourceType, @Nonnull java.lang.String resourceKey, @Nullable java.lang.String environmentId, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset) throws ApiException
Get linked views for a given resource Get a list of all linked views for a resource. Flags are identified by key. Segments are identified by segment ID.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)resourceType- (required)resourceKey- (required)environmentId- Environment ID. Required when resourceType is 'segments' (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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<Views>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getLinkedViewsAsync
public okhttp3.Call getLinkedViewsAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String resourceType, @Nonnull java.lang.String resourceKey, @Nullable java.lang.String environmentId, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, ApiCallback<Views> _callback) throws ApiExceptionGet linked views for a given resource (asynchronously) Get a list of all linked views for a resource. Flags are identified by key. Segments are identified by segment ID.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)resourceType- (required)resourceKey- (required)environmentId- Environment ID. Required when resourceType is 'segments' (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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
-
getViewCall
public okhttp3.Call getViewCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand, ApiCallback _callback) throws ApiExceptionBuild call for getView- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getView
public View getView(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand) throws ApiException
Get view Retrieve a specific view by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (optional)- Returns:
- View
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getViewWithHttpInfo
public ApiResponse<View> getViewWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand) throws ApiException
Get view Retrieve a specific view by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (optional)- Returns:
- ApiResponse<View>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getViewAsync
public okhttp3.Call getViewAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand, ApiCallback<View> _callback) throws ApiExceptionGet view (asynchronously) Retrieve a specific view by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (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
-
getViewsCall
public okhttp3.Call getViewsCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand, ApiCallback _callback) throws ApiExceptionBuild call for getViews- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getViews
public Views getViews(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand) throws ApiException
List views Get a list of all views in the given project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (optional)- Returns:
- Views
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getViewsWithHttpInfo
public ApiResponse<Views> getViewsWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand) throws ApiException
List views Get a list of all views in the given project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (optional)- Returns:
- ApiResponse<Views>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getViewsAsync
public okhttp3.Call getViewsAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.String sort, @Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset, @Nullable java.lang.String filter, @Nullable java.util.List<java.lang.String> expand, ApiCallback<Views> _callback) throws ApiExceptionList views (asynchronously) Get a list of all views in the given project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)sort- A sort to apply to the list of views. (optional)limit- The number of views to return. (optional)offset- Where to start in the list. 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)filter- A filter to apply to the list of views. Supports the following fields and operators: `name` (equals, notEquals, startsWith, contains, anyOf), `key` (equals, notEquals, startsWith, contains, anyOf), `tag` (equals, anyOf), `maintainerId` (equals, anyOf), `isPayloadView` (equals). (optional)expand- A comma-separated list of fields to expand. (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
-
linkResourceCall
public okhttp3.Call linkResourceCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest, ApiCallback _callback) throws ApiExceptionBuild call for linkResource- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- Resources to link to the view. You can provide explicit keys/IDs, filters, or both. - Flags: identified by key or filtered by maintainerId, maintainerTeamKey, tags, state, query - Segments: identified by segment ID or filtered by tags, query, unbounded (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
linkResource
public LinkResourceSuccessResponse linkResource(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest) throws ApiException
Link resource Link one or multiple resources to a view by keys, filters, or both: - Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query) - Link segments using segment IDs or filters (tags, query, unbounded) When both keys and filters are provided, resources matching either condition are linked (union).- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- Resources to link to the view. You can provide explicit keys/IDs, filters, or both. - Flags: identified by key or filtered by maintainerId, maintainerTeamKey, tags, state, query - Segments: identified by segment ID or filtered by tags, query, unbounded (required)- Returns:
- LinkResourceSuccessResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
linkResourceWithHttpInfo
public ApiResponse<LinkResourceSuccessResponse> linkResourceWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest) throws ApiException
Link resource Link one or multiple resources to a view by keys, filters, or both: - Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query) - Link segments using segment IDs or filters (tags, query, unbounded) When both keys and filters are provided, resources matching either condition are linked (union).- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- Resources to link to the view. You can provide explicit keys/IDs, filters, or both. - Flags: identified by key or filtered by maintainerId, maintainerTeamKey, tags, state, query - Segments: identified by segment ID or filtered by tags, query, unbounded (required)- Returns:
- ApiResponse<LinkResourceSuccessResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
linkResourceAsync
public okhttp3.Call linkResourceAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest, ApiCallback<LinkResourceSuccessResponse> _callback) throws ApiExceptionLink resource (asynchronously) Link one or multiple resources to a view by keys, filters, or both: - Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query) - Link segments using segment IDs or filters (tags, query, unbounded) When both keys and filters are provided, resources matching either condition are linked (union).- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- Resources to link to the view. You can provide explicit keys/IDs, filters, or both. - Flags: identified by key or filtered by maintainerId, maintainerTeamKey, tags, state, query - Segments: identified by segment ID or filtered by tags, query, unbounded (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
-
unlinkResourceCall
public okhttp3.Call unlinkResourceCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest, ApiCallback _callback) throws ApiExceptionBuild call for unlinkResource- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- The resource to link to the view. Flags are identified by key. Segments are identified by segment ID. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
unlinkResource
public UnlinkResourceSuccessResponse unlinkResource(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest) throws ApiException
Unlink resource Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDs- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- The resource to link to the view. Flags are identified by key. Segments are identified by segment ID. (required)- Returns:
- UnlinkResourceSuccessResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
unlinkResourceWithHttpInfo
public ApiResponse<UnlinkResourceSuccessResponse> unlinkResourceWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest) throws ApiException
Unlink resource Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDs- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- The resource to link to the view. Flags are identified by key. Segments are identified by segment ID. (required)- Returns:
- ApiResponse<UnlinkResourceSuccessResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
unlinkResourceAsync
public okhttp3.Call unlinkResourceAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull java.lang.String resourceType, @Nonnull ViewLinkRequest viewLinkRequest, ApiCallback<UnlinkResourceSuccessResponse> _callback) throws ApiExceptionUnlink resource (asynchronously) Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDs- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)resourceType- (required)viewLinkRequest- The resource to link to the view. Flags are identified by key. Segments are identified by segment 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
-
updateViewCall
public okhttp3.Call updateViewCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull ViewPatch viewPatch, ApiCallback _callback) throws ApiExceptionBuild call for updateView- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)viewPatch- A JSON representation of the view including only the fields to update. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
updateView
public View updateView(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull ViewPatch viewPatch) throws ApiException
Update view Edit an existing view. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"description\": \"Example updated description\", \"tags\": [\"new-tag\"] } ```- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)viewPatch- A JSON representation of the view including only the fields to update. (required)- Returns:
- View
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateViewWithHttpInfo
public ApiResponse<View> updateViewWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull ViewPatch viewPatch) throws ApiException
Update view Edit an existing view. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"description\": \"Example updated description\", \"tags\": [\"new-tag\"] } ```- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)viewPatch- A JSON representation of the view including only the fields to update. (required)- Returns:
- ApiResponse<View>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateViewAsync
public okhttp3.Call updateViewAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String viewKey, @Nonnull ViewPatch viewPatch, ApiCallback<View> _callback) throws ApiExceptionUpdate view (asynchronously) Edit an existing view. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. Here's an example: ``` { \"description\": \"Example updated description\", \"tags\": [\"new-tag\"] } ```- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)viewKey- (required)viewPatch- A JSON representation of the view including only the fields to update. (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
-
-