purecloud 0.30.1 → 0.31.1

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 (181) hide show
  1. checksums.yaml +4 -4
  2. data/config-ruby.json +1 -1
  3. data/lib/purecloud/api/configuration_api.rb +4 -814
  4. data/lib/purecloud/api/conversations_api.rb +1035 -1763
  5. data/lib/purecloud/api/organization_api.rb +0 -58
  6. data/lib/purecloud/api/quality_api.rb +629 -0
  7. data/lib/purecloud/api/telephony_providers_edge_api.rb +1033 -677
  8. data/lib/purecloud/api/users_api.rb +311 -0
  9. data/lib/purecloud/api/voicemail_api.rb +176 -176
  10. data/lib/purecloud/models/address_listing.rb +17 -17
  11. data/lib/purecloud/models/agent_activity_entity_listing.rb +17 -17
  12. data/lib/purecloud/models/aggregate_metric_data.rb +1 -1
  13. data/lib/purecloud/models/analytics_conversation_segment.rb +18 -235
  14. data/lib/purecloud/models/analytics_participant.rb +40 -1
  15. data/lib/purecloud/models/analytics_query_predicate.rb +2 -2
  16. data/lib/purecloud/models/analytics_session.rb +150 -1
  17. data/lib/purecloud/models/attribute_entity_listing.rb +17 -17
  18. data/lib/purecloud/models/automate_queue_member_entity_listing.rb +17 -17
  19. data/lib/purecloud/models/available_additional_service_listing.rb +17 -17
  20. data/lib/purecloud/models/available_topic_entity_listing.rb +17 -17
  21. data/lib/purecloud/models/calibration_entity_listing.rb +17 -17
  22. data/lib/purecloud/models/call_conversation_entity_listing.rb +17 -17
  23. data/lib/purecloud/models/callable_time_set_entity_listing.rb +17 -17
  24. data/lib/purecloud/models/callback_conversation_entity_listing.rb +17 -17
  25. data/lib/purecloud/models/campaign_entity_listing.rb +17 -17
  26. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +17 -17
  27. data/lib/purecloud/models/carrier_entity_listing.rb +17 -17
  28. data/lib/purecloud/models/certificate_authority_entity_listing.rb +17 -17
  29. data/lib/purecloud/models/channel_entity_listing.rb +17 -17
  30. data/lib/purecloud/models/channel_topic_entity_listing.rb +17 -17
  31. data/lib/purecloud/models/chat_conversation_entity_listing.rb +17 -17
  32. data/lib/purecloud/models/command_status_entity_listing.rb +17 -17
  33. data/lib/purecloud/models/consumed_resources_entity_listing.rb +17 -17
  34. data/lib/purecloud/models/consuming_resources_entity_listing.rb +17 -17
  35. data/lib/purecloud/models/contact_list_entity_listing.rb +17 -17
  36. data/lib/purecloud/models/contact_listing.rb +17 -17
  37. data/lib/purecloud/models/conversation_entity_listing.rb +17 -17
  38. data/lib/purecloud/models/create_user.rb +1 -11
  39. data/lib/purecloud/models/data_item.rb +23 -19
  40. data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +17 -17
  41. data/lib/purecloud/models/dependency_object_entity_listing.rb +17 -17
  42. data/lib/purecloud/models/dependency_type_entity_listing.rb +17 -17
  43. data/lib/purecloud/models/did_entity_listing.rb +17 -17
  44. data/lib/purecloud/models/did_pool_entity_listing.rb +17 -17
  45. data/lib/purecloud/models/dnc_list_entity_listing.rb +17 -17
  46. data/lib/purecloud/models/document_audit_entity_listing.rb +17 -17
  47. data/lib/purecloud/models/document_entity_listing.rb +17 -17
  48. data/lib/purecloud/models/domain_billing_period_entity_listing.rb +17 -17
  49. data/lib/purecloud/models/domain_entity_listing.rb +17 -17
  50. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +17 -17
  51. data/lib/purecloud/models/domain_entity_listing_query_result.rb +17 -17
  52. data/lib/purecloud/models/domain_invoice_entity_listing.rb +17 -17
  53. data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +17 -17
  54. data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +17 -17
  55. data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +17 -17
  56. data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +17 -17
  57. data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +17 -17
  58. data/lib/purecloud/models/edge_entity_listing.rb +17 -17
  59. data/lib/purecloud/models/edge_group_entity_listing.rb +17 -17
  60. data/lib/purecloud/models/edge_line_entity_listing.rb +17 -17
  61. data/lib/purecloud/models/email_conversation_entity_listing.rb +17 -17
  62. data/lib/purecloud/models/email_message_listing.rb +17 -17
  63. data/lib/purecloud/models/encryption_key_entity_listing.rb +17 -17
  64. data/lib/purecloud/models/endpoint_entity_listing.rb +17 -17
  65. data/lib/purecloud/models/evaluation_entity_listing.rb +17 -17
  66. data/lib/purecloud/models/evaluation_form_entity_listing.rb +17 -17
  67. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +17 -17
  68. data/lib/purecloud/models/extension_entity_listing.rb +17 -17
  69. data/lib/purecloud/models/extension_pool_entity_listing.rb +17 -17
  70. data/lib/purecloud/models/external_organization_listing.rb +17 -17
  71. data/lib/purecloud/models/fax_document_entity_listing.rb +17 -17
  72. data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +17 -17
  73. data/lib/purecloud/models/flow_entity_listing.rb +17 -17
  74. data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +17 -17
  75. data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +17 -17
  76. data/lib/purecloud/models/flow_version_entity_listing.rb +17 -17
  77. data/lib/purecloud/models/group_entity_listing.rb +17 -17
  78. data/lib/purecloud/models/hardware_rate_listing.rb +17 -17
  79. data/lib/purecloud/models/inbound_domain_entity_listing.rb +17 -17
  80. data/lib/purecloud/models/inbound_route_entity_listing.rb +17 -17
  81. data/lib/purecloud/models/integration_type_entity_listing.rb +17 -17
  82. data/lib/purecloud/models/interaction_stats_alert_container.rb +17 -17
  83. data/lib/purecloud/models/interaction_stats_rule_container.rb +17 -17
  84. data/lib/purecloud/models/ivr_entity_listing.rb +17 -17
  85. data/lib/purecloud/models/json_node.rb +32 -32
  86. data/lib/purecloud/models/language_entity_listing.rb +17 -17
  87. data/lib/purecloud/models/library_entity_listing.rb +17 -17
  88. data/lib/purecloud/models/line_base_entity_listing.rb +17 -17
  89. data/lib/purecloud/models/line_entity_listing.rb +17 -17
  90. data/lib/purecloud/models/linked_entity_listing_flow_details.rb +17 -17
  91. data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +17 -17
  92. data/lib/purecloud/models/location_entity_listing.rb +17 -17
  93. data/lib/purecloud/models/logical_interface_entity_listing.rb +17 -17
  94. data/lib/purecloud/models/note_listing.rb +17 -17
  95. data/lib/purecloud/models/o_auth_client_entity_listing.rb +17 -17
  96. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +17 -17
  97. data/lib/purecloud/models/organization.rb +1 -0
  98. data/lib/purecloud/models/organization_presence_entity_listing.rb +17 -17
  99. data/lib/purecloud/models/organization_role_entity_listing.rb +17 -17
  100. data/lib/purecloud/models/orphan_recording_listing.rb +17 -17
  101. data/lib/purecloud/models/outbound_route_entity_listing.rb +17 -17
  102. data/lib/purecloud/models/payment_method_listing.rb +17 -17
  103. data/lib/purecloud/models/permission_collection_entity_listing.rb +17 -17
  104. data/lib/purecloud/models/phone_base_entity_listing.rb +17 -17
  105. data/lib/purecloud/models/phone_entity_listing.rb +17 -17
  106. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +17 -17
  107. data/lib/purecloud/models/physical_interface_entity_listing.rb +17 -17
  108. data/lib/purecloud/models/policy_entity_listing.rb +17 -17
  109. data/lib/purecloud/models/prompt_asset_entity_listing.rb +17 -17
  110. data/lib/purecloud/models/prompt_entity_listing.rb +17 -17
  111. data/lib/purecloud/models/property_index_request.rb +1 -12
  112. data/lib/purecloud/models/quality_audit_page.rb +17 -17
  113. data/lib/purecloud/models/queue_entity_listing.rb +17 -17
  114. data/lib/purecloud/models/queues_entity_listing.rb +17 -17
  115. data/lib/purecloud/models/quote_listing.rb +17 -17
  116. data/lib/purecloud/models/relationship_listing.rb +17 -17
  117. data/lib/purecloud/models/report_meta_data_entity_listing.rb +17 -17
  118. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +17 -17
  119. data/lib/purecloud/models/report_schedule_entity_listing.rb +17 -17
  120. data/lib/purecloud/models/response_entity_list.rb +17 -17
  121. data/lib/purecloud/models/response_entity_listing.rb +17 -17
  122. data/lib/purecloud/models/response_set_entity_listing.rb +17 -17
  123. data/lib/purecloud/models/rule_set_entity_listing.rb +17 -17
  124. data/lib/purecloud/models/schedule_entity_listing.rb +17 -17
  125. data/lib/purecloud/models/schedule_group_entity_listing.rb +17 -17
  126. data/lib/purecloud/models/schema_category_entity_listing.rb +17 -17
  127. data/lib/purecloud/models/schema_reference_entity_listing.rb +17 -17
  128. data/lib/purecloud/models/script_entity_listing.rb +17 -17
  129. data/lib/purecloud/models/security_profile_entity_listing.rb +17 -17
  130. data/lib/purecloud/models/service_entity_listing.rb +17 -17
  131. data/lib/purecloud/models/share_entity_listing.rb +17 -17
  132. data/lib/purecloud/models/site.rb +1 -1
  133. data/lib/purecloud/models/site_entity_listing.rb +17 -17
  134. data/lib/purecloud/models/skill_entity_listing.rb +17 -17
  135. data/lib/purecloud/models/social_conversation_entity_listing.rb +17 -17
  136. data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +17 -17
  137. data/lib/purecloud/models/station_entity_listing.rb +17 -17
  138. data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +17 -17
  139. data/lib/purecloud/models/system_prompt_entity_listing.rb +17 -17
  140. data/lib/purecloud/models/tag_value_entity_listing.rb +17 -17
  141. data/lib/purecloud/models/template_entity_listing.rb +17 -17
  142. data/lib/purecloud/models/text_table_transform_entity_listing.rb +17 -17
  143. data/lib/purecloud/models/time_zone_entity_listing.rb +17 -17
  144. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +17 -17
  145. data/lib/purecloud/models/user_action_category_entity_listing.rb +17 -17
  146. data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
  147. data/lib/purecloud/models/user_entity_listing.rb +17 -17
  148. data/lib/purecloud/models/user_queue_entity_listing.rb +17 -17
  149. data/lib/purecloud/models/user_recording_entity_listing.rb +17 -17
  150. data/lib/purecloud/models/user_skill_entity_listing.rb +17 -17
  151. data/lib/purecloud/models/users_entity_listing.rb +17 -17
  152. data/lib/purecloud/models/video_conversation_entity_listing.rb +17 -17
  153. data/lib/purecloud/models/voice_rate_international_entity_listing.rb +17 -17
  154. data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +17 -17
  155. data/lib/purecloud/models/voicemail_message_entity_listing.rb +17 -17
  156. data/lib/purecloud/models/workspace_entity_listing.rb +17 -17
  157. data/lib/purecloud/models/workspace_member_entity_listing.rb +17 -17
  158. data/lib/purecloud/models/wrapup_code_entity_listing.rb +17 -17
  159. data/lib/purecloud/version.rb +1 -1
  160. data/lib/purecloud.rb +83 -100
  161. data/newVersion.md +1 -1
  162. data/swagger.json +1 -1
  163. data/version.json +1 -1
  164. metadata +2 -19
  165. data/lib/purecloud/api/callbacks_api.rb +0 -483
  166. data/lib/purecloud/api/calls_api.rb +0 -1088
  167. data/lib/purecloud/api/chats_api.rb +0 -483
  168. data/lib/purecloud/api/compliance_api.rb +0 -129
  169. data/lib/purecloud/api/downloads_api.rb +0 -140
  170. data/lib/purecloud/api/emails_api.rb +0 -1013
  171. data/lib/purecloud/api/evaluations_api.rb +0 -73
  172. data/lib/purecloud/api/faxes_api.rb +0 -73
  173. data/lib/purecloud/api/integrations_api.rb +0 -150
  174. data/lib/purecloud/api/integrations_workforce_management_api.rb +0 -73
  175. data/lib/purecloud/api/licensing_api.rb +0 -428
  176. data/lib/purecloud/api/scripts_api.rb +0 -718
  177. data/lib/purecloud/api/socials_api.rb +0 -483
  178. data/lib/purecloud/api/videos_api.rb +0 -483
  179. data/lib/purecloud/models/body.rb +0 -136
  180. data/lib/purecloud/models/organization_address.rb +0 -194
  181. data/lib/purecloud/models/participant_request.rb +0 -242
@@ -31,7 +31,7 @@ module PureCloud
31
31
  end
32
32
 
33
33
  # resource path
34
- path = "/api/v2/configuration/recordingkeys".sub('{format}','json')
34
+ path = "/api/v2/recording/recordingkeys".sub('{format}','json')
35
35
 
36
36
  # query parameters
37
37
  query_params = {}
@@ -89,7 +89,7 @@ module PureCloud
89
89
  end
90
90
 
91
91
  # resource path
92
- path = "/api/v2/configuration/recordingkeys".sub('{format}','json')
92
+ path = "/api/v2/recording/recordingkeys".sub('{format}','json')
93
93
 
94
94
  # query parameters
95
95
  query_params = {}
@@ -145,7 +145,7 @@ module PureCloud
145
145
  end
146
146
 
147
147
  # resource path
148
- path = "/api/v2/configuration/recordingkeys/rotationschedule".sub('{format}','json')
148
+ path = "/api/v2/recording/recordingkeys/rotationschedule".sub('{format}','json')
149
149
 
150
150
  # query parameters
151
151
  query_params = {}
@@ -203,7 +203,7 @@ module PureCloud
203
203
  end
204
204
 
205
205
  # resource path
206
- path = "/api/v2/configuration/recordingkeys/rotationschedule".sub('{format}','json')
206
+ path = "/api/v2/recording/recordingkeys/rotationschedule".sub('{format}','json')
207
207
 
208
208
  # query parameters
209
209
  query_params = {}
@@ -239,816 +239,6 @@ module PureCloud
239
239
  end
240
240
  return data, status_code, headers
241
241
  end
242
-
243
- # Gets retention policy list with query options to filter on name and enabled.
244
- # for a less verbose response, add summary=true to this endpoint
245
- # @param [Hash] opts the optional parameters
246
- # @option opts [Integer] :page_size The total page size requested
247
- # @option opts [Integer] :page_number The page number requested
248
- # @option opts [String] :sort_by variable name requested to sort by
249
- # @option opts [Array<String>] :expand variable name requested by expand list
250
- # @option opts [String] :next_page next page token
251
- # @option opts [String] :previous_page Previous page token
252
- # @option opts [String] :name the policy name - used for filtering results in searches.
253
- # @option opts [BOOLEAN] :enabled checks to see if policy is enabled - use enabled = true or enabled = false
254
- # @option opts [BOOLEAN] :summary provides a less verbose response of policy lists.
255
- # @option opts [BOOLEAN] :has_errors provides a way to fetch all policies with errors or policies that do not have errors
256
- # @return [PolicyEntityListing]
257
- def get_retentionpolicies(opts = {})
258
- data, status_code, headers = get_retentionpolicies_with_http_info(opts)
259
- return data
260
- end
261
-
262
- # Gets retention policy list with query options to filter on name and enabled.
263
- # for a less verbose response, add summary=true to this endpoint
264
- # @param [Hash] opts the optional parameters
265
- # @option opts [Integer] :page_size The total page size requested
266
- # @option opts [Integer] :page_number The page number requested
267
- # @option opts [String] :sort_by variable name requested to sort by
268
- # @option opts [Array<String>] :expand variable name requested by expand list
269
- # @option opts [String] :next_page next page token
270
- # @option opts [String] :previous_page Previous page token
271
- # @option opts [String] :name the policy name - used for filtering results in searches.
272
- # @option opts [BOOLEAN] :enabled checks to see if policy is enabled - use enabled = true or enabled = false
273
- # @option opts [BOOLEAN] :summary provides a less verbose response of policy lists.
274
- # @option opts [BOOLEAN] :has_errors provides a way to fetch all policies with errors or policies that do not have errors
275
- # @return [Array<(PolicyEntityListing, Fixnum, Hash)>] PolicyEntityListing data, response status code and response headers
276
- def get_retentionpolicies_with_http_info(opts = {})
277
- if @api_client.config.debugging
278
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_retentionpolicies ..."
279
- end
280
-
281
- # resource path
282
- path = "/api/v2/configuration/retentionpolicies".sub('{format}','json')
283
-
284
- # query parameters
285
- query_params = {}
286
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
287
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
288
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
289
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
290
- query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
291
- query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
292
- query_params[:'name'] = opts[:'name'] if opts[:'name']
293
- query_params[:'enabled'] = opts[:'enabled'] if opts[:'enabled']
294
- query_params[:'summary'] = opts[:'summary'] if opts[:'summary']
295
- query_params[:'hasErrors'] = opts[:'has_errors'] if opts[:'has_errors']
296
-
297
- # header parameters
298
- header_params = {}
299
-
300
- # HTTP header 'Accept' (if needed)
301
- _header_accept = ['application/json']
302
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
303
-
304
- # HTTP header 'Content-Type'
305
- _header_content_type = ['application/json']
306
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
307
-
308
- # form parameters
309
- form_params = {}
310
-
311
- # http body (model)
312
- post_body = nil
313
-
314
-
315
- auth_names = ['PureCloud Auth']
316
- data, status_code, headers = @api_client.call_api(:GET, path,
317
- :header_params => header_params,
318
- :query_params => query_params,
319
- :form_params => form_params,
320
- :body => post_body,
321
- :auth_names => auth_names,
322
- :return_type => 'PolicyEntityListing')
323
- if @api_client.config.debugging
324
- @api_client.config.logger.debug "API called: ConfigurationApi#get_retentionpolicies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
- end
326
- return data, status_code, headers
327
- end
328
-
329
- # Create retention policy
330
- #
331
- # @param [Hash] opts the optional parameters
332
- # @option opts [Policy] :body Policy
333
- # @return [Policy]
334
- def post_retentionpolicies(opts = {})
335
- data, status_code, headers = post_retentionpolicies_with_http_info(opts)
336
- return data
337
- end
338
-
339
- # Create retention policy
340
- #
341
- # @param [Hash] opts the optional parameters
342
- # @option opts [Policy] :body Policy
343
- # @return [Array<(Policy, Fixnum, Hash)>] Policy data, response status code and response headers
344
- def post_retentionpolicies_with_http_info(opts = {})
345
- if @api_client.config.debugging
346
- @api_client.config.logger.debug "Calling API: ConfigurationApi#post_retentionpolicies ..."
347
- end
348
-
349
- # resource path
350
- path = "/api/v2/configuration/retentionpolicies".sub('{format}','json')
351
-
352
- # query parameters
353
- query_params = {}
354
-
355
- # header parameters
356
- header_params = {}
357
-
358
- # HTTP header 'Accept' (if needed)
359
- _header_accept = ['application/json']
360
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
361
-
362
- # HTTP header 'Content-Type'
363
- _header_content_type = ['application/json']
364
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
365
-
366
- # form parameters
367
- form_params = {}
368
-
369
- # http body (model)
370
- post_body = @api_client.object_to_http_body(opts[:'body'])
371
-
372
-
373
- auth_names = ['PureCloud Auth']
374
- data, status_code, headers = @api_client.call_api(:POST, path,
375
- :header_params => header_params,
376
- :query_params => query_params,
377
- :form_params => form_params,
378
- :body => post_body,
379
- :auth_names => auth_names,
380
- :return_type => 'Policy')
381
- if @api_client.config.debugging
382
- @api_client.config.logger.debug "API called: ConfigurationApi#post_retentionpolicies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
383
- end
384
- return data, status_code, headers
385
- end
386
-
387
- # Delete policies
388
- # Bulk delete of Rules from specified rule set, this will only delete the rules that match the ids specified in the query param.
389
- # @param ids
390
- # @param [Hash] opts the optional parameters
391
- # @return [String]
392
- def delete_retentionpolicies(ids, opts = {})
393
- data, status_code, headers = delete_retentionpolicies_with_http_info(ids, opts)
394
- return data
395
- end
396
-
397
- # Delete policies
398
- # Bulk delete of Rules from specified rule set, this will only delete the rules that match the ids specified in the query param.
399
- # @param ids
400
- # @param [Hash] opts the optional parameters
401
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
402
- def delete_retentionpolicies_with_http_info(ids, opts = {})
403
- if @api_client.config.debugging
404
- @api_client.config.logger.debug "Calling API: ConfigurationApi#delete_retentionpolicies ..."
405
- end
406
-
407
- # verify the required parameter 'ids' is set
408
- fail "Missing the required parameter 'ids' when calling delete_retentionpolicies" if ids.nil?
409
-
410
- # resource path
411
- path = "/api/v2/configuration/retentionpolicies".sub('{format}','json')
412
-
413
- # query parameters
414
- query_params = {}
415
- query_params[:'ids'] = ids
416
-
417
- # header parameters
418
- header_params = {}
419
-
420
- # HTTP header 'Accept' (if needed)
421
- _header_accept = ['application/json']
422
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
423
-
424
- # HTTP header 'Content-Type'
425
- _header_content_type = ['application/json']
426
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
427
-
428
- # form parameters
429
- form_params = {}
430
-
431
- # http body (model)
432
- post_body = nil
433
-
434
-
435
- auth_names = ['PureCloud Auth']
436
- data, status_code, headers = @api_client.call_api(:DELETE, path,
437
- :header_params => header_params,
438
- :query_params => query_params,
439
- :form_params => form_params,
440
- :body => post_body,
441
- :auth_names => auth_names,
442
- :return_type => 'String')
443
- if @api_client.config.debugging
444
- @api_client.config.logger.debug "API called: ConfigurationApi#delete_retentionpolicies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
445
- end
446
- return data, status_code, headers
447
- end
448
-
449
- # Get policy
450
- #
451
- # @param policy_id Policy ID
452
- # @param [Hash] opts the optional parameters
453
- # @return [Policy]
454
- def get_retentionpolicies_policy_id(policy_id, opts = {})
455
- data, status_code, headers = get_retentionpolicies_policy_id_with_http_info(policy_id, opts)
456
- return data
457
- end
458
-
459
- # Get policy
460
- #
461
- # @param policy_id Policy ID
462
- # @param [Hash] opts the optional parameters
463
- # @return [Array<(Policy, Fixnum, Hash)>] Policy data, response status code and response headers
464
- def get_retentionpolicies_policy_id_with_http_info(policy_id, opts = {})
465
- if @api_client.config.debugging
466
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_retentionpolicies_policy_id ..."
467
- end
468
-
469
- # verify the required parameter 'policy_id' is set
470
- fail "Missing the required parameter 'policy_id' when calling get_retentionpolicies_policy_id" if policy_id.nil?
471
-
472
- # resource path
473
- path = "/api/v2/configuration/retentionpolicies/{policyId}".sub('{format}','json').sub('{' + 'policyId' + '}', policy_id.to_s)
474
-
475
- # query parameters
476
- query_params = {}
477
-
478
- # header parameters
479
- header_params = {}
480
-
481
- # HTTP header 'Accept' (if needed)
482
- _header_accept = ['application/json']
483
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
484
-
485
- # HTTP header 'Content-Type'
486
- _header_content_type = ['application/json']
487
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
488
-
489
- # form parameters
490
- form_params = {}
491
-
492
- # http body (model)
493
- post_body = nil
494
-
495
-
496
- auth_names = ['PureCloud Auth']
497
- data, status_code, headers = @api_client.call_api(:GET, path,
498
- :header_params => header_params,
499
- :query_params => query_params,
500
- :form_params => form_params,
501
- :body => post_body,
502
- :auth_names => auth_names,
503
- :return_type => 'Policy')
504
- if @api_client.config.debugging
505
- @api_client.config.logger.debug "API called: ConfigurationApi#get_retentionpolicies_policy_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
506
- end
507
- return data, status_code, headers
508
- end
509
-
510
- # Update policy
511
- #
512
- # @param policy_id Policy ID
513
- # @param [Hash] opts the optional parameters
514
- # @option opts [Policy] :body Policy
515
- # @return [Policy]
516
- def put_retentionpolicies_policy_id(policy_id, opts = {})
517
- data, status_code, headers = put_retentionpolicies_policy_id_with_http_info(policy_id, opts)
518
- return data
519
- end
520
-
521
- # Update policy
522
- #
523
- # @param policy_id Policy ID
524
- # @param [Hash] opts the optional parameters
525
- # @option opts [Policy] :body Policy
526
- # @return [Array<(Policy, Fixnum, Hash)>] Policy data, response status code and response headers
527
- def put_retentionpolicies_policy_id_with_http_info(policy_id, opts = {})
528
- if @api_client.config.debugging
529
- @api_client.config.logger.debug "Calling API: ConfigurationApi#put_retentionpolicies_policy_id ..."
530
- end
531
-
532
- # verify the required parameter 'policy_id' is set
533
- fail "Missing the required parameter 'policy_id' when calling put_retentionpolicies_policy_id" if policy_id.nil?
534
-
535
- # resource path
536
- path = "/api/v2/configuration/retentionpolicies/{policyId}".sub('{format}','json').sub('{' + 'policyId' + '}', policy_id.to_s)
537
-
538
- # query parameters
539
- query_params = {}
540
-
541
- # header parameters
542
- header_params = {}
543
-
544
- # HTTP header 'Accept' (if needed)
545
- _header_accept = ['application/json']
546
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
547
-
548
- # HTTP header 'Content-Type'
549
- _header_content_type = ['application/json']
550
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
551
-
552
- # form parameters
553
- form_params = {}
554
-
555
- # http body (model)
556
- post_body = @api_client.object_to_http_body(opts[:'body'])
557
-
558
-
559
- auth_names = ['PureCloud Auth']
560
- data, status_code, headers = @api_client.call_api(:PUT, path,
561
- :header_params => header_params,
562
- :query_params => query_params,
563
- :form_params => form_params,
564
- :body => post_body,
565
- :auth_names => auth_names,
566
- :return_type => 'Policy')
567
- if @api_client.config.debugging
568
- @api_client.config.logger.debug "API called: ConfigurationApi#put_retentionpolicies_policy_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
- end
570
- return data, status_code, headers
571
- end
572
-
573
- # Delete policy
574
- #
575
- # @param policy_id Policy ID
576
- # @param [Hash] opts the optional parameters
577
- # @return [String]
578
- def delete_retentionpolicies_policy_id(policy_id, opts = {})
579
- data, status_code, headers = delete_retentionpolicies_policy_id_with_http_info(policy_id, opts)
580
- return data
581
- end
582
-
583
- # Delete policy
584
- #
585
- # @param policy_id Policy ID
586
- # @param [Hash] opts the optional parameters
587
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
588
- def delete_retentionpolicies_policy_id_with_http_info(policy_id, opts = {})
589
- if @api_client.config.debugging
590
- @api_client.config.logger.debug "Calling API: ConfigurationApi#delete_retentionpolicies_policy_id ..."
591
- end
592
-
593
- # verify the required parameter 'policy_id' is set
594
- fail "Missing the required parameter 'policy_id' when calling delete_retentionpolicies_policy_id" if policy_id.nil?
595
-
596
- # resource path
597
- path = "/api/v2/configuration/retentionpolicies/{policyId}".sub('{format}','json').sub('{' + 'policyId' + '}', policy_id.to_s)
598
-
599
- # query parameters
600
- query_params = {}
601
-
602
- # header parameters
603
- header_params = {}
604
-
605
- # HTTP header 'Accept' (if needed)
606
- _header_accept = ['application/json']
607
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
608
-
609
- # HTTP header 'Content-Type'
610
- _header_content_type = ['application/json']
611
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
612
-
613
- # form parameters
614
- form_params = {}
615
-
616
- # http body (model)
617
- post_body = nil
618
-
619
-
620
- auth_names = ['PureCloud Auth']
621
- data, status_code, headers = @api_client.call_api(:DELETE, path,
622
- :header_params => header_params,
623
- :query_params => query_params,
624
- :form_params => form_params,
625
- :body => post_body,
626
- :auth_names => auth_names,
627
- :return_type => 'String')
628
- if @api_client.config.debugging
629
- @api_client.config.logger.debug "API called: ConfigurationApi#delete_retentionpolicies_policy_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
630
- end
631
- return data, status_code, headers
632
- end
633
-
634
- # Patch a retention policy
635
- #
636
- # @param policy_id Policy ID
637
- # @param [Hash] opts the optional parameters
638
- # @option opts [Policy] :body Policy
639
- # @return [Policy]
640
- def patch_retentionpolicies_policy_id(policy_id, opts = {})
641
- data, status_code, headers = patch_retentionpolicies_policy_id_with_http_info(policy_id, opts)
642
- return data
643
- end
644
-
645
- # Patch a retention policy
646
- #
647
- # @param policy_id Policy ID
648
- # @param [Hash] opts the optional parameters
649
- # @option opts [Policy] :body Policy
650
- # @return [Array<(Policy, Fixnum, Hash)>] Policy data, response status code and response headers
651
- def patch_retentionpolicies_policy_id_with_http_info(policy_id, opts = {})
652
- if @api_client.config.debugging
653
- @api_client.config.logger.debug "Calling API: ConfigurationApi#patch_retentionpolicies_policy_id ..."
654
- end
655
-
656
- # verify the required parameter 'policy_id' is set
657
- fail "Missing the required parameter 'policy_id' when calling patch_retentionpolicies_policy_id" if policy_id.nil?
658
-
659
- # resource path
660
- path = "/api/v2/configuration/retentionpolicies/{policyId}".sub('{format}','json').sub('{' + 'policyId' + '}', policy_id.to_s)
661
-
662
- # query parameters
663
- query_params = {}
664
-
665
- # header parameters
666
- header_params = {}
667
-
668
- # HTTP header 'Accept' (if needed)
669
- _header_accept = ['application/json']
670
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
671
-
672
- # HTTP header 'Content-Type'
673
- _header_content_type = ['application/json']
674
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
675
-
676
- # form parameters
677
- form_params = {}
678
-
679
- # http body (model)
680
- post_body = @api_client.object_to_http_body(opts[:'body'])
681
-
682
-
683
- auth_names = ['PureCloud Auth']
684
- data, status_code, headers = @api_client.call_api(:PATCH, path,
685
- :header_params => header_params,
686
- :query_params => query_params,
687
- :form_params => form_params,
688
- :body => post_body,
689
- :auth_names => auth_names,
690
- :return_type => 'Policy')
691
- if @api_client.config.debugging
692
- @api_client.config.logger.debug "API called: ConfigurationApi#patch_retentionpolicies_policy_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
- end
694
- return data, status_code, headers
695
- end
696
-
697
- # Lists available schema categories
698
- #
699
- # @param [Hash] opts the optional parameters
700
- # @option opts [Integer] :page_size Page size
701
- # @option opts [Integer] :page_number Page number
702
- # @return [SchemaCategoryEntityListing]
703
- def get_schemas_edges_vnext(opts = {})
704
- data, status_code, headers = get_schemas_edges_vnext_with_http_info(opts)
705
- return data
706
- end
707
-
708
- # Lists available schema categories
709
- #
710
- # @param [Hash] opts the optional parameters
711
- # @option opts [Integer] :page_size Page size
712
- # @option opts [Integer] :page_number Page number
713
- # @return [Array<(SchemaCategoryEntityListing, Fixnum, Hash)>] SchemaCategoryEntityListing data, response status code and response headers
714
- def get_schemas_edges_vnext_with_http_info(opts = {})
715
- if @api_client.config.debugging
716
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_schemas_edges_vnext ..."
717
- end
718
-
719
- # resource path
720
- path = "/api/v2/configuration/schemas/edges/vnext".sub('{format}','json')
721
-
722
- # query parameters
723
- query_params = {}
724
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
725
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
726
-
727
- # header parameters
728
- header_params = {}
729
-
730
- # HTTP header 'Accept' (if needed)
731
- _header_accept = ['application/json']
732
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
733
-
734
- # HTTP header 'Content-Type'
735
- _header_content_type = ['application/json']
736
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
737
-
738
- # form parameters
739
- form_params = {}
740
-
741
- # http body (model)
742
- post_body = nil
743
-
744
-
745
- auth_names = ['PureCloud Auth']
746
- data, status_code, headers = @api_client.call_api(:GET, path,
747
- :header_params => header_params,
748
- :query_params => query_params,
749
- :form_params => form_params,
750
- :body => post_body,
751
- :auth_names => auth_names,
752
- :return_type => 'SchemaCategoryEntityListing')
753
- if @api_client.config.debugging
754
- @api_client.config.logger.debug "API called: ConfigurationApi#get_schemas_edges_vnext\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
755
- end
756
- return data, status_code, headers
757
- end
758
-
759
- # List schemas of a specific category
760
- #
761
- # @param schema_category Schema category
762
- # @param [Hash] opts the optional parameters
763
- # @option opts [Integer] :page_size Page size
764
- # @option opts [Integer] :page_number Page number
765
- # @return [SchemaReferenceEntityListing]
766
- def get_schemas_edges_vnext_schemacategory(schema_category, opts = {})
767
- data, status_code, headers = get_schemas_edges_vnext_schemacategory_with_http_info(schema_category, opts)
768
- return data
769
- end
770
-
771
- # List schemas of a specific category
772
- #
773
- # @param schema_category Schema category
774
- # @param [Hash] opts the optional parameters
775
- # @option opts [Integer] :page_size Page size
776
- # @option opts [Integer] :page_number Page number
777
- # @return [Array<(SchemaReferenceEntityListing, Fixnum, Hash)>] SchemaReferenceEntityListing data, response status code and response headers
778
- def get_schemas_edges_vnext_schemacategory_with_http_info(schema_category, opts = {})
779
- if @api_client.config.debugging
780
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_schemas_edges_vnext_schemacategory ..."
781
- end
782
-
783
- # verify the required parameter 'schema_category' is set
784
- fail "Missing the required parameter 'schema_category' when calling get_schemas_edges_vnext_schemacategory" if schema_category.nil?
785
-
786
- # resource path
787
- path = "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}".sub('{format}','json').sub('{' + 'schemaCategory' + '}', schema_category.to_s)
788
-
789
- # query parameters
790
- query_params = {}
791
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
792
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
793
-
794
- # header parameters
795
- header_params = {}
796
-
797
- # HTTP header 'Accept' (if needed)
798
- _header_accept = ['application/json']
799
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
800
-
801
- # HTTP header 'Content-Type'
802
- _header_content_type = ['application/json']
803
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
804
-
805
- # form parameters
806
- form_params = {}
807
-
808
- # http body (model)
809
- post_body = nil
810
-
811
-
812
- auth_names = ['PureCloud Auth']
813
- data, status_code, headers = @api_client.call_api(:GET, path,
814
- :header_params => header_params,
815
- :query_params => query_params,
816
- :form_params => form_params,
817
- :body => post_body,
818
- :auth_names => auth_names,
819
- :return_type => 'SchemaReferenceEntityListing')
820
- if @api_client.config.debugging
821
- @api_client.config.logger.debug "API called: ConfigurationApi#get_schemas_edges_vnext_schemacategory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
822
- end
823
- return data, status_code, headers
824
- end
825
-
826
- # List schemas of a specific category
827
- #
828
- # @param schema_category Schema category
829
- # @param schema_type Schema type
830
- # @param [Hash] opts the optional parameters
831
- # @option opts [Integer] :page_size Page size
832
- # @option opts [Integer] :page_number Page number
833
- # @return [SchemaReferenceEntityListing]
834
- def get_schemas_edges_vnext_schemacategory_schematype(schema_category, schema_type, opts = {})
835
- data, status_code, headers = get_schemas_edges_vnext_schemacategory_schematype_with_http_info(schema_category, schema_type, opts)
836
- return data
837
- end
838
-
839
- # List schemas of a specific category
840
- #
841
- # @param schema_category Schema category
842
- # @param schema_type Schema type
843
- # @param [Hash] opts the optional parameters
844
- # @option opts [Integer] :page_size Page size
845
- # @option opts [Integer] :page_number Page number
846
- # @return [Array<(SchemaReferenceEntityListing, Fixnum, Hash)>] SchemaReferenceEntityListing data, response status code and response headers
847
- def get_schemas_edges_vnext_schemacategory_schematype_with_http_info(schema_category, schema_type, opts = {})
848
- if @api_client.config.debugging
849
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_schemas_edges_vnext_schemacategory_schematype ..."
850
- end
851
-
852
- # verify the required parameter 'schema_category' is set
853
- fail "Missing the required parameter 'schema_category' when calling get_schemas_edges_vnext_schemacategory_schematype" if schema_category.nil?
854
-
855
- # verify the required parameter 'schema_type' is set
856
- fail "Missing the required parameter 'schema_type' when calling get_schemas_edges_vnext_schemacategory_schematype" if schema_type.nil?
857
-
858
- # resource path
859
- path = "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}".sub('{format}','json').sub('{' + 'schemaCategory' + '}', schema_category.to_s).sub('{' + 'schemaType' + '}', schema_type.to_s)
860
-
861
- # query parameters
862
- query_params = {}
863
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
864
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
865
-
866
- # header parameters
867
- header_params = {}
868
-
869
- # HTTP header 'Accept' (if needed)
870
- _header_accept = ['application/json']
871
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
872
-
873
- # HTTP header 'Content-Type'
874
- _header_content_type = ['application/json']
875
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
876
-
877
- # form parameters
878
- form_params = {}
879
-
880
- # http body (model)
881
- post_body = nil
882
-
883
-
884
- auth_names = ['PureCloud Auth']
885
- data, status_code, headers = @api_client.call_api(:GET, path,
886
- :header_params => header_params,
887
- :query_params => query_params,
888
- :form_params => form_params,
889
- :body => post_body,
890
- :auth_names => auth_names,
891
- :return_type => 'SchemaReferenceEntityListing')
892
- if @api_client.config.debugging
893
- @api_client.config.logger.debug "API called: ConfigurationApi#get_schemas_edges_vnext_schemacategory_schematype\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
- end
895
- return data, status_code, headers
896
- end
897
-
898
- # Get a json schema
899
- #
900
- # @param schema_category Schema category
901
- # @param schema_type Schema type
902
- # @param schema_id Schema ID
903
- # @param [Hash] opts the optional parameters
904
- # @return [Organization]
905
- def get_schemas_edges_vnext_schemacategory_schematype_schema_id(schema_category, schema_type, schema_id, opts = {})
906
- data, status_code, headers = get_schemas_edges_vnext_schemacategory_schematype_schema_id_with_http_info(schema_category, schema_type, schema_id, opts)
907
- return data
908
- end
909
-
910
- # Get a json schema
911
- #
912
- # @param schema_category Schema category
913
- # @param schema_type Schema type
914
- # @param schema_id Schema ID
915
- # @param [Hash] opts the optional parameters
916
- # @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
917
- def get_schemas_edges_vnext_schemacategory_schematype_schema_id_with_http_info(schema_category, schema_type, schema_id, opts = {})
918
- if @api_client.config.debugging
919
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_schemas_edges_vnext_schemacategory_schematype_schema_id ..."
920
- end
921
-
922
- # verify the required parameter 'schema_category' is set
923
- fail "Missing the required parameter 'schema_category' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id" if schema_category.nil?
924
-
925
- # verify the required parameter 'schema_type' is set
926
- fail "Missing the required parameter 'schema_type' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id" if schema_type.nil?
927
-
928
- # verify the required parameter 'schema_id' is set
929
- fail "Missing the required parameter 'schema_id' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id" if schema_id.nil?
930
-
931
- # resource path
932
- path = "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}/{schemaId}".sub('{format}','json').sub('{' + 'schemaCategory' + '}', schema_category.to_s).sub('{' + 'schemaType' + '}', schema_type.to_s).sub('{' + 'schemaId' + '}', schema_id.to_s)
933
-
934
- # query parameters
935
- query_params = {}
936
-
937
- # header parameters
938
- header_params = {}
939
-
940
- # HTTP header 'Accept' (if needed)
941
- _header_accept = ['application/json']
942
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
943
-
944
- # HTTP header 'Content-Type'
945
- _header_content_type = ['application/json']
946
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
947
-
948
- # form parameters
949
- form_params = {}
950
-
951
- # http body (model)
952
- post_body = nil
953
-
954
-
955
- auth_names = ['PureCloud Auth']
956
- data, status_code, headers = @api_client.call_api(:GET, path,
957
- :header_params => header_params,
958
- :query_params => query_params,
959
- :form_params => form_params,
960
- :body => post_body,
961
- :auth_names => auth_names,
962
- :return_type => 'Organization')
963
- if @api_client.config.debugging
964
- @api_client.config.logger.debug "API called: ConfigurationApi#get_schemas_edges_vnext_schemacategory_schematype_schema_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
965
- end
966
- return data, status_code, headers
967
- end
968
-
969
- # Get metadata for a schema
970
- #
971
- # @param schema_category Schema category
972
- # @param schema_type Schema type
973
- # @param schema_id Schema ID
974
- # @param extension extension
975
- # @param metadata_id Metadata ID
976
- # @param [Hash] opts the optional parameters
977
- # @option opts [String] :type Type
978
- # @return [Organization]
979
- def get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id(schema_category, schema_type, schema_id, extension, metadata_id, opts = {})
980
- data, status_code, headers = get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id_with_http_info(schema_category, schema_type, schema_id, extension, metadata_id, opts)
981
- return data
982
- end
983
-
984
- # Get metadata for a schema
985
- #
986
- # @param schema_category Schema category
987
- # @param schema_type Schema type
988
- # @param schema_id Schema ID
989
- # @param extension extension
990
- # @param metadata_id Metadata ID
991
- # @param [Hash] opts the optional parameters
992
- # @option opts [String] :type Type
993
- # @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
994
- def get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id_with_http_info(schema_category, schema_type, schema_id, extension, metadata_id, opts = {})
995
- if @api_client.config.debugging
996
- @api_client.config.logger.debug "Calling API: ConfigurationApi#get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id ..."
997
- end
998
-
999
- # verify the required parameter 'schema_category' is set
1000
- fail "Missing the required parameter 'schema_category' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id" if schema_category.nil?
1001
-
1002
- # verify the required parameter 'schema_type' is set
1003
- fail "Missing the required parameter 'schema_type' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id" if schema_type.nil?
1004
-
1005
- # verify the required parameter 'schema_id' is set
1006
- fail "Missing the required parameter 'schema_id' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id" if schema_id.nil?
1007
-
1008
- # verify the required parameter 'extension' is set
1009
- fail "Missing the required parameter 'extension' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id" if extension.nil?
1010
-
1011
- # verify the required parameter 'metadata_id' is set
1012
- fail "Missing the required parameter 'metadata_id' when calling get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id" if metadata_id.nil?
1013
-
1014
- # resource path
1015
- path = "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}/{schemaId}/{extension}/{metadataId}".sub('{format}','json').sub('{' + 'schemaCategory' + '}', schema_category.to_s).sub('{' + 'schemaType' + '}', schema_type.to_s).sub('{' + 'schemaId' + '}', schema_id.to_s).sub('{' + 'extension' + '}', extension.to_s).sub('{' + 'metadataId' + '}', metadata_id.to_s)
1016
-
1017
- # query parameters
1018
- query_params = {}
1019
- query_params[:'type'] = opts[:'type'] if opts[:'type']
1020
-
1021
- # header parameters
1022
- header_params = {}
1023
-
1024
- # HTTP header 'Accept' (if needed)
1025
- _header_accept = ['application/json']
1026
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1027
-
1028
- # HTTP header 'Content-Type'
1029
- _header_content_type = ['application/json']
1030
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1031
-
1032
- # form parameters
1033
- form_params = {}
1034
-
1035
- # http body (model)
1036
- post_body = nil
1037
-
1038
-
1039
- auth_names = ['PureCloud Auth']
1040
- data, status_code, headers = @api_client.call_api(:GET, path,
1041
- :header_params => header_params,
1042
- :query_params => query_params,
1043
- :form_params => form_params,
1044
- :body => post_body,
1045
- :auth_names => auth_names,
1046
- :return_type => 'Organization')
1047
- if @api_client.config.debugging
1048
- @api_client.config.logger.debug "API called: ConfigurationApi#get_schemas_edges_vnext_schemacategory_schematype_schema_id_extension_metadata_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1049
- end
1050
- return data, status_code, headers
1051
- end
1052
242
  end
1053
243
  end
1054
244