purecloudplatformclientv2 85.0.1 → 86.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AnalyticsEvaluation.md +1 -1
- data/docs/Call.md +1 -0
- data/docs/CallBasic.md +1 -0
- data/docs/Callback.md +1 -0
- data/docs/CallbackBasic.md +1 -0
- data/docs/Cobrowsesession.md +1 -0
- data/docs/{PartialUploadResponse.md → ContextEntity.md} +3 -3
- data/docs/ContextIntent.md +13 -0
- data/docs/ConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/ConversationChat.md +1 -0
- data/docs/ConversationEventTopicCallback.md +1 -0
- data/docs/Coretype.md +23 -0
- data/docs/CoretypeListing.md +15 -0
- data/docs/DataExtensionsApi.md +198 -0
- data/docs/DataSchemaListing.md +15 -0
- data/docs/DetectedDialogAct.md +14 -0
- data/docs/DetectedIntent.md +15 -0
- data/docs/DetectedNamedEntity.md +16 -0
- data/docs/DetectedNamedEntityValue.md +14 -0
- data/docs/DialogflowAgent.md +3 -2
- data/docs/Edge.md +1 -1
- data/docs/Email.md +1 -0
- data/docs/EntityListing.md +1 -5
- data/docs/ExternalContactsApi.md +1001 -144
- data/docs/FlowDivisionView.md +2 -0
- data/docs/IntentDefinition.md +15 -0
- data/docs/IntentFeedback.md +16 -0
- data/docs/ItemValidationLimits.md +14 -0
- data/docs/Items.md +14 -0
- data/docs/LanguageUnderstandingApi.md +1160 -0
- data/docs/MaxLength.md +14 -0
- data/docs/Message.md +1 -0
- data/docs/MinLength.md +14 -0
- data/docs/NamedEntityAnnotation.md +13 -0
- data/docs/NamedEntityTypeBinding.md +14 -0
- data/docs/NamedEntityTypeDefinition.md +15 -0
- data/docs/NamedEntityTypeItem.md +14 -0
- data/docs/NamedEntityTypeMechanism.md +15 -0
- data/docs/NluConfusionMatrixColumn.md +14 -0
- data/docs/NluConfusionMatrixRow.md +14 -0
- data/docs/NluDetectionContext.md +14 -0
- data/docs/NluDetectionInput.md +13 -0
- data/docs/NluDetectionOutput.md +14 -0
- data/docs/NluDetectionRequest.md +14 -0
- data/docs/NluDetectionResponse.md +15 -0
- data/docs/NluDomain.md +19 -0
- data/docs/NluDomainListing.md +22 -0
- data/docs/NluDomainVersion.md +24 -0
- data/docs/NluDomainVersionListing.md +22 -0
- data/docs/NluDomainVersionQualityReport.md +15 -0
- data/docs/NluDomainVersionTrainingResponse.md +14 -0
- data/docs/NluFeedbackListing.md +22 -0
- data/docs/NluFeedbackRequest.md +15 -0
- data/docs/NluFeedbackResponse.md +18 -0
- data/docs/NluQualityReportSummary.md +13 -0
- data/docs/NluQualityReportSummaryMetric.md +14 -0
- data/docs/NluUtterance.md +13 -0
- data/docs/NluUtteranceSegment.md +14 -0
- data/docs/QueueConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/QueueConversationEventTopicCallback.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicCallback.md +1 -0
- data/docs/QueueConversationVideoEventTopicCallback.md +1 -0
- data/docs/ReportingExportJobRequest.md +1 -0
- data/docs/ReportingExportJobResponse.md +2 -0
- data/docs/RoutingApi.md +65 -0
- data/docs/SCIMApi.md +12 -12
- data/docs/Schema.md +17 -0
- data/docs/SchemaQuantityLimits.md +26 -0
- data/docs/ScimV2EnterpriseUser.md +1 -0
- data/docs/Screenshare.md +1 -0
- data/docs/SocialExpression.md +1 -0
- data/docs/{TimeOffRequestLookup.md → TimeOffRequest.md} +2 -2
- data/docs/TimeOffRequestListing.md +13 -0
- data/docs/UploadUrlRequest.md +15 -0
- data/docs/UploadUrlResponse.md +14 -0
- data/docs/UploadsApi.md +78 -0
- data/docs/ValidationLimits.md +18 -0
- data/docs/Video.md +1 -0
- data/docs/WorkforceManagementApi.md +297 -448
- data/lib/purecloudplatformclientv2.rb +50 -57
- data/lib/purecloudplatformclientv2/api/data_extensions_api.rb +207 -0
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +868 -4
- data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +1304 -0
- data/lib/purecloudplatformclientv2/api/routing_api.rb +64 -0
- data/lib/purecloudplatformclientv2/api/scim_api.rb +8 -8
- data/lib/purecloudplatformclientv2/api/uploads_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +314 -571
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
- data/lib/purecloudplatformclientv2/models/bulk_update_shift_trade_state_result_item.rb +2 -2
- data/lib/purecloudplatformclientv2/models/call.rb +30 -4
- data/lib/purecloudplatformclientv2/models/call_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/cobrowsesession.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{partial_upload_response.rb → context_entity.rb} +14 -9
- data/lib/purecloudplatformclientv2/models/{list_wrapper_wfm_forecast_modification.rb → context_intent.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_chat.rb +30 -4
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/{rescheduling_options_response.rb → coretype.rb} +97 -102
- data/lib/purecloudplatformclientv2/models/{service_goal_group_list.rb → coretype_listing.rb} +34 -11
- data/lib/purecloudplatformclientv2/models/data_schema_listing.rb +253 -0
- data/lib/purecloudplatformclientv2/models/{forecast_result_response.rb → detected_dialog_act.rb} +16 -16
- data/lib/purecloudplatformclientv2/models/{intraday_queue.rb → detected_intent.rb} +23 -23
- data/lib/purecloudplatformclientv2/models/detected_named_entity.rb +280 -0
- data/lib/purecloudplatformclientv2/models/detected_named_entity_value.rb +228 -0
- data/lib/purecloudplatformclientv2/models/dialogflow_agent.rb +31 -3
- data/lib/purecloudplatformclientv2/models/edge.rb +1 -0
- data/lib/purecloudplatformclientv2/models/email.rb +30 -4
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/flow_division_view.rb +53 -1
- data/lib/purecloudplatformclientv2/models/{create_service_goal_group_request.rb → intent_definition.rb} +30 -19
- data/lib/purecloudplatformclientv2/models/{wfm_intraday_queue_listing.rb → intent_feedback.rb} +71 -18
- data/lib/purecloudplatformclientv2/models/{service_goal_group_goals.rb → item_validation_limits.rb} +18 -45
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_list_response.rb → items.rb} +33 -10
- data/lib/purecloudplatformclientv2/models/max_length.rb +238 -0
- data/lib/purecloudplatformclientv2/models/message.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{forecast_generation_route_group_result.rb → min_length.rb} +26 -18
- data/lib/purecloudplatformclientv2/models/{list_wrapper_forecast_source_day_pointer.rb → named_entity_annotation.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/{copy_short_term_forecast_request.rb → named_entity_type_binding.rb} +18 -19
- data/lib/purecloudplatformclientv2/models/{generate_week_schedule_request.rb → named_entity_type_definition.rb} +38 -13
- data/lib/purecloudplatformclientv2/models/{wfm_abandon_rate.rb → named_entity_type_item.rb} +19 -18
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_response.rb → named_entity_type_mechanism.rb} +48 -36
- data/lib/purecloudplatformclientv2/models/{copy_week_schedule_request.rb → nlu_confusion_matrix_column.rb} +18 -18
- data/lib/purecloudplatformclientv2/models/{wfm_average_speed_of_answer.rb → nlu_confusion_matrix_row.rb} +24 -18
- data/lib/purecloudplatformclientv2/models/nlu_detection_context.rb +228 -0
- data/lib/purecloudplatformclientv2/models/{scheduling_run_list_response.rb → nlu_detection_input.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/nlu_detection_output.rb +232 -0
- data/lib/purecloudplatformclientv2/models/nlu_detection_request.rb +233 -0
- data/lib/purecloudplatformclientv2/models/{route_group_list.rb → nlu_detection_response.rb} +39 -22
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_list_item_response.rb → nlu_domain.rb} +66 -60
- data/lib/purecloudplatformclientv2/models/{intraday_query_data_command.rb → nlu_domain_listing.rb} +156 -53
- data/lib/purecloudplatformclientv2/models/{short_term_forecast.rb → nlu_domain_version.rb} +132 -87
- data/lib/purecloudplatformclientv2/models/nlu_domain_version_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/{intraday_metric.rb → nlu_domain_version_quality_report.rb} +57 -28
- data/lib/purecloudplatformclientv2/models/{user_schedules_partial_upload_request.rb → nlu_domain_version_training_response.rb} +33 -16
- data/lib/purecloudplatformclientv2/models/{import_week_schedule_request.rb → nlu_feedback_listing.rb} +158 -46
- data/lib/purecloudplatformclientv2/models/{wfm_service_level.rb → nlu_feedback_request.rb} +36 -25
- data/lib/purecloudplatformclientv2/models/{service_goal_group.rb → nlu_feedback_response.rb} +32 -37
- data/lib/purecloudplatformclientv2/models/{generate_short_term_forecast_request.rb → nlu_quality_report_summary.rb} +12 -10
- data/lib/purecloudplatformclientv2/models/nlu_quality_report_summary_metric.rb +238 -0
- data/lib/purecloudplatformclientv2/models/nlu_utterance.rb +209 -0
- data/lib/purecloudplatformclientv2/models/nlu_utterance_segment.rb +233 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +32 -4
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +57 -1
- data/lib/purecloudplatformclientv2/models/{import_short_term_forecast_request.rb → schema.rb} +50 -35
- data/lib/purecloudplatformclientv2/models/schema_quantity_limits.rb +539 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_enterprise_user.rb +30 -4
- data/lib/purecloudplatformclientv2/models/screenshare.rb +30 -4
- data/lib/purecloudplatformclientv2/models/shift_trade_match_violation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/social_expression.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{time_off_request_lookup.rb → time_off_request.rb} +1 -1
- data/lib/purecloudplatformclientv2/models/{time_off_request_lookup_list.rb → time_off_request_listing.rb} +2 -2
- data/lib/purecloudplatformclientv2/models/{create_queue_media_association_request.rb → upload_url_request.rb} +23 -26
- data/lib/purecloudplatformclientv2/models/upload_url_response.rb +230 -0
- data/lib/purecloudplatformclientv2/models/{wfm_forecast_modification_attributes.rb → validation_limits.rb} +76 -38
- data/lib/purecloudplatformclientv2/models/video.rb +30 -4
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +102 -116
- data/docs/AsyncWeekScheduleResponse.md +0 -16
- data/docs/CopyShortTermForecastRequest.md +0 -14
- data/docs/CopyWeekScheduleRequest.md +0 -14
- data/docs/CreateQueueMediaAssociationRequest.md +0 -15
- data/docs/CreateServiceGoalGroupRequest.md +0 -15
- data/docs/ForecastGenerationResult.md +0 -13
- data/docs/ForecastGenerationRouteGroupResult.md +0 -14
- data/docs/ForecastResultResponse.md +0 -14
- data/docs/ForecastTimeSeriesResult.md +0 -14
- data/docs/GenerateShortTermForecastRequest.md +0 -13
- data/docs/GenerateShortTermForecastResponse.md +0 -16
- data/docs/GenerateWeekScheduleRequest.md +0 -14
- data/docs/GenerateWeekScheduleResponse.md +0 -15
- data/docs/ImportShortTermForecastRequest.md +0 -16
- data/docs/ImportWeekScheduleRequest.md +0 -17
- data/docs/IntradayDataGroup.md +0 -19
- data/docs/IntradayForecastData.md +0 -15
- data/docs/IntradayHistoricalAgentData.md +0 -14
- data/docs/IntradayHistoricalQueueData.md +0 -20
- data/docs/IntradayMetric.md +0 -14
- data/docs/IntradayPerformancePredictionAgentData.md +0 -13
- data/docs/IntradayPerformancePredictionQueueData.md +0 -15
- data/docs/IntradayQueryDataCommand.md +0 -17
- data/docs/IntradayQueue.md +0 -15
- data/docs/IntradayResponse.md +0 -20
- data/docs/IntradayScheduleData.md +0 -14
- data/docs/ListWrapperForecastSourceDayPointer.md +0 -13
- data/docs/ListWrapperWfmForecastModification.md +0 -13
- data/docs/QueueMediaAssociation.md +0 -16
- data/docs/RescheduleRequest.md +0 -20
- data/docs/RescheduleResult.md +0 -13
- data/docs/ReschedulingOptionsResponse.md +0 -22
- data/docs/RouteGroup.md +0 -18
- data/docs/RouteGroupAttributes.md +0 -16
- data/docs/RouteGroupList.md +0 -14
- data/docs/SchedulingRunListResponse.md +0 -13
- data/docs/SchedulingRunResponse.md +0 -28
- data/docs/ServiceGoalGroup.md +0 -18
- data/docs/ServiceGoalGroupGoals.md +0 -15
- data/docs/ServiceGoalGroupList.md +0 -14
- data/docs/ShortTermForecast.md +0 -22
- data/docs/ShortTermForecastListItemResponse.md +0 -18
- data/docs/ShortTermForecastListResponse.md +0 -13
- data/docs/ShortTermForecastResponse.md +0 -15
- data/docs/TimeOffRequestEntityList.md +0 -13
- data/docs/TimeOffRequestLookupList.md +0 -13
- data/docs/UnscheduledAgentWarning.md +0 -14
- data/docs/UpdateWeekScheduleRequest.md +0 -21
- data/docs/UserSchedulesPartialUploadRequest.md +0 -13
- data/docs/WfmAbandonRate.md +0 -14
- data/docs/WfmAverageSpeedOfAnswer.md +0 -14
- data/docs/WfmForecastModification.md +0 -20
- data/docs/WfmForecastModificationAttributes.md +0 -16
- data/docs/WfmIntradayQueueListing.md +0 -14
- data/docs/WfmServiceLevel.md +0 -15
- data/lib/purecloudplatformclientv2/models/async_week_schedule_response.rb +0 -295
- data/lib/purecloudplatformclientv2/models/forecast_generation_result.rb +0 -204
- data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +0 -256
- data/lib/purecloudplatformclientv2/models/generate_short_term_forecast_response.rb +0 -294
- data/lib/purecloudplatformclientv2/models/generate_week_schedule_response.rb +0 -269
- data/lib/purecloudplatformclientv2/models/intraday_data_group.rb +0 -384
- data/lib/purecloudplatformclientv2/models/intraday_forecast_data.rb +0 -254
- data/lib/purecloudplatformclientv2/models/intraday_historical_agent_data.rb +0 -228
- data/lib/purecloudplatformclientv2/models/intraday_historical_queue_data.rb +0 -384
- data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_agent_data.rb +0 -202
- data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_queue_data.rb +0 -254
- data/lib/purecloudplatformclientv2/models/intraday_response.rb +0 -404
- data/lib/purecloudplatformclientv2/models/intraday_schedule_data.rb +0 -228
- data/lib/purecloudplatformclientv2/models/queue_media_association.rb +0 -283
- data/lib/purecloudplatformclientv2/models/reschedule_request.rb +0 -418
- data/lib/purecloudplatformclientv2/models/reschedule_result.rb +0 -202
- data/lib/purecloudplatformclientv2/models/route_group.rb +0 -363
- data/lib/purecloudplatformclientv2/models/route_group_attributes.rb +0 -307
- data/lib/purecloudplatformclientv2/models/scheduling_run_response.rb +0 -609
- data/lib/purecloudplatformclientv2/models/time_off_request_entity_list.rb +0 -203
- data/lib/purecloudplatformclientv2/models/unscheduled_agent_warning.rb +0 -242
- data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +0 -438
- data/lib/purecloudplatformclientv2/models/wfm_forecast_modification.rb +0 -435
@@ -164,6 +164,70 @@ module PureCloud
|
|
164
164
|
return data, status_code, headers
|
165
165
|
end
|
166
166
|
|
167
|
+
# Delete a schema
|
168
|
+
#
|
169
|
+
# @param schema_id Schema ID
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @return [nil]
|
172
|
+
def delete_externalcontacts_contacts_schema(schema_id, opts = {})
|
173
|
+
delete_externalcontacts_contacts_schema_with_http_info(schema_id, opts)
|
174
|
+
return nil
|
175
|
+
end
|
176
|
+
|
177
|
+
# Delete a schema
|
178
|
+
#
|
179
|
+
# @param schema_id Schema ID
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
182
|
+
def delete_externalcontacts_contacts_schema_with_http_info(schema_id, opts = {})
|
183
|
+
if @api_client.config.debugging
|
184
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.delete_externalcontacts_contacts_schema ..."
|
185
|
+
end
|
186
|
+
|
187
|
+
|
188
|
+
# verify the required parameter 'schema_id' is set
|
189
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.delete_externalcontacts_contacts_schema" if schema_id.nil?
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
# resource path
|
196
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
197
|
+
|
198
|
+
# query parameters
|
199
|
+
query_params = {}
|
200
|
+
|
201
|
+
# header parameters
|
202
|
+
header_params = {}
|
203
|
+
|
204
|
+
# HTTP header 'Accept' (if needed)
|
205
|
+
local_header_accept = ['application/json']
|
206
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
207
|
+
|
208
|
+
# HTTP header 'Content-Type'
|
209
|
+
local_header_content_type = ['application/json']
|
210
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
211
|
+
|
212
|
+
# form parameters
|
213
|
+
form_params = {}
|
214
|
+
|
215
|
+
# http body (model)
|
216
|
+
post_body = nil
|
217
|
+
|
218
|
+
auth_names = ['PureCloud OAuth']
|
219
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
220
|
+
:header_params => header_params,
|
221
|
+
:query_params => query_params,
|
222
|
+
:form_params => form_params,
|
223
|
+
:body => post_body,
|
224
|
+
:auth_names => auth_names)
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#delete_externalcontacts_contacts_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
227
|
+
end
|
228
|
+
return data, status_code, headers
|
229
|
+
end
|
230
|
+
|
167
231
|
# Delete an external organization
|
168
232
|
#
|
169
233
|
# @param external_organization_id External Organization ID
|
@@ -792,6 +856,266 @@ module PureCloud
|
|
792
856
|
return data, status_code, headers
|
793
857
|
end
|
794
858
|
|
859
|
+
# Get a schema
|
860
|
+
#
|
861
|
+
# @param schema_id Schema ID
|
862
|
+
# @param [Hash] opts the optional parameters
|
863
|
+
# @return [DataSchema]
|
864
|
+
def get_externalcontacts_contacts_schema(schema_id, opts = {})
|
865
|
+
data, _status_code, _headers = get_externalcontacts_contacts_schema_with_http_info(schema_id, opts)
|
866
|
+
return data
|
867
|
+
end
|
868
|
+
|
869
|
+
# Get a schema
|
870
|
+
#
|
871
|
+
# @param schema_id Schema ID
|
872
|
+
# @param [Hash] opts the optional parameters
|
873
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
874
|
+
def get_externalcontacts_contacts_schema_with_http_info(schema_id, opts = {})
|
875
|
+
if @api_client.config.debugging
|
876
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_contacts_schema ..."
|
877
|
+
end
|
878
|
+
|
879
|
+
|
880
|
+
# verify the required parameter 'schema_id' is set
|
881
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.get_externalcontacts_contacts_schema" if schema_id.nil?
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
# resource path
|
888
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
889
|
+
|
890
|
+
# query parameters
|
891
|
+
query_params = {}
|
892
|
+
|
893
|
+
# header parameters
|
894
|
+
header_params = {}
|
895
|
+
|
896
|
+
# HTTP header 'Accept' (if needed)
|
897
|
+
local_header_accept = ['application/json']
|
898
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
899
|
+
|
900
|
+
# HTTP header 'Content-Type'
|
901
|
+
local_header_content_type = ['application/json']
|
902
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
903
|
+
|
904
|
+
# form parameters
|
905
|
+
form_params = {}
|
906
|
+
|
907
|
+
# http body (model)
|
908
|
+
post_body = nil
|
909
|
+
|
910
|
+
auth_names = ['PureCloud OAuth']
|
911
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
912
|
+
:header_params => header_params,
|
913
|
+
:query_params => query_params,
|
914
|
+
:form_params => form_params,
|
915
|
+
:body => post_body,
|
916
|
+
:auth_names => auth_names,
|
917
|
+
:return_type => 'DataSchema')
|
918
|
+
if @api_client.config.debugging
|
919
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_contacts_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
920
|
+
end
|
921
|
+
return data, status_code, headers
|
922
|
+
end
|
923
|
+
|
924
|
+
# Get a specific version of a schema
|
925
|
+
#
|
926
|
+
# @param schema_id Schema ID
|
927
|
+
# @param version_id Schema version
|
928
|
+
# @param [Hash] opts the optional parameters
|
929
|
+
# @return [DataSchema]
|
930
|
+
def get_externalcontacts_contacts_schema_version(schema_id, version_id, opts = {})
|
931
|
+
data, _status_code, _headers = get_externalcontacts_contacts_schema_version_with_http_info(schema_id, version_id, opts)
|
932
|
+
return data
|
933
|
+
end
|
934
|
+
|
935
|
+
# Get a specific version of a schema
|
936
|
+
#
|
937
|
+
# @param schema_id Schema ID
|
938
|
+
# @param version_id Schema version
|
939
|
+
# @param [Hash] opts the optional parameters
|
940
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
941
|
+
def get_externalcontacts_contacts_schema_version_with_http_info(schema_id, version_id, opts = {})
|
942
|
+
if @api_client.config.debugging
|
943
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_contacts_schema_version ..."
|
944
|
+
end
|
945
|
+
|
946
|
+
|
947
|
+
# verify the required parameter 'schema_id' is set
|
948
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.get_externalcontacts_contacts_schema_version" if schema_id.nil?
|
949
|
+
|
950
|
+
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
# verify the required parameter 'version_id' is set
|
956
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ExternalContactsApi.get_externalcontacts_contacts_schema_version" if version_id.nil?
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
|
961
|
+
|
962
|
+
# resource path
|
963
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions/{versionId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
964
|
+
|
965
|
+
# query parameters
|
966
|
+
query_params = {}
|
967
|
+
|
968
|
+
# header parameters
|
969
|
+
header_params = {}
|
970
|
+
|
971
|
+
# HTTP header 'Accept' (if needed)
|
972
|
+
local_header_accept = ['application/json']
|
973
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
974
|
+
|
975
|
+
# HTTP header 'Content-Type'
|
976
|
+
local_header_content_type = ['application/json']
|
977
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
978
|
+
|
979
|
+
# form parameters
|
980
|
+
form_params = {}
|
981
|
+
|
982
|
+
# http body (model)
|
983
|
+
post_body = nil
|
984
|
+
|
985
|
+
auth_names = ['PureCloud OAuth']
|
986
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
987
|
+
:header_params => header_params,
|
988
|
+
:query_params => query_params,
|
989
|
+
:form_params => form_params,
|
990
|
+
:body => post_body,
|
991
|
+
:auth_names => auth_names,
|
992
|
+
:return_type => 'DataSchema')
|
993
|
+
if @api_client.config.debugging
|
994
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_contacts_schema_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
995
|
+
end
|
996
|
+
return data, status_code, headers
|
997
|
+
end
|
998
|
+
|
999
|
+
# Get all versions of an external contact's schema
|
1000
|
+
#
|
1001
|
+
# @param schema_id Schema ID
|
1002
|
+
# @param [Hash] opts the optional parameters
|
1003
|
+
# @return [DataSchema]
|
1004
|
+
def get_externalcontacts_contacts_schema_versions(schema_id, opts = {})
|
1005
|
+
data, _status_code, _headers = get_externalcontacts_contacts_schema_versions_with_http_info(schema_id, opts)
|
1006
|
+
return data
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
# Get all versions of an external contact's schema
|
1010
|
+
#
|
1011
|
+
# @param schema_id Schema ID
|
1012
|
+
# @param [Hash] opts the optional parameters
|
1013
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
1014
|
+
def get_externalcontacts_contacts_schema_versions_with_http_info(schema_id, opts = {})
|
1015
|
+
if @api_client.config.debugging
|
1016
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_contacts_schema_versions ..."
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
|
1020
|
+
# verify the required parameter 'schema_id' is set
|
1021
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.get_externalcontacts_contacts_schema_versions" if schema_id.nil?
|
1022
|
+
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
# resource path
|
1028
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
1029
|
+
|
1030
|
+
# query parameters
|
1031
|
+
query_params = {}
|
1032
|
+
|
1033
|
+
# header parameters
|
1034
|
+
header_params = {}
|
1035
|
+
|
1036
|
+
# HTTP header 'Accept' (if needed)
|
1037
|
+
local_header_accept = ['application/json']
|
1038
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1039
|
+
|
1040
|
+
# HTTP header 'Content-Type'
|
1041
|
+
local_header_content_type = ['application/json']
|
1042
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1043
|
+
|
1044
|
+
# form parameters
|
1045
|
+
form_params = {}
|
1046
|
+
|
1047
|
+
# http body (model)
|
1048
|
+
post_body = nil
|
1049
|
+
|
1050
|
+
auth_names = ['PureCloud OAuth']
|
1051
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1052
|
+
:header_params => header_params,
|
1053
|
+
:query_params => query_params,
|
1054
|
+
:form_params => form_params,
|
1055
|
+
:body => post_body,
|
1056
|
+
:auth_names => auth_names,
|
1057
|
+
:return_type => 'DataSchema')
|
1058
|
+
if @api_client.config.debugging
|
1059
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_contacts_schema_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1060
|
+
end
|
1061
|
+
return data, status_code, headers
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Get a list of schemas.
|
1065
|
+
#
|
1066
|
+
# @param [Hash] opts the optional parameters
|
1067
|
+
# @return [DataSchemaListing]
|
1068
|
+
def get_externalcontacts_contacts_schemas(opts = {})
|
1069
|
+
data, _status_code, _headers = get_externalcontacts_contacts_schemas_with_http_info(opts)
|
1070
|
+
return data
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# Get a list of schemas.
|
1074
|
+
#
|
1075
|
+
# @param [Hash] opts the optional parameters
|
1076
|
+
# @return [Array<(DataSchemaListing, Fixnum, Hash)>] DataSchemaListing data, response status code and response headers
|
1077
|
+
def get_externalcontacts_contacts_schemas_with_http_info(opts = {})
|
1078
|
+
if @api_client.config.debugging
|
1079
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_contacts_schemas ..."
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
# resource path
|
1083
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas".sub('{format}','json')
|
1084
|
+
|
1085
|
+
# query parameters
|
1086
|
+
query_params = {}
|
1087
|
+
|
1088
|
+
# header parameters
|
1089
|
+
header_params = {}
|
1090
|
+
|
1091
|
+
# HTTP header 'Accept' (if needed)
|
1092
|
+
local_header_accept = ['application/json']
|
1093
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1094
|
+
|
1095
|
+
# HTTP header 'Content-Type'
|
1096
|
+
local_header_content_type = ['application/json']
|
1097
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1098
|
+
|
1099
|
+
# form parameters
|
1100
|
+
form_params = {}
|
1101
|
+
|
1102
|
+
# http body (model)
|
1103
|
+
post_body = nil
|
1104
|
+
|
1105
|
+
auth_names = ['PureCloud OAuth']
|
1106
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1107
|
+
:header_params => header_params,
|
1108
|
+
:query_params => query_params,
|
1109
|
+
:form_params => form_params,
|
1110
|
+
:body => post_body,
|
1111
|
+
:auth_names => auth_names,
|
1112
|
+
:return_type => 'DataSchemaListing')
|
1113
|
+
if @api_client.config.debugging
|
1114
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_contacts_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1115
|
+
end
|
1116
|
+
return data, status_code, headers
|
1117
|
+
end
|
1118
|
+
|
795
1119
|
# Fetch an external organization
|
796
1120
|
#
|
797
1121
|
# @param external_organization_id External Organization ID
|
@@ -1397,12 +1721,272 @@ module PureCloud
|
|
1397
1721
|
return data, status_code, headers
|
1398
1722
|
end
|
1399
1723
|
|
1400
|
-
#
|
1724
|
+
# Get a schema
|
1401
1725
|
#
|
1402
|
-
# @param
|
1726
|
+
# @param schema_id Schema ID
|
1403
1727
|
# @param [Hash] opts the optional parameters
|
1404
|
-
# @
|
1405
|
-
|
1728
|
+
# @return [DataSchema]
|
1729
|
+
def get_externalcontacts_organizations_schema(schema_id, opts = {})
|
1730
|
+
data, _status_code, _headers = get_externalcontacts_organizations_schema_with_http_info(schema_id, opts)
|
1731
|
+
return data
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
# Get a schema
|
1735
|
+
#
|
1736
|
+
# @param schema_id Schema ID
|
1737
|
+
# @param [Hash] opts the optional parameters
|
1738
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
1739
|
+
def get_externalcontacts_organizations_schema_with_http_info(schema_id, opts = {})
|
1740
|
+
if @api_client.config.debugging
|
1741
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_organizations_schema ..."
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
|
1745
|
+
# verify the required parameter 'schema_id' is set
|
1746
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.get_externalcontacts_organizations_schema" if schema_id.nil?
|
1747
|
+
|
1748
|
+
|
1749
|
+
|
1750
|
+
|
1751
|
+
|
1752
|
+
# resource path
|
1753
|
+
local_var_path = "/api/v2/externalcontacts/organizations/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
1754
|
+
|
1755
|
+
# query parameters
|
1756
|
+
query_params = {}
|
1757
|
+
|
1758
|
+
# header parameters
|
1759
|
+
header_params = {}
|
1760
|
+
|
1761
|
+
# HTTP header 'Accept' (if needed)
|
1762
|
+
local_header_accept = ['application/json']
|
1763
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1764
|
+
|
1765
|
+
# HTTP header 'Content-Type'
|
1766
|
+
local_header_content_type = ['application/json']
|
1767
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1768
|
+
|
1769
|
+
# form parameters
|
1770
|
+
form_params = {}
|
1771
|
+
|
1772
|
+
# http body (model)
|
1773
|
+
post_body = nil
|
1774
|
+
|
1775
|
+
auth_names = ['PureCloud OAuth']
|
1776
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1777
|
+
:header_params => header_params,
|
1778
|
+
:query_params => query_params,
|
1779
|
+
:form_params => form_params,
|
1780
|
+
:body => post_body,
|
1781
|
+
:auth_names => auth_names,
|
1782
|
+
:return_type => 'DataSchema')
|
1783
|
+
if @api_client.config.debugging
|
1784
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_organizations_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1785
|
+
end
|
1786
|
+
return data, status_code, headers
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
# Get a specific version of a schema
|
1790
|
+
#
|
1791
|
+
# @param schema_id Schema ID
|
1792
|
+
# @param version_id Schema version
|
1793
|
+
# @param [Hash] opts the optional parameters
|
1794
|
+
# @return [DataSchema]
|
1795
|
+
def get_externalcontacts_organizations_schema_version(schema_id, version_id, opts = {})
|
1796
|
+
data, _status_code, _headers = get_externalcontacts_organizations_schema_version_with_http_info(schema_id, version_id, opts)
|
1797
|
+
return data
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
# Get a specific version of a schema
|
1801
|
+
#
|
1802
|
+
# @param schema_id Schema ID
|
1803
|
+
# @param version_id Schema version
|
1804
|
+
# @param [Hash] opts the optional parameters
|
1805
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
1806
|
+
def get_externalcontacts_organizations_schema_version_with_http_info(schema_id, version_id, opts = {})
|
1807
|
+
if @api_client.config.debugging
|
1808
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_organizations_schema_version ..."
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
|
1812
|
+
# verify the required parameter 'schema_id' is set
|
1813
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.get_externalcontacts_organizations_schema_version" if schema_id.nil?
|
1814
|
+
|
1815
|
+
|
1816
|
+
|
1817
|
+
|
1818
|
+
|
1819
|
+
|
1820
|
+
# verify the required parameter 'version_id' is set
|
1821
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ExternalContactsApi.get_externalcontacts_organizations_schema_version" if version_id.nil?
|
1822
|
+
|
1823
|
+
|
1824
|
+
|
1825
|
+
|
1826
|
+
|
1827
|
+
# resource path
|
1828
|
+
local_var_path = "/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions/{versionId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
1829
|
+
|
1830
|
+
# query parameters
|
1831
|
+
query_params = {}
|
1832
|
+
|
1833
|
+
# header parameters
|
1834
|
+
header_params = {}
|
1835
|
+
|
1836
|
+
# HTTP header 'Accept' (if needed)
|
1837
|
+
local_header_accept = ['application/json']
|
1838
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1839
|
+
|
1840
|
+
# HTTP header 'Content-Type'
|
1841
|
+
local_header_content_type = ['application/json']
|
1842
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1843
|
+
|
1844
|
+
# form parameters
|
1845
|
+
form_params = {}
|
1846
|
+
|
1847
|
+
# http body (model)
|
1848
|
+
post_body = nil
|
1849
|
+
|
1850
|
+
auth_names = ['PureCloud OAuth']
|
1851
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1852
|
+
:header_params => header_params,
|
1853
|
+
:query_params => query_params,
|
1854
|
+
:form_params => form_params,
|
1855
|
+
:body => post_body,
|
1856
|
+
:auth_names => auth_names,
|
1857
|
+
:return_type => 'DataSchema')
|
1858
|
+
if @api_client.config.debugging
|
1859
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_organizations_schema_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1860
|
+
end
|
1861
|
+
return data, status_code, headers
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
# Get all versions of an external organization's schema
|
1865
|
+
#
|
1866
|
+
# @param schema_id Schema ID
|
1867
|
+
# @param [Hash] opts the optional parameters
|
1868
|
+
# @return [DataSchema]
|
1869
|
+
def get_externalcontacts_organizations_schema_versions(schema_id, opts = {})
|
1870
|
+
data, _status_code, _headers = get_externalcontacts_organizations_schema_versions_with_http_info(schema_id, opts)
|
1871
|
+
return data
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
# Get all versions of an external organization's schema
|
1875
|
+
#
|
1876
|
+
# @param schema_id Schema ID
|
1877
|
+
# @param [Hash] opts the optional parameters
|
1878
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
1879
|
+
def get_externalcontacts_organizations_schema_versions_with_http_info(schema_id, opts = {})
|
1880
|
+
if @api_client.config.debugging
|
1881
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_organizations_schema_versions ..."
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
|
1885
|
+
# verify the required parameter 'schema_id' is set
|
1886
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.get_externalcontacts_organizations_schema_versions" if schema_id.nil?
|
1887
|
+
|
1888
|
+
|
1889
|
+
|
1890
|
+
|
1891
|
+
|
1892
|
+
# resource path
|
1893
|
+
local_var_path = "/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
1894
|
+
|
1895
|
+
# query parameters
|
1896
|
+
query_params = {}
|
1897
|
+
|
1898
|
+
# header parameters
|
1899
|
+
header_params = {}
|
1900
|
+
|
1901
|
+
# HTTP header 'Accept' (if needed)
|
1902
|
+
local_header_accept = ['application/json']
|
1903
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1904
|
+
|
1905
|
+
# HTTP header 'Content-Type'
|
1906
|
+
local_header_content_type = ['application/json']
|
1907
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1908
|
+
|
1909
|
+
# form parameters
|
1910
|
+
form_params = {}
|
1911
|
+
|
1912
|
+
# http body (model)
|
1913
|
+
post_body = nil
|
1914
|
+
|
1915
|
+
auth_names = ['PureCloud OAuth']
|
1916
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1917
|
+
:header_params => header_params,
|
1918
|
+
:query_params => query_params,
|
1919
|
+
:form_params => form_params,
|
1920
|
+
:body => post_body,
|
1921
|
+
:auth_names => auth_names,
|
1922
|
+
:return_type => 'DataSchema')
|
1923
|
+
if @api_client.config.debugging
|
1924
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_organizations_schema_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1925
|
+
end
|
1926
|
+
return data, status_code, headers
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
# Get a list of schemas.
|
1930
|
+
#
|
1931
|
+
# @param [Hash] opts the optional parameters
|
1932
|
+
# @return [DataSchemaListing]
|
1933
|
+
def get_externalcontacts_organizations_schemas(opts = {})
|
1934
|
+
data, _status_code, _headers = get_externalcontacts_organizations_schemas_with_http_info(opts)
|
1935
|
+
return data
|
1936
|
+
end
|
1937
|
+
|
1938
|
+
# Get a list of schemas.
|
1939
|
+
#
|
1940
|
+
# @param [Hash] opts the optional parameters
|
1941
|
+
# @return [Array<(DataSchemaListing, Fixnum, Hash)>] DataSchemaListing data, response status code and response headers
|
1942
|
+
def get_externalcontacts_organizations_schemas_with_http_info(opts = {})
|
1943
|
+
if @api_client.config.debugging
|
1944
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.get_externalcontacts_organizations_schemas ..."
|
1945
|
+
end
|
1946
|
+
|
1947
|
+
# resource path
|
1948
|
+
local_var_path = "/api/v2/externalcontacts/organizations/schemas".sub('{format}','json')
|
1949
|
+
|
1950
|
+
# query parameters
|
1951
|
+
query_params = {}
|
1952
|
+
|
1953
|
+
# header parameters
|
1954
|
+
header_params = {}
|
1955
|
+
|
1956
|
+
# HTTP header 'Accept' (if needed)
|
1957
|
+
local_header_accept = ['application/json']
|
1958
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1959
|
+
|
1960
|
+
# HTTP header 'Content-Type'
|
1961
|
+
local_header_content_type = ['application/json']
|
1962
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1963
|
+
|
1964
|
+
# form parameters
|
1965
|
+
form_params = {}
|
1966
|
+
|
1967
|
+
# http body (model)
|
1968
|
+
post_body = nil
|
1969
|
+
|
1970
|
+
auth_names = ['PureCloud OAuth']
|
1971
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1972
|
+
:header_params => header_params,
|
1973
|
+
:query_params => query_params,
|
1974
|
+
:form_params => form_params,
|
1975
|
+
:body => post_body,
|
1976
|
+
:auth_names => auth_names,
|
1977
|
+
:return_type => 'DataSchemaListing')
|
1978
|
+
if @api_client.config.debugging
|
1979
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#get_externalcontacts_organizations_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1980
|
+
end
|
1981
|
+
return data, status_code, headers
|
1982
|
+
end
|
1983
|
+
|
1984
|
+
# Fetch a relationship
|
1985
|
+
#
|
1986
|
+
# @param relationship_id Relationship Id
|
1987
|
+
# @param [Hash] opts the optional parameters
|
1988
|
+
# @option opts [String] :expand which fields, if any, to expand
|
1989
|
+
# @return [Relationship]
|
1406
1990
|
def get_externalcontacts_relationship(relationship_id, opts = {})
|
1407
1991
|
data, _status_code, _headers = get_externalcontacts_relationship_with_http_info(relationship_id, opts)
|
1408
1992
|
return data
|
@@ -1690,6 +2274,71 @@ module PureCloud
|
|
1690
2274
|
return data, status_code, headers
|
1691
2275
|
end
|
1692
2276
|
|
2277
|
+
# Create a schema
|
2278
|
+
#
|
2279
|
+
# @param body Schema
|
2280
|
+
# @param [Hash] opts the optional parameters
|
2281
|
+
# @return [DataSchema]
|
2282
|
+
def post_externalcontacts_contacts_schemas(body, opts = {})
|
2283
|
+
data, _status_code, _headers = post_externalcontacts_contacts_schemas_with_http_info(body, opts)
|
2284
|
+
return data
|
2285
|
+
end
|
2286
|
+
|
2287
|
+
# Create a schema
|
2288
|
+
#
|
2289
|
+
# @param body Schema
|
2290
|
+
# @param [Hash] opts the optional parameters
|
2291
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
2292
|
+
def post_externalcontacts_contacts_schemas_with_http_info(body, opts = {})
|
2293
|
+
if @api_client.config.debugging
|
2294
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.post_externalcontacts_contacts_schemas ..."
|
2295
|
+
end
|
2296
|
+
|
2297
|
+
|
2298
|
+
# verify the required parameter 'body' is set
|
2299
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ExternalContactsApi.post_externalcontacts_contacts_schemas" if body.nil?
|
2300
|
+
|
2301
|
+
|
2302
|
+
|
2303
|
+
|
2304
|
+
|
2305
|
+
# resource path
|
2306
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas".sub('{format}','json')
|
2307
|
+
|
2308
|
+
# query parameters
|
2309
|
+
query_params = {}
|
2310
|
+
|
2311
|
+
# header parameters
|
2312
|
+
header_params = {}
|
2313
|
+
|
2314
|
+
# HTTP header 'Accept' (if needed)
|
2315
|
+
local_header_accept = ['application/json']
|
2316
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2317
|
+
|
2318
|
+
# HTTP header 'Content-Type'
|
2319
|
+
local_header_content_type = ['application/json']
|
2320
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2321
|
+
|
2322
|
+
# form parameters
|
2323
|
+
form_params = {}
|
2324
|
+
|
2325
|
+
# http body (model)
|
2326
|
+
post_body = @api_client.object_to_http_body(body)
|
2327
|
+
|
2328
|
+
auth_names = ['PureCloud OAuth']
|
2329
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2330
|
+
:header_params => header_params,
|
2331
|
+
:query_params => query_params,
|
2332
|
+
:form_params => form_params,
|
2333
|
+
:body => post_body,
|
2334
|
+
:auth_names => auth_names,
|
2335
|
+
:return_type => 'DataSchema')
|
2336
|
+
if @api_client.config.debugging
|
2337
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#post_externalcontacts_contacts_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2338
|
+
end
|
2339
|
+
return data, status_code, headers
|
2340
|
+
end
|
2341
|
+
|
1693
2342
|
# Create a note for an external organization
|
1694
2343
|
#
|
1695
2344
|
# @param external_organization_id External Organization Id
|
@@ -1830,6 +2479,71 @@ module PureCloud
|
|
1830
2479
|
return data, status_code, headers
|
1831
2480
|
end
|
1832
2481
|
|
2482
|
+
# Create a schema
|
2483
|
+
#
|
2484
|
+
# @param body Schema
|
2485
|
+
# @param [Hash] opts the optional parameters
|
2486
|
+
# @return [DataSchema]
|
2487
|
+
def post_externalcontacts_organizations_schemas(body, opts = {})
|
2488
|
+
data, _status_code, _headers = post_externalcontacts_organizations_schemas_with_http_info(body, opts)
|
2489
|
+
return data
|
2490
|
+
end
|
2491
|
+
|
2492
|
+
# Create a schema
|
2493
|
+
#
|
2494
|
+
# @param body Schema
|
2495
|
+
# @param [Hash] opts the optional parameters
|
2496
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
2497
|
+
def post_externalcontacts_organizations_schemas_with_http_info(body, opts = {})
|
2498
|
+
if @api_client.config.debugging
|
2499
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.post_externalcontacts_organizations_schemas ..."
|
2500
|
+
end
|
2501
|
+
|
2502
|
+
|
2503
|
+
# verify the required parameter 'body' is set
|
2504
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ExternalContactsApi.post_externalcontacts_organizations_schemas" if body.nil?
|
2505
|
+
|
2506
|
+
|
2507
|
+
|
2508
|
+
|
2509
|
+
|
2510
|
+
# resource path
|
2511
|
+
local_var_path = "/api/v2/externalcontacts/organizations/schemas".sub('{format}','json')
|
2512
|
+
|
2513
|
+
# query parameters
|
2514
|
+
query_params = {}
|
2515
|
+
|
2516
|
+
# header parameters
|
2517
|
+
header_params = {}
|
2518
|
+
|
2519
|
+
# HTTP header 'Accept' (if needed)
|
2520
|
+
local_header_accept = ['application/json']
|
2521
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2522
|
+
|
2523
|
+
# HTTP header 'Content-Type'
|
2524
|
+
local_header_content_type = ['application/json']
|
2525
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2526
|
+
|
2527
|
+
# form parameters
|
2528
|
+
form_params = {}
|
2529
|
+
|
2530
|
+
# http body (model)
|
2531
|
+
post_body = @api_client.object_to_http_body(body)
|
2532
|
+
|
2533
|
+
auth_names = ['PureCloud OAuth']
|
2534
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2535
|
+
:header_params => header_params,
|
2536
|
+
:query_params => query_params,
|
2537
|
+
:form_params => form_params,
|
2538
|
+
:body => post_body,
|
2539
|
+
:auth_names => auth_names,
|
2540
|
+
:return_type => 'DataSchema')
|
2541
|
+
if @api_client.config.debugging
|
2542
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#post_externalcontacts_organizations_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2543
|
+
end
|
2544
|
+
return data, status_code, headers
|
2545
|
+
end
|
2546
|
+
|
1833
2547
|
# Create a relationship
|
1834
2548
|
#
|
1835
2549
|
# @param body Relationship
|
@@ -2055,6 +2769,81 @@ module PureCloud
|
|
2055
2769
|
return data, status_code, headers
|
2056
2770
|
end
|
2057
2771
|
|
2772
|
+
# Update a schema
|
2773
|
+
#
|
2774
|
+
# @param schema_id Schema ID
|
2775
|
+
# @param body Data Schema
|
2776
|
+
# @param [Hash] opts the optional parameters
|
2777
|
+
# @return [DataSchema]
|
2778
|
+
def put_externalcontacts_contacts_schema(schema_id, body, opts = {})
|
2779
|
+
data, _status_code, _headers = put_externalcontacts_contacts_schema_with_http_info(schema_id, body, opts)
|
2780
|
+
return data
|
2781
|
+
end
|
2782
|
+
|
2783
|
+
# Update a schema
|
2784
|
+
#
|
2785
|
+
# @param schema_id Schema ID
|
2786
|
+
# @param body Data Schema
|
2787
|
+
# @param [Hash] opts the optional parameters
|
2788
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
2789
|
+
def put_externalcontacts_contacts_schema_with_http_info(schema_id, body, opts = {})
|
2790
|
+
if @api_client.config.debugging
|
2791
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.put_externalcontacts_contacts_schema ..."
|
2792
|
+
end
|
2793
|
+
|
2794
|
+
|
2795
|
+
# verify the required parameter 'schema_id' is set
|
2796
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.put_externalcontacts_contacts_schema" if schema_id.nil?
|
2797
|
+
|
2798
|
+
|
2799
|
+
|
2800
|
+
|
2801
|
+
|
2802
|
+
|
2803
|
+
# verify the required parameter 'body' is set
|
2804
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ExternalContactsApi.put_externalcontacts_contacts_schema" if body.nil?
|
2805
|
+
|
2806
|
+
|
2807
|
+
|
2808
|
+
|
2809
|
+
|
2810
|
+
# resource path
|
2811
|
+
local_var_path = "/api/v2/externalcontacts/contacts/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
2812
|
+
|
2813
|
+
# query parameters
|
2814
|
+
query_params = {}
|
2815
|
+
|
2816
|
+
# header parameters
|
2817
|
+
header_params = {}
|
2818
|
+
|
2819
|
+
# HTTP header 'Accept' (if needed)
|
2820
|
+
local_header_accept = ['application/json']
|
2821
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2822
|
+
|
2823
|
+
# HTTP header 'Content-Type'
|
2824
|
+
local_header_content_type = ['application/json']
|
2825
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2826
|
+
|
2827
|
+
# form parameters
|
2828
|
+
form_params = {}
|
2829
|
+
|
2830
|
+
# http body (model)
|
2831
|
+
post_body = @api_client.object_to_http_body(body)
|
2832
|
+
|
2833
|
+
auth_names = ['PureCloud OAuth']
|
2834
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2835
|
+
:header_params => header_params,
|
2836
|
+
:query_params => query_params,
|
2837
|
+
:form_params => form_params,
|
2838
|
+
:body => post_body,
|
2839
|
+
:auth_names => auth_names,
|
2840
|
+
:return_type => 'DataSchema')
|
2841
|
+
if @api_client.config.debugging
|
2842
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#put_externalcontacts_contacts_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2843
|
+
end
|
2844
|
+
return data, status_code, headers
|
2845
|
+
end
|
2846
|
+
|
2058
2847
|
# Associate an external contact with a conversation
|
2059
2848
|
#
|
2060
2849
|
# @param conversation_id Conversation ID
|
@@ -2364,6 +3153,81 @@ module PureCloud
|
|
2364
3153
|
return data, status_code, headers
|
2365
3154
|
end
|
2366
3155
|
|
3156
|
+
# Update a schema
|
3157
|
+
#
|
3158
|
+
# @param schema_id Schema ID
|
3159
|
+
# @param body Data Schema
|
3160
|
+
# @param [Hash] opts the optional parameters
|
3161
|
+
# @return [DataSchema]
|
3162
|
+
def put_externalcontacts_organizations_schema(schema_id, body, opts = {})
|
3163
|
+
data, _status_code, _headers = put_externalcontacts_organizations_schema_with_http_info(schema_id, body, opts)
|
3164
|
+
return data
|
3165
|
+
end
|
3166
|
+
|
3167
|
+
# Update a schema
|
3168
|
+
#
|
3169
|
+
# @param schema_id Schema ID
|
3170
|
+
# @param body Data Schema
|
3171
|
+
# @param [Hash] opts the optional parameters
|
3172
|
+
# @return [Array<(DataSchema, Fixnum, Hash)>] DataSchema data, response status code and response headers
|
3173
|
+
def put_externalcontacts_organizations_schema_with_http_info(schema_id, body, opts = {})
|
3174
|
+
if @api_client.config.debugging
|
3175
|
+
@api_client.config.logger.debug "Calling API: ExternalContactsApi.put_externalcontacts_organizations_schema ..."
|
3176
|
+
end
|
3177
|
+
|
3178
|
+
|
3179
|
+
# verify the required parameter 'schema_id' is set
|
3180
|
+
fail ArgumentError, "Missing the required parameter 'schema_id' when calling ExternalContactsApi.put_externalcontacts_organizations_schema" if schema_id.nil?
|
3181
|
+
|
3182
|
+
|
3183
|
+
|
3184
|
+
|
3185
|
+
|
3186
|
+
|
3187
|
+
# verify the required parameter 'body' is set
|
3188
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ExternalContactsApi.put_externalcontacts_organizations_schema" if body.nil?
|
3189
|
+
|
3190
|
+
|
3191
|
+
|
3192
|
+
|
3193
|
+
|
3194
|
+
# resource path
|
3195
|
+
local_var_path = "/api/v2/externalcontacts/organizations/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)
|
3196
|
+
|
3197
|
+
# query parameters
|
3198
|
+
query_params = {}
|
3199
|
+
|
3200
|
+
# header parameters
|
3201
|
+
header_params = {}
|
3202
|
+
|
3203
|
+
# HTTP header 'Accept' (if needed)
|
3204
|
+
local_header_accept = ['application/json']
|
3205
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3206
|
+
|
3207
|
+
# HTTP header 'Content-Type'
|
3208
|
+
local_header_content_type = ['application/json']
|
3209
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3210
|
+
|
3211
|
+
# form parameters
|
3212
|
+
form_params = {}
|
3213
|
+
|
3214
|
+
# http body (model)
|
3215
|
+
post_body = @api_client.object_to_http_body(body)
|
3216
|
+
|
3217
|
+
auth_names = ['PureCloud OAuth']
|
3218
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
3219
|
+
:header_params => header_params,
|
3220
|
+
:query_params => query_params,
|
3221
|
+
:form_params => form_params,
|
3222
|
+
:body => post_body,
|
3223
|
+
:auth_names => auth_names,
|
3224
|
+
:return_type => 'DataSchema')
|
3225
|
+
if @api_client.config.debugging
|
3226
|
+
@api_client.config.logger.debug "API called: ExternalContactsApi#put_externalcontacts_organizations_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3227
|
+
end
|
3228
|
+
return data, status_code, headers
|
3229
|
+
end
|
3230
|
+
|
2367
3231
|
# Update a relationship
|
2368
3232
|
#
|
2369
3233
|
# @param relationship_id Relationship Id
|