@@ -50,6 +50,140 @@ public void setApiClient(ApiClient apiClient) {
5050 this .apiClient = apiClient ;
5151 }
5252
53+ /**
54+ * Remove the assignee of an issue.
55+ *
56+ * <p>See {@link #deleteIssueAssigneeWithHttpInfo}.
57+ *
58+ * @param issueId The identifier of the issue. (required)
59+ * @throws ApiException if fails to make API call
60+ */
61+ public void deleteIssueAssignee (String issueId ) throws ApiException {
62+ deleteIssueAssigneeWithHttpInfo (issueId );
63+ }
64+
65+ /**
66+ * Remove the assignee of an issue.
67+ *
68+ * <p>See {@link #deleteIssueAssigneeWithHttpInfoAsync}.
69+ *
70+ * @param issueId The identifier of the issue. (required)
71+ * @return CompletableFuture
72+ */
73+ public CompletableFuture <Void > deleteIssueAssigneeAsync (String issueId ) {
74+ return deleteIssueAssigneeWithHttpInfoAsync (issueId )
75+ .thenApply (
76+ response -> {
77+ return response .getData ();
78+ });
79+ }
80+
81+ /**
82+ * Remove the assignee of an issue by <code>issue_id</code>.
83+ *
84+ * @param issueId The identifier of the issue. (required)
85+ * @return ApiResponse<Void>
86+ * @throws ApiException if fails to make API call
87+ * @http.response.details
88+ * <table border="1">
89+ * <caption>Response details</caption>
90+ * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
91+ * <tr><td> 204 </td><td> No Content </td><td> - </td></tr>
92+ * <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
93+ * <tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
94+ * <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
95+ * <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
96+ * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
97+ * </table>
98+ */
99+ public ApiResponse <Void > deleteIssueAssigneeWithHttpInfo (String issueId ) throws ApiException {
100+ Object localVarPostBody = null ;
101+
102+ // verify the required parameter 'issueId' is set
103+ if (issueId == null ) {
104+ throw new ApiException (
105+ 400 , "Missing the required parameter 'issueId' when calling deleteIssueAssignee" );
106+ }
107+ // create path and map variables
108+ String localVarPath =
109+ "/api/v2/error-tracking/issues/{issue_id}/assignee"
110+ .replaceAll ("\\ {" + "issue_id" + "\\ }" , apiClient .escapeString (issueId .toString ()));
111+
112+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
113+
114+ Invocation .Builder builder =
115+ apiClient .createBuilder (
116+ "v2.ErrorTrackingApi.deleteIssueAssignee" ,
117+ localVarPath ,
118+ new ArrayList <Pair >(),
119+ localVarHeaderParams ,
120+ new HashMap <String , String >(),
121+ new String [] {"*/*" },
122+ new String [] {"apiKeyAuth" , "appKeyAuth" , "AuthZ" });
123+ return apiClient .invokeAPI (
124+ "DELETE" ,
125+ builder ,
126+ localVarHeaderParams ,
127+ new String [] {},
128+ localVarPostBody ,
129+ new HashMap <String , Object >(),
130+ false ,
131+ null );
132+ }
133+
134+ /**
135+ * Remove the assignee of an issue.
136+ *
137+ * <p>See {@link #deleteIssueAssigneeWithHttpInfo}.
138+ *
139+ * @param issueId The identifier of the issue. (required)
140+ * @return CompletableFuture<ApiResponse<Void>>
141+ */
142+ public CompletableFuture <ApiResponse <Void >> deleteIssueAssigneeWithHttpInfoAsync (String issueId ) {
143+ Object localVarPostBody = null ;
144+
145+ // verify the required parameter 'issueId' is set
146+ if (issueId == null ) {
147+ CompletableFuture <ApiResponse <Void >> result = new CompletableFuture <>();
148+ result .completeExceptionally (
149+ new ApiException (
150+ 400 , "Missing the required parameter 'issueId' when calling deleteIssueAssignee" ));
151+ return result ;
152+ }
153+ // create path and map variables
154+ String localVarPath =
155+ "/api/v2/error-tracking/issues/{issue_id}/assignee"
156+ .replaceAll ("\\ {" + "issue_id" + "\\ }" , apiClient .escapeString (issueId .toString ()));
157+
158+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
159+
160+ Invocation .Builder builder ;
161+ try {
162+ builder =
163+ apiClient .createBuilder (
164+ "v2.ErrorTrackingApi.deleteIssueAssignee" ,
165+ localVarPath ,
166+ new ArrayList <Pair >(),
167+ localVarHeaderParams ,
168+ new HashMap <String , String >(),
169+ new String [] {"*/*" },
170+ new String [] {"apiKeyAuth" , "appKeyAuth" , "AuthZ" });
171+ } catch (ApiException ex ) {
172+ CompletableFuture <ApiResponse <Void >> result = new CompletableFuture <>();
173+ result .completeExceptionally (ex );
174+ return result ;
175+ }
176+ return apiClient .invokeAPIAsync (
177+ "DELETE" ,
178+ builder ,
179+ localVarHeaderParams ,
180+ new String [] {},
181+ localVarPostBody ,
182+ new HashMap <String , Object >(),
183+ false ,
184+ null );
185+ }
186+
53187 /** Manage optional parameters to getIssue. */
54188 public static class GetIssueOptionalParameters {
55189 private List <GetIssueIncludeQueryParameterItem > include ;
0 commit comments