Class: ConnectWise::TicketTasksApi
- Inherits:
-
Object
- Object
- ConnectWise::TicketTasksApi
- Defined in:
- lib/connect_wise/api/ticket_tasks_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ nil
Delete TicketTask.
-
#delete_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete TicketTask.
-
#delete_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ nil
Delete Task.
-
#delete_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete Task.
-
#get_project_tickets_by_parent_id_tasks(parent_id, client_id, opts = {}) ⇒ Array<TicketTask>
Get List of TicketTask.
-
#get_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ TicketTask
Get TicketTask.
-
#get_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Get TicketTask.
-
#get_project_tickets_by_parent_id_tasks_count(parent_id, client_id, opts = {}) ⇒ Count
Get Count of TicketTask.
-
#get_project_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>
Get Count of TicketTask.
-
#get_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Array<TicketTask>, Integer, Hash)>
Get List of TicketTask.
-
#get_service_tickets_by_parent_id_tasks(parent_id, client_id, opts = {}) ⇒ Array<Task>
Get List of Task.
-
#get_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ Task
Get Task.
-
#get_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Get Task.
-
#get_service_tickets_by_parent_id_tasks_count(parent_id, client_id, opts = {}) ⇒ Count
Get Count of Task.
-
#get_service_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>
Get Count of Task.
-
#get_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Array<Task>, Integer, Hash)>
Get List of Task.
-
#initialize(api_client = ApiClient.default) ⇒ TicketTasksApi
constructor
A new instance of TicketTasksApi.
-
#patch_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, patch_operation, opts = {}) ⇒ TicketTask
Patch TicketTask.
-
#patch_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Patch TicketTask.
-
#patch_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, patch_operation, opts = {}) ⇒ Task
Patch Task.
-
#patch_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Patch Task.
-
#post_project_tickets_by_parent_id_tasks(parent_id, client_id, ticket_task, opts = {}) ⇒ TicketTask
Post TicketTask.
-
#post_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, ticket_task, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Post TicketTask.
-
#post_service_tickets_by_parent_id_tasks(parent_id, client_id, task, opts = {}) ⇒ Task
Post Task.
-
#post_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, task, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Post Task.
-
#put_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, ticket_task, opts = {}) ⇒ TicketTask
Put TicketTask.
-
#put_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, ticket_task, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Put TicketTask.
-
#put_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, task, opts = {}) ⇒ Task
Put Task.
-
#put_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, task, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Put Task.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ TicketTasksApi
Returns a new instance of TicketTasksApi.
17 18 19 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 17 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
15 16 17 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 15 def api_client @api_client end |
Instance Method Details
#delete_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ nil
Delete TicketTask
27 28 29 30 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 27 def delete_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) delete_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts) nil end |
#delete_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete TicketTask
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 38 def delete_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.delete_project_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.delete_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.delete_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.delete_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.delete_project_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#delete_project_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#delete_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ nil
Delete Task
90 91 92 93 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 90 def delete_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) delete_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts) nil end |
#delete_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete Task
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 101 def delete_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.delete_service_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.delete_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.delete_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.delete_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.delete_service_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#delete_service_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_project_tickets_by_parent_id_tasks(parent_id, client_id, opts = {}) ⇒ Array<TicketTask>
Get List of TicketTask
160 161 162 163 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 160 def get_project_tickets_by_parent_id_tasks(parent_id, client_id, opts = {}) data, _status_code, _headers = get_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts) data end |
#get_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ TicketTask
Get TicketTask
246 247 248 249 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 246 def get_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) data, _status_code, _headers = get_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts) data end |
#get_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Get TicketTask
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 265 def get_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.get_project_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TicketTask' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.get_project_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#get_project_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_project_tickets_by_parent_id_tasks_count(parent_id, client_id, opts = {}) ⇒ Count
Get Count of TicketTask
334 335 336 337 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 334 def get_project_tickets_by_parent_id_tasks_count(parent_id, client_id, opts = {}) data, _status_code, _headers = get_project_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts) data end |
#get_project_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>
Get Count of TicketTask
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 352 def get_project_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.get_project_tickets_by_parent_id_tasks_count ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks_count" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks_count" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks/count'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Count' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.get_project_tickets_by_parent_id_tasks_count', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#get_project_tickets_by_parent_id_tasks_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Array<TicketTask>, Integer, Hash)>
Get List of TicketTask
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 178 def get_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.get_project_tickets_by_parent_id_tasks ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.get_project_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<TicketTask>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.get_project_tickets_by_parent_id_tasks', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#get_project_tickets_by_parent_id_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_service_tickets_by_parent_id_tasks(parent_id, client_id, opts = {}) ⇒ Array<Task>
Get List of Task
419 420 421 422 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 419 def get_service_tickets_by_parent_id_tasks(parent_id, client_id, opts = {}) data, _status_code, _headers = get_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts) data end |
#get_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) ⇒ Task
Get Task
505 506 507 508 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 505 def get_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, opts = {}) data, _status_code, _headers = get_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts) data end |
#get_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Get Task
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 524 def get_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.get_service_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Task' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.get_service_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#get_service_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_service_tickets_by_parent_id_tasks_count(parent_id, client_id, opts = {}) ⇒ Count
Get Count of Task
593 594 595 596 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 593 def get_service_tickets_by_parent_id_tasks_count(parent_id, client_id, opts = {}) data, _status_code, _headers = get_service_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts) data end |
#get_service_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>
Get Count of Task
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 611 def get_service_tickets_by_parent_id_tasks_count_with_http_info(parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.get_service_tickets_by_parent_id_tasks_count ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks_count" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks_count" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks/count'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Count' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.get_service_tickets_by_parent_id_tasks_count', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#get_service_tickets_by_parent_id_tasks_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Array<Task>, Integer, Hash)>
Get List of Task
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 437 def get_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.get_service_tickets_by_parent_id_tasks ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.get_service_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Task>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.get_service_tickets_by_parent_id_tasks', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#get_service_tickets_by_parent_id_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#patch_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, patch_operation, opts = {}) ⇒ TicketTask
Patch TicketTask
672 673 674 675 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 672 def patch_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, patch_operation, opts = {}) data, _status_code, _headers = patch_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts) data end |
#patch_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Patch TicketTask
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 684 def patch_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.patch_project_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.patch_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.patch_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.patch_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'patch_operation' is set raise ArgumentError, "Missing the required parameter 'patch_operation' when calling TicketTasksApi.patch_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && patch_operation.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_operation) # return_type return_type = opts[:debug_return_type] || 'TicketTask' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.patch_project_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#patch_project_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#patch_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, patch_operation, opts = {}) ⇒ Task
Patch Task
744 745 746 747 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 744 def patch_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, patch_operation, opts = {}) data, _status_code, _headers = patch_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts) data end |
#patch_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Patch Task
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 756 def patch_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, patch_operation, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.patch_service_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.patch_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.patch_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.patch_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'patch_operation' is set raise ArgumentError, "Missing the required parameter 'patch_operation' when calling TicketTasksApi.patch_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && patch_operation.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_operation) # return_type return_type = opts[:debug_return_type] || 'Task' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.patch_service_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#patch_service_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#post_project_tickets_by_parent_id_tasks(parent_id, client_id, ticket_task, opts = {}) ⇒ TicketTask
Post TicketTask
815 816 817 818 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 815 def post_project_tickets_by_parent_id_tasks(parent_id, client_id, ticket_task, opts = {}) data, _status_code, _headers = post_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, ticket_task, opts) data end |
#post_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, ticket_task, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Post TicketTask
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 826 def post_project_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, ticket_task, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.post_project_tickets_by_parent_id_tasks ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.post_project_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.post_project_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'ticket_task' is set raise ArgumentError, "Missing the required parameter 'ticket_task' when calling TicketTasksApi.post_project_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && ticket_task.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(ticket_task) # return_type return_type = opts[:debug_return_type] || 'TicketTask' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.post_project_tickets_by_parent_id_tasks', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#post_project_tickets_by_parent_id_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#post_service_tickets_by_parent_id_tasks(parent_id, client_id, task, opts = {}) ⇒ Task
Post Task
883 884 885 886 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 883 def post_service_tickets_by_parent_id_tasks(parent_id, client_id, task, opts = {}) data, _status_code, _headers = post_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, task, opts) data end |
#post_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, task, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Post Task
894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 894 def post_service_tickets_by_parent_id_tasks_with_http_info(parent_id, client_id, task, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.post_service_tickets_by_parent_id_tasks ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.post_service_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.post_service_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'task' is set raise ArgumentError, "Missing the required parameter 'task' when calling TicketTasksApi.post_service_tickets_by_parent_id_tasks" if @api_client.config.client_side_validation && task.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(task) # return_type return_type = opts[:debug_return_type] || 'Task' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.post_service_tickets_by_parent_id_tasks', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#post_service_tickets_by_parent_id_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#put_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, ticket_task, opts = {}) ⇒ TicketTask
Put TicketTask
952 953 954 955 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 952 def put_project_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, ticket_task, opts = {}) data, _status_code, _headers = put_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, ticket_task, opts) data end |
#put_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, ticket_task, opts = {}) ⇒ Array<(TicketTask, Integer, Hash)>
Put TicketTask
964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 964 def put_project_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, ticket_task, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.put_project_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.put_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.put_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.put_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'ticket_task' is set raise ArgumentError, "Missing the required parameter 'ticket_task' when calling TicketTasksApi.put_project_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && ticket_task.nil? # resource path local_var_path = '/project/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(ticket_task) # return_type return_type = opts[:debug_return_type] || 'TicketTask' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.put_project_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#put_project_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#put_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, task, opts = {}) ⇒ Task
Put Task
1024 1025 1026 1027 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 1024 def put_service_tickets_by_parent_id_tasks_by_id(id, parent_id, client_id, task, opts = {}) data, _status_code, _headers = put_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, task, opts) data end |
#put_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, task, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Put Task
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 |
# File 'lib/connect_wise/api/ticket_tasks_api.rb', line 1036 def put_service_tickets_by_parent_id_tasks_by_id_with_http_info(id, parent_id, client_id, task, opts = {}) @api_client.config.logger.debug 'Calling API: TicketTasksApi.put_service_tickets_by_parent_id_tasks_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling TicketTasksApi.put_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling TicketTasksApi.put_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling TicketTasksApi.put_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'task' is set raise ArgumentError, "Missing the required parameter 'task' when calling TicketTasksApi.put_service_tickets_by_parent_id_tasks_by_id" if @api_client.config.client_side_validation && task.nil? # resource path local_var_path = '/service/tickets/{parentId}/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(task) # return_type return_type = opts[:debug_return_type] || 'Task' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'TicketTasksApi.put_service_tickets_by_parent_id_tasks_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) @api_client.config.logger.debug "API called: TicketTasksApi#put_service_tickets_by_parent_id_tasks_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |