@@ -332,6 +332,142 @@ public MicrosoftTeamsWorkflowsWebhookHandleResponse createWorkflowsWebhookHandle
332332 new GenericType <MicrosoftTeamsWorkflowsWebhookHandleResponse >() {});
333333 }
334334
335+ /**
336+ * Delete user binding.
337+ *
338+ * <p>See {@link #deleteMSTeamsUserBindingWithHttpInfo}.
339+ *
340+ * @param tenantId Your tenant id. (required)
341+ * @throws ApiException if fails to make API call
342+ */
343+ public void deleteMSTeamsUserBinding (String tenantId ) throws ApiException {
344+ deleteMSTeamsUserBindingWithHttpInfo (tenantId );
345+ }
346+
347+ /**
348+ * Delete user binding.
349+ *
350+ * <p>See {@link #deleteMSTeamsUserBindingWithHttpInfoAsync}.
351+ *
352+ * @param tenantId Your tenant id. (required)
353+ * @return CompletableFuture
354+ */
355+ public CompletableFuture <Void > deleteMSTeamsUserBindingAsync (String tenantId ) {
356+ return deleteMSTeamsUserBindingWithHttpInfoAsync (tenantId )
357+ .thenApply (
358+ response -> {
359+ return response .getData ();
360+ });
361+ }
362+
363+ /**
364+ * Delete the user binding for a given tenant from the Datadog Microsoft Teams integration.
365+ *
366+ * @param tenantId Your tenant id. (required)
367+ * @return ApiResponse<Void>
368+ * @throws ApiException if fails to make API call
369+ * @http.response.details
370+ * <table border="1">
371+ * <caption>Response details</caption>
372+ * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
373+ * <tr><td> 204 </td><td> No Content </td><td> - </td></tr>
374+ * <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
375+ * <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
376+ * <tr><td> 412 </td><td> Failed Precondition </td><td> - </td></tr>
377+ * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
378+ * </table>
379+ */
380+ public ApiResponse <Void > deleteMSTeamsUserBindingWithHttpInfo (String tenantId )
381+ throws ApiException {
382+ Object localVarPostBody = null ;
383+
384+ // verify the required parameter 'tenantId' is set
385+ if (tenantId == null ) {
386+ throw new ApiException (
387+ 400 , "Missing the required parameter 'tenantId' when calling deleteMSTeamsUserBinding" );
388+ }
389+ // create path and map variables
390+ String localVarPath =
391+ "/api/v2/integration/ms-teams/configuration/user-binding/{tenant_id}"
392+ .replaceAll ("\\ {" + "tenant_id" + "\\ }" , apiClient .escapeString (tenantId .toString ()));
393+
394+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
395+
396+ Invocation .Builder builder =
397+ apiClient .createBuilder (
398+ "v2.MicrosoftTeamsIntegrationApi.deleteMSTeamsUserBinding" ,
399+ localVarPath ,
400+ new ArrayList <Pair >(),
401+ localVarHeaderParams ,
402+ new HashMap <String , String >(),
403+ new String [] {"*/*" },
404+ new String [] {"apiKeyAuth" , "appKeyAuth" });
405+ return apiClient .invokeAPI (
406+ "DELETE" ,
407+ builder ,
408+ localVarHeaderParams ,
409+ new String [] {},
410+ localVarPostBody ,
411+ new HashMap <String , Object >(),
412+ false ,
413+ null );
414+ }
415+
416+ /**
417+ * Delete user binding.
418+ *
419+ * <p>See {@link #deleteMSTeamsUserBindingWithHttpInfo}.
420+ *
421+ * @param tenantId Your tenant id. (required)
422+ * @return CompletableFuture<ApiResponse<Void>>
423+ */
424+ public CompletableFuture <ApiResponse <Void >> deleteMSTeamsUserBindingWithHttpInfoAsync (
425+ String tenantId ) {
426+ Object localVarPostBody = null ;
427+
428+ // verify the required parameter 'tenantId' is set
429+ if (tenantId == null ) {
430+ CompletableFuture <ApiResponse <Void >> result = new CompletableFuture <>();
431+ result .completeExceptionally (
432+ new ApiException (
433+ 400 ,
434+ "Missing the required parameter 'tenantId' when calling deleteMSTeamsUserBinding" ));
435+ return result ;
436+ }
437+ // create path and map variables
438+ String localVarPath =
439+ "/api/v2/integration/ms-teams/configuration/user-binding/{tenant_id}"
440+ .replaceAll ("\\ {" + "tenant_id" + "\\ }" , apiClient .escapeString (tenantId .toString ()));
441+
442+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
443+
444+ Invocation .Builder builder ;
445+ try {
446+ builder =
447+ apiClient .createBuilder (
448+ "v2.MicrosoftTeamsIntegrationApi.deleteMSTeamsUserBinding" ,
449+ localVarPath ,
450+ new ArrayList <Pair >(),
451+ localVarHeaderParams ,
452+ new HashMap <String , String >(),
453+ new String [] {"*/*" },
454+ new String [] {"apiKeyAuth" , "appKeyAuth" });
455+ } catch (ApiException ex ) {
456+ CompletableFuture <ApiResponse <Void >> result = new CompletableFuture <>();
457+ result .completeExceptionally (ex );
458+ return result ;
459+ }
460+ return apiClient .invokeAPIAsync (
461+ "DELETE" ,
462+ builder ,
463+ localVarHeaderParams ,
464+ new String [] {},
465+ localVarPostBody ,
466+ new HashMap <String , Object >(),
467+ false ,
468+ null );
469+ }
470+
335471 /**
336472 * Delete tenant-based handle.
337473 *
0 commit comments