purecloudplatformclientv2 17.0.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AnalyticsConversation.md +5 -5
  4. data/docs/AnalyticsConversationSegment.md +9 -9
  5. data/docs/AnalyticsEvaluation.md +10 -10
  6. data/docs/AnalyticsParticipant.md +7 -7
  7. data/docs/AnalyticsSession.md +27 -27
  8. data/docs/BillingApi.md +75 -0
  9. data/docs/BillingUsage.md +15 -0
  10. data/docs/BillingUsageReport.md +18 -0
  11. data/docs/BillingUsageResource.md +14 -0
  12. data/docs/CallCommand.md +1 -0
  13. data/docs/Conversation.md +1 -1
  14. data/docs/CreateQueueRequest.md +9 -9
  15. data/docs/DID.md +9 -9
  16. data/docs/DIDPool.md +9 -9
  17. data/docs/DirectoryUserDevicesListing.md +22 -0
  18. data/docs/DomainCertificateAuthority.md +9 -9
  19. data/docs/DomainLogicalInterface.md +9 -9
  20. data/docs/DomainOrganizationRole.md +1 -1
  21. data/docs/DomainOrganizationRoleCreate.md +1 -1
  22. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  23. data/docs/DomainPhysicalInterface.md +9 -9
  24. data/docs/DomainSchemaReference.md +9 -9
  25. data/docs/Edge.md +10 -10
  26. data/docs/EdgeGroup.md +9 -9
  27. data/docs/EdgeLine.md +9 -9
  28. data/docs/EdgeLogsJob.md +9 -9
  29. data/docs/EdgeLogsJobFile.md +9 -9
  30. data/docs/EdgeLogsJobResponse.md +9 -9
  31. data/docs/EdgeTrunkBase.md +9 -9
  32. data/docs/Endpoint.md +9 -9
  33. data/docs/Extension.md +9 -9
  34. data/docs/ExtensionPool.md +9 -9
  35. data/docs/IVR.md +9 -9
  36. data/docs/JsonNode.md +4 -4
  37. data/docs/Line.md +9 -9
  38. data/docs/LineBase.md +9 -9
  39. data/docs/Metabase.md +8 -8
  40. data/docs/MobileDevicesApi.md +320 -0
  41. data/docs/NumberPlan.md +9 -9
  42. data/docs/OutboundApi.md +113 -0
  43. data/docs/OutboundRoute.md +9 -9
  44. data/docs/OutboundRouteBase.md +9 -9
  45. data/docs/OutboundSettings.md +20 -0
  46. data/docs/Phone.md +9 -9
  47. data/docs/PhoneBase.md +9 -9
  48. data/docs/Queue.md +9 -9
  49. data/docs/Schedule.md +10 -10
  50. data/docs/ScheduleGroup.md +10 -10
  51. data/docs/SchemaCategory.md +9 -9
  52. data/docs/Site.md +9 -9
  53. data/docs/Trunk.md +9 -9
  54. data/docs/TrunkBase.md +9 -9
  55. data/docs/UserDevice.md +22 -0
  56. data/docs/UserQueue.md +9 -9
  57. data/docs/UsersApi.md +1 -1
  58. data/lib/purecloudplatformclientv2.rb +8 -0
  59. data/lib/purecloudplatformclientv2/api/billing_api.rb +104 -0
  60. data/lib/purecloudplatformclientv2/api/mobile_devices_api.rb +380 -0
  61. data/lib/purecloudplatformclientv2/api/outbound_api.rb +119 -0
  62. data/lib/purecloudplatformclientv2/api/users_api.rb +2 -2
  63. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  64. data/lib/purecloudplatformclientv2/models/analytics_conversation.rb +5 -2
  65. data/lib/purecloudplatformclientv2/models/analytics_conversation_segment.rb +9 -2
  66. data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +10 -0
  67. data/lib/purecloudplatformclientv2/models/analytics_participant.rb +7 -0
  68. data/lib/purecloudplatformclientv2/models/analytics_session.rb +42 -2
  69. data/lib/purecloudplatformclientv2/models/billing_usage.rb +271 -0
  70. data/lib/purecloudplatformclientv2/models/billing_usage_report.rb +348 -0
  71. data/lib/purecloudplatformclientv2/models/billing_usage_resource.rb +238 -0
  72. data/lib/purecloudplatformclientv2/models/call_command.rb +30 -4
  73. data/lib/purecloudplatformclientv2/models/conversation.rb +1 -1
  74. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +9 -2
  75. data/lib/purecloudplatformclientv2/models/did.rb +9 -2
  76. data/lib/purecloudplatformclientv2/models/did_pool.rb +9 -2
  77. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +428 -0
  78. data/lib/purecloudplatformclientv2/models/domain_certificate_authority.rb +9 -2
  79. data/lib/purecloudplatformclientv2/models/domain_logical_interface.rb +9 -2
  80. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  81. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  82. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  83. data/lib/purecloudplatformclientv2/models/domain_physical_interface.rb +9 -2
  84. data/lib/purecloudplatformclientv2/models/domain_schema_reference.rb +9 -2
  85. data/lib/purecloudplatformclientv2/models/edge.rb +10 -2
  86. data/lib/purecloudplatformclientv2/models/edge_group.rb +9 -2
  87. data/lib/purecloudplatformclientv2/models/edge_line.rb +9 -2
  88. data/lib/purecloudplatformclientv2/models/edge_logs_job.rb +9 -2
  89. data/lib/purecloudplatformclientv2/models/edge_logs_job_file.rb +9 -2
  90. data/lib/purecloudplatformclientv2/models/edge_logs_job_response.rb +9 -2
  91. data/lib/purecloudplatformclientv2/models/edge_trunk_base.rb +9 -2
  92. data/lib/purecloudplatformclientv2/models/endpoint.rb +9 -2
  93. data/lib/purecloudplatformclientv2/models/extension.rb +9 -2
  94. data/lib/purecloudplatformclientv2/models/extension_pool.rb +9 -2
  95. data/lib/purecloudplatformclientv2/models/intraday_data_group.rb +2 -2
  96. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_intraday_data_group.rb +2 -2
  97. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_intraday_data_groupings.rb +2 -2
  98. data/lib/purecloudplatformclientv2/models/ivr.rb +9 -2
  99. data/lib/purecloudplatformclientv2/models/json_node.rb +72 -72
  100. data/lib/purecloudplatformclientv2/models/line.rb +9 -2
  101. data/lib/purecloudplatformclientv2/models/line_base.rb +9 -2
  102. data/lib/purecloudplatformclientv2/models/metabase.rb +8 -2
  103. data/lib/purecloudplatformclientv2/models/number_plan.rb +9 -2
  104. data/lib/purecloudplatformclientv2/models/outbound_route.rb +9 -2
  105. data/lib/purecloudplatformclientv2/models/outbound_route_base.rb +9 -2
  106. data/lib/purecloudplatformclientv2/models/outbound_settings.rb +383 -0
  107. data/lib/purecloudplatformclientv2/models/phone.rb +9 -2
  108. data/lib/purecloudplatformclientv2/models/phone_base.rb +9 -2
  109. data/lib/purecloudplatformclientv2/models/queue.rb +9 -2
  110. data/lib/purecloudplatformclientv2/models/recording.rb +2 -2
  111. data/lib/purecloudplatformclientv2/models/schedule.rb +15 -2
  112. data/lib/purecloudplatformclientv2/models/schedule_group.rb +15 -2
  113. data/lib/purecloudplatformclientv2/models/schema_category.rb +9 -2
  114. data/lib/purecloudplatformclientv2/models/site.rb +9 -2
  115. data/lib/purecloudplatformclientv2/models/trunk.rb +9 -2
  116. data/lib/purecloudplatformclientv2/models/trunk_base.rb +9 -2
  117. data/lib/purecloudplatformclientv2/models/user_device.rb +478 -0
  118. data/lib/purecloudplatformclientv2/models/user_queue.rb +9 -2
  119. data/lib/purecloudplatformclientv2/version.rb +1 -1
  120. metadata +19 -3
@@ -0,0 +1,380 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require "uri"
18
+
19
+ module PureCloud
20
+ class MobileDevicesApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+
27
+ # Delete device
28
+ #
29
+ # @param device_id Device ID
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [nil]
32
+ def delete_mobiledevice(device_id, opts = {})
33
+ delete_mobiledevice_with_http_info(device_id, opts)
34
+ return nil
35
+ end
36
+
37
+ # Delete device
38
+ #
39
+ # @param device_id Device ID
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
+ def delete_mobiledevice_with_http_info(device_id, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: MobileDevicesApi.delete_mobiledevice ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'device_id' is set
49
+ fail ArgumentError, "Missing the required parameter 'device_id' when calling MobileDevicesApi.delete_mobiledevice" if device_id.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/mobiledevices/{deviceId}".sub('{format}','json').sub('{' + 'deviceId' + '}', device_id.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = ['application/json']
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+
78
+ auth_names = ['PureCloud Auth']
79
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: MobileDevicesApi#delete_mobiledevice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Get device
92
+ #
93
+ # @param device_id Device ID
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [UserDevice]
96
+ def get_mobiledevice(device_id, opts = {})
97
+ data, _status_code, _headers = get_mobiledevice_with_http_info(device_id, opts)
98
+ return data
99
+ end
100
+
101
+ # Get device
102
+ #
103
+ # @param device_id Device ID
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Array<(UserDevice, Fixnum, Hash)>] UserDevice data, response status code and response headers
106
+ def get_mobiledevice_with_http_info(device_id, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug "Calling API: MobileDevicesApi.get_mobiledevice ..."
109
+ end
110
+
111
+
112
+ # verify the required parameter 'device_id' is set
113
+ fail ArgumentError, "Missing the required parameter 'device_id' when calling MobileDevicesApi.get_mobiledevice" if device_id.nil?
114
+
115
+
116
+
117
+
118
+
119
+ # resource path
120
+ local_var_path = "/api/v2/mobiledevices/{deviceId}".sub('{format}','json').sub('{' + 'deviceId' + '}', device_id.to_s)
121
+
122
+ # query parameters
123
+ query_params = {}
124
+
125
+ # header parameters
126
+ header_params = {}
127
+
128
+ # HTTP header 'Accept' (if needed)
129
+ local_header_accept = ['application/json']
130
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
131
+
132
+ # HTTP header 'Content-Type'
133
+ local_header_content_type = ['application/json']
134
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
135
+
136
+ # form parameters
137
+ form_params = {}
138
+
139
+ # http body (model)
140
+ post_body = nil
141
+
142
+ auth_names = ['PureCloud Auth']
143
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => 'UserDevice')
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "API called: MobileDevicesApi#get_mobiledevice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
+ end
153
+ return data, status_code, headers
154
+ end
155
+
156
+ # Get a list of all devices.
157
+ #
158
+ # @param [Hash] opts the optional parameters
159
+ # @option opts [Integer] :page_size Page size (default to 25)
160
+ # @option opts [Integer] :page_number Page number (default to 1)
161
+ # @option opts [String] :sort_order Ascending or descending sort order (default to ascending)
162
+ # @return [DirectoryUserDevicesListing]
163
+ def get_mobiledevices(opts = {})
164
+ data, _status_code, _headers = get_mobiledevices_with_http_info(opts)
165
+ return data
166
+ end
167
+
168
+ # Get a list of all devices.
169
+ #
170
+ # @param [Hash] opts the optional parameters
171
+ # @option opts [Integer] :page_size Page size
172
+ # @option opts [Integer] :page_number Page number
173
+ # @option opts [String] :sort_order Ascending or descending sort order
174
+ # @return [Array<(DirectoryUserDevicesListing, Fixnum, Hash)>] DirectoryUserDevicesListing data, response status code and response headers
175
+ def get_mobiledevices_with_http_info(opts = {})
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "Calling API: MobileDevicesApi.get_mobiledevices ..."
178
+ end
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order'])
196
+ fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending'
197
+ end
198
+
199
+
200
+
201
+
202
+ # resource path
203
+ local_var_path = "/api/v2/mobiledevices".sub('{format}','json')
204
+
205
+ # query parameters
206
+ query_params = {}
207
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
208
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
209
+ query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
210
+
211
+ # header parameters
212
+ header_params = {}
213
+
214
+ # HTTP header 'Accept' (if needed)
215
+ local_header_accept = ['application/json']
216
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
217
+
218
+ # HTTP header 'Content-Type'
219
+ local_header_content_type = ['application/json']
220
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
221
+
222
+ # form parameters
223
+ form_params = {}
224
+
225
+ # http body (model)
226
+ post_body = nil
227
+
228
+ auth_names = ['PureCloud Auth']
229
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
230
+ :header_params => header_params,
231
+ :query_params => query_params,
232
+ :form_params => form_params,
233
+ :body => post_body,
234
+ :auth_names => auth_names,
235
+ :return_type => 'DirectoryUserDevicesListing')
236
+ if @api_client.config.debugging
237
+ @api_client.config.logger.debug "API called: MobileDevicesApi#get_mobiledevices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ end
239
+ return data, status_code, headers
240
+ end
241
+
242
+ # Create User device
243
+ #
244
+ # @param body Device
245
+ # @param [Hash] opts the optional parameters
246
+ # @return [UserDevice]
247
+ def post_mobiledevices(body, opts = {})
248
+ data, _status_code, _headers = post_mobiledevices_with_http_info(body, opts)
249
+ return data
250
+ end
251
+
252
+ # Create User device
253
+ #
254
+ # @param body Device
255
+ # @param [Hash] opts the optional parameters
256
+ # @return [Array<(UserDevice, Fixnum, Hash)>] UserDevice data, response status code and response headers
257
+ def post_mobiledevices_with_http_info(body, opts = {})
258
+ if @api_client.config.debugging
259
+ @api_client.config.logger.debug "Calling API: MobileDevicesApi.post_mobiledevices ..."
260
+ end
261
+
262
+
263
+ # verify the required parameter 'body' is set
264
+ fail ArgumentError, "Missing the required parameter 'body' when calling MobileDevicesApi.post_mobiledevices" if body.nil?
265
+
266
+
267
+
268
+
269
+
270
+ # resource path
271
+ local_var_path = "/api/v2/mobiledevices".sub('{format}','json')
272
+
273
+ # query parameters
274
+ query_params = {}
275
+
276
+ # header parameters
277
+ header_params = {}
278
+
279
+ # HTTP header 'Accept' (if needed)
280
+ local_header_accept = ['application/json']
281
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
282
+
283
+ # HTTP header 'Content-Type'
284
+ local_header_content_type = ['application/json']
285
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
286
+
287
+ # form parameters
288
+ form_params = {}
289
+
290
+ # http body (model)
291
+ post_body = @api_client.object_to_http_body(body)
292
+
293
+ auth_names = ['PureCloud Auth']
294
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
295
+ :header_params => header_params,
296
+ :query_params => query_params,
297
+ :form_params => form_params,
298
+ :body => post_body,
299
+ :auth_names => auth_names,
300
+ :return_type => 'UserDevice')
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug "API called: MobileDevicesApi#post_mobiledevices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
+ end
304
+ return data, status_code, headers
305
+ end
306
+
307
+ # Update device
308
+ #
309
+ # @param device_id Device ID
310
+ # @param [Hash] opts the optional parameters
311
+ # @option opts [UserDevice] :body Device
312
+ # @return [UserDevice]
313
+ def put_mobiledevice(device_id, opts = {})
314
+ data, _status_code, _headers = put_mobiledevice_with_http_info(device_id, opts)
315
+ return data
316
+ end
317
+
318
+ # Update device
319
+ #
320
+ # @param device_id Device ID
321
+ # @param [Hash] opts the optional parameters
322
+ # @option opts [UserDevice] :body Device
323
+ # @return [Array<(UserDevice, Fixnum, Hash)>] UserDevice data, response status code and response headers
324
+ def put_mobiledevice_with_http_info(device_id, opts = {})
325
+ if @api_client.config.debugging
326
+ @api_client.config.logger.debug "Calling API: MobileDevicesApi.put_mobiledevice ..."
327
+ end
328
+
329
+
330
+ # verify the required parameter 'device_id' is set
331
+ fail ArgumentError, "Missing the required parameter 'device_id' when calling MobileDevicesApi.put_mobiledevice" if device_id.nil?
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ # resource path
344
+ local_var_path = "/api/v2/mobiledevices/{deviceId}".sub('{format}','json').sub('{' + 'deviceId' + '}', device_id.to_s)
345
+
346
+ # query parameters
347
+ query_params = {}
348
+
349
+ # header parameters
350
+ header_params = {}
351
+
352
+ # HTTP header 'Accept' (if needed)
353
+ local_header_accept = ['application/json']
354
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
355
+
356
+ # HTTP header 'Content-Type'
357
+ local_header_content_type = ['application/json']
358
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
359
+
360
+ # form parameters
361
+ form_params = {}
362
+
363
+ # http body (model)
364
+ post_body = @api_client.object_to_http_body(opts[:'body'])
365
+
366
+ auth_names = ['PureCloud Auth']
367
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
368
+ :header_params => header_params,
369
+ :query_params => query_params,
370
+ :form_params => form_params,
371
+ :body => post_body,
372
+ :auth_names => auth_names,
373
+ :return_type => 'UserDevice')
374
+ if @api_client.config.debugging
375
+ @api_client.config.logger.debug "API called: MobileDevicesApi#put_mobiledevice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
376
+ end
377
+ return data, status_code, headers
378
+ end
379
+ end
380
+ end
@@ -4061,6 +4061,61 @@ module PureCloud
4061
4061
  return data, status_code, headers
4062
4062
  end
4063
4063
 
4064
+ # Get the outbound settings for this organization
4065
+ #
4066
+ # @param [Hash] opts the optional parameters
4067
+ # @return [OutboundSettings]
4068
+ def get_outbound_settings(opts = {})
4069
+ data, _status_code, _headers = get_outbound_settings_with_http_info(opts)
4070
+ return data
4071
+ end
4072
+
4073
+ # Get the outbound settings for this organization
4074
+ #
4075
+ # @param [Hash] opts the optional parameters
4076
+ # @return [Array<(OutboundSettings, Fixnum, Hash)>] OutboundSettings data, response status code and response headers
4077
+ def get_outbound_settings_with_http_info(opts = {})
4078
+ if @api_client.config.debugging
4079
+ @api_client.config.logger.debug "Calling API: OutboundApi.get_outbound_settings ..."
4080
+ end
4081
+
4082
+ # resource path
4083
+ local_var_path = "/api/v2/outbound/settings".sub('{format}','json')
4084
+
4085
+ # query parameters
4086
+ query_params = {}
4087
+
4088
+ # header parameters
4089
+ header_params = {}
4090
+
4091
+ # HTTP header 'Accept' (if needed)
4092
+ local_header_accept = ['application/json']
4093
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
4094
+
4095
+ # HTTP header 'Content-Type'
4096
+ local_header_content_type = ['application/json']
4097
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
4098
+
4099
+ # form parameters
4100
+ form_params = {}
4101
+
4102
+ # http body (model)
4103
+ post_body = nil
4104
+
4105
+ auth_names = ['PureCloud Auth']
4106
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4107
+ :header_params => header_params,
4108
+ :query_params => query_params,
4109
+ :form_params => form_params,
4110
+ :body => post_body,
4111
+ :auth_names => auth_names,
4112
+ :return_type => 'OutboundSettings')
4113
+ if @api_client.config.debugging
4114
+ @api_client.config.logger.debug "API called: OutboundApi#get_outbound_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4115
+ end
4116
+ return data, status_code, headers
4117
+ end
4118
+
4064
4119
  # Get the Dialer wrap up code mapping.
4065
4120
  #
4066
4121
  # @param [Hash] opts the optional parameters
@@ -4116,6 +4171,70 @@ module PureCloud
4116
4171
  return data, status_code, headers
4117
4172
  end
4118
4173
 
4174
+ # Update the outbound settings for this organization
4175
+ #
4176
+ # @param body outboundSettings
4177
+ # @param [Hash] opts the optional parameters
4178
+ # @return [nil]
4179
+ def patch_outbound_settings(body, opts = {})
4180
+ patch_outbound_settings_with_http_info(body, opts)
4181
+ return nil
4182
+ end
4183
+
4184
+ # Update the outbound settings for this organization
4185
+ #
4186
+ # @param body outboundSettings
4187
+ # @param [Hash] opts the optional parameters
4188
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4189
+ def patch_outbound_settings_with_http_info(body, opts = {})
4190
+ if @api_client.config.debugging
4191
+ @api_client.config.logger.debug "Calling API: OutboundApi.patch_outbound_settings ..."
4192
+ end
4193
+
4194
+
4195
+ # verify the required parameter 'body' is set
4196
+ fail ArgumentError, "Missing the required parameter 'body' when calling OutboundApi.patch_outbound_settings" if body.nil?
4197
+
4198
+
4199
+
4200
+
4201
+
4202
+ # resource path
4203
+ local_var_path = "/api/v2/outbound/settings".sub('{format}','json')
4204
+
4205
+ # query parameters
4206
+ query_params = {}
4207
+
4208
+ # header parameters
4209
+ header_params = {}
4210
+
4211
+ # HTTP header 'Accept' (if needed)
4212
+ local_header_accept = ['application/json']
4213
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
4214
+
4215
+ # HTTP header 'Content-Type'
4216
+ local_header_content_type = ['application/json']
4217
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
4218
+
4219
+ # form parameters
4220
+ form_params = {}
4221
+
4222
+ # http body (model)
4223
+ post_body = @api_client.object_to_http_body(body)
4224
+
4225
+ auth_names = ['PureCloud Auth']
4226
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
4227
+ :header_params => header_params,
4228
+ :query_params => query_params,
4229
+ :form_params => form_params,
4230
+ :body => post_body,
4231
+ :auth_names => auth_names)
4232
+ if @api_client.config.debugging
4233
+ @api_client.config.logger.debug "API called: OutboundApi#patch_outbound_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4234
+ end
4235
+ return data, status_code, headers
4236
+ end
4237
+
4119
4238
  # Create attempt limits
4120
4239
  #
4121
4240
  # @param body AttemptLimits