Package com.launchdarkly.api.api
Class InsightsPullRequestsBetaApi
- java.lang.Object
-
- com.launchdarkly.api.api.InsightsPullRequestsBetaApi
-
public class InsightsPullRequestsBetaApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InsightsPullRequestsBetaApi()InsightsPullRequestsBetaApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()PullRequestCollectionRepgetPullRequests(java.lang.String projectKey, java.lang.String environmentKey, java.lang.String applicationKey, java.lang.String status, java.lang.String query, java.lang.Long limit, java.lang.String expand, java.lang.String sort, java.time.OffsetDateTime from, java.time.OffsetDateTime to, java.lang.String after, java.lang.String before)List pull requests Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields.okhttp3.CallgetPullRequestsAsync(java.lang.String projectKey, java.lang.String environmentKey, java.lang.String applicationKey, java.lang.String status, java.lang.String query, java.lang.Long limit, java.lang.String expand, java.lang.String sort, java.time.OffsetDateTime from, java.time.OffsetDateTime to, java.lang.String after, java.lang.String before, ApiCallback<PullRequestCollectionRep> _callback)List pull requests (asynchronously) Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields.okhttp3.CallgetPullRequestsCall(java.lang.String projectKey, java.lang.String environmentKey, java.lang.String applicationKey, java.lang.String status, java.lang.String query, java.lang.Long limit, java.lang.String expand, java.lang.String sort, java.time.OffsetDateTime from, java.time.OffsetDateTime to, java.lang.String after, java.lang.String before, ApiCallback _callback)Build call for getPullRequestsApiResponse<PullRequestCollectionRep>getPullRequestsWithHttpInfo(java.lang.String projectKey, java.lang.String environmentKey, java.lang.String applicationKey, java.lang.String status, java.lang.String query, java.lang.Long limit, java.lang.String expand, java.lang.String sort, java.time.OffsetDateTime from, java.time.OffsetDateTime to, java.lang.String after, java.lang.String before)List pull requests Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
InsightsPullRequestsBetaApi
public InsightsPullRequestsBetaApi()
-
InsightsPullRequestsBetaApi
public InsightsPullRequestsBetaApi(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)
-
getPullRequestsCall
public okhttp3.Call getPullRequestsCall(@Nonnull java.lang.String projectKey, @Nullable java.lang.String environmentKey, @Nullable java.lang.String applicationKey, @Nullable java.lang.String status, @Nullable java.lang.String query, @Nullable java.lang.Long limit, @Nullable java.lang.String expand, @Nullable java.lang.String sort, @Nullable java.time.OffsetDateTime from, @Nullable java.time.OffsetDateTime to, @Nullable java.lang.String after, @Nullable java.lang.String before, ApiCallback _callback) throws ApiExceptionBuild call for getPullRequests- Parameters:
projectKey- The project key (required)environmentKey- Required if you are using the <code>sort</code> parameter's <code>leadTime</code> option to sort pull requests. (optional)applicationKey- Filter the results to pull requests deployed to a comma separated list of applications (optional)status- Filter results to pull requests with the given status. Options: `open`, `merged`, `closed`, `deployed`. (optional)query- Filter list of pull requests by title or author (optional)limit- The number of pull requests to return. Default is 20. Maximum allowed is 100. (optional)expand- Expand properties in response. Options: `deployments`, `flagReferences`, `leadTime`. (optional)sort- Sort results. Requires the `environmentKey` to be set. Options: `leadTime` (asc) and `-leadTime` (desc). When query option is excluded, default sort is by created or merged date. (optional)from- Unix timestamp in milliseconds. Default value is 7 days ago. (optional)to- Unix timestamp in milliseconds. Default value is now. (optional)after- Identifier used for pagination (optional)before- Identifier used for pagination (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getPullRequests
public PullRequestCollectionRep getPullRequests(@Nonnull java.lang.String projectKey, @Nullable java.lang.String environmentKey, @Nullable java.lang.String applicationKey, @Nullable java.lang.String status, @Nullable java.lang.String query, @Nullable java.lang.Long limit, @Nullable java.lang.String expand, @Nullable java.lang.String sort, @Nullable java.time.OffsetDateTime from, @Nullable java.time.OffsetDateTime to, @Nullable java.lang.String after, @Nullable java.lang.String before) throws ApiException
List pull requests Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields. To expand the response, append the `expand` query parameter and include the following: * `deployments` includes details on all of the deployments associated with each pull request * `flagReferences` includes details on all of the references to flags in each pull request * `leadTime` includes details about the lead time of the pull request for each stage For example, use `?expand=deployments` to include the `deployments` field in the response. By default, this field is **not** included in the response.- Parameters:
projectKey- The project key (required)environmentKey- Required if you are using the <code>sort</code> parameter's <code>leadTime</code> option to sort pull requests. (optional)applicationKey- Filter the results to pull requests deployed to a comma separated list of applications (optional)status- Filter results to pull requests with the given status. Options: `open`, `merged`, `closed`, `deployed`. (optional)query- Filter list of pull requests by title or author (optional)limit- The number of pull requests to return. Default is 20. Maximum allowed is 100. (optional)expand- Expand properties in response. Options: `deployments`, `flagReferences`, `leadTime`. (optional)sort- Sort results. Requires the `environmentKey` to be set. Options: `leadTime` (asc) and `-leadTime` (desc). When query option is excluded, default sort is by created or merged date. (optional)from- Unix timestamp in milliseconds. Default value is 7 days ago. (optional)to- Unix timestamp in milliseconds. Default value is now. (optional)after- Identifier used for pagination (optional)before- Identifier used for pagination (optional)- Returns:
- PullRequestCollectionRep
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getPullRequestsWithHttpInfo
public ApiResponse<PullRequestCollectionRep> getPullRequestsWithHttpInfo(@Nonnull java.lang.String projectKey, @Nullable java.lang.String environmentKey, @Nullable java.lang.String applicationKey, @Nullable java.lang.String status, @Nullable java.lang.String query, @Nullable java.lang.Long limit, @Nullable java.lang.String expand, @Nullable java.lang.String sort, @Nullable java.time.OffsetDateTime from, @Nullable java.time.OffsetDateTime to, @Nullable java.lang.String after, @Nullable java.lang.String before) throws ApiException
List pull requests Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields. To expand the response, append the `expand` query parameter and include the following: * `deployments` includes details on all of the deployments associated with each pull request * `flagReferences` includes details on all of the references to flags in each pull request * `leadTime` includes details about the lead time of the pull request for each stage For example, use `?expand=deployments` to include the `deployments` field in the response. By default, this field is **not** included in the response.- Parameters:
projectKey- The project key (required)environmentKey- Required if you are using the <code>sort</code> parameter's <code>leadTime</code> option to sort pull requests. (optional)applicationKey- Filter the results to pull requests deployed to a comma separated list of applications (optional)status- Filter results to pull requests with the given status. Options: `open`, `merged`, `closed`, `deployed`. (optional)query- Filter list of pull requests by title or author (optional)limit- The number of pull requests to return. Default is 20. Maximum allowed is 100. (optional)expand- Expand properties in response. Options: `deployments`, `flagReferences`, `leadTime`. (optional)sort- Sort results. Requires the `environmentKey` to be set. Options: `leadTime` (asc) and `-leadTime` (desc). When query option is excluded, default sort is by created or merged date. (optional)from- Unix timestamp in milliseconds. Default value is 7 days ago. (optional)to- Unix timestamp in milliseconds. Default value is now. (optional)after- Identifier used for pagination (optional)before- Identifier used for pagination (optional)- Returns:
- ApiResponse<PullRequestCollectionRep>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getPullRequestsAsync
public okhttp3.Call getPullRequestsAsync(@Nonnull java.lang.String projectKey, @Nullable java.lang.String environmentKey, @Nullable java.lang.String applicationKey, @Nullable java.lang.String status, @Nullable java.lang.String query, @Nullable java.lang.Long limit, @Nullable java.lang.String expand, @Nullable java.lang.String sort, @Nullable java.time.OffsetDateTime from, @Nullable java.time.OffsetDateTime to, @Nullable java.lang.String after, @Nullable java.lang.String before, ApiCallback<PullRequestCollectionRep> _callback) throws ApiExceptionList pull requests (asynchronously) Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields. To expand the response, append the `expand` query parameter and include the following: * `deployments` includes details on all of the deployments associated with each pull request * `flagReferences` includes details on all of the references to flags in each pull request * `leadTime` includes details about the lead time of the pull request for each stage For example, use `?expand=deployments` to include the `deployments` field in the response. By default, this field is **not** included in the response.- Parameters:
projectKey- The project key (required)environmentKey- Required if you are using the <code>sort</code> parameter's <code>leadTime</code> option to sort pull requests. (optional)applicationKey- Filter the results to pull requests deployed to a comma separated list of applications (optional)status- Filter results to pull requests with the given status. Options: `open`, `merged`, `closed`, `deployed`. (optional)query- Filter list of pull requests by title or author (optional)limit- The number of pull requests to return. Default is 20. Maximum allowed is 100. (optional)expand- Expand properties in response. Options: `deployments`, `flagReferences`, `leadTime`. (optional)sort- Sort results. Requires the `environmentKey` to be set. Options: `leadTime` (asc) and `-leadTime` (desc). When query option is excluded, default sort is by created or merged date. (optional)from- Unix timestamp in milliseconds. Default value is 7 days ago. (optional)to- Unix timestamp in milliseconds. Default value is now. (optional)after- Identifier used for pagination (optional)before- Identifier used for pagination (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
-
-