purecloud 0.38.1 → 0.39.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config-ruby.json +1 -1
  4. data/doc_out/AuthorizationApi.html.md +0 -57
  5. data/doc_out/AvailableLanguageList.html.md +13 -0
  6. data/doc_out/BillingContact.html.md +20 -0
  7. data/doc_out/{FlowHistoryResultItemEntityListing.html.md → BillingContactListing.html.md} +3 -3
  8. data/doc_out/CallRecord.html.md +2 -2
  9. data/doc_out/CallableContactsDiagnostic.html.md +3 -3
  10. data/doc_out/CallableTimeSet.html.md +3 -3
  11. data/doc_out/Campaign.html.md +3 -3
  12. data/doc_out/CampaignDiagnostics.html.md +3 -3
  13. data/doc_out/CampaignSchedule.html.md +6 -6
  14. data/doc_out/CampaignSequence.html.md +8 -8
  15. data/doc_out/CampaignStats.html.md +4 -4
  16. data/doc_out/Condition.html.md +7 -7
  17. data/doc_out/ConnectRate.html.md +3 -3
  18. data/doc_out/ContactCallbackRequest.html.md +5 -5
  19. data/doc_out/ContactList.html.md +9 -9
  20. data/doc_out/ContactPhoneNumberColumn.html.md +3 -3
  21. data/doc_out/CreateCallbackCommand.html.md +1 -0
  22. data/doc_out/CreateUser.html.md +1 -1
  23. data/doc_out/CustomerInteractionCenter.html.md +18 -0
  24. data/doc_out/DialerAction.html.md +4 -4
  25. data/doc_out/DialerContact.html.md +5 -5
  26. data/doc_out/DialerRule.html.md +6 -6
  27. data/doc_out/DncList.html.md +6 -7
  28. data/doc_out/ExternalContact.html.md +1 -0
  29. data/doc_out/ExternalDataSource.html.md +14 -0
  30. data/doc_out/ExternalOrganization.html.md +1 -0
  31. data/doc_out/IdentityProviderApi.html.md +1011 -0
  32. data/doc_out/ImportStatus.html.md +5 -5
  33. data/doc_out/InitiateScreenRecording.html.md +15 -0
  34. data/doc_out/JsonNode.html.md +3 -3
  35. data/doc_out/Keyword.html.md +19 -0
  36. data/doc_out/KeywordSet.html.md +21 -0
  37. data/doc_out/KeywordSetEntityListing.html.md +22 -0
  38. data/doc_out/OAuthApi.html.md +45 -886
  39. data/doc_out/OAuthClient.html.md +2 -2
  40. data/doc_out/Okta.html.md +1 -1
  41. data/doc_out/OneLogin.html.md +1 -1
  42. data/doc_out/OrgMediaUtilization.html.md +1 -0
  43. data/doc_out/OutboundApi.html.md +3 -3
  44. data/doc_out/PaymentMethod.html.md +3 -0
  45. data/doc_out/PhoneNumberStatus.html.md +1 -1
  46. data/doc_out/PolicyActions.html.md +1 -0
  47. data/doc_out/PresenceApi.html.md +68 -17
  48. data/doc_out/QualityApi.html.md +361 -0
  49. data/doc_out/QueueUtilizationDiagnostic.html.md +8 -8
  50. data/doc_out/ResponseSet.html.md +3 -3
  51. data/doc_out/RoutingApi.html.md +15 -12
  52. data/doc_out/RoutingSkill.html.md +1 -2
  53. data/doc_out/RuleSet.html.md +6 -6
  54. data/doc_out/Salesforce.html.md +1 -1
  55. data/doc_out/ScheduleInterval.html.md +14 -0
  56. data/doc_out/SequenceSchedule.html.md +6 -6
  57. data/doc_out/Station.html.md +1 -0
  58. data/doc_out/StationsApi.html.md +3 -1
  59. data/doc_out/SupportCredit.html.md +16 -0
  60. data/doc_out/SupportCreditListing.html.md +22 -0
  61. data/doc_out/SystemPresence.html.md +15 -0
  62. data/doc_out/TelephonyProvidersEdgeApi.html.md +112 -1
  63. data/doc_out/TrunkRecordingEnabledCount.html.md +14 -0
  64. data/doc_out/UserImage.html.md +1 -1
  65. data/doc_out/UserMe.html.md +5 -1
  66. data/doc_out/UserRoutingSkill.html.md +2 -2
  67. data/doc_out/UsersApi.html.md +182 -0
  68. data/doc_out/WrapUpCodeMapping.html.md +5 -5
  69. data/doc_out/index.html.md +3 -3
  70. data/lib/purecloud.rb +15 -3
  71. data/lib/purecloud/api/authorization_api.rb +0 -60
  72. data/lib/purecloud/api/identity_provider_api.rb +1072 -0
  73. data/lib/purecloud/api/o_auth_api.rb +26 -906
  74. data/lib/purecloud/api/outbound_api.rb +2 -2
  75. data/lib/purecloud/api/presence_api.rb +67 -12
  76. data/lib/purecloud/api/quality_api.rb +378 -0
  77. data/lib/purecloud/api/routing_api.rb +21 -16
  78. data/lib/purecloud/api/stations_api.rb +3 -0
  79. data/lib/purecloud/api/telephony_providers_edge_api.rb +120 -0
  80. data/lib/purecloud/api/users_api.rb +189 -0
  81. data/lib/purecloud/api_client.rb +1 -1
  82. data/lib/purecloud/models/analytics_session.rb +1 -1
  83. data/lib/purecloud/models/available_language_list.rb +167 -0
  84. data/lib/purecloud/models/billing_contact.rb +237 -0
  85. data/lib/purecloud/models/{flow_history_result_item_entity_listing.rb → billing_contact_listing.rb} +2 -2
  86. data/lib/purecloud/models/call_record.rb +2 -1
  87. data/lib/purecloud/models/callable_contacts_diagnostic.rb +3 -0
  88. data/lib/purecloud/models/callable_time_set.rb +3 -3
  89. data/lib/purecloud/models/campaign.rb +3 -3
  90. data/lib/purecloud/models/campaign_diagnostics.rb +3 -0
  91. data/lib/purecloud/models/campaign_schedule.rb +7 -4
  92. data/lib/purecloud/models/campaign_sequence.rb +8 -3
  93. data/lib/purecloud/models/campaign_stats.rb +4 -0
  94. data/lib/purecloud/models/condition.rb +16 -0
  95. data/lib/purecloud/models/connect_rate.rb +3 -0
  96. data/lib/purecloud/models/contact_callback_request.rb +5 -0
  97. data/lib/purecloud/models/contact_list.rb +9 -3
  98. data/lib/purecloud/models/contact_phone_number_column.rb +3 -0
  99. data/lib/purecloud/models/create_callback_command.rb +12 -1
  100. data/lib/purecloud/models/create_user.rb +1 -0
  101. data/lib/purecloud/models/customer_interaction_center.rb +217 -0
  102. data/lib/purecloud/models/dialer_action.rb +31 -0
  103. data/lib/purecloud/models/dialer_contact.rb +5 -0
  104. data/lib/purecloud/models/dialer_rule.rb +15 -0
  105. data/lib/purecloud/models/dnc_list.rb +7 -14
  106. data/lib/purecloud/models/external_contact.rb +14 -1
  107. data/lib/purecloud/models/external_data_source.rb +176 -0
  108. data/lib/purecloud/models/external_organization.rb +14 -1
  109. data/lib/purecloud/models/import_status.rb +5 -0
  110. data/lib/purecloud/models/initiate_screen_recording.rb +187 -0
  111. data/lib/purecloud/models/json_node.rb +37 -37
  112. data/lib/purecloud/models/keyword.rb +227 -0
  113. data/lib/purecloud/models/keyword_set.rb +253 -0
  114. data/lib/purecloud/models/keyword_set_entity_listing.rb +257 -0
  115. data/lib/purecloud/models/o_auth_client.rb +3 -3
  116. data/lib/purecloud/models/okta.rb +11 -11
  117. data/lib/purecloud/models/one_login.rb +11 -11
  118. data/lib/purecloud/models/org_media_utilization.rb +17 -4
  119. data/lib/purecloud/models/organization_presence.rb +0 -9
  120. data/lib/purecloud/models/payment_method.rb +42 -1
  121. data/lib/purecloud/models/phone_number_status.rb +1 -0
  122. data/lib/purecloud/models/policy_actions.rb +14 -4
  123. data/lib/purecloud/models/queue_utilization_diagnostic.rb +8 -0
  124. data/lib/purecloud/models/response_set.rb +3 -3
  125. data/lib/purecloud/models/routing_skill.rb +2 -12
  126. data/lib/purecloud/models/routing_status.rb +1 -1
  127. data/lib/purecloud/models/rule_set.rb +6 -3
  128. data/lib/purecloud/models/salesforce.rb +11 -11
  129. data/lib/purecloud/models/{campaign_schedule_intervals.rb → schedule_interval.rb} +5 -5
  130. data/lib/purecloud/models/sequence_schedule.rb +7 -4
  131. data/lib/purecloud/models/station.rb +11 -1
  132. data/lib/purecloud/models/support_credit.rb +197 -0
  133. data/lib/purecloud/models/support_credit_listing.rb +257 -0
  134. data/lib/purecloud/models/system_presence.rb +187 -0
  135. data/lib/purecloud/models/trunk_recording_enabled_count.rb +177 -0
  136. data/lib/purecloud/models/user_image.rb +1 -0
  137. data/lib/purecloud/models/user_me.rb +50 -2
  138. data/lib/purecloud/models/user_routing_skill.rb +18 -11
  139. data/lib/purecloud/models/wrap_up_code_mapping.rb +5 -3
  140. data/lib/purecloud/version.rb +1 -1
  141. data/newVersion.md +1 -1
  142. data/swagger.json +1 -1
  143. data/version.json +1 -1
  144. metadata +32 -8
  145. data/doc_out/CampaignScheduleIntervals.html.md +0 -14
  146. data/doc_out/ObjectsApi.html.md +0 -69
  147. data/lib/purecloud/api/objects_api.rb +0 -87
@@ -0,0 +1,1072 @@
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@inin.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 IdentityProviderApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+
27
+ # Delete Customer Interaction Center (CIC) Identity Provider
28
+ #
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [nil]
31
+ def delete_cic(opts = {})
32
+ delete_cic_with_http_info(opts)
33
+ return nil
34
+ end
35
+
36
+ # Delete Customer Interaction Center (CIC) Identity Provider
37
+ #
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
+ def delete_cic_with_http_info(opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#delete_cic ..."
43
+ end
44
+
45
+ # resource path
46
+ local_var_path = "/api/v2/identityproviders/cic".sub('{format}','json')
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+
54
+ # HTTP header 'Accept' (if needed)
55
+ _header_accept = ['application/json']
56
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
57
+
58
+ # HTTP header 'Content-Type'
59
+ _header_content_type = ['application/json']
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = nil
67
+
68
+ auth_names = ['PureCloud Auth']
69
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
70
+ :header_params => header_params,
71
+ :query_params => query_params,
72
+ :form_params => form_params,
73
+ :body => post_body,
74
+ :auth_names => auth_names)
75
+ if @api_client.config.debugging
76
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_cic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ end
78
+ return data, status_code, headers
79
+ end
80
+
81
+ # Delete Okta Identity Provider
82
+ #
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [nil]
85
+ def delete_okta(opts = {})
86
+ delete_okta_with_http_info(opts)
87
+ return nil
88
+ end
89
+
90
+ # Delete Okta Identity Provider
91
+ #
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
94
+ def delete_okta_with_http_info(opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#delete_okta ..."
97
+ end
98
+
99
+ # resource path
100
+ local_var_path = "/api/v2/identityproviders/okta".sub('{format}','json')
101
+
102
+ # query parameters
103
+ query_params = {}
104
+
105
+ # header parameters
106
+ header_params = {}
107
+
108
+ # HTTP header 'Accept' (if needed)
109
+ _header_accept = ['application/json']
110
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
111
+
112
+ # HTTP header 'Content-Type'
113
+ _header_content_type = ['application/json']
114
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
115
+
116
+ # form parameters
117
+ form_params = {}
118
+
119
+ # http body (model)
120
+ post_body = nil
121
+
122
+ auth_names = ['PureCloud Auth']
123
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names)
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_okta\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+
135
+ # Delete OneLogin Identity Provider
136
+ #
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [nil]
139
+ def delete_onelogin(opts = {})
140
+ delete_onelogin_with_http_info(opts)
141
+ return nil
142
+ end
143
+
144
+ # Delete OneLogin Identity Provider
145
+ #
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
148
+ def delete_onelogin_with_http_info(opts = {})
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#delete_onelogin ..."
151
+ end
152
+
153
+ # resource path
154
+ local_var_path = "/api/v2/identityproviders/onelogin".sub('{format}','json')
155
+
156
+ # query parameters
157
+ query_params = {}
158
+
159
+ # header parameters
160
+ header_params = {}
161
+
162
+ # HTTP header 'Accept' (if needed)
163
+ _header_accept = ['application/json']
164
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
165
+
166
+ # HTTP header 'Content-Type'
167
+ _header_content_type = ['application/json']
168
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
169
+
170
+ # form parameters
171
+ form_params = {}
172
+
173
+ # http body (model)
174
+ post_body = nil
175
+
176
+ auth_names = ['PureCloud Auth']
177
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names)
183
+ if @api_client.config.debugging
184
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_onelogin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
185
+ end
186
+ return data, status_code, headers
187
+ end
188
+
189
+ # Delete an identity provider
190
+ #
191
+ # @param [Hash] opts the optional parameters
192
+ # @return [nil]
193
+ def delete_provider_id(opts = {})
194
+ delete_provider_id_with_http_info(opts)
195
+ return nil
196
+ end
197
+
198
+ # Delete an identity provider
199
+ #
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
202
+ def delete_provider_id_with_http_info(opts = {})
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#delete_provider_id ..."
205
+ end
206
+
207
+ # resource path
208
+ local_var_path = "/api/v2/identityproviders/{providerId}".sub('{format}','json')
209
+
210
+ # query parameters
211
+ query_params = {}
212
+
213
+ # header parameters
214
+ header_params = {}
215
+
216
+ # HTTP header 'Accept' (if needed)
217
+ _header_accept = ['application/json']
218
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
219
+
220
+ # HTTP header 'Content-Type'
221
+ _header_content_type = ['application/json']
222
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
223
+
224
+ # form parameters
225
+ form_params = {}
226
+
227
+ # http body (model)
228
+ post_body = nil
229
+
230
+ auth_names = ['PureCloud Auth']
231
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
232
+ :header_params => header_params,
233
+ :query_params => query_params,
234
+ :form_params => form_params,
235
+ :body => post_body,
236
+ :auth_names => auth_names)
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_provider_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
239
+ end
240
+ return data, status_code, headers
241
+ end
242
+
243
+ # Delete PureCloud Identity Provider
244
+ #
245
+ # @param [Hash] opts the optional parameters
246
+ # @return [nil]
247
+ def delete_purecloud(opts = {})
248
+ delete_purecloud_with_http_info(opts)
249
+ return nil
250
+ end
251
+
252
+ # Delete PureCloud Identity Provider
253
+ #
254
+ # @param [Hash] opts the optional parameters
255
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
256
+ def delete_purecloud_with_http_info(opts = {})
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#delete_purecloud ..."
259
+ end
260
+
261
+ # resource path
262
+ local_var_path = "/api/v2/identityproviders/purecloud".sub('{format}','json')
263
+
264
+ # query parameters
265
+ query_params = {}
266
+
267
+ # header parameters
268
+ header_params = {}
269
+
270
+ # HTTP header 'Accept' (if needed)
271
+ _header_accept = ['application/json']
272
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
273
+
274
+ # HTTP header 'Content-Type'
275
+ _header_content_type = ['application/json']
276
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
277
+
278
+ # form parameters
279
+ form_params = {}
280
+
281
+ # http body (model)
282
+ post_body = nil
283
+
284
+ auth_names = ['PureCloud Auth']
285
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
286
+ :header_params => header_params,
287
+ :query_params => query_params,
288
+ :form_params => form_params,
289
+ :body => post_body,
290
+ :auth_names => auth_names)
291
+ if @api_client.config.debugging
292
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_purecloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ end
294
+ return data, status_code, headers
295
+ end
296
+
297
+ # Delete Salesforce Identity Provider
298
+ #
299
+ # @param [Hash] opts the optional parameters
300
+ # @return [nil]
301
+ def delete_salesforce(opts = {})
302
+ delete_salesforce_with_http_info(opts)
303
+ return nil
304
+ end
305
+
306
+ # Delete Salesforce Identity Provider
307
+ #
308
+ # @param [Hash] opts the optional parameters
309
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
310
+ def delete_salesforce_with_http_info(opts = {})
311
+ if @api_client.config.debugging
312
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#delete_salesforce ..."
313
+ end
314
+
315
+ # resource path
316
+ local_var_path = "/api/v2/identityproviders/salesforce".sub('{format}','json')
317
+
318
+ # query parameters
319
+ query_params = {}
320
+
321
+ # header parameters
322
+ header_params = {}
323
+
324
+ # HTTP header 'Accept' (if needed)
325
+ _header_accept = ['application/json']
326
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
327
+
328
+ # HTTP header 'Content-Type'
329
+ _header_content_type = ['application/json']
330
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
331
+
332
+ # form parameters
333
+ form_params = {}
334
+
335
+ # http body (model)
336
+ post_body = nil
337
+
338
+ auth_names = ['PureCloud Auth']
339
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
340
+ :header_params => header_params,
341
+ :query_params => query_params,
342
+ :form_params => form_params,
343
+ :body => post_body,
344
+ :auth_names => auth_names)
345
+ if @api_client.config.debugging
346
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_salesforce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
347
+ end
348
+ return data, status_code, headers
349
+ end
350
+
351
+ # Get Customer Interaction Center (CIC) Identity Provider
352
+ #
353
+ # @param [Hash] opts the optional parameters
354
+ # @return [CustomerInteractionCenter]
355
+ def get_cic(opts = {})
356
+ data, status_code, headers = get_cic_with_http_info(opts)
357
+ return data
358
+ end
359
+
360
+ # Get Customer Interaction Center (CIC) Identity Provider
361
+ #
362
+ # @param [Hash] opts the optional parameters
363
+ # @return [Array<(CustomerInteractionCenter, Fixnum, Hash)>] CustomerInteractionCenter data, response status code and response headers
364
+ def get_cic_with_http_info(opts = {})
365
+ if @api_client.config.debugging
366
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_cic ..."
367
+ end
368
+
369
+ # resource path
370
+ local_var_path = "/api/v2/identityproviders/cic".sub('{format}','json')
371
+
372
+ # query parameters
373
+ query_params = {}
374
+
375
+ # header parameters
376
+ header_params = {}
377
+
378
+ # HTTP header 'Accept' (if needed)
379
+ _header_accept = ['application/json']
380
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
381
+
382
+ # HTTP header 'Content-Type'
383
+ _header_content_type = ['application/json']
384
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
385
+
386
+ # form parameters
387
+ form_params = {}
388
+
389
+ # http body (model)
390
+ post_body = nil
391
+
392
+ auth_names = ['PureCloud Auth']
393
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
394
+ :header_params => header_params,
395
+ :query_params => query_params,
396
+ :form_params => form_params,
397
+ :body => post_body,
398
+ :auth_names => auth_names,
399
+ :return_type => 'CustomerInteractionCenter')
400
+ if @api_client.config.debugging
401
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_cic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
402
+ end
403
+ return data, status_code, headers
404
+ end
405
+
406
+ # The list of identity providers
407
+ #
408
+ # @param [Hash] opts the optional parameters
409
+ # @return [OAuthProviderEntityListing]
410
+ def get_identityproviders(opts = {})
411
+ data, status_code, headers = get_identityproviders_with_http_info(opts)
412
+ return data
413
+ end
414
+
415
+ # The list of identity providers
416
+ #
417
+ # @param [Hash] opts the optional parameters
418
+ # @return [Array<(OAuthProviderEntityListing, Fixnum, Hash)>] OAuthProviderEntityListing data, response status code and response headers
419
+ def get_identityproviders_with_http_info(opts = {})
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_identityproviders ..."
422
+ end
423
+
424
+ # resource path
425
+ local_var_path = "/api/v2/identityproviders".sub('{format}','json')
426
+
427
+ # query parameters
428
+ query_params = {}
429
+
430
+ # header parameters
431
+ header_params = {}
432
+
433
+ # HTTP header 'Accept' (if needed)
434
+ _header_accept = ['application/json']
435
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
436
+
437
+ # HTTP header 'Content-Type'
438
+ _header_content_type = ['application/json']
439
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
440
+
441
+ # form parameters
442
+ form_params = {}
443
+
444
+ # http body (model)
445
+ post_body = nil
446
+
447
+ auth_names = ['PureCloud Auth']
448
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
449
+ :header_params => header_params,
450
+ :query_params => query_params,
451
+ :form_params => form_params,
452
+ :body => post_body,
453
+ :auth_names => auth_names,
454
+ :return_type => 'OAuthProviderEntityListing')
455
+ if @api_client.config.debugging
456
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_identityproviders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
457
+ end
458
+ return data, status_code, headers
459
+ end
460
+
461
+ # Get Okta Identity Provider
462
+ #
463
+ # @param [Hash] opts the optional parameters
464
+ # @return [Okta]
465
+ def get_okta(opts = {})
466
+ data, status_code, headers = get_okta_with_http_info(opts)
467
+ return data
468
+ end
469
+
470
+ # Get Okta Identity Provider
471
+ #
472
+ # @param [Hash] opts the optional parameters
473
+ # @return [Array<(Okta, Fixnum, Hash)>] Okta data, response status code and response headers
474
+ def get_okta_with_http_info(opts = {})
475
+ if @api_client.config.debugging
476
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_okta ..."
477
+ end
478
+
479
+ # resource path
480
+ local_var_path = "/api/v2/identityproviders/okta".sub('{format}','json')
481
+
482
+ # query parameters
483
+ query_params = {}
484
+
485
+ # header parameters
486
+ header_params = {}
487
+
488
+ # HTTP header 'Accept' (if needed)
489
+ _header_accept = ['application/json']
490
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
491
+
492
+ # HTTP header 'Content-Type'
493
+ _header_content_type = ['application/json']
494
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
495
+
496
+ # form parameters
497
+ form_params = {}
498
+
499
+ # http body (model)
500
+ post_body = nil
501
+
502
+ auth_names = ['PureCloud Auth']
503
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
504
+ :header_params => header_params,
505
+ :query_params => query_params,
506
+ :form_params => form_params,
507
+ :body => post_body,
508
+ :auth_names => auth_names,
509
+ :return_type => 'Okta')
510
+ if @api_client.config.debugging
511
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_okta\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
512
+ end
513
+ return data, status_code, headers
514
+ end
515
+
516
+ # Get OneLogin Identity Provider
517
+ #
518
+ # @param [Hash] opts the optional parameters
519
+ # @return [OneLogin]
520
+ def get_onelogin(opts = {})
521
+ data, status_code, headers = get_onelogin_with_http_info(opts)
522
+ return data
523
+ end
524
+
525
+ # Get OneLogin Identity Provider
526
+ #
527
+ # @param [Hash] opts the optional parameters
528
+ # @return [Array<(OneLogin, Fixnum, Hash)>] OneLogin data, response status code and response headers
529
+ def get_onelogin_with_http_info(opts = {})
530
+ if @api_client.config.debugging
531
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_onelogin ..."
532
+ end
533
+
534
+ # resource path
535
+ local_var_path = "/api/v2/identityproviders/onelogin".sub('{format}','json')
536
+
537
+ # query parameters
538
+ query_params = {}
539
+
540
+ # header parameters
541
+ header_params = {}
542
+
543
+ # HTTP header 'Accept' (if needed)
544
+ _header_accept = ['application/json']
545
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
546
+
547
+ # HTTP header 'Content-Type'
548
+ _header_content_type = ['application/json']
549
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
550
+
551
+ # form parameters
552
+ form_params = {}
553
+
554
+ # http body (model)
555
+ post_body = nil
556
+
557
+ auth_names = ['PureCloud Auth']
558
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
559
+ :header_params => header_params,
560
+ :query_params => query_params,
561
+ :form_params => form_params,
562
+ :body => post_body,
563
+ :auth_names => auth_names,
564
+ :return_type => 'OneLogin')
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_onelogin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
570
+
571
+ # Get an identity provider
572
+ #
573
+ # @param [Hash] opts the optional parameters
574
+ # @return [OAuthProvider]
575
+ def get_provider_id(opts = {})
576
+ data, status_code, headers = get_provider_id_with_http_info(opts)
577
+ return data
578
+ end
579
+
580
+ # Get an identity provider
581
+ #
582
+ # @param [Hash] opts the optional parameters
583
+ # @return [Array<(OAuthProvider, Fixnum, Hash)>] OAuthProvider data, response status code and response headers
584
+ def get_provider_id_with_http_info(opts = {})
585
+ if @api_client.config.debugging
586
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_provider_id ..."
587
+ end
588
+
589
+ # resource path
590
+ local_var_path = "/api/v2/identityproviders/{providerId}".sub('{format}','json')
591
+
592
+ # query parameters
593
+ query_params = {}
594
+
595
+ # header parameters
596
+ header_params = {}
597
+
598
+ # HTTP header 'Accept' (if needed)
599
+ _header_accept = ['application/json']
600
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
601
+
602
+ # HTTP header 'Content-Type'
603
+ _header_content_type = ['application/json']
604
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
605
+
606
+ # form parameters
607
+ form_params = {}
608
+
609
+ # http body (model)
610
+ post_body = nil
611
+
612
+ auth_names = ['PureCloud Auth']
613
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
614
+ :header_params => header_params,
615
+ :query_params => query_params,
616
+ :form_params => form_params,
617
+ :body => post_body,
618
+ :auth_names => auth_names,
619
+ :return_type => 'OAuthProvider')
620
+ if @api_client.config.debugging
621
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_provider_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
622
+ end
623
+ return data, status_code, headers
624
+ end
625
+
626
+ # Get PureCloud Identity Provider
627
+ #
628
+ # @param [Hash] opts the optional parameters
629
+ # @return [PureCloud]
630
+ def get_purecloud(opts = {})
631
+ data, status_code, headers = get_purecloud_with_http_info(opts)
632
+ return data
633
+ end
634
+
635
+ # Get PureCloud Identity Provider
636
+ #
637
+ # @param [Hash] opts the optional parameters
638
+ # @return [Array<(PureCloud, Fixnum, Hash)>] PureCloud data, response status code and response headers
639
+ def get_purecloud_with_http_info(opts = {})
640
+ if @api_client.config.debugging
641
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_purecloud ..."
642
+ end
643
+
644
+ # resource path
645
+ local_var_path = "/api/v2/identityproviders/purecloud".sub('{format}','json')
646
+
647
+ # query parameters
648
+ query_params = {}
649
+
650
+ # header parameters
651
+ header_params = {}
652
+
653
+ # HTTP header 'Accept' (if needed)
654
+ _header_accept = ['application/json']
655
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
656
+
657
+ # HTTP header 'Content-Type'
658
+ _header_content_type = ['application/json']
659
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
660
+
661
+ # form parameters
662
+ form_params = {}
663
+
664
+ # http body (model)
665
+ post_body = nil
666
+
667
+ auth_names = ['PureCloud Auth']
668
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
669
+ :header_params => header_params,
670
+ :query_params => query_params,
671
+ :form_params => form_params,
672
+ :body => post_body,
673
+ :auth_names => auth_names,
674
+ :return_type => 'PureCloud')
675
+ if @api_client.config.debugging
676
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_purecloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
677
+ end
678
+ return data, status_code, headers
679
+ end
680
+
681
+ # Get Salesforce Identity Provider
682
+ #
683
+ # @param [Hash] opts the optional parameters
684
+ # @return [Salesforce]
685
+ def get_salesforce(opts = {})
686
+ data, status_code, headers = get_salesforce_with_http_info(opts)
687
+ return data
688
+ end
689
+
690
+ # Get Salesforce Identity Provider
691
+ #
692
+ # @param [Hash] opts the optional parameters
693
+ # @return [Array<(Salesforce, Fixnum, Hash)>] Salesforce data, response status code and response headers
694
+ def get_salesforce_with_http_info(opts = {})
695
+ if @api_client.config.debugging
696
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#get_salesforce ..."
697
+ end
698
+
699
+ # resource path
700
+ local_var_path = "/api/v2/identityproviders/salesforce".sub('{format}','json')
701
+
702
+ # query parameters
703
+ query_params = {}
704
+
705
+ # header parameters
706
+ header_params = {}
707
+
708
+ # HTTP header 'Accept' (if needed)
709
+ _header_accept = ['application/json']
710
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
711
+
712
+ # HTTP header 'Content-Type'
713
+ _header_content_type = ['application/json']
714
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
715
+
716
+ # form parameters
717
+ form_params = {}
718
+
719
+ # http body (model)
720
+ post_body = nil
721
+
722
+ auth_names = ['PureCloud Auth']
723
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
724
+ :header_params => header_params,
725
+ :query_params => query_params,
726
+ :form_params => form_params,
727
+ :body => post_body,
728
+ :auth_names => auth_names,
729
+ :return_type => 'Salesforce')
730
+ if @api_client.config.debugging
731
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_salesforce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
732
+ end
733
+ return data, status_code, headers
734
+ end
735
+
736
+ # Update/Create Customer Interaction Center (CIC) Identity Provider
737
+ #
738
+ # @param [Hash] opts the optional parameters
739
+ # @option opts [CustomerInteractionCenter] :body Provider
740
+ # @return [nil]
741
+ def put_cic(opts = {})
742
+ put_cic_with_http_info(opts)
743
+ return nil
744
+ end
745
+
746
+ # Update/Create Customer Interaction Center (CIC) Identity Provider
747
+ #
748
+ # @param [Hash] opts the optional parameters
749
+ # @option opts [CustomerInteractionCenter] :body Provider
750
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
751
+ def put_cic_with_http_info(opts = {})
752
+ if @api_client.config.debugging
753
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#put_cic ..."
754
+ end
755
+
756
+ # resource path
757
+ local_var_path = "/api/v2/identityproviders/cic".sub('{format}','json')
758
+
759
+ # query parameters
760
+ query_params = {}
761
+
762
+ # header parameters
763
+ header_params = {}
764
+
765
+ # HTTP header 'Accept' (if needed)
766
+ _header_accept = ['application/json']
767
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
768
+
769
+ # HTTP header 'Content-Type'
770
+ _header_content_type = ['application/json']
771
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
772
+
773
+ # form parameters
774
+ form_params = {}
775
+
776
+ # http body (model)
777
+ post_body = @api_client.object_to_http_body(opts[:'body'])
778
+
779
+ auth_names = ['PureCloud Auth']
780
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
781
+ :header_params => header_params,
782
+ :query_params => query_params,
783
+ :form_params => form_params,
784
+ :body => post_body,
785
+ :auth_names => auth_names)
786
+ if @api_client.config.debugging
787
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_cic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
788
+ end
789
+ return data, status_code, headers
790
+ end
791
+
792
+ # Update/Create Okta Identity Provider
793
+ #
794
+ # @param [Hash] opts the optional parameters
795
+ # @option opts [Okta] :body Provider
796
+ # @return [nil]
797
+ def put_okta(opts = {})
798
+ put_okta_with_http_info(opts)
799
+ return nil
800
+ end
801
+
802
+ # Update/Create Okta Identity Provider
803
+ #
804
+ # @param [Hash] opts the optional parameters
805
+ # @option opts [Okta] :body Provider
806
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
807
+ def put_okta_with_http_info(opts = {})
808
+ if @api_client.config.debugging
809
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#put_okta ..."
810
+ end
811
+
812
+ # resource path
813
+ local_var_path = "/api/v2/identityproviders/okta".sub('{format}','json')
814
+
815
+ # query parameters
816
+ query_params = {}
817
+
818
+ # header parameters
819
+ header_params = {}
820
+
821
+ # HTTP header 'Accept' (if needed)
822
+ _header_accept = ['application/json']
823
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
824
+
825
+ # HTTP header 'Content-Type'
826
+ _header_content_type = ['application/json']
827
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
828
+
829
+ # form parameters
830
+ form_params = {}
831
+
832
+ # http body (model)
833
+ post_body = @api_client.object_to_http_body(opts[:'body'])
834
+
835
+ auth_names = ['PureCloud Auth']
836
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
837
+ :header_params => header_params,
838
+ :query_params => query_params,
839
+ :form_params => form_params,
840
+ :body => post_body,
841
+ :auth_names => auth_names)
842
+ if @api_client.config.debugging
843
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_okta\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
844
+ end
845
+ return data, status_code, headers
846
+ end
847
+
848
+ # Update/Create OneLogin Identity Provider
849
+ #
850
+ # @param [Hash] opts the optional parameters
851
+ # @option opts [OneLogin] :body Provider
852
+ # @return [nil]
853
+ def put_onelogin(opts = {})
854
+ put_onelogin_with_http_info(opts)
855
+ return nil
856
+ end
857
+
858
+ # Update/Create OneLogin Identity Provider
859
+ #
860
+ # @param [Hash] opts the optional parameters
861
+ # @option opts [OneLogin] :body Provider
862
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
863
+ def put_onelogin_with_http_info(opts = {})
864
+ if @api_client.config.debugging
865
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#put_onelogin ..."
866
+ end
867
+
868
+ # resource path
869
+ local_var_path = "/api/v2/identityproviders/onelogin".sub('{format}','json')
870
+
871
+ # query parameters
872
+ query_params = {}
873
+
874
+ # header parameters
875
+ header_params = {}
876
+
877
+ # HTTP header 'Accept' (if needed)
878
+ _header_accept = ['application/json']
879
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
880
+
881
+ # HTTP header 'Content-Type'
882
+ _header_content_type = ['application/json']
883
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
884
+
885
+ # form parameters
886
+ form_params = {}
887
+
888
+ # http body (model)
889
+ post_body = @api_client.object_to_http_body(opts[:'body'])
890
+
891
+ auth_names = ['PureCloud Auth']
892
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
893
+ :header_params => header_params,
894
+ :query_params => query_params,
895
+ :form_params => form_params,
896
+ :body => post_body,
897
+ :auth_names => auth_names)
898
+ if @api_client.config.debugging
899
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_onelogin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
900
+ end
901
+ return data, status_code, headers
902
+ end
903
+
904
+ # Update an identity provider
905
+ #
906
+ # @param [Hash] opts the optional parameters
907
+ # @option opts [OAuthProvider] :body Provider
908
+ # @return [nil]
909
+ def put_provider_id(opts = {})
910
+ put_provider_id_with_http_info(opts)
911
+ return nil
912
+ end
913
+
914
+ # Update an identity provider
915
+ #
916
+ # @param [Hash] opts the optional parameters
917
+ # @option opts [OAuthProvider] :body Provider
918
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
919
+ def put_provider_id_with_http_info(opts = {})
920
+ if @api_client.config.debugging
921
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#put_provider_id ..."
922
+ end
923
+
924
+ # resource path
925
+ local_var_path = "/api/v2/identityproviders/{providerId}".sub('{format}','json')
926
+
927
+ # query parameters
928
+ query_params = {}
929
+
930
+ # header parameters
931
+ header_params = {}
932
+
933
+ # HTTP header 'Accept' (if needed)
934
+ _header_accept = ['application/json']
935
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
936
+
937
+ # HTTP header 'Content-Type'
938
+ _header_content_type = ['application/json']
939
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
940
+
941
+ # form parameters
942
+ form_params = {}
943
+
944
+ # http body (model)
945
+ post_body = @api_client.object_to_http_body(opts[:'body'])
946
+
947
+ auth_names = ['PureCloud Auth']
948
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
949
+ :header_params => header_params,
950
+ :query_params => query_params,
951
+ :form_params => form_params,
952
+ :body => post_body,
953
+ :auth_names => auth_names)
954
+ if @api_client.config.debugging
955
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_provider_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
956
+ end
957
+ return data, status_code, headers
958
+ end
959
+
960
+ # Update/Create PureCloud Identity Provider
961
+ #
962
+ # @param [Hash] opts the optional parameters
963
+ # @option opts [PureCloud] :body Provider
964
+ # @return [nil]
965
+ def put_purecloud(opts = {})
966
+ put_purecloud_with_http_info(opts)
967
+ return nil
968
+ end
969
+
970
+ # Update/Create PureCloud Identity Provider
971
+ #
972
+ # @param [Hash] opts the optional parameters
973
+ # @option opts [PureCloud] :body Provider
974
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
975
+ def put_purecloud_with_http_info(opts = {})
976
+ if @api_client.config.debugging
977
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#put_purecloud ..."
978
+ end
979
+
980
+ # resource path
981
+ local_var_path = "/api/v2/identityproviders/purecloud".sub('{format}','json')
982
+
983
+ # query parameters
984
+ query_params = {}
985
+
986
+ # header parameters
987
+ header_params = {}
988
+
989
+ # HTTP header 'Accept' (if needed)
990
+ _header_accept = ['application/json']
991
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
992
+
993
+ # HTTP header 'Content-Type'
994
+ _header_content_type = ['application/json']
995
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
996
+
997
+ # form parameters
998
+ form_params = {}
999
+
1000
+ # http body (model)
1001
+ post_body = @api_client.object_to_http_body(opts[:'body'])
1002
+
1003
+ auth_names = ['PureCloud Auth']
1004
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1005
+ :header_params => header_params,
1006
+ :query_params => query_params,
1007
+ :form_params => form_params,
1008
+ :body => post_body,
1009
+ :auth_names => auth_names)
1010
+ if @api_client.config.debugging
1011
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_purecloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1012
+ end
1013
+ return data, status_code, headers
1014
+ end
1015
+
1016
+ # Update/Create Salesforce Identity Provider
1017
+ #
1018
+ # @param [Hash] opts the optional parameters
1019
+ # @option opts [Salesforce] :body Provider
1020
+ # @return [nil]
1021
+ def put_salesforce(opts = {})
1022
+ put_salesforce_with_http_info(opts)
1023
+ return nil
1024
+ end
1025
+
1026
+ # Update/Create Salesforce Identity Provider
1027
+ #
1028
+ # @param [Hash] opts the optional parameters
1029
+ # @option opts [Salesforce] :body Provider
1030
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1031
+ def put_salesforce_with_http_info(opts = {})
1032
+ if @api_client.config.debugging
1033
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi#put_salesforce ..."
1034
+ end
1035
+
1036
+ # resource path
1037
+ local_var_path = "/api/v2/identityproviders/salesforce".sub('{format}','json')
1038
+
1039
+ # query parameters
1040
+ query_params = {}
1041
+
1042
+ # header parameters
1043
+ header_params = {}
1044
+
1045
+ # HTTP header 'Accept' (if needed)
1046
+ _header_accept = ['application/json']
1047
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1048
+
1049
+ # HTTP header 'Content-Type'
1050
+ _header_content_type = ['application/json']
1051
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1052
+
1053
+ # form parameters
1054
+ form_params = {}
1055
+
1056
+ # http body (model)
1057
+ post_body = @api_client.object_to_http_body(opts[:'body'])
1058
+
1059
+ auth_names = ['PureCloud Auth']
1060
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1061
+ :header_params => header_params,
1062
+ :query_params => query_params,
1063
+ :form_params => form_params,
1064
+ :body => post_body,
1065
+ :auth_names => auth_names)
1066
+ if @api_client.config.debugging
1067
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_salesforce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1068
+ end
1069
+ return data, status_code, headers
1070
+ end
1071
+ end
1072
+ end