Class ReleasePoliciesBetaApi


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

      • ReleasePoliciesBetaApi

        public ReleasePoliciesBetaApi()
      • ReleasePoliciesBetaApi

        public ReleasePoliciesBetaApi​(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)
      • deleteReleasePolicyCall

        public okhttp3.Call deleteReleasePolicyCall​(@Nonnull
                                                    java.lang.String ldAPIVersion,
                                                    @Nonnull
                                                    java.lang.String projectKey,
                                                    @Nonnull
                                                    java.lang.String policyKey,
                                                    ApiCallback _callback)
                                             throws ApiException
        Build call for deleteReleasePolicy
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteReleasePolicy

        public void deleteReleasePolicy​(@Nonnull
                                        java.lang.String ldAPIVersion,
                                        @Nonnull
                                        java.lang.String projectKey,
                                        @Nonnull
                                        java.lang.String policyKey)
                                 throws ApiException
        Delete a release policy Delete an existing release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteReleasePolicyWithHttpInfo

        public ApiResponse<java.lang.Void> deleteReleasePolicyWithHttpInfo​(@Nonnull
                                                                           java.lang.String ldAPIVersion,
                                                                           @Nonnull
                                                                           java.lang.String projectKey,
                                                                           @Nonnull
                                                                           java.lang.String policyKey)
                                                                    throws ApiException
        Delete a release policy Delete an existing release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteReleasePolicyAsync

        public okhttp3.Call deleteReleasePolicyAsync​(@Nonnull
                                                     java.lang.String ldAPIVersion,
                                                     @Nonnull
                                                     java.lang.String projectKey,
                                                     @Nonnull
                                                     java.lang.String policyKey,
                                                     ApiCallback<java.lang.Void> _callback)
                                              throws ApiException
        Delete a release policy (asynchronously) Delete an existing release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (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
      • getReleasePoliciesCall

        public okhttp3.Call getReleasePoliciesCall​(@Nonnull
                                                   java.lang.String ldAPIVersion,
                                                   @Nonnull
                                                   java.lang.String projectKey,
                                                   @Nullable
                                                   java.lang.Boolean excludeDefault,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getReleasePolicies
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        excludeDefault - When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getReleasePolicies

        public ReleasePoliciesResponse getReleasePolicies​(@Nonnull
                                                          java.lang.String ldAPIVersion,
                                                          @Nonnull
                                                          java.lang.String projectKey,
                                                          @Nullable
                                                          java.lang.Boolean excludeDefault)
                                                   throws ApiException
        List release policies Get a list of release policies for the specified project with optional filtering.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        excludeDefault - When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)
        Returns:
        ReleasePoliciesResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getReleasePoliciesWithHttpInfo

        public ApiResponse<ReleasePoliciesResponse> getReleasePoliciesWithHttpInfo​(@Nonnull
                                                                                   java.lang.String ldAPIVersion,
                                                                                   @Nonnull
                                                                                   java.lang.String projectKey,
                                                                                   @Nullable
                                                                                   java.lang.Boolean excludeDefault)
                                                                            throws ApiException
        List release policies Get a list of release policies for the specified project with optional filtering.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        excludeDefault - When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)
        Returns:
        ApiResponse<ReleasePoliciesResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getReleasePoliciesAsync

        public okhttp3.Call getReleasePoliciesAsync​(@Nonnull
                                                    java.lang.String ldAPIVersion,
                                                    @Nonnull
                                                    java.lang.String projectKey,
                                                    @Nullable
                                                    java.lang.Boolean excludeDefault,
                                                    ApiCallback<ReleasePoliciesResponse> _callback)
                                             throws ApiException
        List release policies (asynchronously) Get a list of release policies for the specified project with optional filtering.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        excludeDefault - When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)
        _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
      • getReleasePolicyCall

        public okhttp3.Call getReleasePolicyCall​(@Nonnull
                                                 java.lang.String ldAPIVersion,
                                                 @Nonnull
                                                 java.lang.String projectKey,
                                                 @Nonnull
                                                 java.lang.String policyKey,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for getReleasePolicy
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The release policy key (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getReleasePolicy

        public ReleasePolicy getReleasePolicy​(@Nonnull
                                              java.lang.String ldAPIVersion,
                                              @Nonnull
                                              java.lang.String projectKey,
                                              @Nonnull
                                              java.lang.String policyKey)
                                       throws ApiException
        Get a release policy by key Retrieve a single release policy by its key for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The release policy key (required)
        Returns:
        ReleasePolicy
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getReleasePolicyWithHttpInfo

        public ApiResponse<ReleasePolicy> getReleasePolicyWithHttpInfo​(@Nonnull
                                                                       java.lang.String ldAPIVersion,
                                                                       @Nonnull
                                                                       java.lang.String projectKey,
                                                                       @Nonnull
                                                                       java.lang.String policyKey)
                                                                throws ApiException
        Get a release policy by key Retrieve a single release policy by its key for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The release policy key (required)
        Returns:
        ApiResponse<ReleasePolicy>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getReleasePolicyAsync

        public okhttp3.Call getReleasePolicyAsync​(@Nonnull
                                                  java.lang.String ldAPIVersion,
                                                  @Nonnull
                                                  java.lang.String projectKey,
                                                  @Nonnull
                                                  java.lang.String policyKey,
                                                  ApiCallback<ReleasePolicy> _callback)
                                           throws ApiException
        Get a release policy by key (asynchronously) Retrieve a single release policy by its key for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The release policy 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
      • postReleasePoliciesOrderCall

        public okhttp3.Call postReleasePoliciesOrderCall​(@Nonnull
                                                         java.lang.String ldAPIVersion,
                                                         @Nonnull
                                                         java.lang.String projectKey,
                                                         @Nonnull
                                                         java.util.List<java.lang.String> requestBody,
                                                         ApiCallback _callback)
                                                  throws ApiException
        Build call for postReleasePoliciesOrder
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        requestBody - Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postReleasePoliciesOrder

        public java.util.List<ReleasePolicy> postReleasePoliciesOrder​(@Nonnull
                                                                      java.lang.String ldAPIVersion,
                                                                      @Nonnull
                                                                      java.lang.String projectKey,
                                                                      @Nonnull
                                                                      java.util.List<java.lang.String> requestBody)
                                                               throws ApiException
        Update the order of existing release policies Update the order of existing release policies for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        requestBody - Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (required)
        Returns:
        List<ReleasePolicy>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postReleasePoliciesOrderWithHttpInfo

        public ApiResponse<java.util.List<ReleasePolicy>> postReleasePoliciesOrderWithHttpInfo​(@Nonnull
                                                                                               java.lang.String ldAPIVersion,
                                                                                               @Nonnull
                                                                                               java.lang.String projectKey,
                                                                                               @Nonnull
                                                                                               java.util.List<java.lang.String> requestBody)
                                                                                        throws ApiException
        Update the order of existing release policies Update the order of existing release policies for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        requestBody - Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (required)
        Returns:
        ApiResponse<List<ReleasePolicy>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postReleasePoliciesOrderAsync

        public okhttp3.Call postReleasePoliciesOrderAsync​(@Nonnull
                                                          java.lang.String ldAPIVersion,
                                                          @Nonnull
                                                          java.lang.String projectKey,
                                                          @Nonnull
                                                          java.util.List<java.lang.String> requestBody,
                                                          ApiCallback<java.util.List<ReleasePolicy>> _callback)
                                                   throws ApiException
        Update the order of existing release policies (asynchronously) Update the order of existing release policies for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        requestBody - Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (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
      • postReleasePolicyCall

        public okhttp3.Call postReleasePolicyCall​(@Nonnull
                                                  java.lang.String ldAPIVersion,
                                                  @Nonnull
                                                  java.lang.String projectKey,
                                                  @Nonnull
                                                  PostReleasePolicyRequest postReleasePolicyRequest,
                                                  ApiCallback _callback)
                                           throws ApiException
        Build call for postReleasePolicy
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        postReleasePolicyRequest - Release policy to create (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postReleasePolicy

        public ReleasePolicy postReleasePolicy​(@Nonnull
                                               java.lang.String ldAPIVersion,
                                               @Nonnull
                                               java.lang.String projectKey,
                                               @Nonnull
                                               PostReleasePolicyRequest postReleasePolicyRequest)
                                        throws ApiException
        Create a release policy Create a new release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        postReleasePolicyRequest - Release policy to create (required)
        Returns:
        ReleasePolicy
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postReleasePolicyWithHttpInfo

        public ApiResponse<ReleasePolicy> postReleasePolicyWithHttpInfo​(@Nonnull
                                                                        java.lang.String ldAPIVersion,
                                                                        @Nonnull
                                                                        java.lang.String projectKey,
                                                                        @Nonnull
                                                                        PostReleasePolicyRequest postReleasePolicyRequest)
                                                                 throws ApiException
        Create a release policy Create a new release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        postReleasePolicyRequest - Release policy to create (required)
        Returns:
        ApiResponse<ReleasePolicy>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postReleasePolicyAsync

        public okhttp3.Call postReleasePolicyAsync​(@Nonnull
                                                   java.lang.String ldAPIVersion,
                                                   @Nonnull
                                                   java.lang.String projectKey,
                                                   @Nonnull
                                                   PostReleasePolicyRequest postReleasePolicyRequest,
                                                   ApiCallback<ReleasePolicy> _callback)
                                            throws ApiException
        Create a release policy (asynchronously) Create a new release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        postReleasePolicyRequest - Release policy 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
      • putReleasePolicyCall

        public okhttp3.Call putReleasePolicyCall​(@Nonnull
                                                 java.lang.String ldAPIVersion,
                                                 @Nonnull
                                                 java.lang.String projectKey,
                                                 @Nonnull
                                                 java.lang.String policyKey,
                                                 @Nonnull
                                                 PutReleasePolicyRequest putReleasePolicyRequest,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for putReleasePolicy
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        putReleasePolicyRequest - Release policy data to update (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • putReleasePolicy

        public ReleasePolicy putReleasePolicy​(@Nonnull
                                              java.lang.String ldAPIVersion,
                                              @Nonnull
                                              java.lang.String projectKey,
                                              @Nonnull
                                              java.lang.String policyKey,
                                              @Nonnull
                                              PutReleasePolicyRequest putReleasePolicyRequest)
                                       throws ApiException
        Update a release policy Update an existing release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        putReleasePolicyRequest - Release policy data to update (required)
        Returns:
        ReleasePolicy
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • putReleasePolicyWithHttpInfo

        public ApiResponse<ReleasePolicy> putReleasePolicyWithHttpInfo​(@Nonnull
                                                                       java.lang.String ldAPIVersion,
                                                                       @Nonnull
                                                                       java.lang.String projectKey,
                                                                       @Nonnull
                                                                       java.lang.String policyKey,
                                                                       @Nonnull
                                                                       PutReleasePolicyRequest putReleasePolicyRequest)
                                                                throws ApiException
        Update a release policy Update an existing release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        putReleasePolicyRequest - Release policy data to update (required)
        Returns:
        ApiResponse<ReleasePolicy>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • putReleasePolicyAsync

        public okhttp3.Call putReleasePolicyAsync​(@Nonnull
                                                  java.lang.String ldAPIVersion,
                                                  @Nonnull
                                                  java.lang.String projectKey,
                                                  @Nonnull
                                                  java.lang.String policyKey,
                                                  @Nonnull
                                                  PutReleasePolicyRequest putReleasePolicyRequest,
                                                  ApiCallback<ReleasePolicy> _callback)
                                           throws ApiException
        Update a release policy (asynchronously) Update an existing release policy for the specified project.
        Parameters:
        ldAPIVersion - Version of the endpoint. (required)
        projectKey - The project key (required)
        policyKey - The human-readable key of the release policy (required)
        putReleasePolicyRequest - Release policy data 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