Class: ILoveVideoEditor::IntegrationsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ IntegrationsApi

Returns a new instance of IntegrationsApi.



19
20
21
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#create_integration(workspace_integration_input, opts = {}) ⇒ CreateIntegration201Response

Create a workspace integration

Parameters:

Returns:



26
27
28
29
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 26

def create_integration(workspace_integration_input, opts = {})
  data, _status_code, _headers = create_integration_with_http_info(workspace_integration_input, opts)
  data
end

#create_integration_with_http_info(workspace_integration_input, opts = {}) ⇒ Array<(CreateIntegration201Response, Integer, Hash)>

Create a workspace integration

Parameters:

Returns:



35
36
37
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
83
84
85
86
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 35

def create_integration_with_http_info(workspace_integration_input, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.create_integration ...'
  end
  # verify the required parameter 'workspace_integration_input' is set
  if @api_client.config.client_side_validation && workspace_integration_input.nil?
    fail ArgumentError, "Missing the required parameter 'workspace_integration_input' when calling IntegrationsApi.create_integration"
  end
  # resource path
  local_var_path = '/v1/integrations'

  # 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/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(workspace_integration_input)

  # return_type
  return_type = opts[:debug_return_type] || 'CreateIntegration201Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.create_integration",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#create_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_destination(opts = {}) ⇒ UploadAsset200Response

Delete default destination Backwards-compatible single-destination endpoint.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



92
93
94
95
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 92

def delete_destination(opts = {})
  data, _status_code, _headers = delete_destination_with_http_info(opts)
  data
end

#delete_destination_with_http_info(opts = {}) ⇒ Array<(UploadAsset200Response, Integer, Hash)>

Delete default destination Backwards-compatible single-destination endpoint.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(UploadAsset200Response, Integer, Hash)>)

    UploadAsset200Response data, response status code and response headers



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
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 101

def delete_destination_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.delete_destination ...'
  end
  # resource path
  local_var_path = '/v1/destination'

  # 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/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'UploadAsset200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.delete_destination",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#delete_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_integration(id, opts = {}) ⇒ UploadAsset200Response

Delete a workspace integration

Parameters:

  • id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



149
150
151
152
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 149

def delete_integration(id, opts = {})
  data, _status_code, _headers = delete_integration_with_http_info(id, opts)
  data
end

#delete_integration_with_http_info(id, opts = {}) ⇒ Array<(UploadAsset200Response, Integer, Hash)>

Delete a workspace integration

Parameters:

  • id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(UploadAsset200Response, Integer, Hash)>)

    UploadAsset200Response data, response status code and response headers



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
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
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 158

def delete_integration_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.delete_integration ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationsApi.delete_integration"
  end
  # resource path
  local_var_path = '/v1/integrations/{id}'.sub('{id}', CGI.escape(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/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'UploadAsset200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.delete_integration",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_destination(opts = {}) ⇒ GetDestination200Response

Get default destination Backwards-compatible single-destination endpoint.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



210
211
212
213
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 210

def get_destination(opts = {})
  data, _status_code, _headers = get_destination_with_http_info(opts)
  data
end

#get_destination_with_http_info(opts = {}) ⇒ Array<(GetDestination200Response, Integer, Hash)>

Get default destination Backwards-compatible single-destination endpoint.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetDestination200Response, Integer, Hash)>)

    GetDestination200Response data, response status code and response headers



219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 219

def get_destination_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.get_destination ...'
  end
  # resource path
  local_var_path = '/v1/destination'

  # 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/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetDestination200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.get_destination",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#get_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_integrations(opts = {}) ⇒ ListIntegrations200Response

List workspace storage integrations

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



266
267
268
269
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 266

def list_integrations(opts = {})
  data, _status_code, _headers = list_integrations_with_http_info(opts)
  data
end

#list_integrations_with_http_info(opts = {}) ⇒ Array<(ListIntegrations200Response, Integer, Hash)>

List workspace storage integrations

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ListIntegrations200Response, Integer, Hash)>)

    ListIntegrations200Response data, response status code and response headers



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
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 274

def list_integrations_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.list_integrations ...'
  end
  # resource path
  local_var_path = '/v1/integrations'

  # 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/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ListIntegrations200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.list_integrations",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#list_integrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#set_destination(destination_input, opts = {}) ⇒ GetDestination200Response

Set default destination Backwards-compatible single-destination endpoint.

Parameters:

  • destination_input (DestinationInput)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



323
324
325
326
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 323

def set_destination(destination_input, opts = {})
  data, _status_code, _headers = set_destination_with_http_info(destination_input, opts)
  data
end

#set_destination_with_http_info(destination_input, opts = {}) ⇒ Array<(GetDestination200Response, Integer, Hash)>

Set default destination Backwards-compatible single-destination endpoint.

Parameters:

  • destination_input (DestinationInput)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetDestination200Response, Integer, Hash)>)

    GetDestination200Response data, response status code and response headers



333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
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
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 333

def set_destination_with_http_info(destination_input, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.set_destination ...'
  end
  # verify the required parameter 'destination_input' is set
  if @api_client.config.client_side_validation && destination_input.nil?
    fail ArgumentError, "Missing the required parameter 'destination_input' when calling IntegrationsApi.set_destination"
  end
  # resource path
  local_var_path = '/v1/destination'

  # 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/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(destination_input)

  # return_type
  return_type = opts[:debug_return_type] || 'GetDestination200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.set_destination",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#set_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#test_destination(destination_input, opts = {}) ⇒ TestIntegration200Response

Test default destination Backwards-compatible single-destination test endpoint.

Parameters:

  • destination_input (DestinationInput)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



391
392
393
394
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 391

def test_destination(destination_input, opts = {})
  data, _status_code, _headers = test_destination_with_http_info(destination_input, opts)
  data
end

#test_destination_with_http_info(destination_input, opts = {}) ⇒ Array<(TestIntegration200Response, Integer, Hash)>

Test default destination Backwards-compatible single-destination test endpoint.

Parameters:

  • destination_input (DestinationInput)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(TestIntegration200Response, Integer, Hash)>)

    TestIntegration200Response data, response status code and response headers



401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 401

def test_destination_with_http_info(destination_input, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.test_destination ...'
  end
  # verify the required parameter 'destination_input' is set
  if @api_client.config.client_side_validation && destination_input.nil?
    fail ArgumentError, "Missing the required parameter 'destination_input' when calling IntegrationsApi.test_destination"
  end
  # resource path
  local_var_path = '/v1/destination/test'

  # 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/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(destination_input)

  # return_type
  return_type = opts[:debug_return_type] || 'TestIntegration200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.test_destination",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#test_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#test_integration(id, opts = {}) ⇒ TestIntegration200Response

Test a workspace integration

Parameters:

  • id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



458
459
460
461
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 458

def test_integration(id, opts = {})
  data, _status_code, _headers = test_integration_with_http_info(id, opts)
  data
end

#test_integration_with_http_info(id, opts = {}) ⇒ Array<(TestIntegration200Response, Integer, Hash)>

Test a workspace integration

Parameters:

  • id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(TestIntegration200Response, Integer, Hash)>)

    TestIntegration200Response data, response status code and response headers



467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 467

def test_integration_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.test_integration ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationsApi.test_integration"
  end
  # resource path
  local_var_path = '/v1/integrations/{id}/test'.sub('{id}', CGI.escape(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/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'TestIntegration200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.test_integration",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#test_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_integration(id, workspace_integration_input, opts = {}) ⇒ CreateIntegration201Response

Update a workspace integration

Parameters:

  • id (String)
  • workspace_integration_input (WorkspaceIntegrationInput)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



520
521
522
523
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 520

def update_integration(id, workspace_integration_input, opts = {})
  data, _status_code, _headers = update_integration_with_http_info(id, workspace_integration_input, opts)
  data
end

#update_integration_with_http_info(id, workspace_integration_input, opts = {}) ⇒ Array<(CreateIntegration201Response, Integer, Hash)>

Update a workspace integration

Parameters:

  • id (String)
  • workspace_integration_input (WorkspaceIntegrationInput)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



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
579
580
581
582
583
584
585
# File 'lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb', line 530

def update_integration_with_http_info(id, workspace_integration_input, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: IntegrationsApi.update_integration ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationsApi.update_integration"
  end
  # verify the required parameter 'workspace_integration_input' is set
  if @api_client.config.client_side_validation && workspace_integration_input.nil?
    fail ArgumentError, "Missing the required parameter 'workspace_integration_input' when calling IntegrationsApi.update_integration"
  end
  # resource path
  local_var_path = '/v1/integrations/{id}'.sub('{id}', CGI.escape(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/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(workspace_integration_input)

  # return_type
  return_type = opts[:debug_return_type] || 'CreateIntegration201Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth']

  new_options = opts.merge(
    :operation => :"IntegrationsApi.update_integration",
    :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, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: IntegrationsApi#update_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end