@@ -23,6 +23,71 @@ def initialize(api_client = DatadogAPIClient::APIClient.default)
2323 @api_client = api_client
2424 end
2525
26+ # Remove the assignee of an issue.
27+ #
28+ # @see #delete_issue_assignee_with_http_info
29+ def delete_issue_assignee ( issue_id , opts = { } )
30+ delete_issue_assignee_with_http_info ( issue_id , opts )
31+ nil
32+ end
33+
34+ # Remove the assignee of an issue.
35+ #
36+ # Remove the assignee of an issue by `issue_id`.
37+ #
38+ # @param issue_id [String] The identifier of the issue.
39+ # @param opts [Hash] the optional parameters
40+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41+ def delete_issue_assignee_with_http_info ( issue_id , opts = { } )
42+
43+ if @api_client . config . debugging
44+ @api_client . config . logger . debug 'Calling API: ErrorTrackingAPI.delete_issue_assignee ...'
45+ end
46+ # verify the required parameter 'issue_id' is set
47+ if @api_client . config . client_side_validation && issue_id . nil?
48+ fail ArgumentError , "Missing the required parameter 'issue_id' when calling ErrorTrackingAPI.delete_issue_assignee"
49+ end
50+ # resource path
51+ local_var_path = '/api/v2/error-tracking/issues/{issue_id}/assignee' . sub ( '{issue_id}' , CGI . escape ( issue_id . to_s ) . gsub ( '%2F' , '/' ) )
52+
53+ # query parameters
54+ query_params = opts [ :query_params ] || { }
55+
56+ # header parameters
57+ header_params = opts [ :header_params ] || { }
58+ # HTTP header 'Accept' (if needed)
59+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] )
60+
61+ # form parameters
62+ form_params = opts [ :form_params ] || { }
63+
64+ # http body (model)
65+ post_body = opts [ :debug_body ]
66+
67+ # return_type
68+ return_type = opts [ :debug_return_type ]
69+
70+ # auth_names
71+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ]
72+
73+ new_options = opts . merge (
74+ :operation => :delete_issue_assignee ,
75+ :header_params => header_params ,
76+ :query_params => query_params ,
77+ :form_params => form_params ,
78+ :body => post_body ,
79+ :auth_names => auth_names ,
80+ :return_type => return_type ,
81+ :api_version => "V2"
82+ )
83+
84+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Delete , local_var_path , new_options )
85+ if @api_client . config . debugging
86+ @api_client . config . logger . debug "API called: ErrorTrackingAPI#delete_issue_assignee\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
87+ end
88+ return data , status_code , headers
89+ end
90+
2691 # Get the details of an error tracking issue.
2792 #
2893 # @see #get_issue_with_http_info
0 commit comments