@@ -157,6 +157,71 @@ def create_workflows_webhook_handle_with_http_info(body, opts = {})
157157 return data , status_code , headers
158158 end
159159
160+ # Delete user binding.
161+ #
162+ # @see #delete_ms_teams_user_binding_with_http_info
163+ def delete_ms_teams_user_binding ( tenant_id , opts = { } )
164+ delete_ms_teams_user_binding_with_http_info ( tenant_id , opts )
165+ nil
166+ end
167+
168+ # Delete user binding.
169+ #
170+ # Delete the user binding for a given tenant from the Datadog Microsoft Teams integration.
171+ #
172+ # @param tenant_id [String] Your tenant id.
173+ # @param opts [Hash] the optional parameters
174+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
175+ def delete_ms_teams_user_binding_with_http_info ( tenant_id , opts = { } )
176+
177+ if @api_client . config . debugging
178+ @api_client . config . logger . debug 'Calling API: MicrosoftTeamsIntegrationAPI.delete_ms_teams_user_binding ...'
179+ end
180+ # verify the required parameter 'tenant_id' is set
181+ if @api_client . config . client_side_validation && tenant_id . nil?
182+ fail ArgumentError , "Missing the required parameter 'tenant_id' when calling MicrosoftTeamsIntegrationAPI.delete_ms_teams_user_binding"
183+ end
184+ # resource path
185+ local_var_path = '/api/v2/integration/ms-teams/configuration/user-binding/{tenant_id}' . sub ( '{tenant_id}' , CGI . escape ( tenant_id . to_s ) . gsub ( '%2F' , '/' ) )
186+
187+ # query parameters
188+ query_params = opts [ :query_params ] || { }
189+
190+ # header parameters
191+ header_params = opts [ :header_params ] || { }
192+ # HTTP header 'Accept' (if needed)
193+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] )
194+
195+ # form parameters
196+ form_params = opts [ :form_params ] || { }
197+
198+ # http body (model)
199+ post_body = opts [ :debug_body ]
200+
201+ # return_type
202+ return_type = opts [ :debug_return_type ]
203+
204+ # auth_names
205+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
206+
207+ new_options = opts . merge (
208+ :operation => :delete_ms_teams_user_binding ,
209+ :header_params => header_params ,
210+ :query_params => query_params ,
211+ :form_params => form_params ,
212+ :body => post_body ,
213+ :auth_names => auth_names ,
214+ :return_type => return_type ,
215+ :api_version => "V2"
216+ )
217+
218+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Delete , local_var_path , new_options )
219+ if @api_client . config . debugging
220+ @api_client . config . logger . debug "API called: MicrosoftTeamsIntegrationAPI#delete_ms_teams_user_binding\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
221+ end
222+ return data , status_code , headers
223+ end
224+
160225 # Delete tenant-based handle.
161226 #
162227 # @see #delete_tenant_based_handle_with_http_info
0 commit comments