|
24 | 24 | import com.segment.publicapi.models.CreateSourceRegulationV1Input; |
25 | 25 | import com.segment.publicapi.models.CreateWorkspaceRegulation200Response; |
26 | 26 | import com.segment.publicapi.models.CreateWorkspaceRegulationV1Input; |
27 | | -import com.segment.publicapi.models.DeleteRegulation200Response; |
28 | 27 | import com.segment.publicapi.models.GetRegulation200Response; |
29 | 28 | import com.segment.publicapi.models.ListRegulationsFromSource200Response; |
30 | 29 | import com.segment.publicapi.models.ListSuppressions200Response; |
@@ -739,195 +738,6 @@ public okhttp3.Call createWorkspaceRegulationAsync( |
739 | 738 | return localVarCall; |
740 | 739 | } |
741 | 740 |
|
742 | | - /** |
743 | | - * Build call for deleteRegulation |
744 | | - * |
745 | | - * @param regulateId (required) |
746 | | - * @param _callback Callback for upload/download progress |
747 | | - * @return Call to execute |
748 | | - * @throws ApiException If fail to serialize the request body object |
749 | | - * @http.response.details |
750 | | - * <table summary="Response Details" border="1"> |
751 | | - * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
752 | | - * <tr><td> 200 </td><td> OK </td><td> - </td></tr> |
753 | | - * <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr> |
754 | | - * <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr> |
755 | | - * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr> |
756 | | - * </table> |
757 | | - * |
758 | | - * @deprecated |
759 | | - */ |
760 | | - @Deprecated |
761 | | - public okhttp3.Call deleteRegulationCall(String regulateId, final ApiCallback _callback) |
762 | | - throws ApiException { |
763 | | - String basePath = null; |
764 | | - // Operation Servers |
765 | | - String[] localBasePaths = new String[] {}; |
766 | | - |
767 | | - // Determine Base Path to Use |
768 | | - if (localCustomBaseUrl != null) { |
769 | | - basePath = localCustomBaseUrl; |
770 | | - } else if (localBasePaths.length > 0) { |
771 | | - basePath = localBasePaths[localHostIndex]; |
772 | | - } else { |
773 | | - basePath = null; |
774 | | - } |
775 | | - |
776 | | - Object localVarPostBody = null; |
777 | | - |
778 | | - // create path and map variables |
779 | | - String localVarPath = |
780 | | - "/regulations/{regulateId}" |
781 | | - .replace( |
782 | | - "{" + "regulateId" + "}", |
783 | | - localVarApiClient.escapeString(regulateId.toString())); |
784 | | - |
785 | | - List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
786 | | - List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); |
787 | | - Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
788 | | - Map<String, String> localVarCookieParams = new HashMap<String, String>(); |
789 | | - Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
790 | | - |
791 | | - final String[] localVarAccepts = { |
792 | | - "application/vnd.segment.v1+json", |
793 | | - "application/json", |
794 | | - "application/vnd.segment.v1beta+json", |
795 | | - "application/vnd.segment.v1alpha+json" |
796 | | - }; |
797 | | - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
798 | | - if (localVarAccept != null) { |
799 | | - localVarHeaderParams.put("Accept", localVarAccept); |
800 | | - } |
801 | | - |
802 | | - final String[] localVarContentTypes = {}; |
803 | | - final String localVarContentType = |
804 | | - localVarApiClient.selectHeaderContentType(localVarContentTypes); |
805 | | - if (localVarContentType != null) { |
806 | | - localVarHeaderParams.put("Content-Type", localVarContentType); |
807 | | - } |
808 | | - |
809 | | - String[] localVarAuthNames = new String[] {"token"}; |
810 | | - return localVarApiClient.buildCall( |
811 | | - basePath, |
812 | | - localVarPath, |
813 | | - "DELETE", |
814 | | - localVarQueryParams, |
815 | | - localVarCollectionQueryParams, |
816 | | - localVarPostBody, |
817 | | - localVarHeaderParams, |
818 | | - localVarCookieParams, |
819 | | - localVarFormParams, |
820 | | - localVarAuthNames, |
821 | | - _callback); |
822 | | - } |
823 | | - |
824 | | - @Deprecated |
825 | | - @SuppressWarnings("rawtypes") |
826 | | - private okhttp3.Call deleteRegulationValidateBeforeCall( |
827 | | - String regulateId, final ApiCallback _callback) throws ApiException { |
828 | | - // verify the required parameter 'regulateId' is set |
829 | | - if (regulateId == null) { |
830 | | - throw new ApiException( |
831 | | - "Missing the required parameter 'regulateId' when calling" |
832 | | - + " deleteRegulation(Async)"); |
833 | | - } |
834 | | - |
835 | | - return deleteRegulationCall(regulateId, _callback); |
836 | | - } |
837 | | - |
838 | | - /** |
839 | | - * Delete Regulation Deletes a regulation from the Workspace. The regulation must be in the |
840 | | - * initialized state to be deleted. • When called, this endpoint may generate the |
841 | | - * `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: |
842 | | - * this endpoint has been deprecated according to the guidelines, and may experience reduced SLA |
843 | | - * guarantees. |
844 | | - * |
845 | | - * @param regulateId (required) |
846 | | - * @return DeleteRegulation200Response |
847 | | - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the |
848 | | - * response body |
849 | | - * @http.response.details |
850 | | - * <table summary="Response Details" border="1"> |
851 | | - * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
852 | | - * <tr><td> 200 </td><td> OK </td><td> - </td></tr> |
853 | | - * <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr> |
854 | | - * <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr> |
855 | | - * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr> |
856 | | - * </table> |
857 | | - * |
858 | | - * @deprecated |
859 | | - */ |
860 | | - @Deprecated |
861 | | - public DeleteRegulation200Response deleteRegulation(String regulateId) throws ApiException { |
862 | | - ApiResponse<DeleteRegulation200Response> localVarResp = |
863 | | - deleteRegulationWithHttpInfo(regulateId); |
864 | | - return localVarResp.getData(); |
865 | | - } |
866 | | - |
867 | | - /** |
868 | | - * Delete Regulation Deletes a regulation from the Workspace. The regulation must be in the |
869 | | - * initialized state to be deleted. • When called, this endpoint may generate the |
870 | | - * `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: |
871 | | - * this endpoint has been deprecated according to the guidelines, and may experience reduced SLA |
872 | | - * guarantees. |
873 | | - * |
874 | | - * @param regulateId (required) |
875 | | - * @return ApiResponse<DeleteRegulation200Response> |
876 | | - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the |
877 | | - * response body |
878 | | - * @http.response.details |
879 | | - * <table summary="Response Details" border="1"> |
880 | | - * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
881 | | - * <tr><td> 200 </td><td> OK </td><td> - </td></tr> |
882 | | - * <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr> |
883 | | - * <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr> |
884 | | - * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr> |
885 | | - * </table> |
886 | | - * |
887 | | - * @deprecated |
888 | | - */ |
889 | | - @Deprecated |
890 | | - public ApiResponse<DeleteRegulation200Response> deleteRegulationWithHttpInfo(String regulateId) |
891 | | - throws ApiException { |
892 | | - okhttp3.Call localVarCall = deleteRegulationValidateBeforeCall(regulateId, null); |
893 | | - Type localVarReturnType = new TypeToken<DeleteRegulation200Response>() {}.getType(); |
894 | | - return localVarApiClient.execute(localVarCall, localVarReturnType); |
895 | | - } |
896 | | - |
897 | | - /** |
898 | | - * Delete Regulation (asynchronously) Deletes a regulation from the Workspace. The regulation |
899 | | - * must be in the initialized state to be deleted. • When called, this endpoint may generate the |
900 | | - * `Regulation Deleted` event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: |
901 | | - * this endpoint has been deprecated according to the guidelines, and may experience reduced SLA |
902 | | - * guarantees. |
903 | | - * |
904 | | - * @param regulateId (required) |
905 | | - * @param _callback The callback to be executed when the API call finishes |
906 | | - * @return The request call |
907 | | - * @throws ApiException If fail to process the API call, e.g. serializing the request body |
908 | | - * object |
909 | | - * @http.response.details |
910 | | - * <table summary="Response Details" border="1"> |
911 | | - * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
912 | | - * <tr><td> 200 </td><td> OK </td><td> - </td></tr> |
913 | | - * <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr> |
914 | | - * <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr> |
915 | | - * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr> |
916 | | - * </table> |
917 | | - * |
918 | | - * @deprecated |
919 | | - */ |
920 | | - @Deprecated |
921 | | - public okhttp3.Call deleteRegulationAsync( |
922 | | - String regulateId, final ApiCallback<DeleteRegulation200Response> _callback) |
923 | | - throws ApiException { |
924 | | - |
925 | | - okhttp3.Call localVarCall = deleteRegulationValidateBeforeCall(regulateId, _callback); |
926 | | - Type localVarReturnType = new TypeToken<DeleteRegulation200Response>() {}.getType(); |
927 | | - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); |
928 | | - return localVarCall; |
929 | | - } |
930 | | - |
931 | 741 | /** |
932 | 742 | * Build call for getRegulation |
933 | 743 | * |
|
0 commit comments