From 240e0d297beaa7358a0468247113f382c06849e4 Mon Sep 17 00:00:00 2001 From: PureCloud Jenkins Date: Fri, 20 Mar 2020 15:00:10 +0000 Subject: [PATCH] 4.0.0 --- README.md | 2 +- build/.gitignore | 25 - build/.swagger-codegen-ignore | 23 - build/Makefile | 8 - build/README.md | 121 - build/platformclientv2/action.go | 49 - build/platformclientv2/actionconfig.go | 21 - build/platformclientv2/actioncontract.go | 21 - build/platformclientv2/actioncontractinput.go | 21 - build/platformclientv2/actionentitylisting.go | 53 - build/platformclientv2/actioninput.go | 25 - build/platformclientv2/actionoutput.go | 37 - build/platformclientv2/actions.go | 17 - build/platformclientv2/activealertcount.go | 17 - build/platformclientv2/activitycode.go | 57 - .../platformclientv2/activitycodecontainer.go | 21 - build/platformclientv2/acwsettings.go | 21 - build/platformclientv2/additionalmessage.go | 25 - build/platformclientv2/address.go | 33 - .../platformclientv2/addressableentityref.go | 21 - .../addressablelicensedefinition.go | 21 - build/platformclientv2/adfs.go | 45 - build/platformclientv2/adherencesettings.go | 37 - .../adhocrecordingtopicconversationdata.go | 17 - .../adhocrecordingtopiclockdata.go | 26 - .../adhocrecordingtopicrecordingdatav2.go | 82 - .../adhocrecordingtopicuserdata.go | 21 - .../adhocrecordingtopicworkspacedata.go | 17 - build/platformclientv2/adjacents.go | 25 - .../admintimeoffrequestpatch.go | 42 - build/platformclientv2/agent.go | 17 - build/platformclientv2/agentactivity.go | 65 - .../agentactivitychangedtopicagentactivity.go | 38 - ...ctivitychangedtopicorganizationpresence.go | 21 - .../agentactivitychangedtopicoutofoffice.go | 22 - .../agentactivitychangedtopicpresence.go | 26 - .../agentactivitychangedtopicroutingstatus.go | 22 - .../agentactivityentitylisting.go | 53 - .../agentevaluatoractivity.go | 41 - .../agenttimeoffrequestpatch.go | 25 - build/platformclientv2/aggregatemetricdata.go | 25 - build/platformclientv2/aggregateviewdata.go | 21 - build/platformclientv2/aggregationrange.go | 21 - build/platformclientv2/aggregationresult.go | 33 - .../aggregationresultentry.go | 29 - build/platformclientv2/alertingapi.go | 877 -- build/platformclientv2/analyticsapi.go | 2682 ----- .../platformclientv2/analyticsconversation.go | 54 - ...analyticsconversationasyncqueryresponse.go | 21 - .../analyticsconversationqueryresponse.go | 21 - .../analyticsconversationsegment.go | 114 - .../analyticsconversationwithoutattributes.go | 54 - ...sationwithoutattributesmultigetresponse.go | 17 - build/platformclientv2/analyticsevaluation.go | 66 - build/platformclientv2/analyticsflow.go | 69 - .../platformclientv2/analyticsflowoutcome.go | 34 - .../analyticsmediaendpointstat.go | 53 - .../platformclientv2/analyticsparticipant.go | 53 - .../analyticsparticipantwithoutattributes.go | 49 - build/platformclientv2/analyticsproperty.go | 25 - .../analyticsqueryaggregation.go | 33 - .../analyticsroutingstatusrecord.go | 26 - .../platformclientv2/analyticsscoredagent.go | 21 - build/platformclientv2/analyticssession.go | 222 - .../analyticssessionmetric.go | 26 - build/platformclientv2/analyticssurvey.go | 58 - build/platformclientv2/analyticsuserdetail.go | 25 - .../analyticsuserdetailsasyncqueryresponse.go | 21 - .../analyticsuserdetailsqueryresponse.go | 21 - .../analyticsuserpresencerecord.go | 30 - build/platformclientv2/annotation.go | 101 - build/platformclientv2/answeroption.go | 25 - build/platformclientv2/apiclient.go | 215 - build/platformclientv2/apiresponse.go | 111 - build/platformclientv2/architectapi.go | 7644 ------------ ...pendencytrackingbuildnotificationclient.go | 21 - ...tiondependencytrackingbuildnotification.go | 30 - ...ackingbuildnotificationhomeorganization.go | 25 - ...dependencytrackingbuildnotificationuser.go | 25 - ...itectflownotificationarchitectoperation.go | 53 - .../architectflownotificationclient.go | 21 - .../architectflownotificationerrordetail.go | 29 - ...itectflownotificationerrormessageparams.go | 17 - ...chitectflownotificationflownotification.go | 45 - .../architectflownotificationflowversion.go | 17 - ...chitectflownotificationhomeorganization.go | 25 - .../architectflownotificationuser.go | 25 - ...owoutcomenotificationarchitectoperation.go | 53 - .../architectflowoutcomenotificationclient.go | 21 - ...itectflowoutcomenotificationerrordetail.go | 29 - ...owoutcomenotificationerrormessageparams.go | 17 - ...comenotificationflowoutcomenotification.go | 29 - ...flowoutcomenotificationhomeorganization.go | 25 - .../architectflowoutcomenotificationuser.go | 25 - ...ectpromptnotificationarchitectoperation.go | 53 - .../architectpromptnotificationclient.go | 21 - .../architectpromptnotificationerrordetail.go | 29 - ...ectpromptnotificationerrormessageparams.go | 17 - ...itectpromptnotificationhomeorganization.go | 25 - ...ectpromptnotificationpromptnotification.go | 29 - .../architectpromptnotificationuser.go | 25 - ...enotificationpromptresourcenotification.go | 37 - ...icationsystempromptresourcenotification.go | 37 - build/platformclientv2/archiveretention.go | 21 - build/platformclientv2/arraynode.go | 97 - build/platformclientv2/assignedwrapupcode.go | 34 - .../asyncconversationquery.go | 53 - build/platformclientv2/asyncqueryresponse.go | 17 - build/platformclientv2/asyncquerystatus.go | 34 - .../platformclientv2/asyncuserdetailsquery.go | 37 - .../asyncweekscheduleresponse.go | 29 - build/platformclientv2/attachment.go | 37 - build/platformclientv2/attemptlimits.go | 58 - .../attemptlimitsentitylisting.go | 53 - build/platformclientv2/attribute.go | 50 - build/platformclientv2/attributefilteritem.go | 25 - build/platformclientv2/atzmtimeslot.go | 21 - .../atzmtimeslotwithtimezone.go | 25 - build/platformclientv2/auditapi.go | 267 - build/platformclientv2/auditchange.go | 29 - build/platformclientv2/auditentity.go | 29 - .../platformclientv2/auditentityreference.go | 33 - build/platformclientv2/auditfacet.go | 21 - build/platformclientv2/auditfilter.go | 29 - build/platformclientv2/auditlogmessage.go | 62 - build/platformclientv2/auditmessage.go | 77 - .../auditqueryexecutionresultsresponse.go | 29 - .../auditqueryexecutionstatusresponse.go | 38 - build/platformclientv2/auditqueryfilter.go | 21 - build/platformclientv2/auditqueryrequest.go | 25 - build/platformclientv2/auditqueryresponse.go | 13 - build/platformclientv2/auditsearchresult.go | 37 - build/platformclientv2/audituser.go | 25 - build/platformclientv2/authorizationapi.go | 3162 ----- build/platformclientv2/authzdivision.go | 37 - .../authzdivisionentitylisting.go | 53 - build/platformclientv2/authzgrant.go | 30 - build/platformclientv2/authzgrantpolicy.go | 29 - build/platformclientv2/authzgrantrole.go | 37 - build/platformclientv2/authzsubject.go | 33 - .../automatictimezonemappingsettings.go | 17 - .../platformclientv2/availablelanguagelist.go | 17 - build/platformclientv2/availabletopic.go | 37 - .../availabletopicentitylisting.go | 17 - .../platformclientv2/availabletranslations.go | 21 - .../batchdownloadjobresult.go | 45 - .../batchdownloadjobstatusresult.go | 41 - .../batchdownloadjobsubmission.go | 17 - .../batchdownloadjobsubmissionresult.go | 21 - .../platformclientv2/batchdownloadrequest.go | 21 - build/platformclientv2/billingapi.go | 197 - build/platformclientv2/billingusage.go | 25 - build/platformclientv2/billingusagereport.go | 42 - .../platformclientv2/billingusageresource.go | 22 - build/platformclientv2/biography.go | 29 - build/platformclientv2/bullseye.go | 17 - .../busearchagentschedulesrequest.go | 26 - .../platformclientv2/businessunitreference.go | 21 - build/platformclientv2/calibration.go | 78 - .../platformclientv2/calibrationassignment.go | 29 - build/platformclientv2/calibrationcreate.go | 78 - .../calibrationentitylisting.go | 53 - build/platformclientv2/call.go | 114 - .../callablecontactsdiagnostic.go | 29 - build/platformclientv2/callabletime.go | 21 - build/platformclientv2/callabletimeset.go | 42 - .../callabletimesetentitylisting.go | 53 - build/platformclientv2/callablewindow.go | 21 - build/platformclientv2/callback.go | 98 - build/platformclientv2/callbackbasic.go | 98 - .../platformclientv2/callbackconversation.go | 33 - .../callbackconversationentitylisting.go | 53 - build/platformclientv2/callbackidentifier.go | 21 - .../callbackmediaparticipant.go | 174 - build/platformclientv2/callbasic.go | 114 - build/platformclientv2/callcommand.go | 21 - build/platformclientv2/callconversation.go | 41 - .../callconversationentitylisting.go | 53 - build/platformclientv2/callforwarding.go | 50 - .../callforwardingeventcall.go | 17 - .../callforwardingeventcallforwarding.go | 34 - .../callforwardingeventtarget.go | 21 - .../callforwardingeventuser.go | 17 - .../callhistoryconversation.go | 66 - .../callhistoryconversationentitylisting.go | 53 - .../callhistoryparticipant.go | 90 - .../platformclientv2/callmediaparticipant.go | 190 - build/platformclientv2/callmediapolicy.go | 21 - .../callmediapolicyconditions.go | 45 - build/platformclientv2/callrecord.go | 22 - build/platformclientv2/callroute.go | 17 - build/platformclientv2/calltarget.go | 21 - build/platformclientv2/campaign.go | 146 - build/platformclientv2/campaigndiagnostics.go | 33 - .../platformclientv2/campaigndivisionview.go | 29 - .../campaigndivisionviewlisting.go | 53 - .../platformclientv2/campaignentitylisting.go | 53 - build/platformclientv2/campaigninteraction.go | 98 - .../platformclientv2/campaigninteractions.go | 37 - build/platformclientv2/campaignprogress.go | 37 - build/platformclientv2/campaignrule.go | 58 - build/platformclientv2/campaignruleaction.go | 29 - .../campaignruleactionentities.go | 25 - .../platformclientv2/campaignrulecondition.go | 25 - .../platformclientv2/campaignruleentities.go | 21 - .../campaignruleentitylisting.go | 53 - .../campaignruleparameters.go | 29 - build/platformclientv2/campaignschedule.go | 50 - build/platformclientv2/campaignsequence.go | 58 - .../campaignsequenceentitylisting.go | 53 - build/platformclientv2/campaignstats.go | 37 - build/platformclientv2/campaigntimeslot.go | 25 - build/platformclientv2/category.go | 17 - .../platformclientv2/categoryentitylisting.go | 33 - build/platformclientv2/certificate.go | 17 - .../certificateauthorityentitylisting.go | 53 - build/platformclientv2/certificatedetails.go | 42 - build/platformclientv2/change.go | 29 - .../changemypasswordrequest.go | 21 - .../platformclientv2/changepasswordrequest.go | 17 - build/platformclientv2/channel.go | 26 - .../platformclientv2/channelentitylisting.go | 17 - build/platformclientv2/channeltopic.go | 21 - .../channeltopicentitylisting.go | 17 - build/platformclientv2/chat.go | 17 - .../chatbadgetopicbadgeentity.go | 17 - .../chatbadgetopicchatbadge.go | 26 - build/platformclientv2/chatconversation.go | 33 - .../chatconversationentitylisting.go | 53 - .../platformclientv2/chatmediaparticipant.go | 150 - build/platformclientv2/chatmediapolicy.go | 21 - .../chatmediapolicyconditions.go | 41 - build/platformclientv2/chatmessage.go | 61 - build/platformclientv2/chatmessageuser.go | 33 - build/platformclientv2/clientapp.go | 49 - .../clientappconfigurationinfo.go | 21 - .../clientappentitylisting.go | 53 - .../platformclientv2/cobrowseconversation.go | 33 - .../cobrowseconversationentitylisting.go | 53 - .../cobrowsemediaparticipant.go | 162 - build/platformclientv2/cobrowsesession.go | 74 - build/platformclientv2/commandstatus.go | 46 - .../commandstatusentitylisting.go | 53 - build/platformclientv2/condition.go | 49 - build/platformclientv2/configuration.go | 146 - build/platformclientv2/connectrate.go | 25 - build/platformclientv2/consulttransfer.go | 21 - .../consulttransferresponse.go | 17 - .../platformclientv2/consulttransferupdate.go | 17 - .../consumedresourcesentitylisting.go | 53 - .../consumingresourcesentitylisting.go | 53 - build/platformclientv2/contact.go | 33 - build/platformclientv2/contactaddress.go | 37 - .../contactcallbackrequest.go | 33 - .../platformclientv2/contactcentersettings.go | 17 - .../platformclientv2/contactcolumntimezone.go | 21 - .../contactcolumntodataactionfieldmapping.go | 13 - build/platformclientv2/contactlist.go | 78 - .../contactlistdivisionview.go | 45 - .../contactlistdivisionviewlisting.go | 53 - .../contactlistdownloadreadyexporturi.go | 25 - .../contactlistentitylisting.go | 53 - build/platformclientv2/contactlistfilter.go | 50 - .../contactlistfilterclause.go | 21 - .../contactlistfilterentitylisting.go | 53 - .../contactlistfilterpredicate.go | 37 - .../contactlistfilterrange.go | 33 - .../contactlistimportstatusimportstatus.go | 37 - build/platformclientv2/contactlisting.go | 53 - .../contactphonenumbercolumn.go | 25 - build/platformclientv2/contactsort.go | 25 - .../contentattributefilteritem.go | 25 - .../contentfacetfilteritem.go | 29 - build/platformclientv2/contentfilteritem.go | 29 - .../platformclientv2/contentmanagementapi.go | 3208 ----- ...gementsingledocumenttopicdocumentdatav2.go | 70 - ...ntmanagementsingledocumenttopiclockdata.go | 26 - ...ntmanagementsingledocumenttopicuserdata.go | 21 - ...agementsingledocumenttopicworkspacedata.go | 17 - ...ntworkspacedocumentstopicdocumentdatav2.go | 70 - ...nagementworkspacedocumentstopiclockdata.go | 26 - ...nagementworkspacedocumentstopicuserdata.go | 21 - ...entworkspacedocumentstopicworkspacedata.go | 17 - build/platformclientv2/contentqueryrequest.go | 45 - build/platformclientv2/contentsortitem.go | 21 - build/platformclientv2/conversation.go | 62 - .../conversationaggregatedatacontainer.go | 21 - .../conversationaggregatequeryclause.go | 21 - .../conversationaggregatequeryfilter.go | 25 - .../conversationaggregatequerypredicate.go | 33 - .../conversationaggregatequeryresponse.go | 17 - .../conversationaggregationquery.go | 49 - .../conversationaggregationview.go | 29 - .../conversationassociation.go | 29 - build/platformclientv2/conversationbasic.go | 42 - ...ncallbackeventtopiccallbackconversation.go | 29 - ...lbackeventtopiccallbackmediaparticipant.go | 178 - ...llbackeventtopicconversationroutingdata.go | 33 - .../conversationcallbackeventtopicdetail.go | 29 - ...ersationcallbackeventtopicdialerpreview.go | 37 - ...conversationcallbackeventtopicerrorbody.go | 53 - ...ersationcallbackeventtopicjourneyaction.go | 21 - ...ationcallbackeventtopicjourneyactionmap.go | 21 - ...rsationcallbackeventtopicjourneycontext.go | 25 - ...sationcallbackeventtopicjourneycustomer.go | 21 - ...allbackeventtopicjourneycustomersession.go | 21 - ...tioncallbackeventtopicphonenumbercolumn.go | 25 - ...nversationcallbackeventtopicscoredagent.go | 21 - ...versationcallbackeventtopicurireference.go | 21 - ...conversationcallbackeventtopicvoicemail.go | 21 - .../conversationcallbackeventtopicwrapup.go | 38 - ...versationcalleventtopiccallconversation.go | 37 - ...ationcalleventtopiccallmediaparticipant.go | 190 - ...oncalleventtopicconversationroutingdata.go | 33 - .../conversationcalleventtopicdetail.go | 29 - .../conversationcalleventtopicerrorbody.go | 53 - .../conversationcalleventtopicfaxstatus.go | 45 - ...conversationcalleventtopicjourneyaction.go | 21 - ...versationcalleventtopicjourneyactionmap.go | 21 - ...onversationcalleventtopicjourneycontext.go | 25 - ...nversationcalleventtopicjourneycustomer.go | 21 - ...ioncalleventtopicjourneycustomersession.go | 21 - .../conversationcalleventtopicscoredagent.go | 21 - .../conversationcalleventtopicurireference.go | 21 - .../conversationcalleventtopicwrapup.go | 38 - build/platformclientv2/conversationchat.go | 82 - ...versationchateventtopicchatconversation.go | 29 - ...ationchateventtopicchatmediaparticipant.go | 154 - ...onchateventtopicconversationroutingdata.go | 33 - .../conversationchateventtopicdetail.go | 29 - .../conversationchateventtopicerrorbody.go | 53 - ...conversationchateventtopicjourneyaction.go | 21 - ...versationchateventtopicjourneyactionmap.go | 21 - ...onversationchateventtopicjourneycontext.go | 25 - ...nversationchateventtopicjourneycustomer.go | 21 - ...ionchateventtopicjourneycustomersession.go | 21 - .../conversationchateventtopicscoredagent.go | 21 - .../conversationchateventtopicurireference.go | 21 - .../conversationchateventtopicwrapup.go | 38 - ...ncobrowseeventtopiccobrowseconversation.go | 29 - ...rowseeventtopiccobrowsemediaparticipant.go | 166 - ...browseeventtopicconversationroutingdata.go | 33 - .../conversationcobrowseeventtopicdetail.go | 29 - ...conversationcobrowseeventtopicerrorbody.go | 53 - ...ersationcobrowseeventtopicjourneyaction.go | 21 - ...ationcobrowseeventtopicjourneyactionmap.go | 21 - ...rsationcobrowseeventtopicjourneycontext.go | 25 - ...sationcobrowseeventtopicjourneycustomer.go | 21 - ...obrowseeventtopicjourneycustomersession.go | 21 - ...nversationcobrowseeventtopicscoredagent.go | 21 - ...versationcobrowseeventtopicurireference.go | 21 - .../conversationcobrowseeventtopicwrapup.go | 38 - .../conversationdetailqueryclause.go | 21 - .../conversationdetailqueryfilter.go | 25 - .../conversationdetailquerypredicate.go | 37 - .../conversationdivisionmembership.go | 21 - .../conversationemaileventtopicattachment.go | 37 - ...nemaileventtopicconversationroutingdata.go | 33 - .../conversationemaileventtopicdetail.go | 29 - ...rsationemaileventtopicemailconversation.go | 29 - ...ionemaileventtopicemailmediaparticipant.go | 170 - .../conversationemaileventtopicerrorbody.go | 53 - ...onversationemaileventtopicjourneyaction.go | 21 - ...ersationemaileventtopicjourneyactionmap.go | 21 - ...nversationemaileventtopicjourneycontext.go | 25 - ...versationemaileventtopicjourneycustomer.go | 21 - ...onemaileventtopicjourneycustomersession.go | 21 - .../conversationemaileventtopicscoredagent.go | 21 - ...conversationemaileventtopicurireference.go | 21 - .../conversationemaileventtopicwrapup.go | 38 - .../conversationentitylisting.go | 53 - .../conversationeventtopicaddress.go | 37 - .../conversationeventtopicattachment.go | 37 - .../conversationeventtopiccall.go | 106 - .../conversationeventtopiccallback.go | 94 - .../conversationeventtopicchat.go | 70 - .../conversationeventtopiccobrowse.go | 78 - .../conversationeventtopicconversation.go | 33 - ...sationeventtopicconversationroutingdata.go | 33 - .../conversationeventtopicdialerpreview.go | 37 - .../conversationeventtopicdisconnectreason.go | 25 - .../conversationeventtopicemail.go | 90 - .../conversationeventtopicerrordetails.go | 45 - .../conversationeventtopicfaxstatus.go | 45 - .../conversationeventtopicjourneyaction.go | 21 - .../conversationeventtopicjourneyactionmap.go | 21 - .../conversationeventtopicjourneycontext.go | 25 - .../conversationeventtopicjourneycustomer.go | 21 - ...rsationeventtopicjourneycustomersession.go | 21 - .../conversationeventtopicmessage.go | 86 - .../conversationeventtopicmessagedetails.go | 38 - .../conversationeventtopicmessagemedia.go | 33 - .../conversationeventtopicmessagesticker.go | 21 - .../conversationeventtopicparticipant.go | 154 - ...conversationeventtopicphonenumbercolumn.go | 25 - .../conversationeventtopicscoredagent.go | 21 - .../conversationeventtopicscreenshare.go | 62 - .../conversationeventtopicsocialexpression.go | 78 - .../conversationeventtopicurireference.go | 21 - .../conversationeventtopicvideo.go | 74 - .../conversationeventtopicvoicemail.go | 21 - .../conversationeventtopicwrapup.go | 38 - ...essageeventtopicconversationroutingdata.go | 33 - .../conversationmessageeventtopicdetail.go | 29 - .../conversationmessageeventtopicerrorbody.go | 53 - ...versationmessageeventtopicjourneyaction.go | 21 - ...sationmessageeventtopicjourneyactionmap.go | 21 - ...ersationmessageeventtopicjourneycontext.go | 25 - ...rsationmessageeventtopicjourneycustomer.go | 21 - ...messageeventtopicjourneycustomersession.go | 21 - ...ionmessageeventtopicmessageconversation.go | 29 - ...ersationmessageeventtopicmessagedetails.go | 38 - ...nversationmessageeventtopicmessagemedia.go | 33 - ...essageeventtopicmessagemediaparticipant.go | 162 - ...ersationmessageeventtopicmessagesticker.go | 21 - ...onversationmessageeventtopicscoredagent.go | 21 - ...nversationmessageeventtopicurireference.go | 21 - .../conversationmessageeventtopicwrapup.go | 38 - .../conversationproperties.go | 57 - build/platformclientv2/conversationquery.go | 53 - .../conversationroutingdata.go | 33 - build/platformclientv2/conversationsapi.go | 10014 ---------------- ...nshareeventtopicconversationroutingdata.go | 33 - ...conversationscreenshareeventtopicdetail.go | 29 - ...versationscreenshareeventtopicerrorbody.go | 53 - ...ationscreenshareeventtopicjourneyaction.go | 21 - ...onscreenshareeventtopicjourneyactionmap.go | 21 - ...tionscreenshareeventtopicjourneycontext.go | 25 - ...ionscreenshareeventtopicjourneycustomer.go | 21 - ...enshareeventtopicjourneycustomersession.go | 21 - ...rsationscreenshareeventtopicscoredagent.go | 21 - ...nshareeventtopicscreenshareconversation.go | 29 - ...reeventtopicscreensharemediaparticipant.go | 158 - ...sationscreenshareeventtopicurireference.go | 21 - ...conversationscreenshareeventtopicwrapup.go | 38 - ...essioneventtopicconversationroutingdata.go | 33 - ...rsationsocialexpressioneventtopicdetail.go | 29 - ...tionsocialexpressioneventtopicerrorbody.go | 53 - ...socialexpressioneventtopicjourneyaction.go | 21 - ...ialexpressioneventtopicjourneyactionmap.go | 21 - ...ocialexpressioneventtopicjourneycontext.go | 25 - ...cialexpressioneventtopicjourneycustomer.go | 21 - ...ressioneventtopicjourneycustomersession.go | 21 - ...onsocialexpressioneventtopicscoredagent.go | 21 - ...lexpressioneventtopicsocialconversation.go | 29 - ...ressioneventtopicsocialmediaparticipant.go | 162 - ...nsocialexpressioneventtopicurireference.go | 21 - ...rsationsocialexpressioneventtopicwrapup.go | 38 - ...nvideoeventtopicconversationroutingdata.go | 33 - .../conversationvideoeventtopicdetail.go | 29 - .../conversationvideoeventtopicerrorbody.go | 53 - ...onversationvideoeventtopicjourneyaction.go | 21 - ...ersationvideoeventtopicjourneyactionmap.go | 21 - ...nversationvideoeventtopicjourneycontext.go | 25 - ...versationvideoeventtopicjourneycustomer.go | 21 - ...onvideoeventtopicjourneycustomersession.go | 21 - .../conversationvideoeventtopicscoredagent.go | 21 - ...conversationvideoeventtopicurireference.go | 21 - ...rsationvideoeventtopicvideoconversation.go | 29 - ...ionvideoeventtopicvideomediaparticipant.go | 170 - .../conversationvideoeventtopicwrapup.go | 38 - .../copyattachmentsrequest.go | 21 - .../copyshorttermforecastrequest.go | 21 - .../platformclientv2/copyvoicemailmessage.go | 25 - .../copyweekschedulerequest.go | 21 - build/platformclientv2/copyworkplan.go | 17 - build/platformclientv2/coversheet.go | 21 - .../createactivitycoderequest.go | 37 - .../createadmintimeoffrequest.go | 42 - .../createagenttimeoffrequest.go | 34 - .../platformclientv2/createcallbackcommand.go | 50 - .../createcallbackonconversationcommand.go | 50 - .../createcallbackresponse.go | 21 - build/platformclientv2/createcallrequest.go | 61 - build/platformclientv2/createcallresponse.go | 25 - build/platformclientv2/createemailrequest.go | 73 - .../createintegrationrequest.go | 29 - .../createmanagementunitapirequest.go | 37 - .../createmanagementunitsettingsrequest.go | 33 - ...ateoutboundmessagingconversationrequest.go | 37 - .../createqueuemediaassociationrequest.go | 25 - build/platformclientv2/createqueuerequest.go | 106 - build/platformclientv2/createsecuresession.go | 29 - .../createservicegoalgrouprequest.go | 25 - build/platformclientv2/createsharerequest.go | 33 - .../createsharerequestmember.go | 21 - build/platformclientv2/createshareresponse.go | 57 - build/platformclientv2/createuser.go | 45 - .../createwebchatconversationrequest.go | 37 - .../createwebchatconversationresponse.go | 29 - .../createwebchatmessagerequest.go | 21 - .../platformclientv2/createwebchatrequest.go | 41 - build/platformclientv2/createworkplan.go | 81 - .../createworkplanactivity.go | 57 - build/platformclientv2/createworkplanshift.go | 85 - build/platformclientv2/credential.go | 33 - build/platformclientv2/credentialinfo.go | 38 - .../platformclientv2/credentialinfolisting.go | 53 - .../credentialspecification.go | 25 - build/platformclientv2/credentialtype.go | 33 - .../platformclientv2/credentialtypelisting.go | 53 - .../currentuserschedulerequestbody.go | 26 - .../customerinteractioncenter.go | 41 - .../dataactionconditionpredicate.go | 13 - build/platformclientv2/dataschema.go | 50 - build/platformclientv2/datatable.go | 33 - .../datatablerowentitylisting.go | 53 - .../datatablesdomainentitylisting.go | 53 - build/platformclientv2/daterange.go | 21 - build/platformclientv2/defaultgreetinglist.go | 54 - .../deletableuserreference.go | 25 - build/platformclientv2/deleteretention.go | 17 - build/platformclientv2/dependency.go | 45 - build/platformclientv2/dependencyobject.go | 53 - .../dependencyobjectentitylisting.go | 53 - build/platformclientv2/dependencystatus.go | 54 - build/platformclientv2/dependencytype.go | 29 - .../dependencytypeentitylisting.go | 53 - build/platformclientv2/destination.go | 29 - build/platformclientv2/detail.go | 29 - build/platformclientv2/dialeraction.go | 29 - ...rattemptlimitsconfigchangeattemptlimits.go | 62 - ...lerattemptlimitsconfigchangerecallentry.go | 25 - build/platformclientv2/dialerauditrequest.go | 29 - ...callabletimesetconfigchangecallabletime.go | 25 - ...labletimesetconfigchangecallabletimeset.go | 42 - ...alercallabletimesetconfigchangetimeslot.go | 29 - .../dialercampaignconfigchangecampaign.go | 146 - .../dialercampaignconfigchangecontactsort.go | 29 - .../dialercampaignconfigchangephonecolumn.go | 25 - ...alercampaignconfigchangeresterrordetail.go | 25 - .../dialercampaignconfigchangeurireference.go | 21 - ...ercampaignprogresseventcampaignprogress.go | 37 - ...dialercampaignprogresseventurireference.go | 21 - ...lercampaignruleconfigchangecampaignrule.go | 58 - ...paignruleconfigchangecampaignruleaction.go | 33 - ...econfigchangecampaignruleactionentities.go | 29 - ...gnruleconfigchangecampaignrulecondition.go | 29 - ...ignruleconfigchangecampaignruleentities.go | 21 - ...lercampaignruleconfigchangeurireference.go | 21 - ...ignscheduleconfigchangecampaignschedule.go | 50 - ...ignscheduleconfigchangescheduleinterval.go | 25 - ...ampaignscheduleconfigchangeurireference.go | 21 - build/platformclientv2/dialercontact.go | 49 - build/platformclientv2/dialercontactid.go | 21 - ...ialercontactlistconfigchangecontactlist.go | 78 - ...istconfigchangecontactphonenumbercolumn.go | 29 - ...alercontactlistconfigchangeimportstatus.go | 37 - ...alercontactlistconfigchangeurireference.go | 21 - ...listfilterconfigchangecontactlistfilter.go | 54 - ...ntactlistfilterconfigchangefilterclause.go | 25 - ...ctlistfilterconfigchangefilterpredicate.go | 41 - ...ialercontactlistfilterconfigchangerange.go | 37 - ...ntactlistfilterconfigchangeurireference.go | 21 - .../dialerdnclistconfigchangednclist.go | 66 - .../dialerdnclistconfigchangeimportstatus.go | 37 - .../dialerdnclistconfigchangeurireference.go | 21 - .../dialerevententitylisting.go | 53 - ...utboundsettingsconfigchangeatzmtimeslot.go | 21 - ...ngsconfigchangeatzmtimeslotwithtimezone.go | 25 - ...gchangeautomatictimezonemappingsettings.go | 17 - ...boundsettingsconfigchangecallablewindow.go | 21 - ...undsettingsconfigchangeoutboundsettings.go | 54 - build/platformclientv2/dialerpreview.go | 33 - .../dialerresponsesetconfigchangereaction.go | 29 - ...ialerresponsesetconfigchangeresponseset.go | 46 - build/platformclientv2/dialerrule.go | 37 - .../dialerrulesetconfigchangeaction.go | 33 - .../dialerrulesetconfigchangecondition.go | 81 - ...gecontactcolumntodataactionfieldmapping.go | 25 - ...onfigchangedataactionconditionpredicate.go | 37 - .../dialerrulesetconfigchangerule.go | 41 - .../dialerrulesetconfigchangeruleset.go | 50 - .../dialerrulesetconfigchangeurireference.go | 21 - ...lersequenceconfigchangecampaignsequence.go | 58 - .../dialersequenceconfigchangeurireference.go | 21 - ...ncescheduleconfigchangescheduleinterval.go | 25 - ...ncescheduleconfigchangesequenceschedule.go | 50 - ...equencescheduleconfigchangeurireference.go | 21 - ...odemappingconfigchangewrapupcodemapping.go | 42 - build/platformclientv2/dialogflowagent.go | 37 - .../dialogflowagentsummary.go | 33 - .../dialogflowagentsummaryentitylisting.go | 53 - build/platformclientv2/dialogflowintent.go | 21 - build/platformclientv2/dialogflowparameter.go | 21 - build/platformclientv2/dialogflowproject.go | 21 - build/platformclientv2/did.go | 78 - build/platformclientv2/didentitylisting.go | 53 - build/platformclientv2/didpool.go | 78 - .../platformclientv2/didpoolentitylisting.go | 53 - build/platformclientv2/digitlength.go | 21 - build/platformclientv2/digits.go | 17 - .../directoryuserdeviceslisting.go | 53 - build/platformclientv2/disconnectreason.go | 25 - build/platformclientv2/division.go | 25 - build/platformclientv2/dnclist.go | 66 - build/platformclientv2/dnclistcreate.go | 66 - build/platformclientv2/dnclistdivisionview.go | 37 - .../dnclistdivisionviewlisting.go | 53 - .../dnclistdownloadreadyexporturi.go | 25 - .../platformclientv2/dnclistentitylisting.go | 53 - .../dnclistimportstatusimportstatus.go | 37 - build/platformclientv2/document.go | 138 - build/platformclientv2/documentationresult.go | 94 - .../documentationsearchcriteria.go | 45 - .../documentationsearchrequest.go | 37 - .../documentationsearchresponse.go | 49 - build/platformclientv2/documentattribute.go | 21 - build/platformclientv2/documentaudit.go | 78 - .../documentauditentitylisting.go | 53 - .../platformclientv2/documententitylisting.go | 53 - build/platformclientv2/documentthumbnail.go | 29 - build/platformclientv2/documentupdate.go | 49 - build/platformclientv2/documentupload.go | 29 - build/platformclientv2/domaincapabilities.go | 37 - .../domaincertificateauthority.go | 78 - .../domainedgesoftwareupdatedto.go | 54 - .../domainedgesoftwareversiondto.go | 46 - ...mainedgesoftwareversiondtoentitylisting.go | 53 - build/platformclientv2/domainentity.go | 25 - build/platformclientv2/domainentitylisting.go | 53 - .../domainentitylistingevaluationform.go | 53 - .../domainentitylistingqueryresult.go | 53 - .../domainentitylistingsurveyform.go | 53 - build/platformclientv2/domainentityref.go | 25 - .../domainlogicalinterface.go | 174 - .../platformclientv2/domainnetworkaddress.go | 29 - .../domainnetworkcommandresponse.go | 29 - build/platformclientv2/domainnetworkroute.go | 33 - .../domainorganizationproduct.go | 17 - .../domainorganizationrole.go | 61 - .../domainorganizationrolecreate.go | 61 - .../domainorganizationroleupdate.go | 61 - .../domainorgroledifference.go | 33 - build/platformclientv2/domainpermission.go | 37 - .../domainpermissioncollection.go | 33 - .../domainpermissionpolicy.go | 45 - .../domainphysicalcapabilities.go | 21 - .../domainphysicalinterface.go | 82 - .../domainresourceconditionnode.go | 33 - .../domainresourceconditionvalue.go | 29 - build/platformclientv2/domainrole.go | 21 - .../platformclientv2/domainschemareference.go | 62 - build/platformclientv2/downloadresponse.go | 25 - .../platformclientv2/draftvalidationresult.go | 21 - build/platformclientv2/durationcondition.go | 25 - build/platformclientv2/edge.go | 178 - .../platformclientv2/edgeautoupdateconfig.go | 30 - build/platformclientv2/edgeentitylisting.go | 53 - build/platformclientv2/edgegroup.go | 74 - .../edgegroupentitylisting.go | 53 - build/platformclientv2/edgeinterface.go | 45 - build/platformclientv2/edgeline.go | 94 - .../platformclientv2/edgelineentitylisting.go | 53 - build/platformclientv2/edgelogsjob.go | 66 - build/platformclientv2/edgelogsjobfile.go | 86 - build/platformclientv2/edgelogsjobrequest.go | 25 - build/platformclientv2/edgelogsjobresponse.go | 62 - .../edgelogsjobuploadrequest.go | 17 - build/platformclientv2/edgemetrics.go | 46 - build/platformclientv2/edgemetricsdisk.go | 25 - build/platformclientv2/edgemetricsmemory.go | 25 - build/platformclientv2/edgemetricsnetwork.go | 33 - .../platformclientv2/edgemetricsprocessor.go | 33 - .../platformclientv2/edgemetricssubsystem.go | 25 - .../platformclientv2/edgenetworkdiagnostic.go | 21 - .../edgenetworkdiagnosticrequest.go | 17 - .../edgenetworkdiagnosticresponse.go | 21 - .../platformclientv2/edgerebootparameters.go | 17 - .../edgeservicestaterequest.go | 21 - build/platformclientv2/edgetrunkbase.go | 74 - .../edgeversioninformation.go | 17 - build/platformclientv2/edgeversionreport.go | 21 - .../effectiveconfiguration.go | 33 - build/platformclientv2/email.go | 98 - build/platformclientv2/emailaddress.go | 21 - build/platformclientv2/emailattachment.go | 33 - build/platformclientv2/emailconversation.go | 33 - .../emailconversationentitylisting.go | 53 - .../platformclientv2/emailmediaparticipant.go | 166 - build/platformclientv2/emailmediapolicy.go | 21 - .../emailmediapolicyconditions.go | 37 - build/platformclientv2/emailmessage.go | 66 - build/platformclientv2/emailmessagelisting.go | 53 - build/platformclientv2/emailsetup.go | 17 - build/platformclientv2/embeddedintegration.go | 21 - build/platformclientv2/emergencycallflow.go | 21 - build/platformclientv2/emergencygroup.go | 70 - .../platformclientv2/emergencygrouplisting.go | 53 - build/platformclientv2/employerinfo.go | 29 - build/platformclientv2/empty.go | 13 - build/platformclientv2/encryptionkey.go | 42 - .../encryptionkeyentitylisting.go | 53 - build/platformclientv2/endpoint.go | 86 - build/platformclientv2/entry.go | 21 - build/platformclientv2/errorbody.go | 53 - build/platformclientv2/errordetails.go | 45 - build/platformclientv2/errorinfo.go | 21 - .../estimatedwaittimepredictions.go | 17 - build/platformclientv2/evaluation.go | 110 - .../evaluationaggregatedatacontainer.go | 21 - .../evaluationaggregatequeryclause.go | 21 - .../evaluationaggregatequeryfilter.go | 25 - .../evaluationaggregatequerypredicate.go | 33 - .../evaluationaggregatequeryresponse.go | 17 - .../evaluationaggregationquery.go | 49 - .../evaluationaggregationview.go | 29 - .../platformclientv2/evaluationassignment.go | 21 - .../evaluationdetailqueryclause.go | 21 - .../evaluationdetailqueryfilter.go | 25 - .../evaluationdetailquerypredicate.go | 37 - .../evaluationentitylisting.go | 53 - build/platformclientv2/evaluationform.go | 46 - .../evaluationformandscoringset.go | 21 - .../evaluationformentitylisting.go | 53 - build/platformclientv2/evaluationquestion.go | 53 - .../evaluationquestiongroup.go | 53 - .../evaluationquestiongroupscore.go | 73 - .../evaluationquestionscore.go | 37 - .../platformclientv2/evaluationscoringset.go | 41 - build/platformclientv2/evaluatoractivity.go | 53 - .../evaluatoractivityentitylisting.go | 53 - build/platformclientv2/evententity.go | 21 - build/platformclientv2/eventlog.go | 54 - build/platformclientv2/eventmessage.go | 37 - .../executerecordingjobsquery.go | 17 - build/platformclientv2/expansioncriterium.go | 21 - build/platformclientv2/exportscriptrequest.go | 21 - .../platformclientv2/exportscriptresponse.go | 17 - build/platformclientv2/exporturi.go | 22 - build/platformclientv2/extension.go | 78 - .../extensionentitylisting.go | 53 - build/platformclientv2/extensionpool.go | 70 - .../extensionpoolentitylisting.go | 53 - build/platformclientv2/externalcontact.go | 114 - build/platformclientv2/externalcontactsapi.go | 2486 ---- build/platformclientv2/externaldatasource.go | 21 - .../platformclientv2/externalorganization.go | 94 - .../externalorganizationlisting.go | 53 - build/platformclientv2/facebookid.go | 21 - build/platformclientv2/facebookintegration.go | 62 - .../facebookintegrationentitylisting.go | 53 - .../facebookintegrationrequest.go | 45 - build/platformclientv2/facebookscopedid.go | 17 - build/platformclientv2/facet.go | 21 - build/platformclientv2/facetentry.go | 45 - build/platformclientv2/facetinfo.go | 21 - build/platformclientv2/facetkeyattribute.go | 25 - build/platformclientv2/facetstatistics.go | 42 - build/platformclientv2/facetterm.go | 38 - build/platformclientv2/failedobject.go | 29 - build/platformclientv2/faxapi.go | 453 - build/platformclientv2/faxdocument.go | 86 - .../faxdocumententitylisting.go | 53 - build/platformclientv2/faxsendrequest.go | 49 - build/platformclientv2/faxsendresponse.go | 33 - build/platformclientv2/faxstatus.go | 45 - build/platformclientv2/faxsummary.go | 25 - build/platformclientv2/faxtopicfaxdatav2.go | 82 - build/platformclientv2/faxtopiclockdata.go | 26 - build/platformclientv2/faxtopicuserdata.go | 21 - .../platformclientv2/faxtopicworkspacedata.go | 17 - build/platformclientv2/featurestate.go | 17 - build/platformclientv2/fieldconfig.go | 45 - build/platformclientv2/fieldconfigs.go | 29 - build/platformclientv2/fieldlist.go | 49 - build/platformclientv2/filter.go | 29 - .../platformclientv2/filterpreviewresponse.go | 25 - build/platformclientv2/flow.go | 89 - .../flowaggregatedatacontainer.go | 21 - .../flowaggregatequeryclause.go | 21 - .../flowaggregatequeryfilter.go | 25 - .../flowaggregatequerypredicate.go | 33 - .../flowaggregatequeryresponse.go | 17 - .../platformclientv2/flowaggregationquery.go | 49 - build/platformclientv2/flowaggregationview.go | 29 - build/platformclientv2/flowdiagnosticinfo.go | 17 - build/platformclientv2/flowdivisionview.go | 41 - .../flowdivisionviewentitylisting.go | 53 - build/platformclientv2/flowentitylisting.go | 53 - .../flowobservationdatacontainer.go | 21 - .../platformclientv2/flowobservationquery.go | 25 - .../flowobservationqueryclause.go | 21 - .../flowobservationqueryfilter.go | 25 - .../flowobservationquerypredicate.go | 33 - .../flowobservationqueryresponse.go | 17 - build/platformclientv2/flowoutcome.go | 33 - build/platformclientv2/flowoutcomelisting.go | 53 - build/platformclientv2/flowsapi.go | 174 - build/platformclientv2/flowversion.go | 77 - .../flowversionentitylisting.go | 53 - .../forecastgenerationresult.go | 17 - .../forecastgenerationroutegroupresult.go | 21 - .../forecastresultresponse.go | 21 - .../forecastsourcedaypointer.go | 33 - .../forecasttimeseriesresult.go | 21 - .../freeseatingconfiguration.go | 21 - build/platformclientv2/gdprjourneycustomer.go | 21 - build/platformclientv2/gdprrequest.go | 54 - .../gdprrequestentitylisting.go | 53 - build/platformclientv2/gdprsubject.go | 49 - .../gdprsubjectentitylisting.go | 53 - .../generaldataprotectionregulationapi.go | 344 - .../generateshorttermforecastrequest.go | 17 - .../generateshorttermforecastresponse.go | 29 - .../generateweekschedulerequest.go | 21 - .../generateweekscheduleresponse.go | 25 - build/platformclientv2/geolocation.go | 57 - build/platformclientv2/geolocationapi.go | 324 - .../geolocationeventgeolocation.go | 33 - build/platformclientv2/geolocationsettings.go | 33 - .../gkndocumentationresult.go | 29 - .../gkndocumentationsearchcriteria.go | 45 - .../gkndocumentationsearchrequest.go | 37 - .../gkndocumentationsearchresponse.go | 49 - build/platformclientv2/greeting.go | 62 - build/platformclientv2/greetingaudiofile.go | 25 - build/platformclientv2/greetinglisting.go | 53 - build/platformclientv2/greetingmediainfo.go | 25 - build/platformclientv2/greetingowner.go | 25 - build/platformclientv2/greetingsapi.go | 1215 -- build/platformclientv2/group.go | 70 - build/platformclientv2/groupcontact.go | 33 - build/platformclientv2/groupcreate.go | 70 - build/platformclientv2/groupentitylisting.go | 53 - .../groupgreetingeventgreeting.go | 41 - .../groupgreetingeventgreetingaudiofile.go | 21 - .../groupgreetingeventgreetingowner.go | 17 - build/platformclientv2/groupmembersupdate.go | 21 - build/platformclientv2/groupprofile.go | 38 - .../groupprofileentitylisting.go | 53 - build/platformclientv2/groupsapi.go | 1153 -- build/platformclientv2/groupsearchcriteria.go | 45 - build/platformclientv2/groupsearchrequest.go | 37 - .../platformclientv2/groupssearchresponse.go | 49 - build/platformclientv2/groupupdate.go | 57 - build/platformclientv2/gsuite.go | 45 - build/platformclientv2/guestmemberinfo.go | 25 - build/platformclientv2/headcountforecast.go | 21 - build/platformclientv2/headcountinterval.go | 22 - build/platformclientv2/helplink.go | 25 - build/platformclientv2/historyentry.go | 42 - build/platformclientv2/historylisting.go | 94 - build/platformclientv2/homerrecord.go | 218 - build/platformclientv2/identitynow.go | 45 - build/platformclientv2/identityproviderapi.go | 2065 ---- .../ignoredactivitycategories.go | 17 - .../importscriptstatusresponse.go | 25 - .../importshorttermforecastrequest.go | 29 - build/platformclientv2/importstatus.go | 33 - .../importweekschedulerequest.go | 33 - build/platformclientv2/inbounddomain.go | 41 - .../inbounddomainentitylisting.go | 53 - .../platformclientv2/inboundmessagerequest.go | 61 - build/platformclientv2/inboundroute.go | 69 - .../inboundrouteentitylisting.go | 53 - .../initiatescreenrecording.go | 25 - build/platformclientv2/integration.go | 49 - .../integrationconfiguration.go | 45 - .../integrationconfigurationinfo.go | 17 - .../integrationentitylisting.go | 53 - build/platformclientv2/integrationevent.go | 58 - .../integrationevententitylisting.go | 53 - build/platformclientv2/integrationexport.go | 21 - build/platformclientv2/integrationsapi.go | 4205 ------- .../platformclientv2/integrationstatusinfo.go | 30 - build/platformclientv2/integrationtype.go | 109 - .../integrationtypeentitylisting.go | 53 - .../platformclientv2/interactionstatsalert.go | 82 - .../interactionstatsalertcontainer.go | 53 - .../platformclientv2/interactionstatsrule.go | 69 - .../interactionstatsrulecontainer.go | 53 - build/platformclientv2/intradaydatagroup.go | 41 - .../platformclientv2/intradayforecastdata.go | 25 - .../intradayhistoricalagentdata.go | 21 - .../intradayhistoricalqueuedata.go | 45 - build/platformclientv2/intradaymetric.go | 21 - .../intradayperformancepredictionagentdata.go | 17 - .../intradayperformancepredictionqueuedata.go | 25 - .../intradayquerydatacommand.go | 34 - build/platformclientv2/intradayqueue.go | 25 - build/platformclientv2/intradayresponse.go | 46 - .../platformclientv2/intradayscheduledata.go | 21 - build/platformclientv2/ipaddressrange.go | 25 - .../platformclientv2/ipaddressrangelisting.go | 17 - build/platformclientv2/ivr.go | 82 - build/platformclientv2/ivrentitylisting.go | 53 - build/platformclientv2/journeyaction.go | 21 - build/platformclientv2/journeyactionmap.go | 21 - build/platformclientv2/journeycontext.go | 25 - build/platformclientv2/journeycustomer.go | 21 - .../journeycustomersession.go | 21 - build/platformclientv2/jsonnode.go | 97 - .../jsonnodesearchresponse.go | 53 - build/platformclientv2/jsonschemadocument.go | 45 - build/platformclientv2/keyrotationschedule.go | 29 - build/platformclientv2/keyword.go | 65 - build/platformclientv2/keywordset.go | 49 - .../keywordsetentitylisting.go | 53 - ...laxonheartbeatalertstopicheartbeatalert.go | 54 - ...xonheartbeatalertstopicnotificationuser.go | 21 - .../klaxonheartbeatrulestopicheartbeatrule.go | 49 - ...axonheartbeatrulestopicnotificationuser.go | 21 - ...ionstatsalertstopicinteractionstatalert.go | 78 - ...ractionstatsalertstopicnotificationuser.go | 21 - ...ctionstatsrulestopicinteractionstatrule.go | 69 - ...eractionstatsrulestopicnotificationuser.go | 21 - build/platformclientv2/language.go | 38 - .../platformclientv2/languageentitylisting.go | 53 - build/platformclientv2/languageoverride.go | 25 - build/platformclientv2/languagereference.go | 21 - build/platformclientv2/languagesapi.go | 746 -- build/platformclientv2/lexbot.go | 29 - build/platformclientv2/lexbotalias.go | 49 - .../lexbotaliasentitylisting.go | 53 - build/platformclientv2/lexbotentitylisting.go | 53 - build/platformclientv2/lexintent.go | 29 - build/platformclientv2/lexslot.go | 29 - build/platformclientv2/library.go | 42 - .../platformclientv2/libraryentitylisting.go | 53 - build/platformclientv2/licenseapi.go | 646 - .../licenseassignmentrequest.go | 25 - .../licensebatchassignmentrequest.go | 17 - build/platformclientv2/licensedefinition.go | 37 - build/platformclientv2/licenseorgtoggle.go | 21 - build/platformclientv2/licenseupdatestatus.go | 25 - build/platformclientv2/licenseuser.go | 25 - build/platformclientv2/line.go | 98 - build/platformclientv2/linebase.go | 70 - .../platformclientv2/linebaseentitylisting.go | 53 - build/platformclientv2/lineentitylisting.go | 53 - build/platformclientv2/lineid.go | 21 - build/platformclientv2/lineintegration.go | 62 - .../lineintegrationentitylisting.go | 53 - .../lineintegrationrequest.go | 41 - build/platformclientv2/linestatus.go | 34 - build/platformclientv2/lineuserid.go | 17 - .../listwrapperforecastsourcedaypointer.go | 17 - .../listwrappershiftstartvariance.go | 17 - .../listwrapperwfmforecastmodification.go | 17 - .../localencryptionconfiguration.go | 37 - .../localencryptionconfigurationlisting.go | 25 - .../localencryptionkeyrequest.go | 25 - build/platformclientv2/location.go | 33 - build/platformclientv2/locationaddress.go | 41 - .../locationaddressverificationdetails.go | 30 - .../locationcreatedefinition.go | 45 - build/platformclientv2/locationdefinition.go | 77 - .../locationemergencynumber.go | 25 - .../platformclientv2/locationentitylisting.go | 53 - build/platformclientv2/locationimage.go | 21 - build/platformclientv2/locationsapi.go | 652 - .../locationsearchcriteria.go | 45 - .../platformclientv2/locationsearchrequest.go | 41 - .../locationssearchresponse.go | 49 - .../locationupdatedefinition.go | 45 - build/platformclientv2/lockinfo.go | 30 - .../logicalinterfaceentitylisting.go | 53 - build/platformclientv2/mailfromresult.go | 25 - build/platformclientv2/managementunit.go | 58 - .../platformclientv2/managementunitlisting.go | 53 - .../managementunitreference.go | 21 - .../managementunitsettingsrequest.go | 37 - .../managementunitsettingsresponse.go | 37 - build/platformclientv2/manager.go | 21 - build/platformclientv2/maxparticipants.go | 17 - .../mediaendpointstatdetailqueryclause.go | 21 - .../mediaendpointstatdetailqueryfilter.go | 25 - .../mediaendpointstatdetailquerypredicate.go | 33 - .../mediaparticipantrequest.go | 41 - build/platformclientv2/mediapolicies.go | 29 - build/platformclientv2/mediaresult.go | 21 - build/platformclientv2/mediasetting.go | 21 - build/platformclientv2/mediasummary.go | 21 - build/platformclientv2/mediasummarydetail.go | 21 - build/platformclientv2/mediatranscription.go | 25 - build/platformclientv2/mediautilization.go | 25 - build/platformclientv2/memberentity.go | 17 - build/platformclientv2/message.go | 98 - build/platformclientv2/messageconversation.go | 33 - .../messageconversationentitylisting.go | 53 - build/platformclientv2/messagedata.go | 70 - build/platformclientv2/messagedetails.go | 42 - build/platformclientv2/messageevaluation.go | 30 - build/platformclientv2/messageinfo.go | 29 - build/platformclientv2/messagemedia.go | 33 - .../messagemediaattachment.go | 33 - build/platformclientv2/messagemediadata.go | 45 - .../messagemediaparticipant.go | 166 - build/platformclientv2/messagemediapolicy.go | 21 - .../messagemediapolicyconditions.go | 37 - build/platformclientv2/messagesticker.go | 21 - .../messagestickerattachment.go | 21 - build/platformclientv2/messagingapi.go | 115 - .../platformclientv2/messagingintegration.go | 58 - .../messagingintegrationentitylisting.go | 53 - build/platformclientv2/messagingsticker.go | 53 - .../messagingstickerentitylisting.go | 53 - build/platformclientv2/messagingtemplate.go | 25 - build/platformclientv2/metabase.go | 66 - build/platformclientv2/metadata.go | 25 - .../meteredassignmentbyagent.go | 37 - .../meteredevaluationassignment.go | 37 - build/platformclientv2/mobiledevicesapi.go | 393 - .../modelingprocessingerror.go | 21 - .../modelingstatusresponse.go | 29 - .../movemanagementunitrequest.go | 17 - .../movemanagementunitresponse.go | 21 - build/platformclientv2/namedentity.go | 21 - build/platformclientv2/note.go | 46 - build/platformclientv2/notelisting.go | 53 - build/platformclientv2/notificationsapi.go | 532 - .../platformclientv2/notificationsresponse.go | 17 - build/platformclientv2/ntpsettings.go | 17 - build/platformclientv2/number.go | 21 - build/platformclientv2/numberplan.go | 90 - build/platformclientv2/numericrange.go | 29 - build/platformclientv2/oauthapi.go | 719 -- build/platformclientv2/oauthauthorization.go | 46 - .../oauthauthorizationlisting.go | 21 - build/platformclientv2/oauthclient.go | 74 - .../oauthcliententitylisting.go | 53 - build/platformclientv2/oauthclientlisting.go | 70 - build/platformclientv2/oauthclientrequest.go | 45 - .../platformclientv2/oauthlasttokenissued.go | 18 - build/platformclientv2/oauthprovider.go | 29 - .../oauthproviderentitylisting.go | 53 - build/platformclientv2/oauthscope.go | 25 - build/platformclientv2/oauthscopelisting.go | 21 - build/platformclientv2/objectsapi.go | 668 -- .../platformclientv2/observationmetricdata.go | 33 - build/platformclientv2/observationvalue.go | 82 - build/platformclientv2/okta.go | 41 - build/platformclientv2/onelogin.go | 41 - build/platformclientv2/operation.go | 53 - build/platformclientv2/organization.go | 73 - build/platformclientv2/organizationapi.go | 582 - .../organizationauthorizationapi.go | 1863 --- .../platformclientv2/organizationfeatures.go | 65 - .../platformclientv2/organizationpresence.go | 58 - .../organizationpresenceentitylisting.go | 53 - .../organizationproductentitylisting.go | 33 - .../organizationroleentitylisting.go | 53 - build/platformclientv2/orgoauthclient.go | 54 - build/platformclientv2/orguser.go | 145 - .../platformclientv2/orgwhitelistsettings.go | 21 - build/platformclientv2/orphanrecording.go | 62 - .../orphanrecordinglisting.go | 53 - build/platformclientv2/orphanupdaterequest.go | 26 - build/platformclientv2/outboundapi.go | 7638 ------------ ...ngcampaignprogresseventcampaignprogress.go | 37 - ...sagingcampaignprogresseventurireference.go | 21 - build/platformclientv2/outboundroute.go | 86 - build/platformclientv2/outboundroutebase.go | 78 - .../outboundroutebaseentitylisting.go | 53 - .../outboundrouteentitylisting.go | 53 - build/platformclientv2/outboundsettings.go | 58 - build/platformclientv2/outofoffice.go | 46 - .../outofofficeeventoutofoffice.go | 34 - .../platformclientv2/outofofficeeventuser.go | 17 - build/platformclientv2/page.go | 46 - build/platformclientv2/pagingspec.go | 21 - build/platformclientv2/parameter.go | 29 - build/platformclientv2/parsedcertificate.go | 17 - .../platformclientv2/partialuploadresponse.go | 17 - build/platformclientv2/participant.go | 186 - .../platformclientv2/participantattributes.go | 17 - build/platformclientv2/participantbasic.go | 186 - build/platformclientv2/patchuser.go | 33 - .../permissioncollectionentitylisting.go | 53 - build/platformclientv2/permissions.go | 25 - build/platformclientv2/phone.go | 114 - build/platformclientv2/phonebase.go | 78 - .../phonebaseentitylisting.go | 53 - build/platformclientv2/phonecapabilities.go | 45 - build/platformclientv2/phonecolumn.go | 21 - build/platformclientv2/phoneentitylisting.go | 53 - .../phonemetabaseentitylisting.go | 53 - build/platformclientv2/phonenumber.go | 37 - build/platformclientv2/phonenumbercolumn.go | 21 - build/platformclientv2/phonenumberstatus.go | 17 - build/platformclientv2/phonesreboot.go | 21 - build/platformclientv2/phonestatus.go | 53 - .../physicalinterfaceentitylisting.go | 53 - build/platformclientv2/pinconfiguration.go | 21 - build/platformclientv2/pingidentity.go | 45 - .../planningperiodsettings.go | 22 - .../platformclientv2/platformclientv2_test.go | 289 - build/platformclientv2/policy.go | 62 - build/platformclientv2/policyactions.go | 61 - build/platformclientv2/policyconditions.go | 45 - build/platformclientv2/policycreate.go | 62 - build/platformclientv2/policyentitylisting.go | 53 - build/platformclientv2/policyerrormessage.go | 42 - build/platformclientv2/policyerrors.go | 17 - build/platformclientv2/postactioninput.go | 37 - build/platformclientv2/postinputcontract.go | 17 - build/platformclientv2/postoutputcontract.go | 17 - build/platformclientv2/predictionresults.go | 25 - build/platformclientv2/presenceapi.go | 704 -- build/platformclientv2/presencedefinition.go | 25 - .../presencedetailqueryclause.go | 21 - .../presencedetailqueryfilter.go | 25 - .../presencedetailquerypredicate.go | 33 - .../presenceeventorganizationpresence.go | 21 - .../presenceeventuserpresence.go | 34 - build/platformclientv2/prompt.go | 37 - build/platformclientv2/promptasset.go | 65 - build/platformclientv2/promptassetcreate.go | 65 - .../promptassetentitylisting.go | 53 - build/platformclientv2/promptentitylisting.go | 53 - build/platformclientv2/propertychange.go | 25 - .../platformclientv2/propertyindexrequest.go | 26 - build/platformclientv2/provisioninfo.go | 26 - build/platformclientv2/publishdraftinput.go | 17 - .../publishedsurveyformreference.go | 29 - build/platformclientv2/publishform.go | 21 - build/platformclientv2/purecloud.go | 29 - build/platformclientv2/pureengage.go | 45 - build/platformclientv2/qualityapi.go | 4933 -------- build/platformclientv2/qualityaudit.go | 61 - build/platformclientv2/qualityauditpage.go | 53 - build/platformclientv2/querydivision.go | 13 - build/platformclientv2/queryfacetinfo.go | 21 - build/platformclientv2/queryrequest.go | 45 - build/platformclientv2/queryresult.go | 29 - build/platformclientv2/queryresults.go | 21 - build/platformclientv2/queue.go | 102 - ...ncallbackeventtopiccallbackconversation.go | 29 - ...lbackeventtopiccallbackmediaparticipant.go | 178 - ...llbackeventtopicconversationroutingdata.go | 33 - ...eueconversationcallbackeventtopicdetail.go | 29 - ...ersationcallbackeventtopicdialerpreview.go | 37 - ...conversationcallbackeventtopicerrorbody.go | 53 - ...ersationcallbackeventtopicjourneyaction.go | 21 - ...ationcallbackeventtopicjourneyactionmap.go | 21 - ...rsationcallbackeventtopicjourneycontext.go | 25 - ...sationcallbackeventtopicjourneycustomer.go | 21 - ...allbackeventtopicjourneycustomersession.go | 21 - ...tioncallbackeventtopicphonenumbercolumn.go | 25 - ...nversationcallbackeventtopicscoredagent.go | 21 - ...versationcallbackeventtopicurireference.go | 21 - ...conversationcallbackeventtopicvoicemail.go | 21 - ...eueconversationcallbackeventtopicwrapup.go | 38 - ...versationcalleventtopiccallconversation.go | 37 - ...ationcalleventtopiccallmediaparticipant.go | 190 - ...oncalleventtopicconversationroutingdata.go | 33 - .../queueconversationcalleventtopicdetail.go | 29 - ...ueueconversationcalleventtopicerrorbody.go | 53 - ...ueueconversationcalleventtopicfaxstatus.go | 45 - ...conversationcalleventtopicjourneyaction.go | 21 - ...versationcalleventtopicjourneyactionmap.go | 21 - ...onversationcalleventtopicjourneycontext.go | 25 - ...nversationcalleventtopicjourneycustomer.go | 21 - ...ioncalleventtopicjourneycustomersession.go | 21 - ...ueconversationcalleventtopicscoredagent.go | 21 - ...econversationcalleventtopicurireference.go | 21 - .../queueconversationcalleventtopicwrapup.go | 38 - ...versationchateventtopicchatconversation.go | 29 - ...ationchateventtopicchatmediaparticipant.go | 154 - ...onchateventtopicconversationroutingdata.go | 33 - .../queueconversationchateventtopicdetail.go | 29 - ...ueueconversationchateventtopicerrorbody.go | 53 - ...conversationchateventtopicjourneyaction.go | 21 - ...versationchateventtopicjourneyactionmap.go | 21 - ...onversationchateventtopicjourneycontext.go | 25 - ...nversationchateventtopicjourneycustomer.go | 21 - ...ionchateventtopicjourneycustomersession.go | 21 - ...ueconversationchateventtopicscoredagent.go | 21 - ...econversationchateventtopicurireference.go | 21 - .../queueconversationchateventtopicwrapup.go | 38 - ...ncobrowseeventtopiccobrowseconversation.go | 29 - ...rowseeventtopiccobrowsemediaparticipant.go | 166 - ...browseeventtopicconversationroutingdata.go | 33 - ...eueconversationcobrowseeventtopicdetail.go | 29 - ...conversationcobrowseeventtopicerrorbody.go | 53 - ...ersationcobrowseeventtopicjourneyaction.go | 21 - ...ationcobrowseeventtopicjourneyactionmap.go | 21 - ...rsationcobrowseeventtopicjourneycontext.go | 25 - ...sationcobrowseeventtopicjourneycustomer.go | 21 - ...obrowseeventtopicjourneycustomersession.go | 21 - ...nversationcobrowseeventtopicscoredagent.go | 21 - ...versationcobrowseeventtopicurireference.go | 21 - ...eueconversationcobrowseeventtopicwrapup.go | 38 - ...ueconversationemaileventtopicattachment.go | 37 - ...nemaileventtopicconversationroutingdata.go | 33 - .../queueconversationemaileventtopicdetail.go | 29 - ...rsationemaileventtopicemailconversation.go | 29 - ...ionemaileventtopicemailmediaparticipant.go | 170 - ...eueconversationemaileventtopicerrorbody.go | 53 - ...onversationemaileventtopicjourneyaction.go | 21 - ...ersationemaileventtopicjourneyactionmap.go | 21 - ...nversationemaileventtopicjourneycontext.go | 25 - ...versationemaileventtopicjourneycustomer.go | 21 - ...onemaileventtopicjourneycustomersession.go | 21 - ...econversationemaileventtopicscoredagent.go | 21 - ...conversationemaileventtopicurireference.go | 21 - .../queueconversationemaileventtopicwrapup.go | 38 - .../queueconversationeventtopicaddress.go | 37 - .../queueconversationeventtopicattachment.go | 37 - .../queueconversationeventtopiccall.go | 106 - .../queueconversationeventtopiccallback.go | 94 - .../queueconversationeventtopicchat.go | 70 - .../queueconversationeventtopiccobrowse.go | 78 - ...queueconversationeventtopicconversation.go | 33 - ...sationeventtopicconversationroutingdata.go | 33 - ...ueueconversationeventtopicdialerpreview.go | 37 - ...econversationeventtopicdisconnectreason.go | 25 - .../queueconversationeventtopicemail.go | 90 - ...queueconversationeventtopicerrordetails.go | 45 - .../queueconversationeventtopicfaxstatus.go | 45 - ...ueueconversationeventtopicjourneyaction.go | 21 - ...econversationeventtopicjourneyactionmap.go | 21 - ...eueconversationeventtopicjourneycontext.go | 25 - ...ueconversationeventtopicjourneycustomer.go | 21 - ...rsationeventtopicjourneycustomersession.go | 21 - .../queueconversationeventtopicmessage.go | 86 - ...eueconversationeventtopicmessagedetails.go | 38 - ...queueconversationeventtopicmessagemedia.go | 33 - ...eueconversationeventtopicmessagesticker.go | 21 - .../queueconversationeventtopicparticipant.go | 154 - ...conversationeventtopicphonenumbercolumn.go | 25 - .../queueconversationeventtopicscoredagent.go | 21 - .../queueconversationeventtopicscreenshare.go | 62 - ...econversationeventtopicsocialexpression.go | 78 - ...queueconversationeventtopicurireference.go | 21 - .../queueconversationeventtopicvideo.go | 74 - .../queueconversationeventtopicvoicemail.go | 21 - .../queueconversationeventtopicwrapup.go | 38 - ...essageeventtopicconversationroutingdata.go | 33 - ...ueueconversationmessageeventtopicdetail.go | 29 - ...econversationmessageeventtopicerrorbody.go | 53 - ...versationmessageeventtopicjourneyaction.go | 21 - ...sationmessageeventtopicjourneyactionmap.go | 21 - ...ersationmessageeventtopicjourneycontext.go | 25 - ...rsationmessageeventtopicjourneycustomer.go | 21 - ...messageeventtopicjourneycustomersession.go | 21 - ...ionmessageeventtopicmessageconversation.go | 29 - ...ersationmessageeventtopicmessagedetails.go | 38 - ...nversationmessageeventtopicmessagemedia.go | 33 - ...essageeventtopicmessagemediaparticipant.go | 162 - ...ersationmessageeventtopicmessagesticker.go | 21 - ...onversationmessageeventtopicscoredagent.go | 21 - ...nversationmessageeventtopicurireference.go | 21 - ...ueueconversationmessageeventtopicwrapup.go | 38 - ...nshareeventtopicconversationroutingdata.go | 33 - ...conversationscreenshareeventtopicdetail.go | 29 - ...versationscreenshareeventtopicerrorbody.go | 53 - ...ationscreenshareeventtopicjourneyaction.go | 21 - ...onscreenshareeventtopicjourneyactionmap.go | 21 - ...tionscreenshareeventtopicjourneycontext.go | 25 - ...ionscreenshareeventtopicjourneycustomer.go | 21 - ...enshareeventtopicjourneycustomersession.go | 21 - ...rsationscreenshareeventtopicscoredagent.go | 21 - ...nshareeventtopicscreenshareconversation.go | 29 - ...reeventtopicscreensharemediaparticipant.go | 158 - ...sationscreenshareeventtopicurireference.go | 21 - ...conversationscreenshareeventtopicwrapup.go | 38 - ...sationsocialexpressioneventtopicaddress.go | 37 - ...ionsocialexpressioneventtopicattachment.go | 37 - ...versationsocialexpressioneventtopiccall.go | 106 - ...ationsocialexpressioneventtopiccallback.go | 94 - ...versationsocialexpressioneventtopicchat.go | 70 - ...ationsocialexpressioneventtopiccobrowse.go | 78 - ...nsocialexpressioneventtopicconversation.go | 33 - ...essioneventtopicconversationroutingdata.go | 33 - ...socialexpressioneventtopicdialerpreview.go | 37 - ...ialexpressioneventtopicdisconnectreason.go | 25 - ...ersationsocialexpressioneventtopicemail.go | 90 - ...nsocialexpressioneventtopicerrordetails.go | 45 - ...tionsocialexpressioneventtopicfaxstatus.go | 45 - ...socialexpressioneventtopicjourneyaction.go | 21 - ...ialexpressioneventtopicjourneyactionmap.go | 21 - ...ocialexpressioneventtopicjourneycontext.go | 25 - ...cialexpressioneventtopicjourneycustomer.go | 21 - ...ressioneventtopicjourneycustomersession.go | 21 - ...sationsocialexpressioneventtopicmessage.go | 86 - ...ocialexpressioneventtopicmessagedetails.go | 38 - ...nsocialexpressioneventtopicmessagemedia.go | 33 - ...ocialexpressioneventtopicmessagesticker.go | 21 - ...onsocialexpressioneventtopicparticipant.go | 154 - ...alexpressioneventtopicphonenumbercolumn.go | 25 - ...onsocialexpressioneventtopicscoredagent.go | 21 - ...onsocialexpressioneventtopicscreenshare.go | 62 - ...ialexpressioneventtopicsocialexpression.go | 78 - ...nsocialexpressioneventtopicurireference.go | 21 - ...ersationsocialexpressioneventtopicvideo.go | 74 - ...tionsocialexpressioneventtopicvoicemail.go | 21 - ...rsationsocialexpressioneventtopicwrapup.go | 38 - ...queueconversationvideoeventtopicaddress.go | 37 - ...ueconversationvideoeventtopicattachment.go | 37 - .../queueconversationvideoeventtopiccall.go | 106 - ...ueueconversationvideoeventtopiccallback.go | 94 - .../queueconversationvideoeventtopicchat.go | 70 - ...ueueconversationvideoeventtopiccobrowse.go | 78 - ...conversationvideoeventtopicconversation.go | 33 - ...nvideoeventtopicconversationroutingdata.go | 33 - ...onversationvideoeventtopicdialerpreview.go | 37 - ...ersationvideoeventtopicdisconnectreason.go | 25 - .../queueconversationvideoeventtopicemail.go | 90 - ...conversationvideoeventtopicerrordetails.go | 45 - ...eueconversationvideoeventtopicfaxstatus.go | 45 - ...onversationvideoeventtopicjourneyaction.go | 21 - ...ersationvideoeventtopicjourneyactionmap.go | 21 - ...nversationvideoeventtopicjourneycontext.go | 25 - ...versationvideoeventtopicjourneycustomer.go | 21 - ...onvideoeventtopicjourneycustomersession.go | 21 - ...queueconversationvideoeventtopicmessage.go | 86 - ...nversationvideoeventtopicmessagedetails.go | 38 - ...conversationvideoeventtopicmessagemedia.go | 33 - ...nversationvideoeventtopicmessagesticker.go | 21 - ...econversationvideoeventtopicparticipant.go | 154 - ...rsationvideoeventtopicphonenumbercolumn.go | 25 - ...econversationvideoeventtopicscoredagent.go | 21 - ...econversationvideoeventtopicscreenshare.go | 62 - ...ersationvideoeventtopicsocialexpression.go | 78 - ...conversationvideoeventtopicurireference.go | 21 - .../queueconversationvideoeventtopicvideo.go | 74 - ...eueconversationvideoeventtopicvoicemail.go | 21 - .../queueconversationvideoeventtopicwrapup.go | 38 - build/platformclientv2/queueemailaddress.go | 21 - build/platformclientv2/queueentitylisting.go | 53 - .../platformclientv2/queuemediaassociation.go | 29 - build/platformclientv2/queuemember.go | 45 - .../queuememberentitylisting.go | 53 - .../queuemessagingaddresses.go | 17 - .../queueobservationdatacontainer.go | 21 - .../platformclientv2/queueobservationquery.go | 25 - .../queueobservationqueryclause.go | 21 - .../queueobservationqueryfilter.go | 25 - .../queueobservationquerypredicate.go | 33 - .../queueobservationqueryresponse.go | 21 - build/platformclientv2/queuereference.go | 21 - build/platformclientv2/queuerequest.go | 102 - .../queueusereventtopicqueuemember.go | 33 - .../queueutilizationdiagnostic.go | 49 - build/platformclientv2/reaction.go | 25 - build/platformclientv2/recallentry.go | 21 - build/platformclientv2/recipient.go | 50 - build/platformclientv2/recipientlisting.go | 53 - build/platformclientv2/record.go | 25 - build/platformclientv2/recording.go | 126 - build/platformclientv2/recordingapi.go | 3262 ----- .../platformclientv2/recordingemailmessage.go | 54 - build/platformclientv2/recordingjob.go | 58 - .../recordingjobentitylisting.go | 53 - build/platformclientv2/recordingjobsquery.go | 34 - .../recordingmessagingmessage.go | 50 - build/platformclientv2/recordingmetadata.go | 90 - build/platformclientv2/recordingsettings.go | 17 - build/platformclientv2/regiontimezone.go | 29 - build/platformclientv2/relationship.go | 41 - build/platformclientv2/relationshiplisting.go | 53 - build/platformclientv2/replacementterm.go | 25 - build/platformclientv2/replacerequest.go | 25 - build/platformclientv2/replaceresponse.go | 37 - ...ngdataexporttopicdataexportnotification.go | 58 - .../reportingexportjoblisting.go | 53 - .../reportingexportjobrequest.go | 65 - .../reportingexportjobresponse.go | 98 - .../reportingexportmetadatajoblisting.go | 53 - .../reportingexportmetadatajobresponse.go | 53 - build/platformclientv2/reportmetadata.go | 49 - .../reportmetadataentitylisting.go | 53 - build/platformclientv2/reportrunentry.go | 58 - .../reportrunentryentitydomainlisting.go | 53 - build/platformclientv2/reportschedule.go | 82 - .../reportscheduleentitylisting.go | 53 - build/platformclientv2/requestconfig.go | 33 - build/platformclientv2/reschedulerequest.go | 46 - build/platformclientv2/rescheduleresult.go | 17 - .../reschedulingoptionsresponse.go | 54 - .../platformclientv2/resourceconditionnode.go | 33 - .../resourceconditionvalue.go | 21 - .../resourcepermissionpolicy.go | 57 - build/platformclientv2/response.go | 66 - build/platformclientv2/responseconfig.go | 29 - build/platformclientv2/responseentitylist.go | 53 - .../platformclientv2/responseentitylisting.go | 53 - build/platformclientv2/responsefilter.go | 25 - .../platformclientv2/responsemanagementapi.go | 864 -- .../platformclientv2/responsequeryrequest.go | 25 - .../platformclientv2/responsequeryresults.go | 17 - build/platformclientv2/responseset.go | 42 - .../responsesetentitylisting.go | 53 - .../platformclientv2/responsesubstitution.go | 25 - build/platformclientv2/responsetext.go | 21 - build/platformclientv2/resterrordetail.go | 21 - build/platformclientv2/retentionduration.go | 21 - .../reversewhitepageslookupresult.go | 21 - build/platformclientv2/ring.go | 21 - build/platformclientv2/roledivision.go | 21 - build/platformclientv2/roledivisiongrants.go | 17 - build/platformclientv2/roledivisionpair.go | 21 - build/platformclientv2/routegroup.go | 37 - .../platformclientv2/routegroupattributes.go | 29 - build/platformclientv2/routegrouplist.go | 22 - build/platformclientv2/routingapi.go | 6211 ---------- build/platformclientv2/routingdata.go | 33 - build/platformclientv2/routingrule.go | 25 - build/platformclientv2/routingsettings.go | 17 - build/platformclientv2/routingskill.go | 38 - .../platformclientv2/routingskillreference.go | 21 - build/platformclientv2/routingstatus.go | 26 - .../routingstatusdetailqueryclause.go | 21 - .../routingstatusdetailqueryfilter.go | 25 - .../routingstatusdetailquerypredicate.go | 33 - build/platformclientv2/ruleset.go | 50 - build/platformclientv2/rulesetdiagnostic.go | 21 - .../platformclientv2/rulesetentitylisting.go | 53 - build/platformclientv2/runnowresponse.go | 25 - build/platformclientv2/salesforce.go | 41 - build/platformclientv2/schedule.go | 74 - .../platformclientv2/scheduleentitylisting.go | 53 - .../schedulegenerationwarning.go | 45 - build/platformclientv2/schedulegroup.go | 78 - .../schedulegroupentitylisting.go | 53 - build/platformclientv2/scheduleinterval.go | 21 - .../schedulingprocessingerror.go | 21 - .../schedulingrunlistresponse.go | 17 - .../platformclientv2/schedulingrunresponse.go | 78 - .../schedulingsettingsrequest.go | 25 - .../schedulingsettingsresponse.go | 25 - .../schedulingstatusresponse.go | 33 - build/platformclientv2/schemacategory.go | 62 - .../schemacategoryentitylisting.go | 53 - .../schemareferenceentitylisting.go | 53 - build/platformclientv2/scimapi.go | 2791 ----- .../scimconfigresourcetype.go | 45 - .../scimconfigresourcetypeschemaextension.go | 21 - .../scimconfigresourcetypeslistresponse.go | 33 - build/platformclientv2/scimemail.go | 25 - build/platformclientv2/scimerror.go | 29 - .../platformclientv2/scimgrouplistresponse.go | 33 - build/platformclientv2/scimmetadata.go | 30 - build/platformclientv2/scimphonenumber.go | 25 - .../scimserviceproviderconfig.go | 53 - ...rviceproviderconfigauthenticationscheme.go | 37 - .../scimserviceproviderconfigbulkfeature.go | 25 - .../scimserviceproviderconfigfilterfeature.go | 21 - .../scimserviceproviderconfigsimplefeature.go | 17 - build/platformclientv2/scimuserextensions.go | 21 - .../platformclientv2/scimuserlistresponse.go | 33 - build/platformclientv2/scimuserrole.go | 17 - .../scimuserroutinglanguage.go | 21 - .../platformclientv2/scimuserroutingskill.go | 21 - build/platformclientv2/scimv2createuser.go | 65 - .../platformclientv2/scimv2enterpriseuser.go | 25 - build/platformclientv2/scimv2group.go | 37 - .../platformclientv2/scimv2groupreference.go | 25 - .../platformclientv2/scimv2memberreference.go | 25 - .../platformclientv2/scimv2patchoperation.go | 25 - build/platformclientv2/scimv2patchrequest.go | 21 - .../platformclientv2/scimv2schemaattribute.go | 61 - .../scimv2schemadefinition.go | 33 - .../scimv2schemalistresponse.go | 33 - build/platformclientv2/scimv2user.go | 73 - build/platformclientv2/scorablesurvey.go | 37 - build/platformclientv2/scoredagent.go | 21 - .../screenrecordingsession.go | 42 - .../screenrecordingsessionlisting.go | 53 - .../screenrecordingsessionrequest.go | 26 - build/platformclientv2/screenshare.go | 62 - build/platformclientv2/script.go | 70 - build/platformclientv2/scriptentitylisting.go | 53 - build/platformclientv2/scriptsapi.go | 968 -- build/platformclientv2/searchaggregation.go | 37 - build/platformclientv2/searchapi.go | 1288 -- build/platformclientv2/searchcriteria.go | 45 - build/platformclientv2/searchrequest.go | 53 - build/platformclientv2/searchsort.go | 21 - build/platformclientv2/section.go | 29 - build/platformclientv2/securesession.go | 41 - .../securesessionentitylisting.go | 17 - build/platformclientv2/securityprofile.go | 29 - .../securityprofileentitylisting.go | 53 - build/platformclientv2/segment.go | 34 - .../segmentdetailqueryclause.go | 21 - .../segmentdetailqueryfilter.go | 25 - .../segmentdetailquerypredicate.go | 45 - build/platformclientv2/selectedcolumns.go | 21 - .../sendagentlessoutboundmessagerequest.go | 29 - .../sendagentlessoutboundmessageresponse.go | 50 - build/platformclientv2/sequenceschedule.go | 50 - build/platformclientv2/serverdate.go | 18 - build/platformclientv2/servicecontext.go | 17 - build/platformclientv2/servicegoalgroup.go | 37 - .../platformclientv2/servicegoalgroupgoals.go | 25 - .../platformclientv2/servicegoalgrouplist.go | 21 - build/platformclientv2/servicelevel.go | 21 - build/platformclientv2/setuuidatarequest.go | 17 - build/platformclientv2/setwrapperdayofweek.go | 17 - build/platformclientv2/share.go | 57 - build/platformclientv2/sharedentity.go | 17 - build/platformclientv2/sharedresponse.go | 33 - build/platformclientv2/shareentitylisting.go | 53 - build/platformclientv2/shiftstartvariance.go | 21 - .../shifttradeactivityrule.go | 25 - .../shifttradelistresponse.go | 17 - .../shifttradematchessummaryresponse.go | 17 - .../shifttradenotification.go | 46 - build/platformclientv2/shifttraderesponse.go | 86 - build/platformclientv2/shifttradesettings.go | 65 - build/platformclientv2/shorttermforecast.go | 54 - .../shorttermforecastingsettings.go | 17 - .../shorttermforecastlistitemresponse.go | 37 - .../shorttermforecastlistresponse.go | 17 - .../shorttermforecastreference.go | 29 - .../shorttermforecastresponse.go | 25 - build/platformclientv2/shrinkageoverride.go | 21 - build/platformclientv2/shrinkageoverrides.go | 21 - build/platformclientv2/signedurlresponse.go | 29 - build/platformclientv2/sipdownloadresponse.go | 21 - .../sipsearchpublicrequest.go | 54 - build/platformclientv2/sipsearchresult.go | 45 - build/platformclientv2/site.go | 106 - build/platformclientv2/siteentitylisting.go | 53 - build/platformclientv2/skillentitylisting.go | 53 - build/platformclientv2/skillstoremove.go | 25 - build/platformclientv2/smsaddress.go | 49 - .../smsaddressentitylisting.go | 53 - build/platformclientv2/smsaddressprovision.go | 49 - .../smsavailablephonenumber.go | 53 - .../smsavailablephonenumberentitylisting.go | 17 - build/platformclientv2/smsphonenumber.go | 94 - .../smsphonenumberentitylisting.go | 53 - .../smsphonenumberprovision.go | 41 - build/platformclientv2/socialexpression.go | 82 - build/platformclientv2/socialhandle.go | 21 - build/platformclientv2/sortitem.go | 21 - .../speechtextanalyticsapi.go | 107 - .../stateventcampaigntopicdatum.go | 21 - .../stateventcampaigntopicmetric.go | 25 - ...stateventcampaigntopicstatsnotification.go | 21 - .../stateventqueuetopicdatum.go | 21 - .../stateventqueuetopicmetric.go | 25 - .../stateventqueuetopicstatsnotification.go | 21 - .../stateventusertopicdatum.go | 21 - .../stateventusertopicmetric.go | 25 - .../stateventusertopicstatsnotification.go | 21 - build/platformclientv2/station.go | 69 - .../platformclientv2/stationentitylisting.go | 53 - build/platformclientv2/stationsapi.go | 414 - build/platformclientv2/stationsettings.go | 17 - build/platformclientv2/statisticalresponse.go | 25 - build/platformclientv2/statisticalsummary.go | 49 - build/platformclientv2/streetaddress.go | 45 - .../platformclientv2/subjectdivisiongrants.go | 33 - .../subjectdivisiongrantsentitylisting.go | 53 - build/platformclientv2/subjectdivisions.go | 21 - build/platformclientv2/subscriberresponse.go | 21 - .../subscriptionoverviewusage.go | 61 - build/platformclientv2/suggestapi.go | 378 - .../platformclientv2/suggestsearchcriteria.go | 41 - .../platformclientv2/suggestsearchrequest.go | 25 - build/platformclientv2/survey.go | 58 - .../surveyaggregatedatacontainer.go | 21 - .../surveyaggregatequeryclause.go | 21 - .../surveyaggregatequeryfilter.go | 25 - .../surveyaggregatequerypredicate.go | 33 - .../surveyaggregatequeryresponse.go | 17 - .../surveyaggregationquery.go | 49 - .../platformclientv2/surveyaggregationview.go | 29 - build/platformclientv2/surveyassignment.go | 33 - .../surveydetailqueryclause.go | 21 - .../surveydetailqueryfilter.go | 25 - .../surveydetailquerypredicate.go | 37 - build/platformclientv2/surveyerrordetails.go | 21 - build/platformclientv2/surveyform.go | 70 - .../surveyformandscoringset.go | 21 - .../surveyformentitylisting.go | 53 - build/platformclientv2/surveyquestion.go | 49 - build/platformclientv2/surveyquestiongroup.go | 37 - .../surveyquestiongroupscore.go | 33 - build/platformclientv2/surveyquestionscore.go | 41 - build/platformclientv2/surveyscoringset.go | 25 - .../systemmessagesystemmessage.go | 49 - build/platformclientv2/systempresence.go | 25 - build/platformclientv2/systemprompt.go | 33 - build/platformclientv2/systempromptasset.go | 69 - .../systempromptassetentitylisting.go | 53 - .../systempromptentitylisting.go | 53 - build/platformclientv2/tagqueryrequest.go | 25 - build/platformclientv2/tagvalue.go | 33 - .../platformclientv2/tagvalueentitylisting.go | 53 - build/platformclientv2/telephonyapi.go | 284 - .../telephonyprovidersedgeapi.go | 9973 --------------- build/platformclientv2/termattribute.go | 25 - .../testexecutionoperationresult.go | 33 - build/platformclientv2/testexecutionresult.go | 29 - build/platformclientv2/textmessagelisting.go | 53 - build/platformclientv2/ticker.go | 21 - build/platformclientv2/timeallowed.go | 25 - build/platformclientv2/timeinterval.go | 29 - .../timeoffrequestentitylist.go | 17 - build/platformclientv2/timeoffrequestlist.go | 29 - .../platformclientv2/timeoffrequestlookup.go | 78 - .../timeoffrequestlookuplist.go | 17 - .../timeoffrequestnotification.go | 38 - .../timeoffrequestquerybody.go | 25 - .../timeoffrequestresponse.go | 86 - .../timeoffrequestsettings.go | 25 - build/platformclientv2/timeslot.go | 25 - .../platformclientv2/timezoneentitylisting.go | 53 - .../timezonemappingpreview.go | 49 - build/platformclientv2/tokeninfo.go | 29 - build/platformclientv2/tokensapi.go | 221 - .../platformclientv2/transcriptionsettings.go | 21 - build/platformclientv2/transcriptproperty.go | 25 - build/platformclientv2/transferrequest.go | 33 - build/platformclientv2/trunk.go | 126 - build/platformclientv2/trunkbase.go | 78 - build/platformclientv2/trunkbaseassignment.go | 21 - .../trunkbaseentitylisting.go | 53 - .../platformclientv2/trunkconnectedstatus.go | 22 - build/platformclientv2/trunkentitylisting.go | 53 - build/platformclientv2/trunkerrorinfo.go | 25 - .../platformclientv2/trunkerrorinfodetails.go | 25 - .../trunkmetabaseentitylisting.go | 53 - build/platformclientv2/trunkmetrics.go | 34 - build/platformclientv2/trunkmetricscalls.go | 21 - .../trunkmetricsnetworktypeip.go | 21 - build/platformclientv2/trunkmetricsoptions.go | 30 - build/platformclientv2/trunkmetricsqos.go | 17 - .../platformclientv2/trunkmetricsregisters.go | 30 - .../trunkrecordingenabledcount.go | 21 - build/platformclientv2/trustcreate.go | 29 - build/platformclientv2/trustee.go | 38 - .../trusteeauditqueryrequest.go | 42 - .../platformclientv2/trusteeauthorization.go | 17 - .../trusteebillingoverview.go | 82 - build/platformclientv2/trustentitylisting.go | 53 - build/platformclientv2/trustgroup.go | 74 - build/platformclientv2/trustmembercreate.go | 25 - build/platformclientv2/trustor.go | 42 - .../trustorauditqueryrequest.go | 42 - .../platformclientv2/trustorentitylisting.go | 53 - build/platformclientv2/trustrequest.go | 42 - build/platformclientv2/trustrequestcreate.go | 21 - build/platformclientv2/trustuser.go | 145 - build/platformclientv2/trustuserdetails.go | 22 - .../trustuserentitylisting.go | 53 - build/platformclientv2/ttsengineentity.go | 45 - .../ttsengineentitylisting.go | 53 - build/platformclientv2/ttssettings.go | 21 - build/platformclientv2/ttsvoiceentity.go | 41 - .../platformclientv2/ttsvoiceentitylisting.go | 53 - build/platformclientv2/twitterid.go | 33 - build/platformclientv2/twitterintegration.go | 78 - .../twitterintegrationentitylisting.go | 53 - .../twitterintegrationrequest.go | 49 - build/platformclientv2/unreadmetric.go | 17 - build/platformclientv2/unreadstatus.go | 17 - .../unscheduledagentwarning.go | 21 - build/platformclientv2/updateactioninput.go | 29 - .../updateactivitycoderequest.go | 41 - build/platformclientv2/updatedraftinput.go | 37 - .../updatemanagementunitrequest.go | 25 - .../updatenotificationresponse.go | 21 - .../updatenotificationsrequest.go | 17 - .../updatenotificationsresponse.go | 17 - .../updateschedulingrunrequest.go | 17 - build/platformclientv2/updateuser.go | 97 - .../updateweekschedulerequest.go | 49 - build/platformclientv2/usage.go | 17 - build/platformclientv2/usageitem.go | 25 - build/platformclientv2/user.go | 145 - build/platformclientv2/useractioncategory.go | 25 - .../useractioncategoryentitylisting.go | 53 - build/platformclientv2/useragentinfo.go | 25 - .../useraggregatedatacontainer.go | 21 - .../useraggregatequeryclause.go | 21 - .../useraggregatequeryfilter.go | 25 - .../useraggregatequerypredicate.go | 33 - .../useraggregatequeryresponse.go | 21 - .../platformclientv2/useraggregationquery.go | 49 - build/platformclientv2/useraggregationview.go | 29 - build/platformclientv2/userauthorization.go | 29 - .../userconversationseventmediasummary.go | 21 - ...serconversationseventmediasummarydetail.go | 21 - ...nversationseventuserconversationsummary.go | 45 - .../userconversationsummary.go | 45 - .../platformclientv2/userdetailqueryclause.go | 21 - .../platformclientv2/userdetailqueryfilter.go | 25 - .../userdetailquerypredicate.go | 33 - build/platformclientv2/userdetailsquery.go | 45 - build/platformclientv2/userdevice.go | 53 - build/platformclientv2/userentitylisting.go | 53 - build/platformclientv2/userexpands.go | 41 - .../usergreetingeventgreeting.go | 41 - .../usergreetingeventgreetingaudiofile.go | 21 - .../usergreetingeventgreetingowner.go | 17 - build/platformclientv2/userimage.go | 21 - .../userlanguageentitylisting.go | 53 - build/platformclientv2/userlicenses.go | 25 - .../userlicensesentitylisting.go | 33 - .../userlistschedulerequestbody.go | 30 - build/platformclientv2/userme.go | 205 - .../userobservationdatacontainer.go | 21 - .../platformclientv2/userobservationquery.go | 25 - .../userobservationqueryclause.go | 21 - .../userobservationqueryfilter.go | 25 - .../userobservationquerypredicate.go | 33 - .../userobservationqueryresponse.go | 17 - build/platformclientv2/userparam.go | 21 - build/platformclientv2/userpresence.go | 46 - build/platformclientv2/userprofile.go | 42 - .../userprofileentitylisting.go | 53 - build/platformclientv2/userqueue.go | 102 - .../userqueueentitylisting.go | 53 - build/platformclientv2/userrecording.go | 66 - .../userrecordingentitylisting.go | 53 - build/platformclientv2/userrecordingsapi.go | 501 - build/platformclientv2/userreference.go | 21 - build/platformclientv2/userroutinglanguage.go | 37 - .../userroutinglanguagepost.go | 29 - build/platformclientv2/userroutingskill.go | 37 - .../platformclientv2/userroutingskillpost.go | 29 - .../userroutingstatuserrorinfo.go | 37 - .../userroutingstatusroutingstatus.go | 22 - .../userroutingstatususerparam.go | 25 - .../userroutingstatususerroutingstatus.go | 21 - build/platformclientv2/usersapi.go | 5739 --------- build/platformclientv2/usersapi_test.go | 33 - build/platformclientv2/userschedule.go | 33 - .../platformclientv2/userscheduleactivity.go | 42 - .../platformclientv2/userscheduleadherence.go | 86 - .../platformclientv2/userschedulecontainer.go | 25 - .../userschedulefulldaytimeoffmarker.go | 37 - build/platformclientv2/userscheduleshift.go | 42 - .../userschedulespartialuploadrequest.go | 17 - build/platformclientv2/usersearchcriteria.go | 45 - build/platformclientv2/usersearchrequest.go | 41 - .../userskillentitylisting.go | 53 - build/platformclientv2/userssearchresponse.go | 49 - build/platformclientv2/userstation.go | 42 - .../userstationchangetopicuser.go | 17 - .../userstationchangetopicuserstation.go | 25 - .../userstationchangetopicuserstations.go | 17 - build/platformclientv2/userstations.go | 29 - .../usertokenstopictokennotification.go | 41 - .../usertokenstopicurireference.go | 21 - build/platformclientv2/utilitiesapi.go | 306 - build/platformclientv2/utilization.go | 17 - .../validateaddressrequest.go | 17 - .../validateaddressresponse.go | 21 - .../valuewrapperplanningperiodsettings.go | 17 - .../vendorconnectionrequest.go | 25 - build/platformclientv2/video.go | 74 - build/platformclientv2/viewfilter.go | 313 - build/platformclientv2/visibilitycondition.go | 21 - build/platformclientv2/vmpairinginfo.go | 29 - build/platformclientv2/voicemail.go | 21 - build/platformclientv2/voicemailapi.go | 1778 --- build/platformclientv2/voicemailcopyrecord.go | 26 - .../platformclientv2/voicemailgrouppolicy.go | 45 - .../platformclientv2/voicemailmailboxinfo.go | 38 - build/platformclientv2/voicemailmediainfo.go | 29 - build/platformclientv2/voicemailmessage.go | 94 - .../voicemailmessageentitylisting.go | 53 - .../voicemailmessagestopicvoicemailmessage.go | 62 - .../voicemailorganizationpolicy.go | 42 - .../voicemailretentionpolicy.go | 21 - .../voicemailsearchcriteria.go | 45 - .../voicemailsearchrequest.go | 41 - .../voicemailssearchresponse.go | 49 - build/platformclientv2/voicemailuserpolicy.go | 30 - build/platformclientv2/webchatapi.go | 1419 --- build/platformclientv2/webchatconfig.go | 17 - build/platformclientv2/webchatconversation.go | 29 - build/platformclientv2/webchatdeployment.go | 53 - .../webchatdeploymententitylisting.go | 25 - .../webchatguestmediarequest.go | 41 - .../webchatguestmediarequestentitylist.go | 17 - build/platformclientv2/webchatmemberinfo.go | 50 - .../webchatmemberinfoentitylist.go | 53 - build/platformclientv2/webchatmessage.go | 46 - .../webchatmessageentitylist.go | 33 - .../platformclientv2/webchatroutingtarget.go | 33 - build/platformclientv2/webchatsettings.go | 17 - build/platformclientv2/webchattyping.go | 30 - build/platformclientv2/weekschedule.go | 57 - .../weekschedulegenerationresult.go | 29 - .../weekschedulelistitemresponse.go | 45 - .../weekschedulelistresponse.go | 17 - .../platformclientv2/weekschedulereference.go | 25 - .../platformclientv2/weekscheduleresponse.go | 21 - .../weekshifttradematchessummaryresponse.go | 22 - build/platformclientv2/wfmabandonrate.go | 21 - build/platformclientv2/wfmagent.go | 57 - ...fmagentscheduleupdatetopicuserreference.go | 17 - ...heduleupdatetopicwfmagentscheduleupdate.go | 22 - ...topicwfmagentscheduleupdatenotification.go | 38 - ...eduleupdatetopicwfmfulldaytimeoffmarker.go | 41 - ...tscheduleupdatetopicwfmscheduleactivity.go | 38 - ...gentscheduleupdatetopicwfmscheduleshift.go | 38 - .../wfmaveragespeedofanswer.go | 21 - ...radaydataupdatetopicbuintradaydatagroup.go | 41 - ...aydataupdatetopicbuintradayforecastdata.go | 21 - ...aydataupdatetopicbuintradaynotification.go | 21 - ...intradaydataupdatetopicbuintradayresult.go | 46 - ...aydataupdatetopicbuintradayscheduledata.go | 17 - ...radaydataupdatetopicbuschedulereference.go | 21 - ...updatetopicbushorttermforecastreference.go | 25 - ...etopicintradayperformancepredictiondata.go | 25 - .../wfmbuintradaydataupdatetopiclocaldate.go | 29 - ...icbulkshifttradestateupdatenotification.go | 29 - ...iontopicbulkshifttradestateupdateresult.go | 38 - ...cbulkshifttradestateupdateresultlisting.go | 17 - ...destateupdatenotificationtopiclocaldate.go | 29 - ...ateupdatenotificationtopicuserreference.go | 17 - ...ficationtopicwfmversionedentitymetadata.go | 26 - ...topicbuschedulesearchresultnotification.go | 25 - ...fmbuscheduleruntopicbuschedulereference.go | 21 - .../wfmbuscheduleruntopicbuschedulerun.go | 49 - ...opicbuschedulingrunprogressnotification.go | 25 - .../wfmbuscheduleruntopiclocaldate.go | 29 - .../wfmbuscheduleruntopicuserreference.go | 17 - ...topicbuschedulesearchresultnotification.go | 25 - ...uletopicbumanagementunitschedulesummary.go | 34 - ...etopicbuschedulegenerationresultsummary.go | 25 - .../wfmbuscheduletopicbuschedulemetadata.go | 49 - ...fmbuscheduletopicbuschedulenotification.go | 29 - ...heduletopicbushorttermforecastreference.go | 25 - .../wfmbuscheduletopiclocaldate.go | 29 - .../wfmbuscheduletopicmanagementunit.go | 17 - .../wfmbuscheduletopicuserreference.go | 17 - ...scheduletopicwfmversionedentitymetadata.go | 26 - .../wfmforecastmodification.go | 45 - .../wfmforecastmodificationattributes.go | 29 - ...forecastmodificationintervaloffsetvalue.go | 21 - ...icaladherencecalculationscompletenotice.go | 29 - .../wfmhistoricaladherencequery.go | 34 - .../wfmhistoricaladherencequeryforusers.go | 34 - .../wfmhistoricaladherenceresponse.go | 29 - ...ntradaydataupdatetopicintradaydatagroup.go | 41 - ...tradaydataupdatetopicintradaydataupdate.go | 42 - ...adaydataupdatetopicintradayforecastdata.go | 25 - ...aupdatetopicintradayhistoricalagentdata.go | 21 - ...aupdatetopicintradayhistoricalqueuedata.go | 45 - ...fmintradaydataupdatetopicintradaymetric.go | 21 - ...cintradayperformancepredictionagentdata.go | 17 - ...cintradayperformancepredictionqueuedata.go | 25 - ...adaydataupdatetopicintradayscheduledata.go | 21 - .../wfmintradayqueuelisting.go | 21 - ...fmmoveagentscompletetopicmanagementunit.go | 17 - ...wfmmoveagentscompletetopicuserreference.go | 17 - ...moveagentscompletetopicwfmmoveagentdata.go | 21 - ...gentscompletetopicwfmmoveagentscomplete.go | 25 - .../wfmmovemanagementunittopicbusinessunit.go | 17 - ...unittopicmovemanagementunitnotification.go | 21 - ...wfmscheduletopicwfmschedulenotification.go | 33 - build/platformclientv2/wfmservicelevel.go | 25 - ...frequestupdatetopictimeoffrequestupdate.go | 77 - ...mtimeoffrequestupdatetopicuserreference.go | 17 - build/platformclientv2/wfmtimezone.go | 17 - ...tailstopicwfmupdateagentdetailscomplete.go | 17 - .../platformclientv2/wfmuserentitylisting.go | 17 - build/platformclientv2/wfmusernotification.go | 50 - ...notificationtopicshifttradenotification.go | 46 - ...ficationtopictimeoffrequestnotification.go | 38 - .../wfmusernotificationtopicuserreference.go | 17 - ...sernotificationtopicwfmusernotification.go | 50 - ...leadherenceupdatedmutopicqueuereference.go | 17 - ...uleadherenceupdatedmutopicuserreference.go | 17 - ...datedmutopicuserscheduleadherenceupdate.go | 74 - ...duleadherenceupdatedtopicqueuereference.go | 17 - ...eduleadherenceupdatedtopicuserreference.go | 17 - ...updatedtopicuserscheduleadherenceupdate.go | 74 - .../wfmversionedentitymetadata.go | 26 - build/platformclientv2/whatsappid.go | 21 - build/platformclientv2/whatsappintegration.go | 66 - .../whatsappintegrationentitylisting.go | 53 - .../whatsappintegrationrequest.go | 33 - .../whatsappintegrationupdaterequest.go | 37 - build/platformclientv2/widgetclientconfig.go | 29 - .../widgetclientconfigthirdparty.go | 13 - .../platformclientv2/widgetclientconfigv1.go | 21 - .../widgetclientconfigv1http.go | 21 - .../platformclientv2/widgetclientconfigv2.go | 13 - build/platformclientv2/widgetdeployment.go | 53 - .../widgetdeploymententitylisting.go | 25 - build/platformclientv2/widgetsapi.go | 378 - .../workforcemanagementapi.go | 5696 --------- build/platformclientv2/workplan.go | 93 - build/platformclientv2/workplanactivity.go | 65 - .../workplanlistitemresponse.go | 97 - .../platformclientv2/workplanlistresponse.go | 17 - build/platformclientv2/workplanreference.go | 25 - build/platformclientv2/workplanshift.go | 93 - build/platformclientv2/workspace.go | 62 - build/platformclientv2/workspacecreate.go | 25 - .../workspaceentitylisting.go | 53 - build/platformclientv2/workspacemember.go | 49 - .../workspacememberentitylisting.go | 53 - build/platformclientv2/workspacesummary.go | 21 - build/platformclientv2/wrapup.go | 42 - build/platformclientv2/wrapupcode.go | 42 - .../wrapupcodeentitylisting.go | 53 - build/platformclientv2/wrapupcodemapping.go | 46 - build/platformclientv2/wrapupcodereference.go | 17 - .../platformclientv2/writabledialercontact.go | 33 - build/platformclientv2/writabledivision.go | 25 - build/platformclientv2/writableentity.go | 17 - {build/docs => docs}/index.md | 2 +- platformclientv2/actionentitylisting.go | 8 +- .../agentactivityentitylisting.go | 8 +- platformclientv2/analyticsapi.go | 16 +- ...analyticsconversationasyncqueryresponse.go | 8 +- .../analyticsconversationqueryresponse.go | 8 +- platformclientv2/analyticsparticipant.go | 4 + .../analyticsparticipantwithoutattributes.go | 4 + platformclientv2/architectapi.go | 379 + platformclientv2/arraynode.go | 12 +- .../attemptlimitsentitylisting.go | 8 +- platformclientv2/auditapi.go | 14 +- platformclientv2/auditlogmessage.go | 2 +- platformclientv2/authorizationapi.go | 190 +- .../authzdivisionentitylisting.go | 8 +- platformclientv2/availabletopic.go | 10 +- .../buagentscheduleactivity.go | 0 ...agentschedulepublishedschedulereference.go | 0 .../buagentschedulesearchresponse.go | 0 .../buagentscheduleshift.go | 0 .../buagentschedulessearchresponse.go | 0 .../buasyncagentschedulessearchresponse.go | 0 .../bufulldaytimeoffmarker.go | 0 .../buschedulereference.go | 0 platformclientv2/calibrationentitylisting.go | 8 +- .../callabletimesetentitylisting.go | 8 +- .../callbackconversationentitylisting.go | 8 +- .../callconversationentitylisting.go | 8 +- .../callhistoryconversationentitylisting.go | 8 +- .../campaigndivisionviewlisting.go | 8 +- platformclientv2/campaignentitylisting.go | 8 +- platformclientv2/campaignprogress.go | 6 +- platformclientv2/campaignruleentitylisting.go | 8 +- .../campaignsequenceentitylisting.go | 8 +- .../certificateauthorityentitylisting.go | 8 +- .../chatconversationentitylisting.go | 8 +- platformclientv2/clientappentitylisting.go | 8 +- .../cobrowseconversationentitylisting.go | 8 +- .../commandstatusentitylisting.go | 8 +- .../consumedresourcesentitylisting.go | 8 +- .../consumingresourcesentitylisting.go | 8 +- .../contactlistdivisionviewlisting.go | 8 +- platformclientv2/contactlistentitylisting.go | 8 +- .../contactlistfilterentitylisting.go | 8 +- platformclientv2/contactlisting.go | 8 +- platformclientv2/conversationentitylisting.go | 8 +- platformclientv2/conversationsapi.go | 8 +- platformclientv2/credentialinfolisting.go | 8 +- platformclientv2/credentialtypelisting.go | 8 +- .../datatableexportjob.go | 0 .../datatableimportjob.go | 0 platformclientv2/datatablerowentitylisting.go | 8 +- .../datatablesdomainentitylisting.go | 8 +- .../dependencyobjectentitylisting.go | 8 +- .../dependencytypeentitylisting.go | 8 +- ...ercampaignprogresseventcampaignprogress.go | 4 + platformclientv2/dialerevententitylisting.go | 8 +- .../dialogflowagentsummaryentitylisting.go | 8 +- platformclientv2/didentitylisting.go | 8 +- platformclientv2/didpoolentitylisting.go | 8 +- .../directoryuserdeviceslisting.go | 8 +- .../divspermittedentitylisting.go | 0 .../dnclistdivisionviewlisting.go | 8 +- platformclientv2/dnclistentitylisting.go | 8 +- .../documentauditentitylisting.go | 8 +- platformclientv2/documententitylisting.go | 8 +- ...mainedgesoftwareversiondtoentitylisting.go | 8 +- platformclientv2/domainentitylisting.go | 8 +- .../domainentitylistingevaluationform.go | 8 +- .../domainentitylistingqueryresult.go | 8 +- .../domainentitylistingsurveyform.go | 8 +- platformclientv2/edgeentitylisting.go | 8 +- platformclientv2/edgegroupentitylisting.go | 8 +- platformclientv2/edgelineentitylisting.go | 8 +- .../emailconversationentitylisting.go | 8 +- platformclientv2/emailmessagelisting.go | 8 +- platformclientv2/emergencygrouplisting.go | 8 +- .../encryptionkeyentitylisting.go | 8 +- .../entitylisting.go | 0 platformclientv2/evaluation.go | 4 + platformclientv2/evaluationentitylisting.go | 8 +- .../evaluationformentitylisting.go | 8 +- .../evaluationquestiongroupscore.go | 16 + platformclientv2/evaluationscoringset.go | 4 + .../evaluatoractivityentitylisting.go | 8 +- platformclientv2/extensionentitylisting.go | 8 +- .../extensionpoolentitylisting.go | 8 +- .../externalorganizationlisting.go | 8 +- .../facebookintegrationentitylisting.go | 8 +- .../facebookintegrationrequest.go | 4 +- platformclientv2/faxdocumententitylisting.go | 8 +- .../flowdivisionviewentitylisting.go | 8 +- platformclientv2/flowentitylisting.go | 8 +- platformclientv2/flowoutcomelisting.go | 8 +- platformclientv2/flowversionentitylisting.go | 8 +- platformclientv2/gdprjourneycustomer.go | 4 +- platformclientv2/gdprrequestentitylisting.go | 8 +- platformclientv2/gdprsubjectentitylisting.go | 8 +- platformclientv2/greetinglisting.go | 8 +- platformclientv2/groupentitylisting.go | 8 +- platformclientv2/groupprofileentitylisting.go | 8 +- .../inbounddomainentitylisting.go | 8 +- platformclientv2/inboundrouteentitylisting.go | 8 +- platformclientv2/integrationentitylisting.go | 8 +- .../integrationevententitylisting.go | 8 +- .../integrationtypeentitylisting.go | 8 +- .../interactionstatsalertcontainer.go | 8 +- .../interactionstatsrulecontainer.go | 8 +- platformclientv2/ivrentitylisting.go | 8 +- platformclientv2/jsonnode.go | 12 +- platformclientv2/keywordsetentitylisting.go | 8 +- platformclientv2/languageentitylisting.go | 8 +- platformclientv2/lexbotaliasentitylisting.go | 8 +- platformclientv2/lexbotentitylisting.go | 8 +- platformclientv2/libraryentitylisting.go | 8 +- platformclientv2/licenseapi.go | 66 + platformclientv2/linebaseentitylisting.go | 8 +- platformclientv2/lineentitylisting.go | 8 +- .../lineintegrationentitylisting.go | 8 +- platformclientv2/locationentitylisting.go | 8 +- .../logicalinterfaceentitylisting.go | 8 +- platformclientv2/managementunitlisting.go | 8 +- .../messageconversationentitylisting.go | 8 +- .../messagingintegrationentitylisting.go | 8 +- .../messagingstickerentitylisting.go | 8 +- platformclientv2/notelisting.go | 8 +- platformclientv2/oauthcliententitylisting.go | 8 +- .../oauthproviderentitylisting.go | 8 +- platformclientv2/observationvalue.go | 4 + platformclientv2/organization.go | 4 + .../organizationpresenceentitylisting.go | 8 +- .../organizationroleentitylisting.go | 8 +- platformclientv2/orphanrecordinglisting.go | 8 +- ...ngcampaignprogresseventcampaignprogress.go | 4 + .../outboundroutebaseentitylisting.go | 8 +- .../outboundrouteentitylisting.go | 8 +- .../permissioncollectionentitylisting.go | 8 +- platformclientv2/phonebaseentitylisting.go | 8 +- platformclientv2/phoneentitylisting.go | 8 +- .../phonemetabaseentitylisting.go | 8 +- .../physicalinterfaceentitylisting.go | 8 +- platformclientv2/platformclientv2_test.go | 37 +- platformclientv2/policyentitylisting.go | 8 +- platformclientv2/promptassetentitylisting.go | 8 +- platformclientv2/promptentitylisting.go | 8 +- platformclientv2/qualityapi.go | 5 + platformclientv2/qualityauditpage.go | 8 +- platformclientv2/queueentitylisting.go | 8 +- platformclientv2/queuememberentitylisting.go | 8 +- platformclientv2/recipientlisting.go | 8 +- platformclientv2/recordingjobentitylisting.go | 8 +- platformclientv2/relationshiplisting.go | 8 +- platformclientv2/reportingexportjoblisting.go | 8 +- .../reportingexportmetadatajoblisting.go | 8 +- .../reportmetadataentitylisting.go | 8 +- .../reportrunentryentitydomainlisting.go | 8 +- .../reportscheduleentitylisting.go | 8 +- platformclientv2/responseentitylist.go | 8 +- platformclientv2/responseentitylisting.go | 8 +- platformclientv2/responsesetentitylisting.go | 8 +- platformclientv2/routingapi.go | 212 + platformclientv2/rulesetentitylisting.go | 8 +- platformclientv2/scheduleentitylisting.go | 8 +- .../schedulegroupentitylisting.go | 8 +- .../schemacategoryentitylisting.go | 8 +- .../schemareferenceentitylisting.go | 8 +- platformclientv2/scimuserextensions.go | 4 +- platformclientv2/scimv2createuser.go | 4 - platformclientv2/scimv2user.go | 4 - .../screenrecordingsessionlisting.go | 8 +- platformclientv2/scriptentitylisting.go | 8 +- .../securityprofileentitylisting.go | 8 +- platformclientv2/shareentitylisting.go | 8 +- platformclientv2/siteentitylisting.go | 8 +- platformclientv2/skillentitylisting.go | 8 +- platformclientv2/smsaddressentitylisting.go | 8 +- .../smsphonenumberentitylisting.go | 8 +- platformclientv2/stationentitylisting.go | 8 +- .../subjectdivisiongrantsentitylisting.go | 8 +- platformclientv2/surveyformentitylisting.go | 8 +- .../systempromptassetentitylisting.go | 8 +- platformclientv2/systempromptentitylisting.go | 8 +- platformclientv2/tagvalueentitylisting.go | 8 +- platformclientv2/textmessagelisting.go | 8 +- platformclientv2/timezoneentitylisting.go | 8 +- platformclientv2/trunkbaseentitylisting.go | 8 +- platformclientv2/trunkentitylisting.go | 8 +- .../trunkmetabaseentitylisting.go | 8 +- platformclientv2/trustentitylisting.go | 8 +- platformclientv2/trustorentitylisting.go | 8 +- platformclientv2/trustuserentitylisting.go | 8 +- platformclientv2/ttsengineentitylisting.go | 8 +- platformclientv2/ttsvoiceentitylisting.go | 8 +- .../twitterintegrationentitylisting.go | 8 +- .../useractioncategoryentitylisting.go | 8 +- platformclientv2/userentitylisting.go | 8 +- platformclientv2/userlanguageentitylisting.go | 8 +- platformclientv2/userprofileentitylisting.go | 8 +- platformclientv2/userqueueentitylisting.go | 8 +- .../userrecordingentitylisting.go | 8 +- platformclientv2/usersapi.go | 410 +- platformclientv2/usersapi_test.go | 8 +- platformclientv2/userskillentitylisting.go | 8 +- platformclientv2/viewfilter.go | 40 - .../voicemailmessageentitylisting.go | 8 +- .../webchatmemberinfoentitylist.go | 8 +- ...enttopiccoachingappointmentconversation.go | 0 ...intmenttopiccoachingappointmentdocument.go | 0 ...enttopiccoachingappointmentnotification.go | 0 ...emcoachingappointmenttopicuserreference.go | 0 .../whatsappintegrationentitylisting.go | 8 +- platformclientv2/workforcemanagementapi.go | 6 +- platformclientv2/workspaceentitylisting.go | 8 +- .../workspacememberentitylisting.go | 8 +- platformclientv2/wrapupcodeentitylisting.go | 8 +- version.json | 6 +- 2120 files changed, 2061 insertions(+), 178567 deletions(-) delete mode 100644 build/.gitignore delete mode 100644 build/.swagger-codegen-ignore delete mode 100644 build/Makefile delete mode 100644 build/README.md delete mode 100644 build/platformclientv2/action.go delete mode 100644 build/platformclientv2/actionconfig.go delete mode 100644 build/platformclientv2/actioncontract.go delete mode 100644 build/platformclientv2/actioncontractinput.go delete mode 100644 build/platformclientv2/actionentitylisting.go delete mode 100644 build/platformclientv2/actioninput.go delete mode 100644 build/platformclientv2/actionoutput.go delete mode 100644 build/platformclientv2/actions.go delete mode 100644 build/platformclientv2/activealertcount.go delete mode 100644 build/platformclientv2/activitycode.go delete mode 100644 build/platformclientv2/activitycodecontainer.go delete mode 100644 build/platformclientv2/acwsettings.go delete mode 100644 build/platformclientv2/additionalmessage.go delete mode 100644 build/platformclientv2/address.go delete mode 100644 build/platformclientv2/addressableentityref.go delete mode 100644 build/platformclientv2/addressablelicensedefinition.go delete mode 100644 build/platformclientv2/adfs.go delete mode 100644 build/platformclientv2/adherencesettings.go delete mode 100644 build/platformclientv2/adhocrecordingtopicconversationdata.go delete mode 100644 build/platformclientv2/adhocrecordingtopiclockdata.go delete mode 100644 build/platformclientv2/adhocrecordingtopicrecordingdatav2.go delete mode 100644 build/platformclientv2/adhocrecordingtopicuserdata.go delete mode 100644 build/platformclientv2/adhocrecordingtopicworkspacedata.go delete mode 100644 build/platformclientv2/adjacents.go delete mode 100644 build/platformclientv2/admintimeoffrequestpatch.go delete mode 100644 build/platformclientv2/agent.go delete mode 100644 build/platformclientv2/agentactivity.go delete mode 100644 build/platformclientv2/agentactivitychangedtopicagentactivity.go delete mode 100644 build/platformclientv2/agentactivitychangedtopicorganizationpresence.go delete mode 100644 build/platformclientv2/agentactivitychangedtopicoutofoffice.go delete mode 100644 build/platformclientv2/agentactivitychangedtopicpresence.go delete mode 100644 build/platformclientv2/agentactivitychangedtopicroutingstatus.go delete mode 100644 build/platformclientv2/agentactivityentitylisting.go delete mode 100644 build/platformclientv2/agentevaluatoractivity.go delete mode 100644 build/platformclientv2/agenttimeoffrequestpatch.go delete mode 100644 build/platformclientv2/aggregatemetricdata.go delete mode 100644 build/platformclientv2/aggregateviewdata.go delete mode 100644 build/platformclientv2/aggregationrange.go delete mode 100644 build/platformclientv2/aggregationresult.go delete mode 100644 build/platformclientv2/aggregationresultentry.go delete mode 100644 build/platformclientv2/alertingapi.go delete mode 100644 build/platformclientv2/analyticsapi.go delete mode 100644 build/platformclientv2/analyticsconversation.go delete mode 100644 build/platformclientv2/analyticsconversationasyncqueryresponse.go delete mode 100644 build/platformclientv2/analyticsconversationqueryresponse.go delete mode 100644 build/platformclientv2/analyticsconversationsegment.go delete mode 100644 build/platformclientv2/analyticsconversationwithoutattributes.go delete mode 100644 build/platformclientv2/analyticsconversationwithoutattributesmultigetresponse.go delete mode 100644 build/platformclientv2/analyticsevaluation.go delete mode 100644 build/platformclientv2/analyticsflow.go delete mode 100644 build/platformclientv2/analyticsflowoutcome.go delete mode 100644 build/platformclientv2/analyticsmediaendpointstat.go delete mode 100644 build/platformclientv2/analyticsparticipant.go delete mode 100644 build/platformclientv2/analyticsparticipantwithoutattributes.go delete mode 100644 build/platformclientv2/analyticsproperty.go delete mode 100644 build/platformclientv2/analyticsqueryaggregation.go delete mode 100644 build/platformclientv2/analyticsroutingstatusrecord.go delete mode 100644 build/platformclientv2/analyticsscoredagent.go delete mode 100644 build/platformclientv2/analyticssession.go delete mode 100644 build/platformclientv2/analyticssessionmetric.go delete mode 100644 build/platformclientv2/analyticssurvey.go delete mode 100644 build/platformclientv2/analyticsuserdetail.go delete mode 100644 build/platformclientv2/analyticsuserdetailsasyncqueryresponse.go delete mode 100644 build/platformclientv2/analyticsuserdetailsqueryresponse.go delete mode 100644 build/platformclientv2/analyticsuserpresencerecord.go delete mode 100644 build/platformclientv2/annotation.go delete mode 100644 build/platformclientv2/answeroption.go delete mode 100644 build/platformclientv2/apiclient.go delete mode 100644 build/platformclientv2/apiresponse.go delete mode 100644 build/platformclientv2/architectapi.go delete mode 100644 build/platformclientv2/architectdependencytrackingbuildnotificationclient.go delete mode 100644 build/platformclientv2/architectdependencytrackingbuildnotificationdependencytrackingbuildnotification.go delete mode 100644 build/platformclientv2/architectdependencytrackingbuildnotificationhomeorganization.go delete mode 100644 build/platformclientv2/architectdependencytrackingbuildnotificationuser.go delete mode 100644 build/platformclientv2/architectflownotificationarchitectoperation.go delete mode 100644 build/platformclientv2/architectflownotificationclient.go delete mode 100644 build/platformclientv2/architectflownotificationerrordetail.go delete mode 100644 build/platformclientv2/architectflownotificationerrormessageparams.go delete mode 100644 build/platformclientv2/architectflownotificationflownotification.go delete mode 100644 build/platformclientv2/architectflownotificationflowversion.go delete mode 100644 build/platformclientv2/architectflownotificationhomeorganization.go delete mode 100644 build/platformclientv2/architectflownotificationuser.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationarchitectoperation.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationclient.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationerrordetail.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationerrormessageparams.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationflowoutcomenotification.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationhomeorganization.go delete mode 100644 build/platformclientv2/architectflowoutcomenotificationuser.go delete mode 100644 build/platformclientv2/architectpromptnotificationarchitectoperation.go delete mode 100644 build/platformclientv2/architectpromptnotificationclient.go delete mode 100644 build/platformclientv2/architectpromptnotificationerrordetail.go delete mode 100644 build/platformclientv2/architectpromptnotificationerrormessageparams.go delete mode 100644 build/platformclientv2/architectpromptnotificationhomeorganization.go delete mode 100644 build/platformclientv2/architectpromptnotificationpromptnotification.go delete mode 100644 build/platformclientv2/architectpromptnotificationuser.go delete mode 100644 build/platformclientv2/architectpromptresourcenotificationpromptresourcenotification.go delete mode 100644 build/platformclientv2/architectsystempromptresourcenotificationsystempromptresourcenotification.go delete mode 100644 build/platformclientv2/archiveretention.go delete mode 100644 build/platformclientv2/arraynode.go delete mode 100644 build/platformclientv2/assignedwrapupcode.go delete mode 100644 build/platformclientv2/asyncconversationquery.go delete mode 100644 build/platformclientv2/asyncqueryresponse.go delete mode 100644 build/platformclientv2/asyncquerystatus.go delete mode 100644 build/platformclientv2/asyncuserdetailsquery.go delete mode 100644 build/platformclientv2/asyncweekscheduleresponse.go delete mode 100644 build/platformclientv2/attachment.go delete mode 100644 build/platformclientv2/attemptlimits.go delete mode 100644 build/platformclientv2/attemptlimitsentitylisting.go delete mode 100644 build/platformclientv2/attribute.go delete mode 100644 build/platformclientv2/attributefilteritem.go delete mode 100644 build/platformclientv2/atzmtimeslot.go delete mode 100644 build/platformclientv2/atzmtimeslotwithtimezone.go delete mode 100644 build/platformclientv2/auditapi.go delete mode 100644 build/platformclientv2/auditchange.go delete mode 100644 build/platformclientv2/auditentity.go delete mode 100644 build/platformclientv2/auditentityreference.go delete mode 100644 build/platformclientv2/auditfacet.go delete mode 100644 build/platformclientv2/auditfilter.go delete mode 100644 build/platformclientv2/auditlogmessage.go delete mode 100644 build/platformclientv2/auditmessage.go delete mode 100644 build/platformclientv2/auditqueryexecutionresultsresponse.go delete mode 100644 build/platformclientv2/auditqueryexecutionstatusresponse.go delete mode 100644 build/platformclientv2/auditqueryfilter.go delete mode 100644 build/platformclientv2/auditqueryrequest.go delete mode 100644 build/platformclientv2/auditqueryresponse.go delete mode 100644 build/platformclientv2/auditsearchresult.go delete mode 100644 build/platformclientv2/audituser.go delete mode 100644 build/platformclientv2/authorizationapi.go delete mode 100644 build/platformclientv2/authzdivision.go delete mode 100644 build/platformclientv2/authzdivisionentitylisting.go delete mode 100644 build/platformclientv2/authzgrant.go delete mode 100644 build/platformclientv2/authzgrantpolicy.go delete mode 100644 build/platformclientv2/authzgrantrole.go delete mode 100644 build/platformclientv2/authzsubject.go delete mode 100644 build/platformclientv2/automatictimezonemappingsettings.go delete mode 100644 build/platformclientv2/availablelanguagelist.go delete mode 100644 build/platformclientv2/availabletopic.go delete mode 100644 build/platformclientv2/availabletopicentitylisting.go delete mode 100644 build/platformclientv2/availabletranslations.go delete mode 100644 build/platformclientv2/batchdownloadjobresult.go delete mode 100644 build/platformclientv2/batchdownloadjobstatusresult.go delete mode 100644 build/platformclientv2/batchdownloadjobsubmission.go delete mode 100644 build/platformclientv2/batchdownloadjobsubmissionresult.go delete mode 100644 build/platformclientv2/batchdownloadrequest.go delete mode 100644 build/platformclientv2/billingapi.go delete mode 100644 build/platformclientv2/billingusage.go delete mode 100644 build/platformclientv2/billingusagereport.go delete mode 100644 build/platformclientv2/billingusageresource.go delete mode 100644 build/platformclientv2/biography.go delete mode 100644 build/platformclientv2/bullseye.go delete mode 100644 build/platformclientv2/busearchagentschedulesrequest.go delete mode 100644 build/platformclientv2/businessunitreference.go delete mode 100644 build/platformclientv2/calibration.go delete mode 100644 build/platformclientv2/calibrationassignment.go delete mode 100644 build/platformclientv2/calibrationcreate.go delete mode 100644 build/platformclientv2/calibrationentitylisting.go delete mode 100644 build/platformclientv2/call.go delete mode 100644 build/platformclientv2/callablecontactsdiagnostic.go delete mode 100644 build/platformclientv2/callabletime.go delete mode 100644 build/platformclientv2/callabletimeset.go delete mode 100644 build/platformclientv2/callabletimesetentitylisting.go delete mode 100644 build/platformclientv2/callablewindow.go delete mode 100644 build/platformclientv2/callback.go delete mode 100644 build/platformclientv2/callbackbasic.go delete mode 100644 build/platformclientv2/callbackconversation.go delete mode 100644 build/platformclientv2/callbackconversationentitylisting.go delete mode 100644 build/platformclientv2/callbackidentifier.go delete mode 100644 build/platformclientv2/callbackmediaparticipant.go delete mode 100644 build/platformclientv2/callbasic.go delete mode 100644 build/platformclientv2/callcommand.go delete mode 100644 build/platformclientv2/callconversation.go delete mode 100644 build/platformclientv2/callconversationentitylisting.go delete mode 100644 build/platformclientv2/callforwarding.go delete mode 100644 build/platformclientv2/callforwardingeventcall.go delete mode 100644 build/platformclientv2/callforwardingeventcallforwarding.go delete mode 100644 build/platformclientv2/callforwardingeventtarget.go delete mode 100644 build/platformclientv2/callforwardingeventuser.go delete mode 100644 build/platformclientv2/callhistoryconversation.go delete mode 100644 build/platformclientv2/callhistoryconversationentitylisting.go delete mode 100644 build/platformclientv2/callhistoryparticipant.go delete mode 100644 build/platformclientv2/callmediaparticipant.go delete mode 100644 build/platformclientv2/callmediapolicy.go delete mode 100644 build/platformclientv2/callmediapolicyconditions.go delete mode 100644 build/platformclientv2/callrecord.go delete mode 100644 build/platformclientv2/callroute.go delete mode 100644 build/platformclientv2/calltarget.go delete mode 100644 build/platformclientv2/campaign.go delete mode 100644 build/platformclientv2/campaigndiagnostics.go delete mode 100644 build/platformclientv2/campaigndivisionview.go delete mode 100644 build/platformclientv2/campaigndivisionviewlisting.go delete mode 100644 build/platformclientv2/campaignentitylisting.go delete mode 100644 build/platformclientv2/campaigninteraction.go delete mode 100644 build/platformclientv2/campaigninteractions.go delete mode 100644 build/platformclientv2/campaignprogress.go delete mode 100644 build/platformclientv2/campaignrule.go delete mode 100644 build/platformclientv2/campaignruleaction.go delete mode 100644 build/platformclientv2/campaignruleactionentities.go delete mode 100644 build/platformclientv2/campaignrulecondition.go delete mode 100644 build/platformclientv2/campaignruleentities.go delete mode 100644 build/platformclientv2/campaignruleentitylisting.go delete mode 100644 build/platformclientv2/campaignruleparameters.go delete mode 100644 build/platformclientv2/campaignschedule.go delete mode 100644 build/platformclientv2/campaignsequence.go delete mode 100644 build/platformclientv2/campaignsequenceentitylisting.go delete mode 100644 build/platformclientv2/campaignstats.go delete mode 100644 build/platformclientv2/campaigntimeslot.go delete mode 100644 build/platformclientv2/category.go delete mode 100644 build/platformclientv2/categoryentitylisting.go delete mode 100644 build/platformclientv2/certificate.go delete mode 100644 build/platformclientv2/certificateauthorityentitylisting.go delete mode 100644 build/platformclientv2/certificatedetails.go delete mode 100644 build/platformclientv2/change.go delete mode 100644 build/platformclientv2/changemypasswordrequest.go delete mode 100644 build/platformclientv2/changepasswordrequest.go delete mode 100644 build/platformclientv2/channel.go delete mode 100644 build/platformclientv2/channelentitylisting.go delete mode 100644 build/platformclientv2/channeltopic.go delete mode 100644 build/platformclientv2/channeltopicentitylisting.go delete mode 100644 build/platformclientv2/chat.go delete mode 100644 build/platformclientv2/chatbadgetopicbadgeentity.go delete mode 100644 build/platformclientv2/chatbadgetopicchatbadge.go delete mode 100644 build/platformclientv2/chatconversation.go delete mode 100644 build/platformclientv2/chatconversationentitylisting.go delete mode 100644 build/platformclientv2/chatmediaparticipant.go delete mode 100644 build/platformclientv2/chatmediapolicy.go delete mode 100644 build/platformclientv2/chatmediapolicyconditions.go delete mode 100644 build/platformclientv2/chatmessage.go delete mode 100644 build/platformclientv2/chatmessageuser.go delete mode 100644 build/platformclientv2/clientapp.go delete mode 100644 build/platformclientv2/clientappconfigurationinfo.go delete mode 100644 build/platformclientv2/clientappentitylisting.go delete mode 100644 build/platformclientv2/cobrowseconversation.go delete mode 100644 build/platformclientv2/cobrowseconversationentitylisting.go delete mode 100644 build/platformclientv2/cobrowsemediaparticipant.go delete mode 100644 build/platformclientv2/cobrowsesession.go delete mode 100644 build/platformclientv2/commandstatus.go delete mode 100644 build/platformclientv2/commandstatusentitylisting.go delete mode 100644 build/platformclientv2/condition.go delete mode 100644 build/platformclientv2/configuration.go delete mode 100644 build/platformclientv2/connectrate.go delete mode 100644 build/platformclientv2/consulttransfer.go delete mode 100644 build/platformclientv2/consulttransferresponse.go delete mode 100644 build/platformclientv2/consulttransferupdate.go delete mode 100644 build/platformclientv2/consumedresourcesentitylisting.go delete mode 100644 build/platformclientv2/consumingresourcesentitylisting.go delete mode 100644 build/platformclientv2/contact.go delete mode 100644 build/platformclientv2/contactaddress.go delete mode 100644 build/platformclientv2/contactcallbackrequest.go delete mode 100644 build/platformclientv2/contactcentersettings.go delete mode 100644 build/platformclientv2/contactcolumntimezone.go delete mode 100644 build/platformclientv2/contactcolumntodataactionfieldmapping.go delete mode 100644 build/platformclientv2/contactlist.go delete mode 100644 build/platformclientv2/contactlistdivisionview.go delete mode 100644 build/platformclientv2/contactlistdivisionviewlisting.go delete mode 100644 build/platformclientv2/contactlistdownloadreadyexporturi.go delete mode 100644 build/platformclientv2/contactlistentitylisting.go delete mode 100644 build/platformclientv2/contactlistfilter.go delete mode 100644 build/platformclientv2/contactlistfilterclause.go delete mode 100644 build/platformclientv2/contactlistfilterentitylisting.go delete mode 100644 build/platformclientv2/contactlistfilterpredicate.go delete mode 100644 build/platformclientv2/contactlistfilterrange.go delete mode 100644 build/platformclientv2/contactlistimportstatusimportstatus.go delete mode 100644 build/platformclientv2/contactlisting.go delete mode 100644 build/platformclientv2/contactphonenumbercolumn.go delete mode 100644 build/platformclientv2/contactsort.go delete mode 100644 build/platformclientv2/contentattributefilteritem.go delete mode 100644 build/platformclientv2/contentfacetfilteritem.go delete mode 100644 build/platformclientv2/contentfilteritem.go delete mode 100644 build/platformclientv2/contentmanagementapi.go delete mode 100644 build/platformclientv2/contentmanagementsingledocumenttopicdocumentdatav2.go delete mode 100644 build/platformclientv2/contentmanagementsingledocumenttopiclockdata.go delete mode 100644 build/platformclientv2/contentmanagementsingledocumenttopicuserdata.go delete mode 100644 build/platformclientv2/contentmanagementsingledocumenttopicworkspacedata.go delete mode 100644 build/platformclientv2/contentmanagementworkspacedocumentstopicdocumentdatav2.go delete mode 100644 build/platformclientv2/contentmanagementworkspacedocumentstopiclockdata.go delete mode 100644 build/platformclientv2/contentmanagementworkspacedocumentstopicuserdata.go delete mode 100644 build/platformclientv2/contentmanagementworkspacedocumentstopicworkspacedata.go delete mode 100644 build/platformclientv2/contentqueryrequest.go delete mode 100644 build/platformclientv2/contentsortitem.go delete mode 100644 build/platformclientv2/conversation.go delete mode 100644 build/platformclientv2/conversationaggregatedatacontainer.go delete mode 100644 build/platformclientv2/conversationaggregatequeryclause.go delete mode 100644 build/platformclientv2/conversationaggregatequeryfilter.go delete mode 100644 build/platformclientv2/conversationaggregatequerypredicate.go delete mode 100644 build/platformclientv2/conversationaggregatequeryresponse.go delete mode 100644 build/platformclientv2/conversationaggregationquery.go delete mode 100644 build/platformclientv2/conversationaggregationview.go delete mode 100644 build/platformclientv2/conversationassociation.go delete mode 100644 build/platformclientv2/conversationbasic.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopiccallbackconversation.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopiccallbackmediaparticipant.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicdetail.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicdialerpreview.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicphonenumbercolumn.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicurireference.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicvoicemail.go delete mode 100644 build/platformclientv2/conversationcallbackeventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationcalleventtopiccallconversation.go delete mode 100644 build/platformclientv2/conversationcalleventtopiccallmediaparticipant.go delete mode 100644 build/platformclientv2/conversationcalleventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationcalleventtopicdetail.go delete mode 100644 build/platformclientv2/conversationcalleventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationcalleventtopicfaxstatus.go delete mode 100644 build/platformclientv2/conversationcalleventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationcalleventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationcalleventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationcalleventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationcalleventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationcalleventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationcalleventtopicurireference.go delete mode 100644 build/platformclientv2/conversationcalleventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationchat.go delete mode 100644 build/platformclientv2/conversationchateventtopicchatconversation.go delete mode 100644 build/platformclientv2/conversationchateventtopicchatmediaparticipant.go delete mode 100644 build/platformclientv2/conversationchateventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationchateventtopicdetail.go delete mode 100644 build/platformclientv2/conversationchateventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationchateventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationchateventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationchateventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationchateventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationchateventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationchateventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationchateventtopicurireference.go delete mode 100644 build/platformclientv2/conversationchateventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopiccobrowseconversation.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopiccobrowsemediaparticipant.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicdetail.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicurireference.go delete mode 100644 build/platformclientv2/conversationcobrowseeventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationdetailqueryclause.go delete mode 100644 build/platformclientv2/conversationdetailqueryfilter.go delete mode 100644 build/platformclientv2/conversationdetailquerypredicate.go delete mode 100644 build/platformclientv2/conversationdivisionmembership.go delete mode 100644 build/platformclientv2/conversationemaileventtopicattachment.go delete mode 100644 build/platformclientv2/conversationemaileventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationemaileventtopicdetail.go delete mode 100644 build/platformclientv2/conversationemaileventtopicemailconversation.go delete mode 100644 build/platformclientv2/conversationemaileventtopicemailmediaparticipant.go delete mode 100644 build/platformclientv2/conversationemaileventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationemaileventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationemaileventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationemaileventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationemaileventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationemaileventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationemaileventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationemaileventtopicurireference.go delete mode 100644 build/platformclientv2/conversationemaileventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationentitylisting.go delete mode 100644 build/platformclientv2/conversationeventtopicaddress.go delete mode 100644 build/platformclientv2/conversationeventtopicattachment.go delete mode 100644 build/platformclientv2/conversationeventtopiccall.go delete mode 100644 build/platformclientv2/conversationeventtopiccallback.go delete mode 100644 build/platformclientv2/conversationeventtopicchat.go delete mode 100644 build/platformclientv2/conversationeventtopiccobrowse.go delete mode 100644 build/platformclientv2/conversationeventtopicconversation.go delete mode 100644 build/platformclientv2/conversationeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationeventtopicdialerpreview.go delete mode 100644 build/platformclientv2/conversationeventtopicdisconnectreason.go delete mode 100644 build/platformclientv2/conversationeventtopicemail.go delete mode 100644 build/platformclientv2/conversationeventtopicerrordetails.go delete mode 100644 build/platformclientv2/conversationeventtopicfaxstatus.go delete mode 100644 build/platformclientv2/conversationeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationeventtopicmessage.go delete mode 100644 build/platformclientv2/conversationeventtopicmessagedetails.go delete mode 100644 build/platformclientv2/conversationeventtopicmessagemedia.go delete mode 100644 build/platformclientv2/conversationeventtopicmessagesticker.go delete mode 100644 build/platformclientv2/conversationeventtopicparticipant.go delete mode 100644 build/platformclientv2/conversationeventtopicphonenumbercolumn.go delete mode 100644 build/platformclientv2/conversationeventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationeventtopicscreenshare.go delete mode 100644 build/platformclientv2/conversationeventtopicsocialexpression.go delete mode 100644 build/platformclientv2/conversationeventtopicurireference.go delete mode 100644 build/platformclientv2/conversationeventtopicvideo.go delete mode 100644 build/platformclientv2/conversationeventtopicvoicemail.go delete mode 100644 build/platformclientv2/conversationeventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicdetail.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicmessageconversation.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicmessagedetails.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicmessagemedia.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicmessagemediaparticipant.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicmessagesticker.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicurireference.go delete mode 100644 build/platformclientv2/conversationmessageeventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationproperties.go delete mode 100644 build/platformclientv2/conversationquery.go delete mode 100644 build/platformclientv2/conversationroutingdata.go delete mode 100644 build/platformclientv2/conversationsapi.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicdetail.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicscreenshareconversation.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicscreensharemediaparticipant.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicurireference.go delete mode 100644 build/platformclientv2/conversationscreenshareeventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicdetail.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicsocialconversation.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicsocialmediaparticipant.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicurireference.go delete mode 100644 build/platformclientv2/conversationsocialexpressioneventtopicwrapup.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicdetail.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicerrorbody.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicscoredagent.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicurireference.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicvideoconversation.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicvideomediaparticipant.go delete mode 100644 build/platformclientv2/conversationvideoeventtopicwrapup.go delete mode 100644 build/platformclientv2/copyattachmentsrequest.go delete mode 100644 build/platformclientv2/copyshorttermforecastrequest.go delete mode 100644 build/platformclientv2/copyvoicemailmessage.go delete mode 100644 build/platformclientv2/copyweekschedulerequest.go delete mode 100644 build/platformclientv2/copyworkplan.go delete mode 100644 build/platformclientv2/coversheet.go delete mode 100644 build/platformclientv2/createactivitycoderequest.go delete mode 100644 build/platformclientv2/createadmintimeoffrequest.go delete mode 100644 build/platformclientv2/createagenttimeoffrequest.go delete mode 100644 build/platformclientv2/createcallbackcommand.go delete mode 100644 build/platformclientv2/createcallbackonconversationcommand.go delete mode 100644 build/platformclientv2/createcallbackresponse.go delete mode 100644 build/platformclientv2/createcallrequest.go delete mode 100644 build/platformclientv2/createcallresponse.go delete mode 100644 build/platformclientv2/createemailrequest.go delete mode 100644 build/platformclientv2/createintegrationrequest.go delete mode 100644 build/platformclientv2/createmanagementunitapirequest.go delete mode 100644 build/platformclientv2/createmanagementunitsettingsrequest.go delete mode 100644 build/platformclientv2/createoutboundmessagingconversationrequest.go delete mode 100644 build/platformclientv2/createqueuemediaassociationrequest.go delete mode 100644 build/platformclientv2/createqueuerequest.go delete mode 100644 build/platformclientv2/createsecuresession.go delete mode 100644 build/platformclientv2/createservicegoalgrouprequest.go delete mode 100644 build/platformclientv2/createsharerequest.go delete mode 100644 build/platformclientv2/createsharerequestmember.go delete mode 100644 build/platformclientv2/createshareresponse.go delete mode 100644 build/platformclientv2/createuser.go delete mode 100644 build/platformclientv2/createwebchatconversationrequest.go delete mode 100644 build/platformclientv2/createwebchatconversationresponse.go delete mode 100644 build/platformclientv2/createwebchatmessagerequest.go delete mode 100644 build/platformclientv2/createwebchatrequest.go delete mode 100644 build/platformclientv2/createworkplan.go delete mode 100644 build/platformclientv2/createworkplanactivity.go delete mode 100644 build/platformclientv2/createworkplanshift.go delete mode 100644 build/platformclientv2/credential.go delete mode 100644 build/platformclientv2/credentialinfo.go delete mode 100644 build/platformclientv2/credentialinfolisting.go delete mode 100644 build/platformclientv2/credentialspecification.go delete mode 100644 build/platformclientv2/credentialtype.go delete mode 100644 build/platformclientv2/credentialtypelisting.go delete mode 100644 build/platformclientv2/currentuserschedulerequestbody.go delete mode 100644 build/platformclientv2/customerinteractioncenter.go delete mode 100644 build/platformclientv2/dataactionconditionpredicate.go delete mode 100644 build/platformclientv2/dataschema.go delete mode 100644 build/platformclientv2/datatable.go delete mode 100644 build/platformclientv2/datatablerowentitylisting.go delete mode 100644 build/platformclientv2/datatablesdomainentitylisting.go delete mode 100644 build/platformclientv2/daterange.go delete mode 100644 build/platformclientv2/defaultgreetinglist.go delete mode 100644 build/platformclientv2/deletableuserreference.go delete mode 100644 build/platformclientv2/deleteretention.go delete mode 100644 build/platformclientv2/dependency.go delete mode 100644 build/platformclientv2/dependencyobject.go delete mode 100644 build/platformclientv2/dependencyobjectentitylisting.go delete mode 100644 build/platformclientv2/dependencystatus.go delete mode 100644 build/platformclientv2/dependencytype.go delete mode 100644 build/platformclientv2/dependencytypeentitylisting.go delete mode 100644 build/platformclientv2/destination.go delete mode 100644 build/platformclientv2/detail.go delete mode 100644 build/platformclientv2/dialeraction.go delete mode 100644 build/platformclientv2/dialerattemptlimitsconfigchangeattemptlimits.go delete mode 100644 build/platformclientv2/dialerattemptlimitsconfigchangerecallentry.go delete mode 100644 build/platformclientv2/dialerauditrequest.go delete mode 100644 build/platformclientv2/dialercallabletimesetconfigchangecallabletime.go delete mode 100644 build/platformclientv2/dialercallabletimesetconfigchangecallabletimeset.go delete mode 100644 build/platformclientv2/dialercallabletimesetconfigchangetimeslot.go delete mode 100644 build/platformclientv2/dialercampaignconfigchangecampaign.go delete mode 100644 build/platformclientv2/dialercampaignconfigchangecontactsort.go delete mode 100644 build/platformclientv2/dialercampaignconfigchangephonecolumn.go delete mode 100644 build/platformclientv2/dialercampaignconfigchangeresterrordetail.go delete mode 100644 build/platformclientv2/dialercampaignconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialercampaignprogresseventcampaignprogress.go delete mode 100644 build/platformclientv2/dialercampaignprogresseventurireference.go delete mode 100644 build/platformclientv2/dialercampaignruleconfigchangecampaignrule.go delete mode 100644 build/platformclientv2/dialercampaignruleconfigchangecampaignruleaction.go delete mode 100644 build/platformclientv2/dialercampaignruleconfigchangecampaignruleactionentities.go delete mode 100644 build/platformclientv2/dialercampaignruleconfigchangecampaignrulecondition.go delete mode 100644 build/platformclientv2/dialercampaignruleconfigchangecampaignruleentities.go delete mode 100644 build/platformclientv2/dialercampaignruleconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialercampaignscheduleconfigchangecampaignschedule.go delete mode 100644 build/platformclientv2/dialercampaignscheduleconfigchangescheduleinterval.go delete mode 100644 build/platformclientv2/dialercampaignscheduleconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialercontact.go delete mode 100644 build/platformclientv2/dialercontactid.go delete mode 100644 build/platformclientv2/dialercontactlistconfigchangecontactlist.go delete mode 100644 build/platformclientv2/dialercontactlistconfigchangecontactphonenumbercolumn.go delete mode 100644 build/platformclientv2/dialercontactlistconfigchangeimportstatus.go delete mode 100644 build/platformclientv2/dialercontactlistconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialercontactlistfilterconfigchangecontactlistfilter.go delete mode 100644 build/platformclientv2/dialercontactlistfilterconfigchangefilterclause.go delete mode 100644 build/platformclientv2/dialercontactlistfilterconfigchangefilterpredicate.go delete mode 100644 build/platformclientv2/dialercontactlistfilterconfigchangerange.go delete mode 100644 build/platformclientv2/dialercontactlistfilterconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialerdnclistconfigchangednclist.go delete mode 100644 build/platformclientv2/dialerdnclistconfigchangeimportstatus.go delete mode 100644 build/platformclientv2/dialerdnclistconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialerevententitylisting.go delete mode 100644 build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslot.go delete mode 100644 build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone.go delete mode 100644 build/platformclientv2/dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings.go delete mode 100644 build/platformclientv2/dialeroutboundsettingsconfigchangecallablewindow.go delete mode 100644 build/platformclientv2/dialeroutboundsettingsconfigchangeoutboundsettings.go delete mode 100644 build/platformclientv2/dialerpreview.go delete mode 100644 build/platformclientv2/dialerresponsesetconfigchangereaction.go delete mode 100644 build/platformclientv2/dialerresponsesetconfigchangeresponseset.go delete mode 100644 build/platformclientv2/dialerrule.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangeaction.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangecondition.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangecontactcolumntodataactionfieldmapping.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangedataactionconditionpredicate.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangerule.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangeruleset.go delete mode 100644 build/platformclientv2/dialerrulesetconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialersequenceconfigchangecampaignsequence.go delete mode 100644 build/platformclientv2/dialersequenceconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialersequencescheduleconfigchangescheduleinterval.go delete mode 100644 build/platformclientv2/dialersequencescheduleconfigchangesequenceschedule.go delete mode 100644 build/platformclientv2/dialersequencescheduleconfigchangeurireference.go delete mode 100644 build/platformclientv2/dialerwrapupcodemappingconfigchangewrapupcodemapping.go delete mode 100644 build/platformclientv2/dialogflowagent.go delete mode 100644 build/platformclientv2/dialogflowagentsummary.go delete mode 100644 build/platformclientv2/dialogflowagentsummaryentitylisting.go delete mode 100644 build/platformclientv2/dialogflowintent.go delete mode 100644 build/platformclientv2/dialogflowparameter.go delete mode 100644 build/platformclientv2/dialogflowproject.go delete mode 100644 build/platformclientv2/did.go delete mode 100644 build/platformclientv2/didentitylisting.go delete mode 100644 build/platformclientv2/didpool.go delete mode 100644 build/platformclientv2/didpoolentitylisting.go delete mode 100644 build/platformclientv2/digitlength.go delete mode 100644 build/platformclientv2/digits.go delete mode 100644 build/platformclientv2/directoryuserdeviceslisting.go delete mode 100644 build/platformclientv2/disconnectreason.go delete mode 100644 build/platformclientv2/division.go delete mode 100644 build/platformclientv2/dnclist.go delete mode 100644 build/platformclientv2/dnclistcreate.go delete mode 100644 build/platformclientv2/dnclistdivisionview.go delete mode 100644 build/platformclientv2/dnclistdivisionviewlisting.go delete mode 100644 build/platformclientv2/dnclistdownloadreadyexporturi.go delete mode 100644 build/platformclientv2/dnclistentitylisting.go delete mode 100644 build/platformclientv2/dnclistimportstatusimportstatus.go delete mode 100644 build/platformclientv2/document.go delete mode 100644 build/platformclientv2/documentationresult.go delete mode 100644 build/platformclientv2/documentationsearchcriteria.go delete mode 100644 build/platformclientv2/documentationsearchrequest.go delete mode 100644 build/platformclientv2/documentationsearchresponse.go delete mode 100644 build/platformclientv2/documentattribute.go delete mode 100644 build/platformclientv2/documentaudit.go delete mode 100644 build/platformclientv2/documentauditentitylisting.go delete mode 100644 build/platformclientv2/documententitylisting.go delete mode 100644 build/platformclientv2/documentthumbnail.go delete mode 100644 build/platformclientv2/documentupdate.go delete mode 100644 build/platformclientv2/documentupload.go delete mode 100644 build/platformclientv2/domaincapabilities.go delete mode 100644 build/platformclientv2/domaincertificateauthority.go delete mode 100644 build/platformclientv2/domainedgesoftwareupdatedto.go delete mode 100644 build/platformclientv2/domainedgesoftwareversiondto.go delete mode 100644 build/platformclientv2/domainedgesoftwareversiondtoentitylisting.go delete mode 100644 build/platformclientv2/domainentity.go delete mode 100644 build/platformclientv2/domainentitylisting.go delete mode 100644 build/platformclientv2/domainentitylistingevaluationform.go delete mode 100644 build/platformclientv2/domainentitylistingqueryresult.go delete mode 100644 build/platformclientv2/domainentitylistingsurveyform.go delete mode 100644 build/platformclientv2/domainentityref.go delete mode 100644 build/platformclientv2/domainlogicalinterface.go delete mode 100644 build/platformclientv2/domainnetworkaddress.go delete mode 100644 build/platformclientv2/domainnetworkcommandresponse.go delete mode 100644 build/platformclientv2/domainnetworkroute.go delete mode 100644 build/platformclientv2/domainorganizationproduct.go delete mode 100644 build/platformclientv2/domainorganizationrole.go delete mode 100644 build/platformclientv2/domainorganizationrolecreate.go delete mode 100644 build/platformclientv2/domainorganizationroleupdate.go delete mode 100644 build/platformclientv2/domainorgroledifference.go delete mode 100644 build/platformclientv2/domainpermission.go delete mode 100644 build/platformclientv2/domainpermissioncollection.go delete mode 100644 build/platformclientv2/domainpermissionpolicy.go delete mode 100644 build/platformclientv2/domainphysicalcapabilities.go delete mode 100644 build/platformclientv2/domainphysicalinterface.go delete mode 100644 build/platformclientv2/domainresourceconditionnode.go delete mode 100644 build/platformclientv2/domainresourceconditionvalue.go delete mode 100644 build/platformclientv2/domainrole.go delete mode 100644 build/platformclientv2/domainschemareference.go delete mode 100644 build/platformclientv2/downloadresponse.go delete mode 100644 build/platformclientv2/draftvalidationresult.go delete mode 100644 build/platformclientv2/durationcondition.go delete mode 100644 build/platformclientv2/edge.go delete mode 100644 build/platformclientv2/edgeautoupdateconfig.go delete mode 100644 build/platformclientv2/edgeentitylisting.go delete mode 100644 build/platformclientv2/edgegroup.go delete mode 100644 build/platformclientv2/edgegroupentitylisting.go delete mode 100644 build/platformclientv2/edgeinterface.go delete mode 100644 build/platformclientv2/edgeline.go delete mode 100644 build/platformclientv2/edgelineentitylisting.go delete mode 100644 build/platformclientv2/edgelogsjob.go delete mode 100644 build/platformclientv2/edgelogsjobfile.go delete mode 100644 build/platformclientv2/edgelogsjobrequest.go delete mode 100644 build/platformclientv2/edgelogsjobresponse.go delete mode 100644 build/platformclientv2/edgelogsjobuploadrequest.go delete mode 100644 build/platformclientv2/edgemetrics.go delete mode 100644 build/platformclientv2/edgemetricsdisk.go delete mode 100644 build/platformclientv2/edgemetricsmemory.go delete mode 100644 build/platformclientv2/edgemetricsnetwork.go delete mode 100644 build/platformclientv2/edgemetricsprocessor.go delete mode 100644 build/platformclientv2/edgemetricssubsystem.go delete mode 100644 build/platformclientv2/edgenetworkdiagnostic.go delete mode 100644 build/platformclientv2/edgenetworkdiagnosticrequest.go delete mode 100644 build/platformclientv2/edgenetworkdiagnosticresponse.go delete mode 100644 build/platformclientv2/edgerebootparameters.go delete mode 100644 build/platformclientv2/edgeservicestaterequest.go delete mode 100644 build/platformclientv2/edgetrunkbase.go delete mode 100644 build/platformclientv2/edgeversioninformation.go delete mode 100644 build/platformclientv2/edgeversionreport.go delete mode 100644 build/platformclientv2/effectiveconfiguration.go delete mode 100644 build/platformclientv2/email.go delete mode 100644 build/platformclientv2/emailaddress.go delete mode 100644 build/platformclientv2/emailattachment.go delete mode 100644 build/platformclientv2/emailconversation.go delete mode 100644 build/platformclientv2/emailconversationentitylisting.go delete mode 100644 build/platformclientv2/emailmediaparticipant.go delete mode 100644 build/platformclientv2/emailmediapolicy.go delete mode 100644 build/platformclientv2/emailmediapolicyconditions.go delete mode 100644 build/platformclientv2/emailmessage.go delete mode 100644 build/platformclientv2/emailmessagelisting.go delete mode 100644 build/platformclientv2/emailsetup.go delete mode 100644 build/platformclientv2/embeddedintegration.go delete mode 100644 build/platformclientv2/emergencycallflow.go delete mode 100644 build/platformclientv2/emergencygroup.go delete mode 100644 build/platformclientv2/emergencygrouplisting.go delete mode 100644 build/platformclientv2/employerinfo.go delete mode 100644 build/platformclientv2/empty.go delete mode 100644 build/platformclientv2/encryptionkey.go delete mode 100644 build/platformclientv2/encryptionkeyentitylisting.go delete mode 100644 build/platformclientv2/endpoint.go delete mode 100644 build/platformclientv2/entry.go delete mode 100644 build/platformclientv2/errorbody.go delete mode 100644 build/platformclientv2/errordetails.go delete mode 100644 build/platformclientv2/errorinfo.go delete mode 100644 build/platformclientv2/estimatedwaittimepredictions.go delete mode 100644 build/platformclientv2/evaluation.go delete mode 100644 build/platformclientv2/evaluationaggregatedatacontainer.go delete mode 100644 build/platformclientv2/evaluationaggregatequeryclause.go delete mode 100644 build/platformclientv2/evaluationaggregatequeryfilter.go delete mode 100644 build/platformclientv2/evaluationaggregatequerypredicate.go delete mode 100644 build/platformclientv2/evaluationaggregatequeryresponse.go delete mode 100644 build/platformclientv2/evaluationaggregationquery.go delete mode 100644 build/platformclientv2/evaluationaggregationview.go delete mode 100644 build/platformclientv2/evaluationassignment.go delete mode 100644 build/platformclientv2/evaluationdetailqueryclause.go delete mode 100644 build/platformclientv2/evaluationdetailqueryfilter.go delete mode 100644 build/platformclientv2/evaluationdetailquerypredicate.go delete mode 100644 build/platformclientv2/evaluationentitylisting.go delete mode 100644 build/platformclientv2/evaluationform.go delete mode 100644 build/platformclientv2/evaluationformandscoringset.go delete mode 100644 build/platformclientv2/evaluationformentitylisting.go delete mode 100644 build/platformclientv2/evaluationquestion.go delete mode 100644 build/platformclientv2/evaluationquestiongroup.go delete mode 100644 build/platformclientv2/evaluationquestiongroupscore.go delete mode 100644 build/platformclientv2/evaluationquestionscore.go delete mode 100644 build/platformclientv2/evaluationscoringset.go delete mode 100644 build/platformclientv2/evaluatoractivity.go delete mode 100644 build/platformclientv2/evaluatoractivityentitylisting.go delete mode 100644 build/platformclientv2/evententity.go delete mode 100644 build/platformclientv2/eventlog.go delete mode 100644 build/platformclientv2/eventmessage.go delete mode 100644 build/platformclientv2/executerecordingjobsquery.go delete mode 100644 build/platformclientv2/expansioncriterium.go delete mode 100644 build/platformclientv2/exportscriptrequest.go delete mode 100644 build/platformclientv2/exportscriptresponse.go delete mode 100644 build/platformclientv2/exporturi.go delete mode 100644 build/platformclientv2/extension.go delete mode 100644 build/platformclientv2/extensionentitylisting.go delete mode 100644 build/platformclientv2/extensionpool.go delete mode 100644 build/platformclientv2/extensionpoolentitylisting.go delete mode 100644 build/platformclientv2/externalcontact.go delete mode 100644 build/platformclientv2/externalcontactsapi.go delete mode 100644 build/platformclientv2/externaldatasource.go delete mode 100644 build/platformclientv2/externalorganization.go delete mode 100644 build/platformclientv2/externalorganizationlisting.go delete mode 100644 build/platformclientv2/facebookid.go delete mode 100644 build/platformclientv2/facebookintegration.go delete mode 100644 build/platformclientv2/facebookintegrationentitylisting.go delete mode 100644 build/platformclientv2/facebookintegrationrequest.go delete mode 100644 build/platformclientv2/facebookscopedid.go delete mode 100644 build/platformclientv2/facet.go delete mode 100644 build/platformclientv2/facetentry.go delete mode 100644 build/platformclientv2/facetinfo.go delete mode 100644 build/platformclientv2/facetkeyattribute.go delete mode 100644 build/platformclientv2/facetstatistics.go delete mode 100644 build/platformclientv2/facetterm.go delete mode 100644 build/platformclientv2/failedobject.go delete mode 100644 build/platformclientv2/faxapi.go delete mode 100644 build/platformclientv2/faxdocument.go delete mode 100644 build/platformclientv2/faxdocumententitylisting.go delete mode 100644 build/platformclientv2/faxsendrequest.go delete mode 100644 build/platformclientv2/faxsendresponse.go delete mode 100644 build/platformclientv2/faxstatus.go delete mode 100644 build/platformclientv2/faxsummary.go delete mode 100644 build/platformclientv2/faxtopicfaxdatav2.go delete mode 100644 build/platformclientv2/faxtopiclockdata.go delete mode 100644 build/platformclientv2/faxtopicuserdata.go delete mode 100644 build/platformclientv2/faxtopicworkspacedata.go delete mode 100644 build/platformclientv2/featurestate.go delete mode 100644 build/platformclientv2/fieldconfig.go delete mode 100644 build/platformclientv2/fieldconfigs.go delete mode 100644 build/platformclientv2/fieldlist.go delete mode 100644 build/platformclientv2/filter.go delete mode 100644 build/platformclientv2/filterpreviewresponse.go delete mode 100644 build/platformclientv2/flow.go delete mode 100644 build/platformclientv2/flowaggregatedatacontainer.go delete mode 100644 build/platformclientv2/flowaggregatequeryclause.go delete mode 100644 build/platformclientv2/flowaggregatequeryfilter.go delete mode 100644 build/platformclientv2/flowaggregatequerypredicate.go delete mode 100644 build/platformclientv2/flowaggregatequeryresponse.go delete mode 100644 build/platformclientv2/flowaggregationquery.go delete mode 100644 build/platformclientv2/flowaggregationview.go delete mode 100644 build/platformclientv2/flowdiagnosticinfo.go delete mode 100644 build/platformclientv2/flowdivisionview.go delete mode 100644 build/platformclientv2/flowdivisionviewentitylisting.go delete mode 100644 build/platformclientv2/flowentitylisting.go delete mode 100644 build/platformclientv2/flowobservationdatacontainer.go delete mode 100644 build/platformclientv2/flowobservationquery.go delete mode 100644 build/platformclientv2/flowobservationqueryclause.go delete mode 100644 build/platformclientv2/flowobservationqueryfilter.go delete mode 100644 build/platformclientv2/flowobservationquerypredicate.go delete mode 100644 build/platformclientv2/flowobservationqueryresponse.go delete mode 100644 build/platformclientv2/flowoutcome.go delete mode 100644 build/platformclientv2/flowoutcomelisting.go delete mode 100644 build/platformclientv2/flowsapi.go delete mode 100644 build/platformclientv2/flowversion.go delete mode 100644 build/platformclientv2/flowversionentitylisting.go delete mode 100644 build/platformclientv2/forecastgenerationresult.go delete mode 100644 build/platformclientv2/forecastgenerationroutegroupresult.go delete mode 100644 build/platformclientv2/forecastresultresponse.go delete mode 100644 build/platformclientv2/forecastsourcedaypointer.go delete mode 100644 build/platformclientv2/forecasttimeseriesresult.go delete mode 100644 build/platformclientv2/freeseatingconfiguration.go delete mode 100644 build/platformclientv2/gdprjourneycustomer.go delete mode 100644 build/platformclientv2/gdprrequest.go delete mode 100644 build/platformclientv2/gdprrequestentitylisting.go delete mode 100644 build/platformclientv2/gdprsubject.go delete mode 100644 build/platformclientv2/gdprsubjectentitylisting.go delete mode 100644 build/platformclientv2/generaldataprotectionregulationapi.go delete mode 100644 build/platformclientv2/generateshorttermforecastrequest.go delete mode 100644 build/platformclientv2/generateshorttermforecastresponse.go delete mode 100644 build/platformclientv2/generateweekschedulerequest.go delete mode 100644 build/platformclientv2/generateweekscheduleresponse.go delete mode 100644 build/platformclientv2/geolocation.go delete mode 100644 build/platformclientv2/geolocationapi.go delete mode 100644 build/platformclientv2/geolocationeventgeolocation.go delete mode 100644 build/platformclientv2/geolocationsettings.go delete mode 100644 build/platformclientv2/gkndocumentationresult.go delete mode 100644 build/platformclientv2/gkndocumentationsearchcriteria.go delete mode 100644 build/platformclientv2/gkndocumentationsearchrequest.go delete mode 100644 build/platformclientv2/gkndocumentationsearchresponse.go delete mode 100644 build/platformclientv2/greeting.go delete mode 100644 build/platformclientv2/greetingaudiofile.go delete mode 100644 build/platformclientv2/greetinglisting.go delete mode 100644 build/platformclientv2/greetingmediainfo.go delete mode 100644 build/platformclientv2/greetingowner.go delete mode 100644 build/platformclientv2/greetingsapi.go delete mode 100644 build/platformclientv2/group.go delete mode 100644 build/platformclientv2/groupcontact.go delete mode 100644 build/platformclientv2/groupcreate.go delete mode 100644 build/platformclientv2/groupentitylisting.go delete mode 100644 build/platformclientv2/groupgreetingeventgreeting.go delete mode 100644 build/platformclientv2/groupgreetingeventgreetingaudiofile.go delete mode 100644 build/platformclientv2/groupgreetingeventgreetingowner.go delete mode 100644 build/platformclientv2/groupmembersupdate.go delete mode 100644 build/platformclientv2/groupprofile.go delete mode 100644 build/platformclientv2/groupprofileentitylisting.go delete mode 100644 build/platformclientv2/groupsapi.go delete mode 100644 build/platformclientv2/groupsearchcriteria.go delete mode 100644 build/platformclientv2/groupsearchrequest.go delete mode 100644 build/platformclientv2/groupssearchresponse.go delete mode 100644 build/platformclientv2/groupupdate.go delete mode 100644 build/platformclientv2/gsuite.go delete mode 100644 build/platformclientv2/guestmemberinfo.go delete mode 100644 build/platformclientv2/headcountforecast.go delete mode 100644 build/platformclientv2/headcountinterval.go delete mode 100644 build/platformclientv2/helplink.go delete mode 100644 build/platformclientv2/historyentry.go delete mode 100644 build/platformclientv2/historylisting.go delete mode 100644 build/platformclientv2/homerrecord.go delete mode 100644 build/platformclientv2/identitynow.go delete mode 100644 build/platformclientv2/identityproviderapi.go delete mode 100644 build/platformclientv2/ignoredactivitycategories.go delete mode 100644 build/platformclientv2/importscriptstatusresponse.go delete mode 100644 build/platformclientv2/importshorttermforecastrequest.go delete mode 100644 build/platformclientv2/importstatus.go delete mode 100644 build/platformclientv2/importweekschedulerequest.go delete mode 100644 build/platformclientv2/inbounddomain.go delete mode 100644 build/platformclientv2/inbounddomainentitylisting.go delete mode 100644 build/platformclientv2/inboundmessagerequest.go delete mode 100644 build/platformclientv2/inboundroute.go delete mode 100644 build/platformclientv2/inboundrouteentitylisting.go delete mode 100644 build/platformclientv2/initiatescreenrecording.go delete mode 100644 build/platformclientv2/integration.go delete mode 100644 build/platformclientv2/integrationconfiguration.go delete mode 100644 build/platformclientv2/integrationconfigurationinfo.go delete mode 100644 build/platformclientv2/integrationentitylisting.go delete mode 100644 build/platformclientv2/integrationevent.go delete mode 100644 build/platformclientv2/integrationevententitylisting.go delete mode 100644 build/platformclientv2/integrationexport.go delete mode 100644 build/platformclientv2/integrationsapi.go delete mode 100644 build/platformclientv2/integrationstatusinfo.go delete mode 100644 build/platformclientv2/integrationtype.go delete mode 100644 build/platformclientv2/integrationtypeentitylisting.go delete mode 100644 build/platformclientv2/interactionstatsalert.go delete mode 100644 build/platformclientv2/interactionstatsalertcontainer.go delete mode 100644 build/platformclientv2/interactionstatsrule.go delete mode 100644 build/platformclientv2/interactionstatsrulecontainer.go delete mode 100644 build/platformclientv2/intradaydatagroup.go delete mode 100644 build/platformclientv2/intradayforecastdata.go delete mode 100644 build/platformclientv2/intradayhistoricalagentdata.go delete mode 100644 build/platformclientv2/intradayhistoricalqueuedata.go delete mode 100644 build/platformclientv2/intradaymetric.go delete mode 100644 build/platformclientv2/intradayperformancepredictionagentdata.go delete mode 100644 build/platformclientv2/intradayperformancepredictionqueuedata.go delete mode 100644 build/platformclientv2/intradayquerydatacommand.go delete mode 100644 build/platformclientv2/intradayqueue.go delete mode 100644 build/platformclientv2/intradayresponse.go delete mode 100644 build/platformclientv2/intradayscheduledata.go delete mode 100644 build/platformclientv2/ipaddressrange.go delete mode 100644 build/platformclientv2/ipaddressrangelisting.go delete mode 100644 build/platformclientv2/ivr.go delete mode 100644 build/platformclientv2/ivrentitylisting.go delete mode 100644 build/platformclientv2/journeyaction.go delete mode 100644 build/platformclientv2/journeyactionmap.go delete mode 100644 build/platformclientv2/journeycontext.go delete mode 100644 build/platformclientv2/journeycustomer.go delete mode 100644 build/platformclientv2/journeycustomersession.go delete mode 100644 build/platformclientv2/jsonnode.go delete mode 100644 build/platformclientv2/jsonnodesearchresponse.go delete mode 100644 build/platformclientv2/jsonschemadocument.go delete mode 100644 build/platformclientv2/keyrotationschedule.go delete mode 100644 build/platformclientv2/keyword.go delete mode 100644 build/platformclientv2/keywordset.go delete mode 100644 build/platformclientv2/keywordsetentitylisting.go delete mode 100644 build/platformclientv2/klaxonheartbeatalertstopicheartbeatalert.go delete mode 100644 build/platformclientv2/klaxonheartbeatalertstopicnotificationuser.go delete mode 100644 build/platformclientv2/klaxonheartbeatrulestopicheartbeatrule.go delete mode 100644 build/platformclientv2/klaxonheartbeatrulestopicnotificationuser.go delete mode 100644 build/platformclientv2/klaxoninteractionstatsalertstopicinteractionstatalert.go delete mode 100644 build/platformclientv2/klaxoninteractionstatsalertstopicnotificationuser.go delete mode 100644 build/platformclientv2/klaxoninteractionstatsrulestopicinteractionstatrule.go delete mode 100644 build/platformclientv2/klaxoninteractionstatsrulestopicnotificationuser.go delete mode 100644 build/platformclientv2/language.go delete mode 100644 build/platformclientv2/languageentitylisting.go delete mode 100644 build/platformclientv2/languageoverride.go delete mode 100644 build/platformclientv2/languagereference.go delete mode 100644 build/platformclientv2/languagesapi.go delete mode 100644 build/platformclientv2/lexbot.go delete mode 100644 build/platformclientv2/lexbotalias.go delete mode 100644 build/platformclientv2/lexbotaliasentitylisting.go delete mode 100644 build/platformclientv2/lexbotentitylisting.go delete mode 100644 build/platformclientv2/lexintent.go delete mode 100644 build/platformclientv2/lexslot.go delete mode 100644 build/platformclientv2/library.go delete mode 100644 build/platformclientv2/libraryentitylisting.go delete mode 100644 build/platformclientv2/licenseapi.go delete mode 100644 build/platformclientv2/licenseassignmentrequest.go delete mode 100644 build/platformclientv2/licensebatchassignmentrequest.go delete mode 100644 build/platformclientv2/licensedefinition.go delete mode 100644 build/platformclientv2/licenseorgtoggle.go delete mode 100644 build/platformclientv2/licenseupdatestatus.go delete mode 100644 build/platformclientv2/licenseuser.go delete mode 100644 build/platformclientv2/line.go delete mode 100644 build/platformclientv2/linebase.go delete mode 100644 build/platformclientv2/linebaseentitylisting.go delete mode 100644 build/platformclientv2/lineentitylisting.go delete mode 100644 build/platformclientv2/lineid.go delete mode 100644 build/platformclientv2/lineintegration.go delete mode 100644 build/platformclientv2/lineintegrationentitylisting.go delete mode 100644 build/platformclientv2/lineintegrationrequest.go delete mode 100644 build/platformclientv2/linestatus.go delete mode 100644 build/platformclientv2/lineuserid.go delete mode 100644 build/platformclientv2/listwrapperforecastsourcedaypointer.go delete mode 100644 build/platformclientv2/listwrappershiftstartvariance.go delete mode 100644 build/platformclientv2/listwrapperwfmforecastmodification.go delete mode 100644 build/platformclientv2/localencryptionconfiguration.go delete mode 100644 build/platformclientv2/localencryptionconfigurationlisting.go delete mode 100644 build/platformclientv2/localencryptionkeyrequest.go delete mode 100644 build/platformclientv2/location.go delete mode 100644 build/platformclientv2/locationaddress.go delete mode 100644 build/platformclientv2/locationaddressverificationdetails.go delete mode 100644 build/platformclientv2/locationcreatedefinition.go delete mode 100644 build/platformclientv2/locationdefinition.go delete mode 100644 build/platformclientv2/locationemergencynumber.go delete mode 100644 build/platformclientv2/locationentitylisting.go delete mode 100644 build/platformclientv2/locationimage.go delete mode 100644 build/platformclientv2/locationsapi.go delete mode 100644 build/platformclientv2/locationsearchcriteria.go delete mode 100644 build/platformclientv2/locationsearchrequest.go delete mode 100644 build/platformclientv2/locationssearchresponse.go delete mode 100644 build/platformclientv2/locationupdatedefinition.go delete mode 100644 build/platformclientv2/lockinfo.go delete mode 100644 build/platformclientv2/logicalinterfaceentitylisting.go delete mode 100644 build/platformclientv2/mailfromresult.go delete mode 100644 build/platformclientv2/managementunit.go delete mode 100644 build/platformclientv2/managementunitlisting.go delete mode 100644 build/platformclientv2/managementunitreference.go delete mode 100644 build/platformclientv2/managementunitsettingsrequest.go delete mode 100644 build/platformclientv2/managementunitsettingsresponse.go delete mode 100644 build/platformclientv2/manager.go delete mode 100644 build/platformclientv2/maxparticipants.go delete mode 100644 build/platformclientv2/mediaendpointstatdetailqueryclause.go delete mode 100644 build/platformclientv2/mediaendpointstatdetailqueryfilter.go delete mode 100644 build/platformclientv2/mediaendpointstatdetailquerypredicate.go delete mode 100644 build/platformclientv2/mediaparticipantrequest.go delete mode 100644 build/platformclientv2/mediapolicies.go delete mode 100644 build/platformclientv2/mediaresult.go delete mode 100644 build/platformclientv2/mediasetting.go delete mode 100644 build/platformclientv2/mediasummary.go delete mode 100644 build/platformclientv2/mediasummarydetail.go delete mode 100644 build/platformclientv2/mediatranscription.go delete mode 100644 build/platformclientv2/mediautilization.go delete mode 100644 build/platformclientv2/memberentity.go delete mode 100644 build/platformclientv2/message.go delete mode 100644 build/platformclientv2/messageconversation.go delete mode 100644 build/platformclientv2/messageconversationentitylisting.go delete mode 100644 build/platformclientv2/messagedata.go delete mode 100644 build/platformclientv2/messagedetails.go delete mode 100644 build/platformclientv2/messageevaluation.go delete mode 100644 build/platformclientv2/messageinfo.go delete mode 100644 build/platformclientv2/messagemedia.go delete mode 100644 build/platformclientv2/messagemediaattachment.go delete mode 100644 build/platformclientv2/messagemediadata.go delete mode 100644 build/platformclientv2/messagemediaparticipant.go delete mode 100644 build/platformclientv2/messagemediapolicy.go delete mode 100644 build/platformclientv2/messagemediapolicyconditions.go delete mode 100644 build/platformclientv2/messagesticker.go delete mode 100644 build/platformclientv2/messagestickerattachment.go delete mode 100644 build/platformclientv2/messagingapi.go delete mode 100644 build/platformclientv2/messagingintegration.go delete mode 100644 build/platformclientv2/messagingintegrationentitylisting.go delete mode 100644 build/platformclientv2/messagingsticker.go delete mode 100644 build/platformclientv2/messagingstickerentitylisting.go delete mode 100644 build/platformclientv2/messagingtemplate.go delete mode 100644 build/platformclientv2/metabase.go delete mode 100644 build/platformclientv2/metadata.go delete mode 100644 build/platformclientv2/meteredassignmentbyagent.go delete mode 100644 build/platformclientv2/meteredevaluationassignment.go delete mode 100644 build/platformclientv2/mobiledevicesapi.go delete mode 100644 build/platformclientv2/modelingprocessingerror.go delete mode 100644 build/platformclientv2/modelingstatusresponse.go delete mode 100644 build/platformclientv2/movemanagementunitrequest.go delete mode 100644 build/platformclientv2/movemanagementunitresponse.go delete mode 100644 build/platformclientv2/namedentity.go delete mode 100644 build/platformclientv2/note.go delete mode 100644 build/platformclientv2/notelisting.go delete mode 100644 build/platformclientv2/notificationsapi.go delete mode 100644 build/platformclientv2/notificationsresponse.go delete mode 100644 build/platformclientv2/ntpsettings.go delete mode 100644 build/platformclientv2/number.go delete mode 100644 build/platformclientv2/numberplan.go delete mode 100644 build/platformclientv2/numericrange.go delete mode 100644 build/platformclientv2/oauthapi.go delete mode 100644 build/platformclientv2/oauthauthorization.go delete mode 100644 build/platformclientv2/oauthauthorizationlisting.go delete mode 100644 build/platformclientv2/oauthclient.go delete mode 100644 build/platformclientv2/oauthcliententitylisting.go delete mode 100644 build/platformclientv2/oauthclientlisting.go delete mode 100644 build/platformclientv2/oauthclientrequest.go delete mode 100644 build/platformclientv2/oauthlasttokenissued.go delete mode 100644 build/platformclientv2/oauthprovider.go delete mode 100644 build/platformclientv2/oauthproviderentitylisting.go delete mode 100644 build/platformclientv2/oauthscope.go delete mode 100644 build/platformclientv2/oauthscopelisting.go delete mode 100644 build/platformclientv2/objectsapi.go delete mode 100644 build/platformclientv2/observationmetricdata.go delete mode 100644 build/platformclientv2/observationvalue.go delete mode 100644 build/platformclientv2/okta.go delete mode 100644 build/platformclientv2/onelogin.go delete mode 100644 build/platformclientv2/operation.go delete mode 100644 build/platformclientv2/organization.go delete mode 100644 build/platformclientv2/organizationapi.go delete mode 100644 build/platformclientv2/organizationauthorizationapi.go delete mode 100644 build/platformclientv2/organizationfeatures.go delete mode 100644 build/platformclientv2/organizationpresence.go delete mode 100644 build/platformclientv2/organizationpresenceentitylisting.go delete mode 100644 build/platformclientv2/organizationproductentitylisting.go delete mode 100644 build/platformclientv2/organizationroleentitylisting.go delete mode 100644 build/platformclientv2/orgoauthclient.go delete mode 100644 build/platformclientv2/orguser.go delete mode 100644 build/platformclientv2/orgwhitelistsettings.go delete mode 100644 build/platformclientv2/orphanrecording.go delete mode 100644 build/platformclientv2/orphanrecordinglisting.go delete mode 100644 build/platformclientv2/orphanupdaterequest.go delete mode 100644 build/platformclientv2/outboundapi.go delete mode 100644 build/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go delete mode 100644 build/platformclientv2/outboundmessagingmessagingcampaignprogresseventurireference.go delete mode 100644 build/platformclientv2/outboundroute.go delete mode 100644 build/platformclientv2/outboundroutebase.go delete mode 100644 build/platformclientv2/outboundroutebaseentitylisting.go delete mode 100644 build/platformclientv2/outboundrouteentitylisting.go delete mode 100644 build/platformclientv2/outboundsettings.go delete mode 100644 build/platformclientv2/outofoffice.go delete mode 100644 build/platformclientv2/outofofficeeventoutofoffice.go delete mode 100644 build/platformclientv2/outofofficeeventuser.go delete mode 100644 build/platformclientv2/page.go delete mode 100644 build/platformclientv2/pagingspec.go delete mode 100644 build/platformclientv2/parameter.go delete mode 100644 build/platformclientv2/parsedcertificate.go delete mode 100644 build/platformclientv2/partialuploadresponse.go delete mode 100644 build/platformclientv2/participant.go delete mode 100644 build/platformclientv2/participantattributes.go delete mode 100644 build/platformclientv2/participantbasic.go delete mode 100644 build/platformclientv2/patchuser.go delete mode 100644 build/platformclientv2/permissioncollectionentitylisting.go delete mode 100644 build/platformclientv2/permissions.go delete mode 100644 build/platformclientv2/phone.go delete mode 100644 build/platformclientv2/phonebase.go delete mode 100644 build/platformclientv2/phonebaseentitylisting.go delete mode 100644 build/platformclientv2/phonecapabilities.go delete mode 100644 build/platformclientv2/phonecolumn.go delete mode 100644 build/platformclientv2/phoneentitylisting.go delete mode 100644 build/platformclientv2/phonemetabaseentitylisting.go delete mode 100644 build/platformclientv2/phonenumber.go delete mode 100644 build/platformclientv2/phonenumbercolumn.go delete mode 100644 build/platformclientv2/phonenumberstatus.go delete mode 100644 build/platformclientv2/phonesreboot.go delete mode 100644 build/platformclientv2/phonestatus.go delete mode 100644 build/platformclientv2/physicalinterfaceentitylisting.go delete mode 100644 build/platformclientv2/pinconfiguration.go delete mode 100644 build/platformclientv2/pingidentity.go delete mode 100644 build/platformclientv2/planningperiodsettings.go delete mode 100644 build/platformclientv2/platformclientv2_test.go delete mode 100644 build/platformclientv2/policy.go delete mode 100644 build/platformclientv2/policyactions.go delete mode 100644 build/platformclientv2/policyconditions.go delete mode 100644 build/platformclientv2/policycreate.go delete mode 100644 build/platformclientv2/policyentitylisting.go delete mode 100644 build/platformclientv2/policyerrormessage.go delete mode 100644 build/platformclientv2/policyerrors.go delete mode 100644 build/platformclientv2/postactioninput.go delete mode 100644 build/platformclientv2/postinputcontract.go delete mode 100644 build/platformclientv2/postoutputcontract.go delete mode 100644 build/platformclientv2/predictionresults.go delete mode 100644 build/platformclientv2/presenceapi.go delete mode 100644 build/platformclientv2/presencedefinition.go delete mode 100644 build/platformclientv2/presencedetailqueryclause.go delete mode 100644 build/platformclientv2/presencedetailqueryfilter.go delete mode 100644 build/platformclientv2/presencedetailquerypredicate.go delete mode 100644 build/platformclientv2/presenceeventorganizationpresence.go delete mode 100644 build/platformclientv2/presenceeventuserpresence.go delete mode 100644 build/platformclientv2/prompt.go delete mode 100644 build/platformclientv2/promptasset.go delete mode 100644 build/platformclientv2/promptassetcreate.go delete mode 100644 build/platformclientv2/promptassetentitylisting.go delete mode 100644 build/platformclientv2/promptentitylisting.go delete mode 100644 build/platformclientv2/propertychange.go delete mode 100644 build/platformclientv2/propertyindexrequest.go delete mode 100644 build/platformclientv2/provisioninfo.go delete mode 100644 build/platformclientv2/publishdraftinput.go delete mode 100644 build/platformclientv2/publishedsurveyformreference.go delete mode 100644 build/platformclientv2/publishform.go delete mode 100644 build/platformclientv2/purecloud.go delete mode 100644 build/platformclientv2/pureengage.go delete mode 100644 build/platformclientv2/qualityapi.go delete mode 100644 build/platformclientv2/qualityaudit.go delete mode 100644 build/platformclientv2/qualityauditpage.go delete mode 100644 build/platformclientv2/querydivision.go delete mode 100644 build/platformclientv2/queryfacetinfo.go delete mode 100644 build/platformclientv2/queryrequest.go delete mode 100644 build/platformclientv2/queryresult.go delete mode 100644 build/platformclientv2/queryresults.go delete mode 100644 build/platformclientv2/queue.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopiccallbackconversation.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopiccallbackmediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicdialerpreview.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicphonenumbercolumn.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicvoicemail.go delete mode 100644 build/platformclientv2/queueconversationcallbackeventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopiccallconversation.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopiccallmediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicfaxstatus.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationcalleventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicchatconversation.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicchatmediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationchateventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopiccobrowseconversation.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopiccobrowsemediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationcobrowseeventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicattachment.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicemailconversation.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicemailmediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationemaileventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationeventtopicaddress.go delete mode 100644 build/platformclientv2/queueconversationeventtopicattachment.go delete mode 100644 build/platformclientv2/queueconversationeventtopiccall.go delete mode 100644 build/platformclientv2/queueconversationeventtopiccallback.go delete mode 100644 build/platformclientv2/queueconversationeventtopicchat.go delete mode 100644 build/platformclientv2/queueconversationeventtopiccobrowse.go delete mode 100644 build/platformclientv2/queueconversationeventtopicconversation.go delete mode 100644 build/platformclientv2/queueconversationeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationeventtopicdialerpreview.go delete mode 100644 build/platformclientv2/queueconversationeventtopicdisconnectreason.go delete mode 100644 build/platformclientv2/queueconversationeventtopicemail.go delete mode 100644 build/platformclientv2/queueconversationeventtopicerrordetails.go delete mode 100644 build/platformclientv2/queueconversationeventtopicfaxstatus.go delete mode 100644 build/platformclientv2/queueconversationeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationeventtopicmessage.go delete mode 100644 build/platformclientv2/queueconversationeventtopicmessagedetails.go delete mode 100644 build/platformclientv2/queueconversationeventtopicmessagemedia.go delete mode 100644 build/platformclientv2/queueconversationeventtopicmessagesticker.go delete mode 100644 build/platformclientv2/queueconversationeventtopicparticipant.go delete mode 100644 build/platformclientv2/queueconversationeventtopicphonenumbercolumn.go delete mode 100644 build/platformclientv2/queueconversationeventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationeventtopicscreenshare.go delete mode 100644 build/platformclientv2/queueconversationeventtopicsocialexpression.go delete mode 100644 build/platformclientv2/queueconversationeventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationeventtopicvideo.go delete mode 100644 build/platformclientv2/queueconversationeventtopicvoicemail.go delete mode 100644 build/platformclientv2/queueconversationeventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicmessageconversation.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicmessagedetails.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicmessagemedia.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicmessagemediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicmessagesticker.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationmessageeventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicdetail.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicerrorbody.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicscreenshareconversation.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicscreensharemediaparticipant.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationscreenshareeventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicaddress.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicattachment.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopiccall.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopiccallback.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicchat.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopiccobrowse.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicconversation.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicdialerpreview.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicdisconnectreason.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicemail.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicerrordetails.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicfaxstatus.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicmessage.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicmessagedetails.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicmessagemedia.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicmessagesticker.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicparticipant.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicphonenumbercolumn.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicscreenshare.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicsocialexpression.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicvideo.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicvoicemail.go delete mode 100644 build/platformclientv2/queueconversationsocialexpressioneventtopicwrapup.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicaddress.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicattachment.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopiccall.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopiccallback.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicchat.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopiccobrowse.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicconversation.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicconversationroutingdata.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicdialerpreview.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicdisconnectreason.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicemail.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicerrordetails.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicfaxstatus.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicjourneyaction.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicjourneyactionmap.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicjourneycontext.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicjourneycustomer.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicjourneycustomersession.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicmessage.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicmessagedetails.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicmessagemedia.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicmessagesticker.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicparticipant.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicphonenumbercolumn.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicscoredagent.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicscreenshare.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicsocialexpression.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicurireference.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicvideo.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicvoicemail.go delete mode 100644 build/platformclientv2/queueconversationvideoeventtopicwrapup.go delete mode 100644 build/platformclientv2/queueemailaddress.go delete mode 100644 build/platformclientv2/queueentitylisting.go delete mode 100644 build/platformclientv2/queuemediaassociation.go delete mode 100644 build/platformclientv2/queuemember.go delete mode 100644 build/platformclientv2/queuememberentitylisting.go delete mode 100644 build/platformclientv2/queuemessagingaddresses.go delete mode 100644 build/platformclientv2/queueobservationdatacontainer.go delete mode 100644 build/platformclientv2/queueobservationquery.go delete mode 100644 build/platformclientv2/queueobservationqueryclause.go delete mode 100644 build/platformclientv2/queueobservationqueryfilter.go delete mode 100644 build/platformclientv2/queueobservationquerypredicate.go delete mode 100644 build/platformclientv2/queueobservationqueryresponse.go delete mode 100644 build/platformclientv2/queuereference.go delete mode 100644 build/platformclientv2/queuerequest.go delete mode 100644 build/platformclientv2/queueusereventtopicqueuemember.go delete mode 100644 build/platformclientv2/queueutilizationdiagnostic.go delete mode 100644 build/platformclientv2/reaction.go delete mode 100644 build/platformclientv2/recallentry.go delete mode 100644 build/platformclientv2/recipient.go delete mode 100644 build/platformclientv2/recipientlisting.go delete mode 100644 build/platformclientv2/record.go delete mode 100644 build/platformclientv2/recording.go delete mode 100644 build/platformclientv2/recordingapi.go delete mode 100644 build/platformclientv2/recordingemailmessage.go delete mode 100644 build/platformclientv2/recordingjob.go delete mode 100644 build/platformclientv2/recordingjobentitylisting.go delete mode 100644 build/platformclientv2/recordingjobsquery.go delete mode 100644 build/platformclientv2/recordingmessagingmessage.go delete mode 100644 build/platformclientv2/recordingmetadata.go delete mode 100644 build/platformclientv2/recordingsettings.go delete mode 100644 build/platformclientv2/regiontimezone.go delete mode 100644 build/platformclientv2/relationship.go delete mode 100644 build/platformclientv2/relationshiplisting.go delete mode 100644 build/platformclientv2/replacementterm.go delete mode 100644 build/platformclientv2/replacerequest.go delete mode 100644 build/platformclientv2/replaceresponse.go delete mode 100644 build/platformclientv2/reportingdataexporttopicdataexportnotification.go delete mode 100644 build/platformclientv2/reportingexportjoblisting.go delete mode 100644 build/platformclientv2/reportingexportjobrequest.go delete mode 100644 build/platformclientv2/reportingexportjobresponse.go delete mode 100644 build/platformclientv2/reportingexportmetadatajoblisting.go delete mode 100644 build/platformclientv2/reportingexportmetadatajobresponse.go delete mode 100644 build/platformclientv2/reportmetadata.go delete mode 100644 build/platformclientv2/reportmetadataentitylisting.go delete mode 100644 build/platformclientv2/reportrunentry.go delete mode 100644 build/platformclientv2/reportrunentryentitydomainlisting.go delete mode 100644 build/platformclientv2/reportschedule.go delete mode 100644 build/platformclientv2/reportscheduleentitylisting.go delete mode 100644 build/platformclientv2/requestconfig.go delete mode 100644 build/platformclientv2/reschedulerequest.go delete mode 100644 build/platformclientv2/rescheduleresult.go delete mode 100644 build/platformclientv2/reschedulingoptionsresponse.go delete mode 100644 build/platformclientv2/resourceconditionnode.go delete mode 100644 build/platformclientv2/resourceconditionvalue.go delete mode 100644 build/platformclientv2/resourcepermissionpolicy.go delete mode 100644 build/platformclientv2/response.go delete mode 100644 build/platformclientv2/responseconfig.go delete mode 100644 build/platformclientv2/responseentitylist.go delete mode 100644 build/platformclientv2/responseentitylisting.go delete mode 100644 build/platformclientv2/responsefilter.go delete mode 100644 build/platformclientv2/responsemanagementapi.go delete mode 100644 build/platformclientv2/responsequeryrequest.go delete mode 100644 build/platformclientv2/responsequeryresults.go delete mode 100644 build/platformclientv2/responseset.go delete mode 100644 build/platformclientv2/responsesetentitylisting.go delete mode 100644 build/platformclientv2/responsesubstitution.go delete mode 100644 build/platformclientv2/responsetext.go delete mode 100644 build/platformclientv2/resterrordetail.go delete mode 100644 build/platformclientv2/retentionduration.go delete mode 100644 build/platformclientv2/reversewhitepageslookupresult.go delete mode 100644 build/platformclientv2/ring.go delete mode 100644 build/platformclientv2/roledivision.go delete mode 100644 build/platformclientv2/roledivisiongrants.go delete mode 100644 build/platformclientv2/roledivisionpair.go delete mode 100644 build/platformclientv2/routegroup.go delete mode 100644 build/platformclientv2/routegroupattributes.go delete mode 100644 build/platformclientv2/routegrouplist.go delete mode 100644 build/platformclientv2/routingapi.go delete mode 100644 build/platformclientv2/routingdata.go delete mode 100644 build/platformclientv2/routingrule.go delete mode 100644 build/platformclientv2/routingsettings.go delete mode 100644 build/platformclientv2/routingskill.go delete mode 100644 build/platformclientv2/routingskillreference.go delete mode 100644 build/platformclientv2/routingstatus.go delete mode 100644 build/platformclientv2/routingstatusdetailqueryclause.go delete mode 100644 build/platformclientv2/routingstatusdetailqueryfilter.go delete mode 100644 build/platformclientv2/routingstatusdetailquerypredicate.go delete mode 100644 build/platformclientv2/ruleset.go delete mode 100644 build/platformclientv2/rulesetdiagnostic.go delete mode 100644 build/platformclientv2/rulesetentitylisting.go delete mode 100644 build/platformclientv2/runnowresponse.go delete mode 100644 build/platformclientv2/salesforce.go delete mode 100644 build/platformclientv2/schedule.go delete mode 100644 build/platformclientv2/scheduleentitylisting.go delete mode 100644 build/platformclientv2/schedulegenerationwarning.go delete mode 100644 build/platformclientv2/schedulegroup.go delete mode 100644 build/platformclientv2/schedulegroupentitylisting.go delete mode 100644 build/platformclientv2/scheduleinterval.go delete mode 100644 build/platformclientv2/schedulingprocessingerror.go delete mode 100644 build/platformclientv2/schedulingrunlistresponse.go delete mode 100644 build/platformclientv2/schedulingrunresponse.go delete mode 100644 build/platformclientv2/schedulingsettingsrequest.go delete mode 100644 build/platformclientv2/schedulingsettingsresponse.go delete mode 100644 build/platformclientv2/schedulingstatusresponse.go delete mode 100644 build/platformclientv2/schemacategory.go delete mode 100644 build/platformclientv2/schemacategoryentitylisting.go delete mode 100644 build/platformclientv2/schemareferenceentitylisting.go delete mode 100644 build/platformclientv2/scimapi.go delete mode 100644 build/platformclientv2/scimconfigresourcetype.go delete mode 100644 build/platformclientv2/scimconfigresourcetypeschemaextension.go delete mode 100644 build/platformclientv2/scimconfigresourcetypeslistresponse.go delete mode 100644 build/platformclientv2/scimemail.go delete mode 100644 build/platformclientv2/scimerror.go delete mode 100644 build/platformclientv2/scimgrouplistresponse.go delete mode 100644 build/platformclientv2/scimmetadata.go delete mode 100644 build/platformclientv2/scimphonenumber.go delete mode 100644 build/platformclientv2/scimserviceproviderconfig.go delete mode 100644 build/platformclientv2/scimserviceproviderconfigauthenticationscheme.go delete mode 100644 build/platformclientv2/scimserviceproviderconfigbulkfeature.go delete mode 100644 build/platformclientv2/scimserviceproviderconfigfilterfeature.go delete mode 100644 build/platformclientv2/scimserviceproviderconfigsimplefeature.go delete mode 100644 build/platformclientv2/scimuserextensions.go delete mode 100644 build/platformclientv2/scimuserlistresponse.go delete mode 100644 build/platformclientv2/scimuserrole.go delete mode 100644 build/platformclientv2/scimuserroutinglanguage.go delete mode 100644 build/platformclientv2/scimuserroutingskill.go delete mode 100644 build/platformclientv2/scimv2createuser.go delete mode 100644 build/platformclientv2/scimv2enterpriseuser.go delete mode 100644 build/platformclientv2/scimv2group.go delete mode 100644 build/platformclientv2/scimv2groupreference.go delete mode 100644 build/platformclientv2/scimv2memberreference.go delete mode 100644 build/platformclientv2/scimv2patchoperation.go delete mode 100644 build/platformclientv2/scimv2patchrequest.go delete mode 100644 build/platformclientv2/scimv2schemaattribute.go delete mode 100644 build/platformclientv2/scimv2schemadefinition.go delete mode 100644 build/platformclientv2/scimv2schemalistresponse.go delete mode 100644 build/platformclientv2/scimv2user.go delete mode 100644 build/platformclientv2/scorablesurvey.go delete mode 100644 build/platformclientv2/scoredagent.go delete mode 100644 build/platformclientv2/screenrecordingsession.go delete mode 100644 build/platformclientv2/screenrecordingsessionlisting.go delete mode 100644 build/platformclientv2/screenrecordingsessionrequest.go delete mode 100644 build/platformclientv2/screenshare.go delete mode 100644 build/platformclientv2/script.go delete mode 100644 build/platformclientv2/scriptentitylisting.go delete mode 100644 build/platformclientv2/scriptsapi.go delete mode 100644 build/platformclientv2/searchaggregation.go delete mode 100644 build/platformclientv2/searchapi.go delete mode 100644 build/platformclientv2/searchcriteria.go delete mode 100644 build/platformclientv2/searchrequest.go delete mode 100644 build/platformclientv2/searchsort.go delete mode 100644 build/platformclientv2/section.go delete mode 100644 build/platformclientv2/securesession.go delete mode 100644 build/platformclientv2/securesessionentitylisting.go delete mode 100644 build/platformclientv2/securityprofile.go delete mode 100644 build/platformclientv2/securityprofileentitylisting.go delete mode 100644 build/platformclientv2/segment.go delete mode 100644 build/platformclientv2/segmentdetailqueryclause.go delete mode 100644 build/platformclientv2/segmentdetailqueryfilter.go delete mode 100644 build/platformclientv2/segmentdetailquerypredicate.go delete mode 100644 build/platformclientv2/selectedcolumns.go delete mode 100644 build/platformclientv2/sendagentlessoutboundmessagerequest.go delete mode 100644 build/platformclientv2/sendagentlessoutboundmessageresponse.go delete mode 100644 build/platformclientv2/sequenceschedule.go delete mode 100644 build/platformclientv2/serverdate.go delete mode 100644 build/platformclientv2/servicecontext.go delete mode 100644 build/platformclientv2/servicegoalgroup.go delete mode 100644 build/platformclientv2/servicegoalgroupgoals.go delete mode 100644 build/platformclientv2/servicegoalgrouplist.go delete mode 100644 build/platformclientv2/servicelevel.go delete mode 100644 build/platformclientv2/setuuidatarequest.go delete mode 100644 build/platformclientv2/setwrapperdayofweek.go delete mode 100644 build/platformclientv2/share.go delete mode 100644 build/platformclientv2/sharedentity.go delete mode 100644 build/platformclientv2/sharedresponse.go delete mode 100644 build/platformclientv2/shareentitylisting.go delete mode 100644 build/platformclientv2/shiftstartvariance.go delete mode 100644 build/platformclientv2/shifttradeactivityrule.go delete mode 100644 build/platformclientv2/shifttradelistresponse.go delete mode 100644 build/platformclientv2/shifttradematchessummaryresponse.go delete mode 100644 build/platformclientv2/shifttradenotification.go delete mode 100644 build/platformclientv2/shifttraderesponse.go delete mode 100644 build/platformclientv2/shifttradesettings.go delete mode 100644 build/platformclientv2/shorttermforecast.go delete mode 100644 build/platformclientv2/shorttermforecastingsettings.go delete mode 100644 build/platformclientv2/shorttermforecastlistitemresponse.go delete mode 100644 build/platformclientv2/shorttermforecastlistresponse.go delete mode 100644 build/platformclientv2/shorttermforecastreference.go delete mode 100644 build/platformclientv2/shorttermforecastresponse.go delete mode 100644 build/platformclientv2/shrinkageoverride.go delete mode 100644 build/platformclientv2/shrinkageoverrides.go delete mode 100644 build/platformclientv2/signedurlresponse.go delete mode 100644 build/platformclientv2/sipdownloadresponse.go delete mode 100644 build/platformclientv2/sipsearchpublicrequest.go delete mode 100644 build/platformclientv2/sipsearchresult.go delete mode 100644 build/platformclientv2/site.go delete mode 100644 build/platformclientv2/siteentitylisting.go delete mode 100644 build/platformclientv2/skillentitylisting.go delete mode 100644 build/platformclientv2/skillstoremove.go delete mode 100644 build/platformclientv2/smsaddress.go delete mode 100644 build/platformclientv2/smsaddressentitylisting.go delete mode 100644 build/platformclientv2/smsaddressprovision.go delete mode 100644 build/platformclientv2/smsavailablephonenumber.go delete mode 100644 build/platformclientv2/smsavailablephonenumberentitylisting.go delete mode 100644 build/platformclientv2/smsphonenumber.go delete mode 100644 build/platformclientv2/smsphonenumberentitylisting.go delete mode 100644 build/platformclientv2/smsphonenumberprovision.go delete mode 100644 build/platformclientv2/socialexpression.go delete mode 100644 build/platformclientv2/socialhandle.go delete mode 100644 build/platformclientv2/sortitem.go delete mode 100644 build/platformclientv2/speechtextanalyticsapi.go delete mode 100644 build/platformclientv2/stateventcampaigntopicdatum.go delete mode 100644 build/platformclientv2/stateventcampaigntopicmetric.go delete mode 100644 build/platformclientv2/stateventcampaigntopicstatsnotification.go delete mode 100644 build/platformclientv2/stateventqueuetopicdatum.go delete mode 100644 build/platformclientv2/stateventqueuetopicmetric.go delete mode 100644 build/platformclientv2/stateventqueuetopicstatsnotification.go delete mode 100644 build/platformclientv2/stateventusertopicdatum.go delete mode 100644 build/platformclientv2/stateventusertopicmetric.go delete mode 100644 build/platformclientv2/stateventusertopicstatsnotification.go delete mode 100644 build/platformclientv2/station.go delete mode 100644 build/platformclientv2/stationentitylisting.go delete mode 100644 build/platformclientv2/stationsapi.go delete mode 100644 build/platformclientv2/stationsettings.go delete mode 100644 build/platformclientv2/statisticalresponse.go delete mode 100644 build/platformclientv2/statisticalsummary.go delete mode 100644 build/platformclientv2/streetaddress.go delete mode 100644 build/platformclientv2/subjectdivisiongrants.go delete mode 100644 build/platformclientv2/subjectdivisiongrantsentitylisting.go delete mode 100644 build/platformclientv2/subjectdivisions.go delete mode 100644 build/platformclientv2/subscriberresponse.go delete mode 100644 build/platformclientv2/subscriptionoverviewusage.go delete mode 100644 build/platformclientv2/suggestapi.go delete mode 100644 build/platformclientv2/suggestsearchcriteria.go delete mode 100644 build/platformclientv2/suggestsearchrequest.go delete mode 100644 build/platformclientv2/survey.go delete mode 100644 build/platformclientv2/surveyaggregatedatacontainer.go delete mode 100644 build/platformclientv2/surveyaggregatequeryclause.go delete mode 100644 build/platformclientv2/surveyaggregatequeryfilter.go delete mode 100644 build/platformclientv2/surveyaggregatequerypredicate.go delete mode 100644 build/platformclientv2/surveyaggregatequeryresponse.go delete mode 100644 build/platformclientv2/surveyaggregationquery.go delete mode 100644 build/platformclientv2/surveyaggregationview.go delete mode 100644 build/platformclientv2/surveyassignment.go delete mode 100644 build/platformclientv2/surveydetailqueryclause.go delete mode 100644 build/platformclientv2/surveydetailqueryfilter.go delete mode 100644 build/platformclientv2/surveydetailquerypredicate.go delete mode 100644 build/platformclientv2/surveyerrordetails.go delete mode 100644 build/platformclientv2/surveyform.go delete mode 100644 build/platformclientv2/surveyformandscoringset.go delete mode 100644 build/platformclientv2/surveyformentitylisting.go delete mode 100644 build/platformclientv2/surveyquestion.go delete mode 100644 build/platformclientv2/surveyquestiongroup.go delete mode 100644 build/platformclientv2/surveyquestiongroupscore.go delete mode 100644 build/platformclientv2/surveyquestionscore.go delete mode 100644 build/platformclientv2/surveyscoringset.go delete mode 100644 build/platformclientv2/systemmessagesystemmessage.go delete mode 100644 build/platformclientv2/systempresence.go delete mode 100644 build/platformclientv2/systemprompt.go delete mode 100644 build/platformclientv2/systempromptasset.go delete mode 100644 build/platformclientv2/systempromptassetentitylisting.go delete mode 100644 build/platformclientv2/systempromptentitylisting.go delete mode 100644 build/platformclientv2/tagqueryrequest.go delete mode 100644 build/platformclientv2/tagvalue.go delete mode 100644 build/platformclientv2/tagvalueentitylisting.go delete mode 100644 build/platformclientv2/telephonyapi.go delete mode 100644 build/platformclientv2/telephonyprovidersedgeapi.go delete mode 100644 build/platformclientv2/termattribute.go delete mode 100644 build/platformclientv2/testexecutionoperationresult.go delete mode 100644 build/platformclientv2/testexecutionresult.go delete mode 100644 build/platformclientv2/textmessagelisting.go delete mode 100644 build/platformclientv2/ticker.go delete mode 100644 build/platformclientv2/timeallowed.go delete mode 100644 build/platformclientv2/timeinterval.go delete mode 100644 build/platformclientv2/timeoffrequestentitylist.go delete mode 100644 build/platformclientv2/timeoffrequestlist.go delete mode 100644 build/platformclientv2/timeoffrequestlookup.go delete mode 100644 build/platformclientv2/timeoffrequestlookuplist.go delete mode 100644 build/platformclientv2/timeoffrequestnotification.go delete mode 100644 build/platformclientv2/timeoffrequestquerybody.go delete mode 100644 build/platformclientv2/timeoffrequestresponse.go delete mode 100644 build/platformclientv2/timeoffrequestsettings.go delete mode 100644 build/platformclientv2/timeslot.go delete mode 100644 build/platformclientv2/timezoneentitylisting.go delete mode 100644 build/platformclientv2/timezonemappingpreview.go delete mode 100644 build/platformclientv2/tokeninfo.go delete mode 100644 build/platformclientv2/tokensapi.go delete mode 100644 build/platformclientv2/transcriptionsettings.go delete mode 100644 build/platformclientv2/transcriptproperty.go delete mode 100644 build/platformclientv2/transferrequest.go delete mode 100644 build/platformclientv2/trunk.go delete mode 100644 build/platformclientv2/trunkbase.go delete mode 100644 build/platformclientv2/trunkbaseassignment.go delete mode 100644 build/platformclientv2/trunkbaseentitylisting.go delete mode 100644 build/platformclientv2/trunkconnectedstatus.go delete mode 100644 build/platformclientv2/trunkentitylisting.go delete mode 100644 build/platformclientv2/trunkerrorinfo.go delete mode 100644 build/platformclientv2/trunkerrorinfodetails.go delete mode 100644 build/platformclientv2/trunkmetabaseentitylisting.go delete mode 100644 build/platformclientv2/trunkmetrics.go delete mode 100644 build/platformclientv2/trunkmetricscalls.go delete mode 100644 build/platformclientv2/trunkmetricsnetworktypeip.go delete mode 100644 build/platformclientv2/trunkmetricsoptions.go delete mode 100644 build/platformclientv2/trunkmetricsqos.go delete mode 100644 build/platformclientv2/trunkmetricsregisters.go delete mode 100644 build/platformclientv2/trunkrecordingenabledcount.go delete mode 100644 build/platformclientv2/trustcreate.go delete mode 100644 build/platformclientv2/trustee.go delete mode 100644 build/platformclientv2/trusteeauditqueryrequest.go delete mode 100644 build/platformclientv2/trusteeauthorization.go delete mode 100644 build/platformclientv2/trusteebillingoverview.go delete mode 100644 build/platformclientv2/trustentitylisting.go delete mode 100644 build/platformclientv2/trustgroup.go delete mode 100644 build/platformclientv2/trustmembercreate.go delete mode 100644 build/platformclientv2/trustor.go delete mode 100644 build/platformclientv2/trustorauditqueryrequest.go delete mode 100644 build/platformclientv2/trustorentitylisting.go delete mode 100644 build/platformclientv2/trustrequest.go delete mode 100644 build/platformclientv2/trustrequestcreate.go delete mode 100644 build/platformclientv2/trustuser.go delete mode 100644 build/platformclientv2/trustuserdetails.go delete mode 100644 build/platformclientv2/trustuserentitylisting.go delete mode 100644 build/platformclientv2/ttsengineentity.go delete mode 100644 build/platformclientv2/ttsengineentitylisting.go delete mode 100644 build/platformclientv2/ttssettings.go delete mode 100644 build/platformclientv2/ttsvoiceentity.go delete mode 100644 build/platformclientv2/ttsvoiceentitylisting.go delete mode 100644 build/platformclientv2/twitterid.go delete mode 100644 build/platformclientv2/twitterintegration.go delete mode 100644 build/platformclientv2/twitterintegrationentitylisting.go delete mode 100644 build/platformclientv2/twitterintegrationrequest.go delete mode 100644 build/platformclientv2/unreadmetric.go delete mode 100644 build/platformclientv2/unreadstatus.go delete mode 100644 build/platformclientv2/unscheduledagentwarning.go delete mode 100644 build/platformclientv2/updateactioninput.go delete mode 100644 build/platformclientv2/updateactivitycoderequest.go delete mode 100644 build/platformclientv2/updatedraftinput.go delete mode 100644 build/platformclientv2/updatemanagementunitrequest.go delete mode 100644 build/platformclientv2/updatenotificationresponse.go delete mode 100644 build/platformclientv2/updatenotificationsrequest.go delete mode 100644 build/platformclientv2/updatenotificationsresponse.go delete mode 100644 build/platformclientv2/updateschedulingrunrequest.go delete mode 100644 build/platformclientv2/updateuser.go delete mode 100644 build/platformclientv2/updateweekschedulerequest.go delete mode 100644 build/platformclientv2/usage.go delete mode 100644 build/platformclientv2/usageitem.go delete mode 100644 build/platformclientv2/user.go delete mode 100644 build/platformclientv2/useractioncategory.go delete mode 100644 build/platformclientv2/useractioncategoryentitylisting.go delete mode 100644 build/platformclientv2/useragentinfo.go delete mode 100644 build/platformclientv2/useraggregatedatacontainer.go delete mode 100644 build/platformclientv2/useraggregatequeryclause.go delete mode 100644 build/platformclientv2/useraggregatequeryfilter.go delete mode 100644 build/platformclientv2/useraggregatequerypredicate.go delete mode 100644 build/platformclientv2/useraggregatequeryresponse.go delete mode 100644 build/platformclientv2/useraggregationquery.go delete mode 100644 build/platformclientv2/useraggregationview.go delete mode 100644 build/platformclientv2/userauthorization.go delete mode 100644 build/platformclientv2/userconversationseventmediasummary.go delete mode 100644 build/platformclientv2/userconversationseventmediasummarydetail.go delete mode 100644 build/platformclientv2/userconversationseventuserconversationsummary.go delete mode 100644 build/platformclientv2/userconversationsummary.go delete mode 100644 build/platformclientv2/userdetailqueryclause.go delete mode 100644 build/platformclientv2/userdetailqueryfilter.go delete mode 100644 build/platformclientv2/userdetailquerypredicate.go delete mode 100644 build/platformclientv2/userdetailsquery.go delete mode 100644 build/platformclientv2/userdevice.go delete mode 100644 build/platformclientv2/userentitylisting.go delete mode 100644 build/platformclientv2/userexpands.go delete mode 100644 build/platformclientv2/usergreetingeventgreeting.go delete mode 100644 build/platformclientv2/usergreetingeventgreetingaudiofile.go delete mode 100644 build/platformclientv2/usergreetingeventgreetingowner.go delete mode 100644 build/platformclientv2/userimage.go delete mode 100644 build/platformclientv2/userlanguageentitylisting.go delete mode 100644 build/platformclientv2/userlicenses.go delete mode 100644 build/platformclientv2/userlicensesentitylisting.go delete mode 100644 build/platformclientv2/userlistschedulerequestbody.go delete mode 100644 build/platformclientv2/userme.go delete mode 100644 build/platformclientv2/userobservationdatacontainer.go delete mode 100644 build/platformclientv2/userobservationquery.go delete mode 100644 build/platformclientv2/userobservationqueryclause.go delete mode 100644 build/platformclientv2/userobservationqueryfilter.go delete mode 100644 build/platformclientv2/userobservationquerypredicate.go delete mode 100644 build/platformclientv2/userobservationqueryresponse.go delete mode 100644 build/platformclientv2/userparam.go delete mode 100644 build/platformclientv2/userpresence.go delete mode 100644 build/platformclientv2/userprofile.go delete mode 100644 build/platformclientv2/userprofileentitylisting.go delete mode 100644 build/platformclientv2/userqueue.go delete mode 100644 build/platformclientv2/userqueueentitylisting.go delete mode 100644 build/platformclientv2/userrecording.go delete mode 100644 build/platformclientv2/userrecordingentitylisting.go delete mode 100644 build/platformclientv2/userrecordingsapi.go delete mode 100644 build/platformclientv2/userreference.go delete mode 100644 build/platformclientv2/userroutinglanguage.go delete mode 100644 build/platformclientv2/userroutinglanguagepost.go delete mode 100644 build/platformclientv2/userroutingskill.go delete mode 100644 build/platformclientv2/userroutingskillpost.go delete mode 100644 build/platformclientv2/userroutingstatuserrorinfo.go delete mode 100644 build/platformclientv2/userroutingstatusroutingstatus.go delete mode 100644 build/platformclientv2/userroutingstatususerparam.go delete mode 100644 build/platformclientv2/userroutingstatususerroutingstatus.go delete mode 100644 build/platformclientv2/usersapi.go delete mode 100644 build/platformclientv2/usersapi_test.go delete mode 100644 build/platformclientv2/userschedule.go delete mode 100644 build/platformclientv2/userscheduleactivity.go delete mode 100644 build/platformclientv2/userscheduleadherence.go delete mode 100644 build/platformclientv2/userschedulecontainer.go delete mode 100644 build/platformclientv2/userschedulefulldaytimeoffmarker.go delete mode 100644 build/platformclientv2/userscheduleshift.go delete mode 100644 build/platformclientv2/userschedulespartialuploadrequest.go delete mode 100644 build/platformclientv2/usersearchcriteria.go delete mode 100644 build/platformclientv2/usersearchrequest.go delete mode 100644 build/platformclientv2/userskillentitylisting.go delete mode 100644 build/platformclientv2/userssearchresponse.go delete mode 100644 build/platformclientv2/userstation.go delete mode 100644 build/platformclientv2/userstationchangetopicuser.go delete mode 100644 build/platformclientv2/userstationchangetopicuserstation.go delete mode 100644 build/platformclientv2/userstationchangetopicuserstations.go delete mode 100644 build/platformclientv2/userstations.go delete mode 100644 build/platformclientv2/usertokenstopictokennotification.go delete mode 100644 build/platformclientv2/usertokenstopicurireference.go delete mode 100644 build/platformclientv2/utilitiesapi.go delete mode 100644 build/platformclientv2/utilization.go delete mode 100644 build/platformclientv2/validateaddressrequest.go delete mode 100644 build/platformclientv2/validateaddressresponse.go delete mode 100644 build/platformclientv2/valuewrapperplanningperiodsettings.go delete mode 100644 build/platformclientv2/vendorconnectionrequest.go delete mode 100644 build/platformclientv2/video.go delete mode 100644 build/platformclientv2/viewfilter.go delete mode 100644 build/platformclientv2/visibilitycondition.go delete mode 100644 build/platformclientv2/vmpairinginfo.go delete mode 100644 build/platformclientv2/voicemail.go delete mode 100644 build/platformclientv2/voicemailapi.go delete mode 100644 build/platformclientv2/voicemailcopyrecord.go delete mode 100644 build/platformclientv2/voicemailgrouppolicy.go delete mode 100644 build/platformclientv2/voicemailmailboxinfo.go delete mode 100644 build/platformclientv2/voicemailmediainfo.go delete mode 100644 build/platformclientv2/voicemailmessage.go delete mode 100644 build/platformclientv2/voicemailmessageentitylisting.go delete mode 100644 build/platformclientv2/voicemailmessagestopicvoicemailmessage.go delete mode 100644 build/platformclientv2/voicemailorganizationpolicy.go delete mode 100644 build/platformclientv2/voicemailretentionpolicy.go delete mode 100644 build/platformclientv2/voicemailsearchcriteria.go delete mode 100644 build/platformclientv2/voicemailsearchrequest.go delete mode 100644 build/platformclientv2/voicemailssearchresponse.go delete mode 100644 build/platformclientv2/voicemailuserpolicy.go delete mode 100644 build/platformclientv2/webchatapi.go delete mode 100644 build/platformclientv2/webchatconfig.go delete mode 100644 build/platformclientv2/webchatconversation.go delete mode 100644 build/platformclientv2/webchatdeployment.go delete mode 100644 build/platformclientv2/webchatdeploymententitylisting.go delete mode 100644 build/platformclientv2/webchatguestmediarequest.go delete mode 100644 build/platformclientv2/webchatguestmediarequestentitylist.go delete mode 100644 build/platformclientv2/webchatmemberinfo.go delete mode 100644 build/platformclientv2/webchatmemberinfoentitylist.go delete mode 100644 build/platformclientv2/webchatmessage.go delete mode 100644 build/platformclientv2/webchatmessageentitylist.go delete mode 100644 build/platformclientv2/webchatroutingtarget.go delete mode 100644 build/platformclientv2/webchatsettings.go delete mode 100644 build/platformclientv2/webchattyping.go delete mode 100644 build/platformclientv2/weekschedule.go delete mode 100644 build/platformclientv2/weekschedulegenerationresult.go delete mode 100644 build/platformclientv2/weekschedulelistitemresponse.go delete mode 100644 build/platformclientv2/weekschedulelistresponse.go delete mode 100644 build/platformclientv2/weekschedulereference.go delete mode 100644 build/platformclientv2/weekscheduleresponse.go delete mode 100644 build/platformclientv2/weekshifttradematchessummaryresponse.go delete mode 100644 build/platformclientv2/wfmabandonrate.go delete mode 100644 build/platformclientv2/wfmagent.go delete mode 100644 build/platformclientv2/wfmagentscheduleupdatetopicuserreference.go delete mode 100644 build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdate.go delete mode 100644 build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification.go delete mode 100644 build/platformclientv2/wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker.go delete mode 100644 build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleactivity.go delete mode 100644 build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleshift.go delete mode 100644 build/platformclientv2/wfmaveragespeedofanswer.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaydatagroup.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayforecastdata.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaynotification.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayresult.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayscheduledata.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbuschedulereference.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicbushorttermforecastreference.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopicintradayperformancepredictiondata.go delete mode 100644 build/platformclientv2/wfmbuintradaydataupdatetopiclocaldate.go delete mode 100644 build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification.go delete mode 100644 build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult.go delete mode 100644 build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting.go delete mode 100644 build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopiclocaldate.go delete mode 100644 build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicuserreference.go delete mode 100644 build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata.go delete mode 100644 build/platformclientv2/wfmbuschedulequeryresulttopicbuschedulesearchresultnotification.go delete mode 100644 build/platformclientv2/wfmbuscheduleruntopicbuschedulereference.go delete mode 100644 build/platformclientv2/wfmbuscheduleruntopicbuschedulerun.go delete mode 100644 build/platformclientv2/wfmbuscheduleruntopicbuschedulingrunprogressnotification.go delete mode 100644 build/platformclientv2/wfmbuscheduleruntopiclocaldate.go delete mode 100644 build/platformclientv2/wfmbuscheduleruntopicuserreference.go delete mode 100644 build/platformclientv2/wfmbuschedulesearchresulttopicbuschedulesearchresultnotification.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicbumanagementunitschedulesummary.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicbuschedulegenerationresultsummary.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicbuschedulemetadata.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicbuschedulenotification.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicbushorttermforecastreference.go delete mode 100644 build/platformclientv2/wfmbuscheduletopiclocaldate.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicmanagementunit.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicuserreference.go delete mode 100644 build/platformclientv2/wfmbuscheduletopicwfmversionedentitymetadata.go delete mode 100644 build/platformclientv2/wfmforecastmodification.go delete mode 100644 build/platformclientv2/wfmforecastmodificationattributes.go delete mode 100644 build/platformclientv2/wfmforecastmodificationintervaloffsetvalue.go delete mode 100644 build/platformclientv2/wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice.go delete mode 100644 build/platformclientv2/wfmhistoricaladherencequery.go delete mode 100644 build/platformclientv2/wfmhistoricaladherencequeryforusers.go delete mode 100644 build/platformclientv2/wfmhistoricaladherenceresponse.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradaydatagroup.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradaydataupdate.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradayforecastdata.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalagentdata.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalqueuedata.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradaymetric.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionagentdata.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionqueuedata.go delete mode 100644 build/platformclientv2/wfmintradaydataupdatetopicintradayscheduledata.go delete mode 100644 build/platformclientv2/wfmintradayqueuelisting.go delete mode 100644 build/platformclientv2/wfmmoveagentscompletetopicmanagementunit.go delete mode 100644 build/platformclientv2/wfmmoveagentscompletetopicuserreference.go delete mode 100644 build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentdata.go delete mode 100644 build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentscomplete.go delete mode 100644 build/platformclientv2/wfmmovemanagementunittopicbusinessunit.go delete mode 100644 build/platformclientv2/wfmmovemanagementunittopicmovemanagementunitnotification.go delete mode 100644 build/platformclientv2/wfmscheduletopicwfmschedulenotification.go delete mode 100644 build/platformclientv2/wfmservicelevel.go delete mode 100644 build/platformclientv2/wfmtimeoffrequestupdatetopictimeoffrequestupdate.go delete mode 100644 build/platformclientv2/wfmtimeoffrequestupdatetopicuserreference.go delete mode 100644 build/platformclientv2/wfmtimezone.go delete mode 100644 build/platformclientv2/wfmupdateagentdetailstopicwfmupdateagentdetailscomplete.go delete mode 100644 build/platformclientv2/wfmuserentitylisting.go delete mode 100644 build/platformclientv2/wfmusernotification.go delete mode 100644 build/platformclientv2/wfmusernotificationtopicshifttradenotification.go delete mode 100644 build/platformclientv2/wfmusernotificationtopictimeoffrequestnotification.go delete mode 100644 build/platformclientv2/wfmusernotificationtopicuserreference.go delete mode 100644 build/platformclientv2/wfmusernotificationtopicwfmusernotification.go delete mode 100644 build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicqueuereference.go delete mode 100644 build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserreference.go delete mode 100644 build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate.go delete mode 100644 build/platformclientv2/wfmuserscheduleadherenceupdatedtopicqueuereference.go delete mode 100644 build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserreference.go delete mode 100644 build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate.go delete mode 100644 build/platformclientv2/wfmversionedentitymetadata.go delete mode 100644 build/platformclientv2/whatsappid.go delete mode 100644 build/platformclientv2/whatsappintegration.go delete mode 100644 build/platformclientv2/whatsappintegrationentitylisting.go delete mode 100644 build/platformclientv2/whatsappintegrationrequest.go delete mode 100644 build/platformclientv2/whatsappintegrationupdaterequest.go delete mode 100644 build/platformclientv2/widgetclientconfig.go delete mode 100644 build/platformclientv2/widgetclientconfigthirdparty.go delete mode 100644 build/platformclientv2/widgetclientconfigv1.go delete mode 100644 build/platformclientv2/widgetclientconfigv1http.go delete mode 100644 build/platformclientv2/widgetclientconfigv2.go delete mode 100644 build/platformclientv2/widgetdeployment.go delete mode 100644 build/platformclientv2/widgetdeploymententitylisting.go delete mode 100644 build/platformclientv2/widgetsapi.go delete mode 100644 build/platformclientv2/workforcemanagementapi.go delete mode 100644 build/platformclientv2/workplan.go delete mode 100644 build/platformclientv2/workplanactivity.go delete mode 100644 build/platformclientv2/workplanlistitemresponse.go delete mode 100644 build/platformclientv2/workplanlistresponse.go delete mode 100644 build/platformclientv2/workplanreference.go delete mode 100644 build/platformclientv2/workplanshift.go delete mode 100644 build/platformclientv2/workspace.go delete mode 100644 build/platformclientv2/workspacecreate.go delete mode 100644 build/platformclientv2/workspaceentitylisting.go delete mode 100644 build/platformclientv2/workspacemember.go delete mode 100644 build/platformclientv2/workspacememberentitylisting.go delete mode 100644 build/platformclientv2/workspacesummary.go delete mode 100644 build/platformclientv2/wrapup.go delete mode 100644 build/platformclientv2/wrapupcode.go delete mode 100644 build/platformclientv2/wrapupcodeentitylisting.go delete mode 100644 build/platformclientv2/wrapupcodemapping.go delete mode 100644 build/platformclientv2/wrapupcodereference.go delete mode 100644 build/platformclientv2/writabledialercontact.go delete mode 100644 build/platformclientv2/writabledivision.go delete mode 100644 build/platformclientv2/writableentity.go rename {build/docs => docs}/index.md (98%) rename {build/platformclientv2 => platformclientv2}/buagentscheduleactivity.go (100%) rename {build/platformclientv2 => platformclientv2}/buagentschedulepublishedschedulereference.go (100%) rename {build/platformclientv2 => platformclientv2}/buagentschedulesearchresponse.go (100%) rename {build/platformclientv2 => platformclientv2}/buagentscheduleshift.go (100%) rename {build/platformclientv2 => platformclientv2}/buagentschedulessearchresponse.go (100%) rename {build/platformclientv2 => platformclientv2}/buasyncagentschedulessearchresponse.go (100%) rename {build/platformclientv2 => platformclientv2}/bufulldaytimeoffmarker.go (100%) rename {build/platformclientv2 => platformclientv2}/buschedulereference.go (100%) rename {build/platformclientv2 => platformclientv2}/datatableexportjob.go (100%) rename {build/platformclientv2 => platformclientv2}/datatableimportjob.go (100%) rename {build/platformclientv2 => platformclientv2}/divspermittedentitylisting.go (100%) rename {build/platformclientv2 => platformclientv2}/entitylisting.go (100%) rename {build/platformclientv2 => platformclientv2}/wemcoachingappointmenttopiccoachingappointmentconversation.go (100%) rename {build/platformclientv2 => platformclientv2}/wemcoachingappointmenttopiccoachingappointmentdocument.go (100%) rename {build/platformclientv2 => platformclientv2}/wemcoachingappointmenttopiccoachingappointmentnotification.go (100%) rename {build/platformclientv2 => platformclientv2}/wemcoachingappointmenttopicuserreference.go (100%) diff --git a/README.md b/README.md index d6a61d8c4..af9613f42 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ title: Platform API Client SDK - Go A Go package to interface with the Genesys Cloud Platform API. View the documentation on the [pkg.go.dev](https://pkg.go.dev/github.com/MyPureCloud/platform-client-sdk-go/platformclientv2). Browse the source code on [Github](https://github.com/MyPureCloud/platform-client-sdk-go). -Latest version: 3.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]() +Latest version: 4.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]() ## Get SDK Package diff --git a/build/.gitignore b/build/.gitignore deleted file mode 100644 index a8129ca55..000000000 --- a/build/.gitignore +++ /dev/null @@ -1,25 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so -bin - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/build/.swagger-codegen-ignore b/build/.swagger-codegen-ignore deleted file mode 100644 index 19d337718..000000000 --- a/build/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# Thsi matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/build/Makefile b/build/Makefile deleted file mode 100644 index 586659b99..000000000 --- a/build/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -PACKAGE_NAME = platformclientv2 -ROOT_DIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) - -build: - cd ${ROOT_DIR}; go build -o ./bin/${PACKAGE_NAME} ./${PACKAGE_NAME} - -test: - cd ${ROOT_DIR}; go test -v -failfast ./${PACKAGE_NAME} diff --git a/build/README.md b/build/README.md deleted file mode 100644 index d6a61d8c4..000000000 --- a/build/README.md +++ /dev/null @@ -1,121 +0,0 @@ ---- -title: Platform API Client SDK - Go ---- - -A Go package to interface with the Genesys Cloud Platform API. View the documentation on the [pkg.go.dev](https://pkg.go.dev/github.com/MyPureCloud/platform-client-sdk-go/platformclientv2). Browse the source code on [Github](https://github.com/MyPureCloud/platform-client-sdk-go). - -Latest version: 3.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]() - -## Get SDK Package - -Retrieve the package from https://github.com/MyPureCloud/platform-client-sdk-go using `go get`: - -```go -go get github.com/mypurecloud/platform-client-sdk-go/platformclientv2 -``` - -## Using the SDK - -### Importing the package - -```go -import ( - "github.com/MyPureCloud/platform-client-sdk-go/platformclientv2" -) -``` - -### Configuring the SDK - -The SDK can be configured by setting properties on a `Configuration` instance. Applications that are using a single access token (most use cases) can use the default configuration. - -The default configuration will be used when creating new API instances without supplying the config. - -```go -// Get default config to set config options -config := platformclientv2.GetDefaultConfiguration() - -// Create API instance using default config -usersAPI := platformclientv2.NewUsersApi() -``` - -Applications that will be making requests using multiple access tokens can create multiple configuration instances and authorize them individually. This is a common pattern when using the SDK in a backend web server where multiple Genesys Cloud users will authenticate using an auth code grant. - -When creating configuration instances, they must be used when creating new API instances. - -```go -// Create new config -config := NewConfiguration() - -// Create API instance using config -usersAPI := platformclientv2.NewUsersApiWithConfig(config) -``` - -#### Setting the environment - -To connect to regional Genesys Cloud instances, provide the Platform API's base path: - -```go -config.BasePath = "https://api.mypurecloud.jp" -``` - -#### Setting the access token - -If using a grant other than client credentials, the access token can be set manually: - -```go -config.AccessToken = "anaccesstokenobtainedmanuallyfromanoauthgrant" -``` - -#### Enable debug logging - -Enabling debug logging will trace out information about all requests and responses: - -```go -config.SetDebug(false) -``` - -### Authorization - -#### Client Credentials - -The SDK provides a helper to authorize using client credentials. Use the `AuthorizeClientCredentials` function on the client to make a request to Genesys Cloud to exchange the client id and secret for an access token. If no error was returned, the configuration instance is now authorized and can begin making API requests. - -```go -err := config.AuthorizeClientCredentials(os.Getenv("PURECLOUD_CLIENT_ID"), os.Getenv("PURECLOUD_CLIENT_SECRET")) -if err != nil { - panic(err) -} -``` - -### Making Requests - -Once the SDK is authorized, API requests can be made. Each function on the API instance returns three values, or just the latter two if the resource does not return any value (e.g. a DELETE operation): - -* A struct representing the API response. This will be nil if any error occurred. -* An `APIResponse` instance providing extended information about the response. This is useful for debugging, custom logging, and advanced error handling. This may be nil under certain error circumstances. This will have a value when the API returns an error. -* An error, if any error occurred at any point during processing. - -```go -userID := "asdf1234-5678-90ab-cde1-123456789012" -usersAPI := platformclientv2.NewUsersApi() - -user, response, err := usersAPI.GetUser(userID, make([]string, 0), "") -fmt.Printf("Response:\n Success: %v\n Status code: %v\n Correlation ID: %v\n", response.IsSuccess, response.StatusCode, response.CorrelationID) -if err != nil { - fmt.Printf("Error calling GetUser: %v\n", err) -} else { - fmt.Printf("Hello, %v\n", *user.Name) -} -``` - - -## Versioning - -The SDK's version is incremented according to the [Semantic Versioning Specification](https://semver.org/). The decision to increment version numbers is determined by [diffing the Platform API's swagger](https://github.com/purecloudlabs/platform-client-sdk-common/blob/master/modules/swaggerDiff.js) for automated builds, and optionally forcing a version bump when a build is triggered manually (e.g. releasing a bugfix). - - -## Support - -This package is intended to be forwards compatible with v2 of PureCloud's Platform API. While the general policy for the API is not to introduce breaking changes, there are certain additions and changes to the API that cause breaking changes for the SDK, often due to the way the API is expressed in its swagger definition. Because of this, the SDK can have a major version bump while the API remains at major version 2. While the SDK is intended to be forward compatible, patches will only be released to the latest version. For these reasons, it is strongly recommended that all applications using this SDK are kept up to date and use the latest version of the SDK. - -For any issues, questions, or suggestions for the SDK, visit the [PureCloud Developer Forum](https://developer.mypurecloud.com/forum/). diff --git a/build/platformclientv2/action.go b/build/platformclientv2/action.go deleted file mode 100644 index 45d484c5b..000000000 --- a/build/platformclientv2/action.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Action -type Action struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // IntegrationId - The ID of the integration for which this action is associated - IntegrationId *string `json:"integrationId,omitempty"` - - - // Category - Category of Action - Category *string `json:"category,omitempty"` - - - // Contract - Action contract - Contract *Actioncontract `json:"contract,omitempty"` - - - // Version - Version of this action - Version *int32 `json:"version,omitempty"` - - - // Secure - Indication of whether or not the action is designed to accept sensitive data - Secure *bool `json:"secure,omitempty"` - - - // Config - Configuration to support request and response processing - Config *Actionconfig `json:"config,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Action) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actionconfig.go b/build/platformclientv2/actionconfig.go deleted file mode 100644 index 26cfcb5f2..000000000 --- a/build/platformclientv2/actionconfig.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actionconfig - Defines components of the Action Config. -type Actionconfig struct { - // Request - Configuration of outbound request. - Request *Requestconfig `json:"request,omitempty"` - - - // Response - Configuration of response processing. - Response *Responseconfig `json:"response,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actionconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actioncontract.go b/build/platformclientv2/actioncontract.go deleted file mode 100644 index 2c4106990..000000000 --- a/build/platformclientv2/actioncontract.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actioncontract - This resource contains all of the schemas needed to define the inputs and outputs, of a single Action. -type Actioncontract struct { - // Output - The output to expect when executing this action. - Output *Actionoutput `json:"output,omitempty"` - - - // Input - The input required when executing this action. - Input *Actioninput `json:"input,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actioncontract) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actioncontractinput.go b/build/platformclientv2/actioncontractinput.go deleted file mode 100644 index e8c9dfd64..000000000 --- a/build/platformclientv2/actioncontractinput.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actioncontractinput - Contract definition. -type Actioncontractinput struct { - // Input - Execution input contract - Input *Postinputcontract `json:"input,omitempty"` - - - // Output - Execution output contract - Output *Postoutputcontract `json:"output,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actioncontractinput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actionentitylisting.go b/build/platformclientv2/actionentitylisting.go deleted file mode 100644 index 6ce5c6e19..000000000 --- a/build/platformclientv2/actionentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actionentitylisting -type Actionentitylisting struct { - // Entities - Entities *[]Action `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actionentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actioninput.go b/build/platformclientv2/actioninput.go deleted file mode 100644 index c12f2ec33..000000000 --- a/build/platformclientv2/actioninput.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actioninput - Input requirements of Action. -type Actioninput struct { - // InputSchema - JSON Schema that defines the body of the request that the client (edge/architect/postman) is sending to the service, on the /execute path. If the 'flatten' query parameter is omitted or false, this field will be returned. Either inputSchema or inputSchemaFlattened will be returned, not both. - InputSchema *Jsonschemadocument `json:"inputSchema,omitempty"` - - - // InputSchemaFlattened - JSON Schema that defines the body of the request that the client (edge/architect/postman) is sending to the service, on the /execute path. The schema is transformed based on Architect's flattened format. If the 'flatten' query parameter is supplied as true, this field will be returned. Either inputSchema or inputSchemaFlattened will be returned, not both. - InputSchemaFlattened *Jsonschemadocument `json:"inputSchemaFlattened,omitempty"` - - - // InputSchemaUri - The URI of the input schema - InputSchemaUri *string `json:"inputSchemaUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actioninput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actionoutput.go b/build/platformclientv2/actionoutput.go deleted file mode 100644 index a70bc87ad..000000000 --- a/build/platformclientv2/actionoutput.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actionoutput - Output definition of Action. -type Actionoutput struct { - // SuccessSchema - JSON schema that defines the transformed, successful result that will be sent back to the caller. If the 'flatten' query parameter is omitted or false, this field will be returned. Either successSchema or successSchemaFlattened will be returned, not both. - SuccessSchema *Jsonschemadocument `json:"successSchema,omitempty"` - - - // SuccessSchemaUri - URI to retrieve success schema - SuccessSchemaUri *string `json:"successSchemaUri,omitempty"` - - - // ErrorSchema - JSON schema that defines the body of response when request is not successful. If the 'flatten' query parameter is omitted or false, this field will be returned. Either errorSchema or errorSchemaFlattened will be returned, not both. - ErrorSchema *Jsonschemadocument `json:"errorSchema,omitempty"` - - - // ErrorSchemaUri - URI to retrieve error schema - ErrorSchemaUri *string `json:"errorSchemaUri,omitempty"` - - - // SuccessSchemaFlattened - JSON schema that defines the transformed, successful result that will be sent back to the caller. The schema is transformed based on Architect's flattened format. If the 'flatten' query parameter is supplied as true, this field will be returned. Either successSchema or successSchemaFlattened will be returned, not both. - SuccessSchemaFlattened *Jsonschemadocument `json:"successSchemaFlattened,omitempty"` - - - // ErrorSchemaFlattened - JSON schema that defines the body of response when request is not successful. The schema is transformed based on Architect's flattened format. If the 'flatten' query parameter is supplied as true, this field will be returned. Either errorSchema or errorSchemaFlattened will be returned, not both. - ErrorSchemaFlattened *map[string]interface{} `json:"errorSchemaFlattened,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actionoutput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/actions.go b/build/platformclientv2/actions.go deleted file mode 100644 index 7de9226d4..000000000 --- a/build/platformclientv2/actions.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Actions -type Actions struct { - // SkillsToRemove - SkillsToRemove *[]Skillstoremove `json:"skillsToRemove,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Actions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/activealertcount.go b/build/platformclientv2/activealertcount.go deleted file mode 100644 index ef73f4dcc..000000000 --- a/build/platformclientv2/activealertcount.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Activealertcount -type Activealertcount struct { - // Count - The count of active alerts for a user. - Count *int32 `json:"count,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Activealertcount) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/activitycode.go b/build/platformclientv2/activitycode.go deleted file mode 100644 index 4df839eb0..000000000 --- a/build/platformclientv2/activitycode.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Activitycode - Activity code data -type Activitycode struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // Name - The name of the activity code. Default activity codes will be created with an empty name - Name *string `json:"name,omitempty"` - - - // IsActive - Whether this activity code is active or has been deleted - IsActive *bool `json:"isActive,omitempty"` - - - // IsDefault - Whether this is a default activity code - IsDefault *bool `json:"isDefault,omitempty"` - - - // Category - The activity code's category. - Category *string `json:"category,omitempty"` - - - // LengthInMinutes - The default length of the activity in minutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // CountsAsPaidTime - Whether an agent is paid while performing this activity - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // CountsAsWorkTime - Indicates whether or not the activity should be counted as contiguous work time for calculating daily constraints - CountsAsWorkTime *bool `json:"countsAsWorkTime,omitempty"` - - - // AgentTimeOffSelectable - Whether an agent can select this activity code when creating or editing a time off request. Null if the activity's category is not time off. - AgentTimeOffSelectable *bool `json:"agentTimeOffSelectable,omitempty"` - - - // Metadata - Version metadata for the associated management unit's list of activity codes - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Activitycode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/activitycodecontainer.go b/build/platformclientv2/activitycodecontainer.go deleted file mode 100644 index 533ebc895..000000000 --- a/build/platformclientv2/activitycodecontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Activitycodecontainer - Container for a map of ActivityCodeId to ActivityCode -type Activitycodecontainer struct { - // ActivityCodes - Map of activity code id to activity code - ActivityCodes *map[string]Activitycode `json:"activityCodes,omitempty"` - - - // Metadata - Version metadata for the associated management unit's list of activity codes - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Activitycodecontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/acwsettings.go b/build/platformclientv2/acwsettings.go deleted file mode 100644 index ec06c185a..000000000 --- a/build/platformclientv2/acwsettings.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Acwsettings -type Acwsettings struct { - // WrapupPrompt - This field controls how the UI prompts the agent for a wrapup. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // TimeoutMs - The amount of time the agent can stay in ACW (Min: 1 sec, Max: 1 day). Can only be used when ACW is MANDATORY_TIMEOUT or MANDATORY_FORCED_TIMEOUT. - TimeoutMs *int32 `json:"timeoutMs,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Acwsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/additionalmessage.go b/build/platformclientv2/additionalmessage.go deleted file mode 100644 index 6c7d0fa0b..000000000 --- a/build/platformclientv2/additionalmessage.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Additionalmessage -type Additionalmessage struct { - // TextBody - The body of the text message. - TextBody *string `json:"textBody,omitempty"` - - - // MediaIds - The media ids associated with the text message. - MediaIds *[]string `json:"mediaIds,omitempty"` - - - // StickerIds - The sticker ids associated with the text message. - StickerIds *[]string `json:"stickerIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Additionalmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/address.go b/build/platformclientv2/address.go deleted file mode 100644 index de17fe8d1..000000000 --- a/build/platformclientv2/address.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Address -type Address struct { - // Name - This will be nameRaw if present, or a locality lookup of the address field otherwise. - Name *string `json:"name,omitempty"` - - - // NameRaw - The name as close to the bits on the wire as possible. - NameRaw *string `json:"nameRaw,omitempty"` - - - // AddressNormalized - The normalized address. This field is acquired from the Address Normalization Table. The addressRaw could have gone through some transformations, such as only using the numeric portion, before being run through the Address Normalization Table. - AddressNormalized *string `json:"addressNormalized,omitempty"` - - - // AddressRaw - The address as close to the bits on the wire as possible. - AddressRaw *string `json:"addressRaw,omitempty"` - - - // AddressDisplayable - The displayable address. This field is acquired from the Address Normalization Table. The addressRaw could have gone through some transformations, such as only using the numeric portion, before being run through the Address Normalization Table. - AddressDisplayable *string `json:"addressDisplayable,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Address) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/addressableentityref.go b/build/platformclientv2/addressableentityref.go deleted file mode 100644 index 2c4b65301..000000000 --- a/build/platformclientv2/addressableentityref.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Addressableentityref -type Addressableentityref struct { - // Id - Id *string `json:"id,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Addressableentityref) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/addressablelicensedefinition.go b/build/platformclientv2/addressablelicensedefinition.go deleted file mode 100644 index 3be2c7442..000000000 --- a/build/platformclientv2/addressablelicensedefinition.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Addressablelicensedefinition -type Addressablelicensedefinition struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Addressablelicensedefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adfs.go b/build/platformclientv2/adfs.go deleted file mode 100644 index 6c228e805..000000000 --- a/build/platformclientv2/adfs.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Adfs -type Adfs struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // RelyingPartyIdentifier - RelyingPartyIdentifier *string `json:"relyingPartyIdentifier,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adfs) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adherencesettings.go b/build/platformclientv2/adherencesettings.go deleted file mode 100644 index 3d83b38ff..000000000 --- a/build/platformclientv2/adherencesettings.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Adherencesettings - Schedule Adherence Configuration -type Adherencesettings struct { - // SevereAlertThresholdMinutes - The threshold in minutes where an alert will be triggered when an agent is considered severely out of adherence - SevereAlertThresholdMinutes *int32 `json:"severeAlertThresholdMinutes,omitempty"` - - - // AdherenceTargetPercent - Target adherence percentage - AdherenceTargetPercent *int32 `json:"adherenceTargetPercent,omitempty"` - - - // AdherenceExceptionThresholdSeconds - The threshold in seconds for which agents should not be penalized for being momentarily out of adherence - AdherenceExceptionThresholdSeconds *int32 `json:"adherenceExceptionThresholdSeconds,omitempty"` - - - // NonOnQueueActivitiesEquivalent - Whether to treat all non-on-queue activities as equivalent for adherence purposes - NonOnQueueActivitiesEquivalent *bool `json:"nonOnQueueActivitiesEquivalent,omitempty"` - - - // TrackOnQueueActivity - Whether to track on-queue activities - TrackOnQueueActivity *bool `json:"trackOnQueueActivity,omitempty"` - - - // IgnoredActivityCategories - Activity categories that should be ignored for adherence purposes - IgnoredActivityCategories *Ignoredactivitycategories `json:"ignoredActivityCategories,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adherencesettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adhocrecordingtopicconversationdata.go b/build/platformclientv2/adhocrecordingtopicconversationdata.go deleted file mode 100644 index bd1b88f7a..000000000 --- a/build/platformclientv2/adhocrecordingtopicconversationdata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Adhocrecordingtopicconversationdata -type Adhocrecordingtopicconversationdata struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adhocrecordingtopicconversationdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adhocrecordingtopiclockdata.go b/build/platformclientv2/adhocrecordingtopiclockdata.go deleted file mode 100644 index 37c348514..000000000 --- a/build/platformclientv2/adhocrecordingtopiclockdata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Adhocrecordingtopiclockdata -type Adhocrecordingtopiclockdata struct { - // LockedBy - LockedBy *Adhocrecordingtopicuserdata `json:"lockedBy,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateExpires - DateExpires *time.Time `json:"dateExpires,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adhocrecordingtopiclockdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adhocrecordingtopicrecordingdatav2.go b/build/platformclientv2/adhocrecordingtopicrecordingdatav2.go deleted file mode 100644 index 3293436a8..000000000 --- a/build/platformclientv2/adhocrecordingtopicrecordingdatav2.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Adhocrecordingtopicrecordingdatav2 -type Adhocrecordingtopicrecordingdatav2 struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Workspace - Workspace *Adhocrecordingtopicworkspacedata `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Adhocrecordingtopicuserdata `json:"createdBy,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // Filename - Filename *string `json:"filename,omitempty"` - - - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // DateUploaded - DateUploaded *time.Time `json:"dateUploaded,omitempty"` - - - // UploadedBy - UploadedBy *Adhocrecordingtopicuserdata `json:"uploadedBy,omitempty"` - - - // LockInfo - LockInfo *Adhocrecordingtopiclockdata `json:"lockInfo,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // DurationMillieconds - DurationMillieconds *int32 `json:"durationMillieconds,omitempty"` - - - // Conversation - Conversation *Adhocrecordingtopicconversationdata `json:"conversation,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adhocrecordingtopicrecordingdatav2) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adhocrecordingtopicuserdata.go b/build/platformclientv2/adhocrecordingtopicuserdata.go deleted file mode 100644 index 4ac2ad791..000000000 --- a/build/platformclientv2/adhocrecordingtopicuserdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Adhocrecordingtopicuserdata -type Adhocrecordingtopicuserdata struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adhocrecordingtopicuserdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adhocrecordingtopicworkspacedata.go b/build/platformclientv2/adhocrecordingtopicworkspacedata.go deleted file mode 100644 index 8d7b03786..000000000 --- a/build/platformclientv2/adhocrecordingtopicworkspacedata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Adhocrecordingtopicworkspacedata -type Adhocrecordingtopicworkspacedata struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adhocrecordingtopicworkspacedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/adjacents.go b/build/platformclientv2/adjacents.go deleted file mode 100644 index 7df13c35f..000000000 --- a/build/platformclientv2/adjacents.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Adjacents -type Adjacents struct { - // Superiors - Superiors *[]User `json:"superiors,omitempty"` - - - // Siblings - Siblings *[]User `json:"siblings,omitempty"` - - - // DirectReports - DirectReports *[]User `json:"directReports,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Adjacents) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/admintimeoffrequestpatch.go b/build/platformclientv2/admintimeoffrequestpatch.go deleted file mode 100644 index 857840a9a..000000000 --- a/build/platformclientv2/admintimeoffrequestpatch.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Admintimeoffrequestpatch -type Admintimeoffrequestpatch struct { - // Status - The status of this time off request - Status *string `json:"status,omitempty"` - - - // ActivityCodeId - The ID of the activity code associated with this time off request. Activity code must be of the TimeOff category - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Notes - Notes about the time off request - Notes *string `json:"notes,omitempty"` - - - // FullDayManagementUnitDates - A set of dates in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - - - // PartialDayStartDateTimes - A set of start date-times in ISO-8601 format for partial day requests. - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // DailyDurationMinutes - The daily duration of this time off request in minutes - DailyDurationMinutes *int32 `json:"dailyDurationMinutes,omitempty"` - - - // Metadata - Version metadata for the time off request - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Admintimeoffrequestpatch) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agent.go b/build/platformclientv2/agent.go deleted file mode 100644 index d19e0ce1f..000000000 --- a/build/platformclientv2/agent.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Agent -type Agent struct { - // Stage - The current stage for this agent - Stage *string `json:"stage,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivity.go b/build/platformclientv2/agentactivity.go deleted file mode 100644 index 5d88aab4c..000000000 --- a/build/platformclientv2/agentactivity.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Agentactivity -type Agentactivity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Agent - Agent *User `json:"agent,omitempty"` - - - // NumEvaluations - NumEvaluations *int32 `json:"numEvaluations,omitempty"` - - - // AverageEvaluationScore - AverageEvaluationScore *int32 `json:"averageEvaluationScore,omitempty"` - - - // NumCriticalEvaluations - NumCriticalEvaluations *int32 `json:"numCriticalEvaluations,omitempty"` - - - // AverageCriticalScore - AverageCriticalScore *float32 `json:"averageCriticalScore,omitempty"` - - - // HighestEvaluationScore - HighestEvaluationScore *float32 `json:"highestEvaluationScore,omitempty"` - - - // LowestEvaluationScore - LowestEvaluationScore *float32 `json:"lowestEvaluationScore,omitempty"` - - - // HighestCriticalScore - HighestCriticalScore *float32 `json:"highestCriticalScore,omitempty"` - - - // LowestCriticalScore - LowestCriticalScore *float32 `json:"lowestCriticalScore,omitempty"` - - - // AgentEvaluatorActivityList - AgentEvaluatorActivityList *[]Agentevaluatoractivity `json:"agentEvaluatorActivityList,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivitychangedtopicagentactivity.go b/build/platformclientv2/agentactivitychangedtopicagentactivity.go deleted file mode 100644 index dbe34f4b7..000000000 --- a/build/platformclientv2/agentactivitychangedtopicagentactivity.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Agentactivitychangedtopicagentactivity -type Agentactivitychangedtopicagentactivity struct { - // Id - Id *string `json:"id,omitempty"` - - - // RoutingStatus - RoutingStatus *Agentactivitychangedtopicroutingstatus `json:"routingStatus,omitempty"` - - - // Presence - Presence *Agentactivitychangedtopicpresence `json:"presence,omitempty"` - - - // OutOfOffice - OutOfOffice *Agentactivitychangedtopicoutofoffice `json:"outOfOffice,omitempty"` - - - // ActiveQueueIds - ActiveQueueIds *[]string `json:"activeQueueIds,omitempty"` - - - // DateActiveQueuesChanged - DateActiveQueuesChanged *time.Time `json:"dateActiveQueuesChanged,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivitychangedtopicagentactivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivitychangedtopicorganizationpresence.go b/build/platformclientv2/agentactivitychangedtopicorganizationpresence.go deleted file mode 100644 index 28660d9f2..000000000 --- a/build/platformclientv2/agentactivitychangedtopicorganizationpresence.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Agentactivitychangedtopicorganizationpresence -type Agentactivitychangedtopicorganizationpresence struct { - // Id - Id *string `json:"id,omitempty"` - - - // SystemPresence - SystemPresence *string `json:"systemPresence,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivitychangedtopicorganizationpresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivitychangedtopicoutofoffice.go b/build/platformclientv2/agentactivitychangedtopicoutofoffice.go deleted file mode 100644 index 44a5e5dfe..000000000 --- a/build/platformclientv2/agentactivitychangedtopicoutofoffice.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Agentactivitychangedtopicoutofoffice -type Agentactivitychangedtopicoutofoffice struct { - // Active - Active *bool `json:"active,omitempty"` - - - // ModifiedDate - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivitychangedtopicoutofoffice) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivitychangedtopicpresence.go b/build/platformclientv2/agentactivitychangedtopicpresence.go deleted file mode 100644 index 5dbcabc86..000000000 --- a/build/platformclientv2/agentactivitychangedtopicpresence.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Agentactivitychangedtopicpresence -type Agentactivitychangedtopicpresence struct { - // PresenceDefinition - PresenceDefinition *Agentactivitychangedtopicorganizationpresence `json:"presenceDefinition,omitempty"` - - - // PresenceMessage - PresenceMessage *string `json:"presenceMessage,omitempty"` - - - // ModifiedDate - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivitychangedtopicpresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivitychangedtopicroutingstatus.go b/build/platformclientv2/agentactivitychangedtopicroutingstatus.go deleted file mode 100644 index cbf5ebd67..000000000 --- a/build/platformclientv2/agentactivitychangedtopicroutingstatus.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Agentactivitychangedtopicroutingstatus -type Agentactivitychangedtopicroutingstatus struct { - // Status - Status *string `json:"status,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivitychangedtopicroutingstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentactivityentitylisting.go b/build/platformclientv2/agentactivityentitylisting.go deleted file mode 100644 index 577686212..000000000 --- a/build/platformclientv2/agentactivityentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Agentactivityentitylisting -type Agentactivityentitylisting struct { - // Entities - Entities *[]Agentactivity `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentactivityentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agentevaluatoractivity.go b/build/platformclientv2/agentevaluatoractivity.go deleted file mode 100644 index 0dbb5c7f8..000000000 --- a/build/platformclientv2/agentevaluatoractivity.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Agentevaluatoractivity -type Agentevaluatoractivity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Agent - Agent *User `json:"agent,omitempty"` - - - // Evaluator - Evaluator *User `json:"evaluator,omitempty"` - - - // NumEvaluations - NumEvaluations *int32 `json:"numEvaluations,omitempty"` - - - // AverageEvaluationScore - AverageEvaluationScore *int32 `json:"averageEvaluationScore,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agentevaluatoractivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/agenttimeoffrequestpatch.go b/build/platformclientv2/agenttimeoffrequestpatch.go deleted file mode 100644 index 33ec26704..000000000 --- a/build/platformclientv2/agenttimeoffrequestpatch.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Agenttimeoffrequestpatch -type Agenttimeoffrequestpatch struct { - // MarkedAsRead - Whether this request has been read by the agent - MarkedAsRead *bool `json:"markedAsRead,omitempty"` - - - // Status - The status of this time off request. Can only be canceled if the requested date has not already passed - Status *string `json:"status,omitempty"` - - - // Notes - Notes about the time off request. Can only be edited while the request is still pending - Notes *string `json:"notes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Agenttimeoffrequestpatch) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/aggregatemetricdata.go b/build/platformclientv2/aggregatemetricdata.go deleted file mode 100644 index 4f435da94..000000000 --- a/build/platformclientv2/aggregatemetricdata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Aggregatemetricdata -type Aggregatemetricdata struct { - // Metric - Metric *string `json:"metric,omitempty"` - - - // Qualifier - Qualifier *string `json:"qualifier,omitempty"` - - - // Stats - Stats *Statisticalsummary `json:"stats,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Aggregatemetricdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/aggregateviewdata.go b/build/platformclientv2/aggregateviewdata.go deleted file mode 100644 index 608c2378b..000000000 --- a/build/platformclientv2/aggregateviewdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Aggregateviewdata -type Aggregateviewdata struct { - // Name - Name *string `json:"name,omitempty"` - - - // Stats - Stats *Statisticalsummary `json:"stats,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Aggregateviewdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/aggregationrange.go b/build/platformclientv2/aggregationrange.go deleted file mode 100644 index 84580edbe..000000000 --- a/build/platformclientv2/aggregationrange.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Aggregationrange -type Aggregationrange struct { - // Gte - Greater than or equal to - Gte *float32 `json:"gte,omitempty"` - - - // Lt - Less than - Lt *float32 `json:"lt,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Aggregationrange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/aggregationresult.go b/build/platformclientv2/aggregationresult.go deleted file mode 100644 index 31a49507d..000000000 --- a/build/platformclientv2/aggregationresult.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Aggregationresult -type Aggregationresult struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Dimension - For termFrequency aggregations - Dimension *string `json:"dimension,omitempty"` - - - // Metric - For numericRange aggregations - Metric *string `json:"metric,omitempty"` - - - // Count - Count *int64 `json:"count,omitempty"` - - - // Results - Results *[]Aggregationresultentry `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Aggregationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/aggregationresultentry.go b/build/platformclientv2/aggregationresultentry.go deleted file mode 100644 index ecf42a664..000000000 --- a/build/platformclientv2/aggregationresultentry.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Aggregationresultentry -type Aggregationresultentry struct { - // Count - Count *int64 `json:"count,omitempty"` - - - // Value - For termFrequency aggregations - Value *string `json:"value,omitempty"` - - - // Gte - For numericRange aggregations - Gte *float32 `json:"gte,omitempty"` - - - // Lt - For numericRange aggregations - Lt *float32 `json:"lt,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Aggregationresultentry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/alertingapi.go b/build/platformclientv2/alertingapi.go deleted file mode 100644 index 238759613..000000000 --- a/build/platformclientv2/alertingapi.go +++ /dev/null @@ -1,877 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// AlertingApi provides functions for API endpoints -type AlertingApi struct { - Configuration *Configuration -} - -// NewAlertingApi creates an API instance using the default configuration -func NewAlertingApi() *AlertingApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating AlertingApi with base path: %s", strings.ToLower(config.BasePath))) - return &AlertingApi{ - Configuration: config, - } -} - -// NewAlertingApiWithConfig creates an API instance using the provided configuration -func NewAlertingApiWithConfig(config *Configuration) *AlertingApi { - config.Debugf("Creating AlertingApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &AlertingApi{ - Configuration: config, - } -} - -// DeleteAlertingInteractionstatsAlert invokes DELETE /api/v2/alerting/interactionstats/alerts/{alertId} -// -// Delete an interaction stats alert -// -// -func (a AlertingApi) DeleteAlertingInteractionstatsAlert(alertId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/alerts/{alertId}" - path = strings.Replace(path, "{alertId}", fmt.Sprintf("%v", alertId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'alertId' is set - if &alertId == nil { - // - return nil, errors.New("Missing required parameter 'alertId' when calling AlertingApi->DeleteAlertingInteractionstatsAlert") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteAlertingInteractionstatsRule invokes DELETE /api/v2/alerting/interactionstats/rules/{ruleId} -// -// Delete an interaction stats rule. -// -// -func (a AlertingApi) DeleteAlertingInteractionstatsRule(ruleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/rules/{ruleId}" - path = strings.Replace(path, "{ruleId}", fmt.Sprintf("%v", ruleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ruleId' is set - if &ruleId == nil { - // - return nil, errors.New("Missing required parameter 'ruleId' when calling AlertingApi->DeleteAlertingInteractionstatsRule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetAlertingAlertsActive invokes GET /api/v2/alerting/alerts/active -// -// Gets active alert count for a user. -// -// -func (a AlertingApi) GetAlertingAlertsActive() (*Activealertcount, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/alerts/active" - defaultReturn := new(Activealertcount) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Activealertcount - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAlertingInteractionstatsAlert invokes GET /api/v2/alerting/interactionstats/alerts/{alertId} -// -// Get an interaction stats alert -// -// -func (a AlertingApi) GetAlertingInteractionstatsAlert(alertId string, expand []string) (*Interactionstatsalert, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/alerts/{alertId}" - path = strings.Replace(path, "{alertId}", fmt.Sprintf("%v", alertId), -1) - defaultReturn := new(Interactionstatsalert) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'alertId' is set - if &alertId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'alertId' when calling AlertingApi->GetAlertingInteractionstatsAlert") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Interactionstatsalert - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAlertingInteractionstatsAlerts invokes GET /api/v2/alerting/interactionstats/alerts -// -// Get interaction stats alert list. -// -// -func (a AlertingApi) GetAlertingInteractionstatsAlerts(expand []string) (*Interactionstatsalertcontainer, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/alerts" - defaultReturn := new(Interactionstatsalertcontainer) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Interactionstatsalertcontainer - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAlertingInteractionstatsAlertsUnread invokes GET /api/v2/alerting/interactionstats/alerts/unread -// -// Gets user unread count of interaction stats alerts. -// -// -func (a AlertingApi) GetAlertingInteractionstatsAlertsUnread() (*Unreadmetric, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/alerts/unread" - defaultReturn := new(Unreadmetric) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Unreadmetric - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAlertingInteractionstatsRule invokes GET /api/v2/alerting/interactionstats/rules/{ruleId} -// -// Get an interaction stats rule. -// -// -func (a AlertingApi) GetAlertingInteractionstatsRule(ruleId string, expand []string) (*Interactionstatsrule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/rules/{ruleId}" - path = strings.Replace(path, "{ruleId}", fmt.Sprintf("%v", ruleId), -1) - defaultReturn := new(Interactionstatsrule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ruleId' is set - if &ruleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ruleId' when calling AlertingApi->GetAlertingInteractionstatsRule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Interactionstatsrule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAlertingInteractionstatsRules invokes GET /api/v2/alerting/interactionstats/rules -// -// Get an interaction stats rule list. -// -// -func (a AlertingApi) GetAlertingInteractionstatsRules(expand []string) (*Interactionstatsrulecontainer, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/rules" - defaultReturn := new(Interactionstatsrulecontainer) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Interactionstatsrulecontainer - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAlertingInteractionstatsRules invokes POST /api/v2/alerting/interactionstats/rules -// -// Create an interaction stats rule. -// -// -func (a AlertingApi) PostAlertingInteractionstatsRules(body Interactionstatsrule, expand []string) (*Interactionstatsrule, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/rules" - defaultReturn := new(Interactionstatsrule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AlertingApi->PostAlertingInteractionstatsRules") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Interactionstatsrule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAlertingInteractionstatsAlert invokes PUT /api/v2/alerting/interactionstats/alerts/{alertId} -// -// Update an interaction stats alert read status -// -// -func (a AlertingApi) PutAlertingInteractionstatsAlert(alertId string, body Unreadstatus, expand []string) (*Unreadstatus, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/alerts/{alertId}" - path = strings.Replace(path, "{alertId}", fmt.Sprintf("%v", alertId), -1) - defaultReturn := new(Unreadstatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'alertId' is set - if &alertId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'alertId' when calling AlertingApi->PutAlertingInteractionstatsAlert") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AlertingApi->PutAlertingInteractionstatsAlert") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Unreadstatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAlertingInteractionstatsRule invokes PUT /api/v2/alerting/interactionstats/rules/{ruleId} -// -// Update an interaction stats rule -// -// -func (a AlertingApi) PutAlertingInteractionstatsRule(ruleId string, body Interactionstatsrule, expand []string) (*Interactionstatsrule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/alerting/interactionstats/rules/{ruleId}" - path = strings.Replace(path, "{ruleId}", fmt.Sprintf("%v", ruleId), -1) - defaultReturn := new(Interactionstatsrule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ruleId' is set - if &ruleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ruleId' when calling AlertingApi->PutAlertingInteractionstatsRule") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AlertingApi->PutAlertingInteractionstatsRule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Interactionstatsrule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/analyticsapi.go b/build/platformclientv2/analyticsapi.go deleted file mode 100644 index 19d558e3a..000000000 --- a/build/platformclientv2/analyticsapi.go +++ /dev/null @@ -1,2682 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// AnalyticsApi provides functions for API endpoints -type AnalyticsApi struct { - Configuration *Configuration -} - -// NewAnalyticsApi creates an API instance using the default configuration -func NewAnalyticsApi() *AnalyticsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating AnalyticsApi with base path: %s", strings.ToLower(config.BasePath))) - return &AnalyticsApi{ - Configuration: config, - } -} - -// NewAnalyticsApiWithConfig creates an API instance using the provided configuration -func NewAnalyticsApiWithConfig(config *Configuration) *AnalyticsApi { - config.Debugf("Creating AnalyticsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &AnalyticsApi{ - Configuration: config, - } -} - -// DeleteAnalyticsConversationsDetailsJob invokes DELETE /api/v2/analytics/conversations/details/jobs/{jobId} -// -// Delete/cancel an async request -// -// -func (a AnalyticsApi) DeleteAnalyticsConversationsDetailsJob(jobId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return nil, errors.New("Missing required parameter 'jobId' when calling AnalyticsApi->DeleteAnalyticsConversationsDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteAnalyticsReportingSchedule invokes DELETE /api/v2/analytics/reporting/schedules/{scheduleId} -// -// Delete a scheduled report job. -// -// -func (a AnalyticsApi) DeleteAnalyticsReportingSchedule(scheduleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->DeleteAnalyticsReportingSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteAnalyticsUsersDetailsJob invokes DELETE /api/v2/analytics/users/details/jobs/{jobId} -// -// Delete/cancel an async request -// -// -func (a AnalyticsApi) DeleteAnalyticsUsersDetailsJob(jobId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return nil, errors.New("Missing required parameter 'jobId' when calling AnalyticsApi->DeleteAnalyticsUsersDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetAnalyticsConversationDetails invokes GET /api/v2/analytics/conversations/{conversationId}/details -// -// Get a conversation by id -// -// -func (a AnalyticsApi) GetAnalyticsConversationDetails(conversationId string) (*Analyticsconversationwithoutattributes, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/{conversationId}/details" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Analyticsconversationwithoutattributes) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling AnalyticsApi->GetAnalyticsConversationDetails") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsconversationwithoutattributes - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationsDetails invokes GET /api/v2/analytics/conversations/details -// -// Gets multiple conversations by id -// -// -func (a AnalyticsApi) GetAnalyticsConversationsDetails(id []string) (*Analyticsconversationwithoutattributesmultigetresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details" - defaultReturn := new(Analyticsconversationwithoutattributesmultigetresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsconversationwithoutattributesmultigetresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationsDetailsJob invokes GET /api/v2/analytics/conversations/details/jobs/{jobId} -// -// Get status for async query for conversation details -// -// -func (a AnalyticsApi) GetAnalyticsConversationsDetailsJob(jobId string) (*Asyncquerystatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Asyncquerystatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling AnalyticsApi->GetAnalyticsConversationsDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Asyncquerystatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationsDetailsJobResults invokes GET /api/v2/analytics/conversations/details/jobs/{jobId}/results -// -// Fetch a page of results for an async query -// -// -func (a AnalyticsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsconversationasyncqueryresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}/results" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Analyticsconversationasyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling AnalyticsApi->GetAnalyticsConversationsDetailsJobResults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsconversationasyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingExports invokes GET /api/v2/analytics/reporting/exports -// -// Get all view export requests for a user -// -// -func (a AnalyticsApi) GetAnalyticsReportingExports() (*Reportingexportjoblisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/exports" - defaultReturn := new(Reportingexportjoblisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportingexportjoblisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingExportsMetadata invokes GET /api/v2/analytics/reporting/exports/metadata -// -// Get all export metadata -// -// -func (a AnalyticsApi) GetAnalyticsReportingExportsMetadata() (*Reportingexportmetadatajoblisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/exports/metadata" - defaultReturn := new(Reportingexportmetadatajoblisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportingexportmetadatajoblisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingMetadata invokes GET /api/v2/analytics/reporting/metadata -// -// Get list of reporting metadata. -// -// -func (a AnalyticsApi) GetAnalyticsReportingMetadata(pageNumber int32, pageSize int32, locale string) (*Reportmetadataentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/metadata" - defaultReturn := new(Reportmetadataentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["locale"] = a.Configuration.APIClient.ParameterToString(locale, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportmetadataentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingReportIdMetadata invokes GET /api/v2/analytics/reporting/{reportId}/metadata -// -// Get a reporting metadata. -// -// -func (a AnalyticsApi) GetAnalyticsReportingReportIdMetadata(reportId string, locale string) (*Reportmetadata, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/{reportId}/metadata" - path = strings.Replace(path, "{reportId}", fmt.Sprintf("%v", reportId), -1) - defaultReturn := new(Reportmetadata) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'reportId' is set - if &reportId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'reportId' when calling AnalyticsApi->GetAnalyticsReportingReportIdMetadata") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["locale"] = a.Configuration.APIClient.ParameterToString(locale, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportmetadata - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingReportformats invokes GET /api/v2/analytics/reporting/reportformats -// -// Get a list of report formats -// -// Get a list of report formats. -func (a AnalyticsApi) GetAnalyticsReportingReportformats() ([]string, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/reportformats" - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingSchedule invokes GET /api/v2/analytics/reporting/schedules/{scheduleId} -// -// Get a scheduled report job. -// -// -func (a AnalyticsApi) GetAnalyticsReportingSchedule(scheduleId string) (*Reportschedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Reportschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->GetAnalyticsReportingSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingScheduleHistory invokes GET /api/v2/analytics/reporting/schedules/{scheduleId}/history -// -// Get list of completed scheduled report jobs. -// -// -func (a AnalyticsApi) GetAnalyticsReportingScheduleHistory(scheduleId string, pageNumber int32, pageSize int32) (*Reportrunentryentitydomainlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}/history" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Reportrunentryentitydomainlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->GetAnalyticsReportingScheduleHistory") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportrunentryentitydomainlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingScheduleHistoryLatest invokes GET /api/v2/analytics/reporting/schedules/{scheduleId}/history/latest -// -// Get most recently completed scheduled report job. -// -// -func (a AnalyticsApi) GetAnalyticsReportingScheduleHistoryLatest(scheduleId string) (*Reportrunentry, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}/history/latest" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Reportrunentry) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->GetAnalyticsReportingScheduleHistoryLatest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportrunentry - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingScheduleHistoryRunId invokes GET /api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId} -// -// A completed scheduled report job -// -// A completed scheduled report job. -func (a AnalyticsApi) GetAnalyticsReportingScheduleHistoryRunId(runId string, scheduleId string) (*Reportrunentry, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId}" - path = strings.Replace(path, "{runId}", fmt.Sprintf("%v", runId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Reportrunentry) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'runId' is set - if &runId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'runId' when calling AnalyticsApi->GetAnalyticsReportingScheduleHistoryRunId") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->GetAnalyticsReportingScheduleHistoryRunId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportrunentry - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingSchedules invokes GET /api/v2/analytics/reporting/schedules -// -// Get a list of scheduled report jobs -// -// Get a list of scheduled report jobs. -func (a AnalyticsApi) GetAnalyticsReportingSchedules(pageNumber int32, pageSize int32) (*Reportscheduleentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules" - defaultReturn := new(Reportscheduleentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reportscheduleentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsReportingTimeperiods invokes GET /api/v2/analytics/reporting/timeperiods -// -// Get a list of report time periods. -// -// -func (a AnalyticsApi) GetAnalyticsReportingTimeperiods() ([]string, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/timeperiods" - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsUsersDetailsJob invokes GET /api/v2/analytics/users/details/jobs/{jobId} -// -// Get status for async query for user details -// -// -func (a AnalyticsApi) GetAnalyticsUsersDetailsJob(jobId string) (*Asyncquerystatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Asyncquerystatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling AnalyticsApi->GetAnalyticsUsersDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Asyncquerystatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsUsersDetailsJobResults invokes GET /api/v2/analytics/users/details/jobs/{jobId}/results -// -// Fetch a page of results for an async query -// -// -func (a AnalyticsApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsuserdetailsasyncqueryresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}/results" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Analyticsuserdetailsasyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling AnalyticsApi->GetAnalyticsUsersDetailsJobResults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsuserdetailsasyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationDetailsProperties invokes POST /api/v2/analytics/conversations/{conversationId}/details/properties -// -// Index conversation properties -// -// -func (a AnalyticsApi) PostAnalyticsConversationDetailsProperties(conversationId string, body Propertyindexrequest) (*Propertyindexrequest, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/{conversationId}/details/properties" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Propertyindexrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling AnalyticsApi->PostAnalyticsConversationDetailsProperties") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsConversationDetailsProperties") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Propertyindexrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationsAggregatesQuery invokes POST /api/v2/analytics/conversations/aggregates/query -// -// Query for conversation aggregates -// -// -func (a AnalyticsApi) PostAnalyticsConversationsAggregatesQuery(body Conversationaggregationquery) (*Conversationaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/aggregates/query" - defaultReturn := new(Conversationaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsConversationsAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversationaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationsDetailsJobs invokes POST /api/v2/analytics/conversations/details/jobs -// -// Query for conversation details asynchronously -// -// -func (a AnalyticsApi) PostAnalyticsConversationsDetailsJobs(body Asyncconversationquery) (*Asyncqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs" - defaultReturn := new(Asyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsConversationsDetailsJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationsDetailsQuery invokes POST /api/v2/analytics/conversations/details/query -// -// Query for conversation details -// -// -func (a AnalyticsApi) PostAnalyticsConversationsDetailsQuery(body Conversationquery) (*Analyticsconversationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/query" - defaultReturn := new(Analyticsconversationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsConversationsDetailsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Analyticsconversationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsEvaluationsAggregatesQuery invokes POST /api/v2/analytics/evaluations/aggregates/query -// -// Query for evaluation aggregates -// -// -func (a AnalyticsApi) PostAnalyticsEvaluationsAggregatesQuery(body Evaluationaggregationquery) (*Evaluationaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/evaluations/aggregates/query" - defaultReturn := new(Evaluationaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsEvaluationsAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsFlowsAggregatesQuery invokes POST /api/v2/analytics/flows/aggregates/query -// -// Query for flow aggregates -// -// -func (a AnalyticsApi) PostAnalyticsFlowsAggregatesQuery(body Flowaggregationquery) (*Flowaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/flows/aggregates/query" - defaultReturn := new(Flowaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsFlowsAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flowaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsFlowsObservationsQuery invokes POST /api/v2/analytics/flows/observations/query -// -// Query for flow observations -// -// -func (a AnalyticsApi) PostAnalyticsFlowsObservationsQuery(body Flowobservationquery) (*Flowobservationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/flows/observations/query" - defaultReturn := new(Flowobservationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsFlowsObservationsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flowobservationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsQueuesObservationsQuery invokes POST /api/v2/analytics/queues/observations/query -// -// Query for queue observations -// -// -func (a AnalyticsApi) PostAnalyticsQueuesObservationsQuery(body Queueobservationquery) (*Queueobservationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/queues/observations/query" - defaultReturn := new(Queueobservationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsQueuesObservationsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queueobservationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsReportingExports invokes POST /api/v2/analytics/reporting/exports -// -// Generate a view export request -// -// -func (a AnalyticsApi) PostAnalyticsReportingExports(body Reportingexportjobrequest) (*Reportingexportjobresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/exports" - defaultReturn := new(Reportingexportjobresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsReportingExports") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Reportingexportjobresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsReportingScheduleRunreport invokes POST /api/v2/analytics/reporting/schedules/{scheduleId}/runreport -// -// Place a scheduled report immediately into the reporting queue -// -// -func (a AnalyticsApi) PostAnalyticsReportingScheduleRunreport(scheduleId string) (*Runnowresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}/runreport" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Runnowresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->PostAnalyticsReportingScheduleRunreport") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Runnowresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsReportingSchedules invokes POST /api/v2/analytics/reporting/schedules -// -// Create a scheduled report job -// -// Create a scheduled report job. -func (a AnalyticsApi) PostAnalyticsReportingSchedules(body Reportschedule) (*Reportschedule, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules" - defaultReturn := new(Reportschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsReportingSchedules") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Reportschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsSurveysAggregatesQuery invokes POST /api/v2/analytics/surveys/aggregates/query -// -// Query for survey aggregates -// -// -func (a AnalyticsApi) PostAnalyticsSurveysAggregatesQuery(body Surveyaggregationquery) (*Surveyaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/surveys/aggregates/query" - defaultReturn := new(Surveyaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsSurveysAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersAggregatesQuery invokes POST /api/v2/analytics/users/aggregates/query -// -// Query for user aggregates -// -// -func (a AnalyticsApi) PostAnalyticsUsersAggregatesQuery(body Useraggregationquery) (*Useraggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/aggregates/query" - defaultReturn := new(Useraggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsUsersAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Useraggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersDetailsJobs invokes POST /api/v2/analytics/users/details/jobs -// -// Query for user details asynchronously -// -// -func (a AnalyticsApi) PostAnalyticsUsersDetailsJobs(body Asyncuserdetailsquery) (*Asyncqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs" - defaultReturn := new(Asyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsUsersDetailsJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersDetailsQuery invokes POST /api/v2/analytics/users/details/query -// -// Query for user details -// -// -func (a AnalyticsApi) PostAnalyticsUsersDetailsQuery(body Userdetailsquery) (*Analyticsuserdetailsqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/query" - defaultReturn := new(Analyticsuserdetailsqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsUsersDetailsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Analyticsuserdetailsqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersObservationsQuery invokes POST /api/v2/analytics/users/observations/query -// -// Query for user observations -// -// -func (a AnalyticsApi) PostAnalyticsUsersObservationsQuery(body Userobservationquery) (*Userobservationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/observations/query" - defaultReturn := new(Userobservationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PostAnalyticsUsersObservationsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userobservationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAnalyticsReportingSchedule invokes PUT /api/v2/analytics/reporting/schedules/{scheduleId} -// -// Update a scheduled report job. -// -// -func (a AnalyticsApi) PutAnalyticsReportingSchedule(scheduleId string, body Reportschedule) (*Reportschedule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/reporting/schedules/{scheduleId}" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Reportschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling AnalyticsApi->PutAnalyticsReportingSchedule") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AnalyticsApi->PutAnalyticsReportingSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Reportschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/analyticsconversation.go b/build/platformclientv2/analyticsconversation.go deleted file mode 100644 index 0af916aa7..000000000 --- a/build/platformclientv2/analyticsconversation.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsconversation -type Analyticsconversation struct { - // ConversationId - Unique identifier for the conversation - ConversationId *string `json:"conversationId,omitempty"` - - - // ConversationStart - Date/time the conversation started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConversationStart *time.Time `json:"conversationStart,omitempty"` - - - // ConversationEnd - Date/time the conversation ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConversationEnd *time.Time `json:"conversationEnd,omitempty"` - - - // MediaStatsMinConversationMos - The lowest estimated average MOS among all the audio streams belonging to this conversation - MediaStatsMinConversationMos *float64 `json:"mediaStatsMinConversationMos,omitempty"` - - - // MediaStatsMinConversationRFactor - The lowest R-factor value among all of the audio streams belonging to this conversation - MediaStatsMinConversationRFactor *float64 `json:"mediaStatsMinConversationRFactor,omitempty"` - - - // OriginatingDirection - The original direction of the conversation - OriginatingDirection *string `json:"originatingDirection,omitempty"` - - - // Evaluations - Evaluations tied to this conversation - Evaluations *[]Analyticsevaluation `json:"evaluations,omitempty"` - - - // Surveys - Surveys tied to this conversation - Surveys *[]Analyticssurvey `json:"surveys,omitempty"` - - - // DivisionIds - Identifiers of divisions associated with this conversation - DivisionIds *[]string `json:"divisionIds,omitempty"` - - - // Participants - Participants in the conversation - Participants *[]Analyticsparticipant `json:"participants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsconversationasyncqueryresponse.go b/build/platformclientv2/analyticsconversationasyncqueryresponse.go deleted file mode 100644 index aa24ef290..000000000 --- a/build/platformclientv2/analyticsconversationasyncqueryresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsconversationasyncqueryresponse -type Analyticsconversationasyncqueryresponse struct { - // Cursor - Optional cursor to indicate where to resume the results - Cursor *string `json:"cursor,omitempty"` - - - // Conversations - Conversations *[]Analyticsconversation `json:"conversations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsconversationasyncqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsconversationqueryresponse.go b/build/platformclientv2/analyticsconversationqueryresponse.go deleted file mode 100644 index d3bc6a17f..000000000 --- a/build/platformclientv2/analyticsconversationqueryresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsconversationqueryresponse -type Analyticsconversationqueryresponse struct { - // Aggregations - Aggregations *[]Aggregationresult `json:"aggregations,omitempty"` - - - // Conversations - Conversations *[]Analyticsconversationwithoutattributes `json:"conversations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsconversationqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsconversationsegment.go b/build/platformclientv2/analyticsconversationsegment.go deleted file mode 100644 index be244ec02..000000000 --- a/build/platformclientv2/analyticsconversationsegment.go +++ /dev/null @@ -1,114 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsconversationsegment -type Analyticsconversationsegment struct { - // SegmentStart - The timestamp when this segment began. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SegmentStart *time.Time `json:"segmentStart,omitempty"` - - - // SegmentEnd - The timestamp when this segment ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SegmentEnd *time.Time `json:"segmentEnd,omitempty"` - - - // QueueId - Queue identifier - QueueId *string `json:"queueId,omitempty"` - - - // WrapUpCode - Wrapup Code id - WrapUpCode *string `json:"wrapUpCode,omitempty"` - - - // WrapUpNote - Note entered by an agent during after-call work - WrapUpNote *string `json:"wrapUpNote,omitempty"` - - - // WrapUpTags - WrapUpTags *[]string `json:"wrapUpTags,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // DisconnectType - A description of the event that disconnected the segment - DisconnectType *string `json:"disconnectType,omitempty"` - - - // SegmentType - The activity taking place for the participant in the segment - SegmentType *string `json:"segmentType,omitempty"` - - - // RequestedRoutingUserIds - RequestedRoutingUserIds *[]string `json:"requestedRoutingUserIds,omitempty"` - - - // RequestedRoutingSkillIds - RequestedRoutingSkillIds *[]string `json:"requestedRoutingSkillIds,omitempty"` - - - // RequestedLanguageId - A unique identifier for the language requested for an interaction. - RequestedLanguageId *string `json:"requestedLanguageId,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Analyticsscoredagent `json:"scoredAgents,omitempty"` - - - // Properties - Properties *[]Analyticsproperty `json:"properties,omitempty"` - - - // SourceConversationId - SourceConversationId *string `json:"sourceConversationId,omitempty"` - - - // DestinationConversationId - DestinationConversationId *string `json:"destinationConversationId,omitempty"` - - - // SourceSessionId - SourceSessionId *string `json:"sourceSessionId,omitempty"` - - - // DestinationSessionId - DestinationSessionId *string `json:"destinationSessionId,omitempty"` - - - // SipResponseCodes - SipResponseCodes *[]int64 `json:"sipResponseCodes,omitempty"` - - - // Q850ResponseCodes - Q850ResponseCodes *[]int64 `json:"q850ResponseCodes,omitempty"` - - - // Conference - Indicates whether the segment was a conference - Conference *bool `json:"conference,omitempty"` - - - // GroupId - GroupId *string `json:"groupId,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // AudioMuted - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - VideoMuted *bool `json:"videoMuted,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsconversationsegment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsconversationwithoutattributes.go b/build/platformclientv2/analyticsconversationwithoutattributes.go deleted file mode 100644 index fad56ca2c..000000000 --- a/build/platformclientv2/analyticsconversationwithoutattributes.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsconversationwithoutattributes -type Analyticsconversationwithoutattributes struct { - // ConversationId - Unique identifier for the conversation - ConversationId *string `json:"conversationId,omitempty"` - - - // ConversationStart - Date/time the conversation started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConversationStart *time.Time `json:"conversationStart,omitempty"` - - - // ConversationEnd - Date/time the conversation ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConversationEnd *time.Time `json:"conversationEnd,omitempty"` - - - // MediaStatsMinConversationMos - The lowest estimated average MOS among all the audio streams belonging to this conversation - MediaStatsMinConversationMos *float64 `json:"mediaStatsMinConversationMos,omitempty"` - - - // MediaStatsMinConversationRFactor - The lowest R-factor value among all of the audio streams belonging to this conversation - MediaStatsMinConversationRFactor *float64 `json:"mediaStatsMinConversationRFactor,omitempty"` - - - // OriginatingDirection - The original direction of the conversation - OriginatingDirection *string `json:"originatingDirection,omitempty"` - - - // Evaluations - Evaluations tied to this conversation - Evaluations *[]Analyticsevaluation `json:"evaluations,omitempty"` - - - // Surveys - Surveys tied to this conversation - Surveys *[]Analyticssurvey `json:"surveys,omitempty"` - - - // DivisionIds - Identifiers of divisions associated with this conversation - DivisionIds *[]string `json:"divisionIds,omitempty"` - - - // Participants - Participants in the conversation - Participants *[]Analyticsparticipantwithoutattributes `json:"participants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsconversationwithoutattributes) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsconversationwithoutattributesmultigetresponse.go b/build/platformclientv2/analyticsconversationwithoutattributesmultigetresponse.go deleted file mode 100644 index d8eaca973..000000000 --- a/build/platformclientv2/analyticsconversationwithoutattributesmultigetresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsconversationwithoutattributesmultigetresponse -type Analyticsconversationwithoutattributesmultigetresponse struct { - // Conversations - Conversations *[]Analyticsconversationwithoutattributes `json:"conversations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsconversationwithoutattributesmultigetresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsevaluation.go b/build/platformclientv2/analyticsevaluation.go deleted file mode 100644 index 81cfb1369..000000000 --- a/build/platformclientv2/analyticsevaluation.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsevaluation -type Analyticsevaluation struct { - // EvaluationId - Unique identifier for the evaluation - EvaluationId *string `json:"evaluationId,omitempty"` - - - // EvaluatorId - A unique identifier of the PureCloud user who evaluated the interaction - EvaluatorId *string `json:"evaluatorId,omitempty"` - - - // UserId - Unique identifier for the user being evaluated - UserId *string `json:"userId,omitempty"` - - - // EventTime - Specifies when an evaluation occurred. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EventTime *time.Time `json:"eventTime,omitempty"` - - - // QueueId - Unique identifier for the queue the conversation was on - QueueId *string `json:"queueId,omitempty"` - - - // FormId - Unique identifier for the form used to evaluate the conversation/agent - FormId *string `json:"formId,omitempty"` - - - // ContextId - A unique identifier for an evaluation form, regardless of version - ContextId *string `json:"contextId,omitempty"` - - - // FormName - Name of the evaluation form - FormName *string `json:"formName,omitempty"` - - - // CalibrationId - The calibration id used for the purpose of training evaluators - CalibrationId *string `json:"calibrationId,omitempty"` - - - // Rescored - Whether this evaluation has ever been rescored - Rescored *bool `json:"rescored,omitempty"` - - - // Deleted - Whether this evaluation has been deleted - Deleted *bool `json:"deleted,omitempty"` - - - // OTotalScore - OTotalScore *int64 `json:"oTotalScore,omitempty"` - - - // OTotalCriticalScore - OTotalCriticalScore *int64 `json:"oTotalCriticalScore,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsevaluation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsflow.go b/build/platformclientv2/analyticsflow.go deleted file mode 100644 index 512d21ba2..000000000 --- a/build/platformclientv2/analyticsflow.go +++ /dev/null @@ -1,69 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsflow -type Analyticsflow struct { - // FlowId - The unique identifier of this flow - FlowId *string `json:"flowId,omitempty"` - - - // FlowName - The name of this flow - FlowName *string `json:"flowName,omitempty"` - - - // FlowVersion - The version of this flow - FlowVersion *string `json:"flowVersion,omitempty"` - - - // FlowType - The type of this flow - FlowType *string `json:"flowType,omitempty"` - - - // ExitReason - The exit reason for this flow, e.g. DISCONNECT - ExitReason *string `json:"exitReason,omitempty"` - - - // EntryReason - The particular entry reason for this flow, e.g. an address, userId, or flowId - EntryReason *string `json:"entryReason,omitempty"` - - - // EntryType - The entry type for this flow - EntryType *string `json:"entryType,omitempty"` - - - // TransferType - The type of transfer for flows that ended with a transfer - TransferType *string `json:"transferType,omitempty"` - - - // TransferTargetName - The name of a transfer target - TransferTargetName *string `json:"transferTargetName,omitempty"` - - - // TransferTargetAddress - The address of a transfer target - TransferTargetAddress *string `json:"transferTargetAddress,omitempty"` - - - // IssuedCallback - Flag indicating whether the flow issued a callback - IssuedCallback *bool `json:"issuedCallback,omitempty"` - - - // StartingLanguage - Flow starting language, e.g. en-us - StartingLanguage *string `json:"startingLanguage,omitempty"` - - - // EndingLanguage - Flow ending language, e.g. en-us - EndingLanguage *string `json:"endingLanguage,omitempty"` - - - // Outcomes - Flow outcomes - Outcomes *[]Analyticsflowoutcome `json:"outcomes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsflow) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsflowoutcome.go b/build/platformclientv2/analyticsflowoutcome.go deleted file mode 100644 index 3b5cc8983..000000000 --- a/build/platformclientv2/analyticsflowoutcome.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsflowoutcome -type Analyticsflowoutcome struct { - // FlowOutcomeId - Unique identifiers of a flow outcome - FlowOutcomeId *string `json:"flowOutcomeId,omitempty"` - - - // FlowOutcomeValue - Flow outcome value, e.g. SUCCESS - FlowOutcomeValue *string `json:"flowOutcomeValue,omitempty"` - - - // FlowOutcome - Colon-separated combinations of unique flow outcome identifier and value - FlowOutcome *string `json:"flowOutcome,omitempty"` - - - // FlowOutcomeStartTimestamp - Date/time the outcome started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - FlowOutcomeStartTimestamp *time.Time `json:"flowOutcomeStartTimestamp,omitempty"` - - - // FlowOutcomeEndTimestamp - Date/time the outcome ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - FlowOutcomeEndTimestamp *time.Time `json:"flowOutcomeEndTimestamp,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsflowoutcome) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsmediaendpointstat.go b/build/platformclientv2/analyticsmediaendpointstat.go deleted file mode 100644 index 9a2b94cc8..000000000 --- a/build/platformclientv2/analyticsmediaendpointstat.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsmediaendpointstat -type Analyticsmediaendpointstat struct { - // Codecs - The MIME types of the audio encodings used by the audio streams belonging to this endpoint - Codecs *[]string `json:"codecs,omitempty"` - - - // MinMos - The lowest estimated average MOS among all the audio streams belonging to this endpoint - MinMos *float64 `json:"minMos,omitempty"` - - - // MinRFactor - The lowest R-factor value among all of the audio streams belonging to this endpoint - MinRFactor *float64 `json:"minRFactor,omitempty"` - - - // MaxLatencyMs - The maximum latency experienced by any audio stream belonging to this endpoint, in milliseconds - MaxLatencyMs *int64 `json:"maxLatencyMs,omitempty"` - - - // ReceivedPackets - The total number of packets received for all audio streams belonging to this endpoint (includes invalid, duplicate, and discarded packets) - ReceivedPackets *int64 `json:"receivedPackets,omitempty"` - - - // InvalidPackets - The total number of malformed or not RTP packets, unknown payload type, or discarded probation packets for all audio streams belonging to this endpoint - InvalidPackets *int64 `json:"invalidPackets,omitempty"` - - - // DiscardedPackets - The total number of packets received too late or too early, jitter queue overrun or underrun, for all audio streams belonging to this endpoint - DiscardedPackets *int64 `json:"discardedPackets,omitempty"` - - - // DuplicatePackets - The total number of packets received with the same sequence number as another one recently received (window of 64 packets), for all audio streams belonging to this endpoint - DuplicatePackets *int64 `json:"duplicatePackets,omitempty"` - - - // OverrunPackets - The total number of packets for which there was no room in the jitter queue when it was received, for all audio streams belonging to this endpoint (also counted in discarded) - OverrunPackets *int64 `json:"overrunPackets,omitempty"` - - - // UnderrunPackets - The total number of packets received after their timestamp/seqnum has been played out, for all audio streams belonging to this endpoint (also counted in discarded) - UnderrunPackets *int64 `json:"underrunPackets,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsmediaendpointstat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsparticipant.go b/build/platformclientv2/analyticsparticipant.go deleted file mode 100644 index 7685284bf..000000000 --- a/build/platformclientv2/analyticsparticipant.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsparticipant -type Analyticsparticipant struct { - // ParticipantId - Unique identifier for the participant - ParticipantId *string `json:"participantId,omitempty"` - - - // ParticipantName - A human readable name identifying the participant - ParticipantName *string `json:"participantName,omitempty"` - - - // UserId - If a user, then this will be the unique identifier for the user - UserId *string `json:"userId,omitempty"` - - - // Purpose - The participant's purpose - Purpose *string `json:"purpose,omitempty"` - - - // ExternalContactId - External Contact Identifier - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - External Organization Identifier - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // FlaggedReason - Reason for which participant flagged conversation - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // TeamId - The team id the user is a member of - TeamId *string `json:"teamId,omitempty"` - - - // Sessions - List of sessions associated to this participant - Sessions *[]Analyticssession `json:"sessions,omitempty"` - - - // Attributes - List of attributes associated to this participant - Attributes *map[string]string `json:"attributes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsparticipantwithoutattributes.go b/build/platformclientv2/analyticsparticipantwithoutattributes.go deleted file mode 100644 index 6982d525f..000000000 --- a/build/platformclientv2/analyticsparticipantwithoutattributes.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsparticipantwithoutattributes -type Analyticsparticipantwithoutattributes struct { - // ParticipantId - Unique identifier for the participant - ParticipantId *string `json:"participantId,omitempty"` - - - // ParticipantName - A human readable name identifying the participant - ParticipantName *string `json:"participantName,omitempty"` - - - // UserId - If a user, then this will be the unique identifier for the user - UserId *string `json:"userId,omitempty"` - - - // Purpose - The participant's purpose - Purpose *string `json:"purpose,omitempty"` - - - // ExternalContactId - External Contact Identifier - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - External Organization Identifier - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // FlaggedReason - Reason for which participant flagged conversation - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // TeamId - The team id the user is a member of - TeamId *string `json:"teamId,omitempty"` - - - // Sessions - List of sessions associated to this participant - Sessions *[]Analyticssession `json:"sessions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsparticipantwithoutattributes) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsproperty.go b/build/platformclientv2/analyticsproperty.go deleted file mode 100644 index 142777880..000000000 --- a/build/platformclientv2/analyticsproperty.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsproperty -type Analyticsproperty struct { - // PropertyType - Indicates what the data type is (e.g. integer vs string) and therefore how to evaluate what would constitute a match - PropertyType *string `json:"propertyType,omitempty"` - - - // Property - User-defined rather than intrinsic system-observed values. These are tagged onto segments by other components within PureCloud or by API users directly. This is the name of the user-defined property. - Property *string `json:"property,omitempty"` - - - // Value - What property value to match against - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsproperty) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsqueryaggregation.go b/build/platformclientv2/analyticsqueryaggregation.go deleted file mode 100644 index 56cfe11ad..000000000 --- a/build/platformclientv2/analyticsqueryaggregation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsqueryaggregation -type Analyticsqueryaggregation struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - For use with termFrequency aggregations - Dimension *string `json:"dimension,omitempty"` - - - // Metric - For use with numericRange aggregations - Metric *string `json:"metric,omitempty"` - - - // Size - For use with termFrequency aggregations - Size *int32 `json:"size,omitempty"` - - - // Ranges - For use with numericRange aggregations - Ranges *[]Aggregationrange `json:"ranges,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsqueryaggregation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsroutingstatusrecord.go b/build/platformclientv2/analyticsroutingstatusrecord.go deleted file mode 100644 index c463fe554..000000000 --- a/build/platformclientv2/analyticsroutingstatusrecord.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsroutingstatusrecord -type Analyticsroutingstatusrecord struct { - // StartTime - The start time of the record. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The end time of the record. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // RoutingStatus - The user's ACD routing status - RoutingStatus *string `json:"routingStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsroutingstatusrecord) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsscoredagent.go b/build/platformclientv2/analyticsscoredagent.go deleted file mode 100644 index 53df29fca..000000000 --- a/build/platformclientv2/analyticsscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsscoredagent -type Analyticsscoredagent struct { - // ScoredAgentId - Unique identifier of an agent that was scored for this conversation - ScoredAgentId *string `json:"scoredAgentId,omitempty"` - - - // AgentScore - Assigned agent score for this conversation (0 - 100, higher being better) - AgentScore *int32 `json:"agentScore,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticssession.go b/build/platformclientv2/analyticssession.go deleted file mode 100644 index 7266050db..000000000 --- a/build/platformclientv2/analyticssession.go +++ /dev/null @@ -1,222 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticssession -type Analyticssession struct { - // MediaType - The session media type - MediaType *string `json:"mediaType,omitempty"` - - - // SessionId - The unique identifier of this session - SessionId *string `json:"sessionId,omitempty"` - - - // AddressOther - AddressOther *string `json:"addressOther,omitempty"` - - - // AddressSelf - AddressSelf *string `json:"addressSelf,omitempty"` - - - // AddressFrom - AddressFrom *string `json:"addressFrom,omitempty"` - - - // AddressTo - AddressTo *string `json:"addressTo,omitempty"` - - - // MessageType - Message type for messaging services such as sms - MessageType *string `json:"messageType,omitempty"` - - - // Ani - Automatic Number Identification (caller's number) - Ani *string `json:"ani,omitempty"` - - - // Direction - Direction - Direction *string `json:"direction,omitempty"` - - - // Dnis - Dialed number identification service (number dialed by the calling party) - Dnis *string `json:"dnis,omitempty"` - - - // SessionDnis - Dialed number for the current session; this can be different from dnis, e.g. if the call was transferred - SessionDnis *string `json:"sessionDnis,omitempty"` - - - // OutboundCampaignId - (Dialer) Unique identifier of the outbound campaign - OutboundCampaignId *string `json:"outboundCampaignId,omitempty"` - - - // OutboundContactId - (Dialer) Unique identifier of the contact - OutboundContactId *string `json:"outboundContactId,omitempty"` - - - // OutboundContactListId - (Dialer) Unique identifier of the contact list that this contact belongs to - OutboundContactListId *string `json:"outboundContactListId,omitempty"` - - - // DispositionAnalyzer - (Dialer) Unique identifier of the contact list that this contact belongs to - DispositionAnalyzer *string `json:"dispositionAnalyzer,omitempty"` - - - // DispositionName - (Dialer) Result of the analysis - DispositionName *string `json:"dispositionName,omitempty"` - - - // EdgeId - Unique identifier of the edge device - EdgeId *string `json:"edgeId,omitempty"` - - - // RemoteNameDisplayable - RemoteNameDisplayable *string `json:"remoteNameDisplayable,omitempty"` - - - // RoomId - Unique identifier for the room - RoomId *string `json:"roomId,omitempty"` - - - // MonitoredSessionId - The sessionID being monitored - MonitoredSessionId *string `json:"monitoredSessionId,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // CallbackUserName - The name of the user requesting a call back - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // CallbackNumbers - List of numbers to callback - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackScheduledTime - Scheduled callback date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // ScriptId - A unique identifier for a script - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - A unique identifier for a peer - PeerId *string `json:"peerId,omitempty"` - - - // SkipEnabled - (Dialer) Whether the agent can skip the dialer contact - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // TimeoutSeconds - The number of seconds before PureCloud begins the call for a call back. 0 disables automatic calling - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // CobrowseRole - Describe side of the cobrowse (sharer or viewer) - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // CobrowseRoomId - A unique identifier for a PureCloud Cobrowse room. - CobrowseRoomId *string `json:"cobrowseRoomId,omitempty"` - - - // MediaBridgeId - MediaBridgeId *string `json:"mediaBridgeId,omitempty"` - - - // ScreenShareAddressSelf - Direct ScreenShare address - ScreenShareAddressSelf *string `json:"screenShareAddressSelf,omitempty"` - - - // SharingScreen - Flag determining if screenShare is started or not (true/false) - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // ScreenShareRoomId - A unique identifier for a PureCloud ScreenShare room. - ScreenShareRoomId *string `json:"screenShareRoomId,omitempty"` - - - // VideoRoomId - A unique identifier for a PureCloud video room. - VideoRoomId *string `json:"videoRoomId,omitempty"` - - - // VideoAddressSelf - Direct Video address - VideoAddressSelf *string `json:"videoAddressSelf,omitempty"` - - - // Segments - List of segments for this session - Segments *[]Analyticsconversationsegment `json:"segments,omitempty"` - - - // Metrics - List of metrics for this session - Metrics *[]Analyticssessionmetric `json:"metrics,omitempty"` - - - // Flow - IVR flow execution associated with this session - Flow *Analyticsflow `json:"flow,omitempty"` - - - // MediaEndpointStats - Media endpoint stats associated with this session - MediaEndpointStats *[]Analyticsmediaendpointstat `json:"mediaEndpointStats,omitempty"` - - - // Recording - Flag determining if an audio recording was started or not - Recording *bool `json:"recording,omitempty"` - - - // JourneyCustomerId - ID of the journey customer - JourneyCustomerId *string `json:"journeyCustomerId,omitempty"` - - - // JourneyCustomerIdType - Type of the journey customer ID - JourneyCustomerIdType *string `json:"journeyCustomerIdType,omitempty"` - - - // JourneyCustomerSessionId - ID of the journey customer session - JourneyCustomerSessionId *string `json:"journeyCustomerSessionId,omitempty"` - - - // JourneyCustomerSessionIdType - Type of the journey customer session ID - JourneyCustomerSessionIdType *string `json:"journeyCustomerSessionIdType,omitempty"` - - - // JourneyActionId - Journey action ID - JourneyActionId *string `json:"journeyActionId,omitempty"` - - - // JourneyActionMapId - Journey action map ID - JourneyActionMapId *string `json:"journeyActionMapId,omitempty"` - - - // JourneyActionMapVersion - Journey action map version - JourneyActionMapVersion *string `json:"journeyActionMapVersion,omitempty"` - - - // ProtocolCallId - The original voice protocol call ID, e.g. a SIP call ID - ProtocolCallId *string `json:"protocolCallId,omitempty"` - - - // Provider - The source provider for the communication - Provider *string `json:"provider,omitempty"` - - - // Remote - Name, phone number, or email address of the remote party. - Remote *string `json:"remote,omitempty"` - - - // MediaCount - Count of any media (images, files, etc) included in this session - MediaCount *int32 `json:"mediaCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticssession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticssessionmetric.go b/build/platformclientv2/analyticssessionmetric.go deleted file mode 100644 index a206159af..000000000 --- a/build/platformclientv2/analyticssessionmetric.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticssessionmetric -type Analyticssessionmetric struct { - // Name - Unique name of this metric - Name *string `json:"name,omitempty"` - - - // Value - The metric value - Value *int64 `json:"value,omitempty"` - - - // EmitDate - Metric emission date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EmitDate *time.Time `json:"emitDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticssessionmetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticssurvey.go b/build/platformclientv2/analyticssurvey.go deleted file mode 100644 index ec2acf874..000000000 --- a/build/platformclientv2/analyticssurvey.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticssurvey -type Analyticssurvey struct { - // SurveyId - Unique identifier for the survey - SurveyId *string `json:"surveyId,omitempty"` - - - // SurveyFormId - Unique identifier for the survey form - SurveyFormId *string `json:"surveyFormId,omitempty"` - - - // SurveyFormName - Name of the survey form - SurveyFormName *string `json:"surveyFormName,omitempty"` - - - // SurveyFormContextId - Unique identifier for the survey form, regardless of version - SurveyFormContextId *string `json:"surveyFormContextId,omitempty"` - - - // EventTime - Specifies when a survey occurred. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EventTime *time.Time `json:"eventTime,omitempty"` - - - // UserId - A unique identifier of the PureCloud user - UserId *string `json:"userId,omitempty"` - - - // QueueId - Unique identifier for the queue the conversation was on - QueueId *string `json:"queueId,omitempty"` - - - // SurveyStatus - Survey status - SurveyStatus *string `json:"surveyStatus,omitempty"` - - - // SurveyPromoterScore - Promoter score of the survey - SurveyPromoterScore *int32 `json:"surveyPromoterScore,omitempty"` - - - // SurveyCompletedDate - Completion date/time of the survey. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SurveyCompletedDate *time.Time `json:"surveyCompletedDate,omitempty"` - - - // OSurveyTotalScore - OSurveyTotalScore *int64 `json:"oSurveyTotalScore,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticssurvey) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsuserdetail.go b/build/platformclientv2/analyticsuserdetail.go deleted file mode 100644 index 146adba08..000000000 --- a/build/platformclientv2/analyticsuserdetail.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsuserdetail -type Analyticsuserdetail struct { - // UserId - The identifier for the user - UserId *string `json:"userId,omitempty"` - - - // PrimaryPresence - The presence records for the user - PrimaryPresence *[]Analyticsuserpresencerecord `json:"primaryPresence,omitempty"` - - - // RoutingStatus - The ACD routing status records for the user - RoutingStatus *[]Analyticsroutingstatusrecord `json:"routingStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsuserdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsuserdetailsasyncqueryresponse.go b/build/platformclientv2/analyticsuserdetailsasyncqueryresponse.go deleted file mode 100644 index 436c593a2..000000000 --- a/build/platformclientv2/analyticsuserdetailsasyncqueryresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsuserdetailsasyncqueryresponse -type Analyticsuserdetailsasyncqueryresponse struct { - // UserDetails - UserDetails *[]Analyticsuserdetail `json:"userDetails,omitempty"` - - - // Cursor - Optional cursor to indicate where to resume the results - Cursor *string `json:"cursor,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsuserdetailsasyncqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsuserdetailsqueryresponse.go b/build/platformclientv2/analyticsuserdetailsqueryresponse.go deleted file mode 100644 index 950dd5c1d..000000000 --- a/build/platformclientv2/analyticsuserdetailsqueryresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Analyticsuserdetailsqueryresponse -type Analyticsuserdetailsqueryresponse struct { - // UserDetails - UserDetails *[]Analyticsuserdetail `json:"userDetails,omitempty"` - - - // Aggregations - Aggregations *[]Aggregationresult `json:"aggregations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsuserdetailsqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/analyticsuserpresencerecord.go b/build/platformclientv2/analyticsuserpresencerecord.go deleted file mode 100644 index 05298c8e4..000000000 --- a/build/platformclientv2/analyticsuserpresencerecord.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Analyticsuserpresencerecord -type Analyticsuserpresencerecord struct { - // StartTime - The start time of the record. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The end time of the record. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // SystemPresence - The user's system presence - SystemPresence *string `json:"systemPresence,omitempty"` - - - // OrganizationPresenceId - The identifier for the user's organization presence - OrganizationPresenceId *string `json:"organizationPresenceId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Analyticsuserpresencerecord) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/annotation.go b/build/platformclientv2/annotation.go deleted file mode 100644 index f47c93284..000000000 --- a/build/platformclientv2/annotation.go +++ /dev/null @@ -1,101 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Annotation -type Annotation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Location - Offset of annotation in milliseconds. - Location *int64 `json:"location,omitempty"` - - - // DurationMs - Duration of annotation in milliseconds. - DurationMs *int64 `json:"durationMs,omitempty"` - - - // AbsoluteLocation - Offset of annotation (milliseconds) from start of recording. - AbsoluteLocation *int64 `json:"absoluteLocation,omitempty"` - - - // AbsoluteDurationMs - Duration of annotation (milliseconds). - AbsoluteDurationMs *int64 `json:"absoluteDurationMs,omitempty"` - - - // RecordingLocation - Offset of annotation (milliseconds) from start of recording, adjusted for any recording cuts - RecordingLocation *int64 `json:"recordingLocation,omitempty"` - - - // RecordingDurationMs - Duration of annotation (milliseconds), adjusted for any recording cuts. - RecordingDurationMs *int64 `json:"recordingDurationMs,omitempty"` - - - // User - User that created this annotation (if any). - User *User `json:"user,omitempty"` - - - // Description - Text of annotation. - Description *string `json:"description,omitempty"` - - - // KeywordName - The word or phrase which is being looked for with speech recognition. - KeywordName *string `json:"keywordName,omitempty"` - - - // Confidence - Actual confidence that this is an accurate match. - Confidence *float32 `json:"confidence,omitempty"` - - - // KeywordSetId - A unique identifier for the keyword set to which this spotted keyword belongs. - KeywordSetId *string `json:"keywordSetId,omitempty"` - - - // KeywordSetName - The keyword set to which this spotted keyword belongs. - KeywordSetName *string `json:"keywordSetName,omitempty"` - - - // Utterance - The phonetic spellings for the phrase and alternate spellings. - Utterance *string `json:"utterance,omitempty"` - - - // TimeBegin - Beginning time offset of the keyword spot match. - TimeBegin *string `json:"timeBegin,omitempty"` - - - // TimeEnd - Ending time offset of the keyword spot match. - TimeEnd *string `json:"timeEnd,omitempty"` - - - // KeywordConfidenceThreshold - Configured sensitivity threshold that can be increased to lower false positives or decreased to reduce false negatives. - KeywordConfidenceThreshold *string `json:"keywordConfidenceThreshold,omitempty"` - - - // AgentScoreModifier - A modifier to the evaluation score when the phrase is spotted in the agent channel. - AgentScoreModifier *string `json:"agentScoreModifier,omitempty"` - - - // CustomerScoreModifier - A modifier to the evaluation score when the phrase is spotted in the customer channel. - CustomerScoreModifier *string `json:"customerScoreModifier,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Annotation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/answeroption.go b/build/platformclientv2/answeroption.go deleted file mode 100644 index 080204811..000000000 --- a/build/platformclientv2/answeroption.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Answeroption -type Answeroption struct { - // Id - Id *string `json:"id,omitempty"` - - - // Text - Text *string `json:"text,omitempty"` - - - // Value - Value *int32 `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Answeroption) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/apiclient.go b/build/platformclientv2/apiclient.go deleted file mode 100644 index 82a555028..000000000 --- a/build/platformclientv2/apiclient.go +++ /dev/null @@ -1,215 +0,0 @@ -package platformclientv2 - -import ( - "bytes" - "encoding/json" - "fmt" - "io/ioutil" - "net/http" - "net/url" - "reflect" - "strings" - "time" -) - -// APIClient provides functions for making API requests -type APIClient struct { - client http.Client - configuration *Configuration -} - -// NewAPIClient creates a new API client -func NewAPIClient(c *Configuration) APIClient { - timeout, err := time.ParseDuration("16s") - if err != nil { - panic(err) - } - return APIClient{ - client: http.Client{Timeout: timeout}, - configuration: c, - } -} - -// SelectHeaderContentType selects the header content type -func (c *APIClient) SelectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// SelectHeaderAccept selects the header accept -func (c *APIClient) SelectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - if contains(accepts, "application/json") { - return "application/json" - } - return strings.Join(accepts, ",") -} - -func contains(source []string, containvalue string) bool { - for _, a := range source { - if strings.ToLower(a) == strings.ToLower(containvalue) { - return true - } - } - return false -} - -// CallAPI invokes an API endpoint -func (c *APIClient) CallAPI(path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams map[string]string, - formParams url.Values, - fileName string, - fileBytes []byte) (*APIResponse, error) { - - // Build request URL w/query params - urlString := path + "?" - if queryParams != nil { - for k, v := range queryParams { - urlString += fmt.Sprintf("%v=%v&", url.QueryEscape(strings.TrimSpace(k)), url.QueryEscape(strings.TrimSpace(v))) - } - } - urlString = urlString[:len(urlString)-1] - u, err := url.Parse(urlString) - if err != nil { - return nil, err - } - request := http.Request{ - URL: u, - Close: true, - Method: strings.ToUpper(method), - Header: make(map[string][]string), - } - - // Set default headers - if c.configuration.DefaultHeader != nil { - for k, v := range c.configuration.DefaultHeader { - fmt.Printf(" %v=%v", k, v) - request.Header.Set(k, v) - } - } - - // Set form data - if formParams != nil { - // request.Form = make(map[string][]string) - // request.Header.Set("Content-Type", "application/x-www-form-urlencoded") - // for k, v := range formParams { - // request.Form.Set(k, v) - // } - - request.Header.Set("Content-Type", "application/x-www-form-urlencoded") - request.Body = ioutil.NopCloser(strings.NewReader(formParams.Encode())) - } - - // Set post body - if postBody != nil { - request.Header.Set("Content-Type", "application/json") - j, _ := json.Marshal(postBody) - request.Body = ioutil.NopCloser(bytes.NewReader(j)) - } - - // Set provided headers - if headerParams != nil { - for k, v := range headerParams { - request.Header.Set(k, v) - } - } - - // Debug request - if c.configuration.GetDebug() { - c.configuration.Debugf("======== %v\n", time.Now()) - c.configuration.Debugf("%v %v\n", request.Method, u.Path) - c.configuration.Debugf("HOST: %v:%v\n", u.Host, u.Port()) - c.configuration.Debug("HEADERS:") - for k, v := range request.Header { - c.configuration.Debugf(" %v=%v\n", k, v) - } - c.configuration.Debug(request) - } - - // Execute request - reqStart := time.Now() - res, err := c.client.Do(&request) - reqEnd := time.Now() - duration := reqEnd.Sub(reqStart) - - // Read body - body, _ := ioutil.ReadAll(res.Body) - - // Debug response - if c.configuration.GetDebug() { - c.configuration.Debugf("==== RESPONSE %v (%v) ====\n", reqEnd, duration) - c.configuration.Debugf("STATUS: %v\n", res.Status) - c.configuration.Debug("HEADERS:") - for k, v := range res.Header { - c.configuration.Debugf(" %v=%v\n", k, v) - } - if body != nil { - c.configuration.Debugf("BODY:\n%v\n", string(body)) - } - c.configuration.Debug("========") - } - - return NewAPIResponse(res, body) -} - -func buildURL(basePath string, path string, queryParams map[string]string) (*url.URL, error) { - urlString := basePath + path - if len(queryParams) > 0 { - urlString += "?" - for k, v := range queryParams { - urlString += fmt.Sprintf("%v=%v&", strings.TrimSpace(k), strings.TrimSpace(v)) - } - urlString = urlString[:len(urlString)-1] - } - - u, err := url.Parse(urlString) - if err != nil { - return nil, err - } - return u, nil -} - -// ParameterToString joins a parameter in the desired format -func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string { - sep := "," - switch collectionFormat { - case "pipes": - sep = "|" - case "ssv": - sep = " " - case "tsv": - sep = "\t" - } - - switch t := reflect.TypeOf(obj).String(); t { - case "[]string": - return strings.Join(obj.([]string), sep) - default: - return fmt.Sprintf("%v", obj) - } -} - -// Int32 is an easy way to get a pointer -func Int32(v int) *int32 { - p := int32(v) - return &p -} - -// String is an easy way to get a pointer -func String(v string) *string { - return &v -} - -// Bool is an easy way to get a pointer -func Bool(v bool) *bool { - return &v -} diff --git a/build/platformclientv2/apiresponse.go b/build/platformclientv2/apiresponse.go deleted file mode 100644 index 0c5c1f057..000000000 --- a/build/platformclientv2/apiresponse.go +++ /dev/null @@ -1,111 +0,0 @@ -package platformclientv2 - -import ( - "encoding/json" - "errors" - "fmt" - "net/http" -) - -// APIResponse is a friendly interface for a response from the API -type APIResponse struct { - Response *http.Response `json:"-"` - HasBody bool `json:"hasBody,omitempty"` - RawBody []byte `json:"rawBody,omitempty"` - IsSuccess bool `json:"isSuccess,omitempty"` - StatusCode int `json:"statusCode,omitempty"` - Status string `json:"status,omitempty"` - Error *APIError `json:"error,omitempty"` - ErrorMessage string `json:"errorMessage,omitempty"` - CorrelationID string `json:"correlationId,omitempty"` - Header map[string][]string `json:"header,omitempty"` -} - -// String returns the JSON serialized object -func (r *APIResponse) String() string { - s, _ := json.Marshal(r) - return string(s) -} - -// SetError returns the JSON serialized object -func (r *APIResponse) SetError(err *APIError) { - if err == nil { - return - } - r.Error = err - r.ErrorMessage = fmt.Sprintf("API Error: %v - %v (%v)", r.StatusCode, err.Message, r.CorrelationID) -} - -// APIError is the standard error body from the API -type APIError struct { - Status int `json:"status,omitempty"` - Message string `json:"message,omitempty"` - MessageWithParams map[string]interface{} `json:"messageWithParams,omitempty"` - Code string `json:"code,omitempty"` - ContextID string `json:"contextId,omitempty"` - Details []string `json:"details,omitempty"` -} - -// String returns the JSON serialized object -func (r *APIError) String() string { - s, _ := json.Marshal(r) - return string(s) -} - -// NewAPIResponse creates an APIResponse from a http Response -func NewAPIResponse(r *http.Response, body []byte) (*APIResponse, error) { - response := &APIResponse{Response: r} - var apiError *APIError - - response.StatusCode = r.StatusCode - response.Status = r.Status - response.HasBody = body != nil - response.IsSuccess = r.StatusCode >= 200 && r.StatusCode < 300 - response.Header = r.Header - if header, exists := response.Header["Inin-Correlation-Id"]; exists { - response.CorrelationID = header[0] - } - - if response.HasBody { - // Set body - response.RawBody = body - - // Handle error body - if !response.IsSuccess { - // Note: an error will always be returned from this block. - // response.Error will only be set if the error is parsed from the HTTP response body - - // Parse response body as error - err := json.Unmarshal(response.RawBody, &apiError) - if err != nil { - // Return response and json parse error - return response, err - } - - // Ensure context id is set - if apiError.ContextID == "" { - apiError.ContextID = response.CorrelationID - } - - // Set response error on the response - response.SetError(apiError) - - // Return response and api error message - return response, errors.New(response.ErrorMessage) - } - } - - // Return response and unknown API error. - // This shouldn't happen, but can if there isn't a response body for an unsuccessful request. - if !response.IsSuccess { - err := APIError{ - Message: "API Error: Unknown API Error", - ContextID: response.CorrelationID, - } - response.SetError(&err) - return response, errors.New(response.ErrorMessage) - } - - // Return response - return response, nil -} diff --git a/build/platformclientv2/architectapi.go b/build/platformclientv2/architectapi.go deleted file mode 100644 index c6b5a0650..000000000 --- a/build/platformclientv2/architectapi.go +++ /dev/null @@ -1,7644 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ArchitectApi provides functions for API endpoints -type ArchitectApi struct { - Configuration *Configuration -} - -// NewArchitectApi creates an API instance using the default configuration -func NewArchitectApi() *ArchitectApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ArchitectApi with base path: %s", strings.ToLower(config.BasePath))) - return &ArchitectApi{ - Configuration: config, - } -} - -// NewArchitectApiWithConfig creates an API instance using the provided configuration -func NewArchitectApiWithConfig(config *Configuration) *ArchitectApi { - config.Debugf("Creating ArchitectApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ArchitectApi{ - Configuration: config, - } -} - -// DeleteArchitectEmergencygroup invokes DELETE /api/v2/architect/emergencygroups/{emergencyGroupId} -// -// Deletes a emergency group by ID -// -// -func (a ArchitectApi) DeleteArchitectEmergencygroup(emergencyGroupId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/emergencygroups/{emergencyGroupId}" - path = strings.Replace(path, "{emergencyGroupId}", fmt.Sprintf("%v", emergencyGroupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'emergencyGroupId' is set - if &emergencyGroupId == nil { - // - return nil, errors.New("Missing required parameter 'emergencyGroupId' when calling ArchitectApi->DeleteArchitectEmergencygroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectIvr invokes DELETE /api/v2/architect/ivrs/{ivrId} -// -// Delete an IVR Config. -// -// -func (a ArchitectApi) DeleteArchitectIvr(ivrId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/ivrs/{ivrId}" - path = strings.Replace(path, "{ivrId}", fmt.Sprintf("%v", ivrId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ivrId' is set - if &ivrId == nil { - // - return nil, errors.New("Missing required parameter 'ivrId' when calling ArchitectApi->DeleteArchitectIvr") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectPrompt invokes DELETE /api/v2/architect/prompts/{promptId} -// -// Delete specified user prompt -// -// -func (a ArchitectApi) DeleteArchitectPrompt(promptId string, allResources bool) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->DeleteArchitectPrompt") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["allResources"] = a.Configuration.APIClient.ParameterToString(allResources, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectPromptResource invokes DELETE /api/v2/architect/prompts/{promptId}/resources/{languageCode} -// -// Delete specified user prompt resource -// -// -func (a ArchitectApi) DeleteArchitectPromptResource(promptId string, languageCode string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/resources/{languageCode}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->DeleteArchitectPromptResource") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->DeleteArchitectPromptResource") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectPromptResourceAudio invokes DELETE /api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio -// -// Delete specified user prompt resource audio -// -// -func (a ArchitectApi) DeleteArchitectPromptResourceAudio(promptId string, languageCode string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->DeleteArchitectPromptResourceAudio") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->DeleteArchitectPromptResourceAudio") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectPrompts invokes DELETE /api/v2/architect/prompts -// -// Batch-delete a list of prompts -// -// Multiple IDs can be specified, in which case all specified prompts will be deleted. Asynchronous. Notification topic: v2.architect.prompts.{promptId} -func (a ArchitectApi) DeleteArchitectPrompts(id []string) (*Operation, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts" - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'id' when calling ArchitectApi->DeleteArchitectPrompts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteArchitectSchedule invokes DELETE /api/v2/architect/schedules/{scheduleId} -// -// Delete a schedule by id -// -// -func (a ArchitectApi) DeleteArchitectSchedule(scheduleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedules/{scheduleId}" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return nil, errors.New("Missing required parameter 'scheduleId' when calling ArchitectApi->DeleteArchitectSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectSchedulegroup invokes DELETE /api/v2/architect/schedulegroups/{scheduleGroupId} -// -// Deletes a schedule group by ID -// -// -func (a ArchitectApi) DeleteArchitectSchedulegroup(scheduleGroupId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedulegroups/{scheduleGroupId}" - path = strings.Replace(path, "{scheduleGroupId}", fmt.Sprintf("%v", scheduleGroupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleGroupId' is set - if &scheduleGroupId == nil { - // - return nil, errors.New("Missing required parameter 'scheduleGroupId' when calling ArchitectApi->DeleteArchitectSchedulegroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteArchitectSystempromptResource invokes DELETE /api/v2/architect/systemprompts/{promptId}/resources/{languageCode} -// -// Delete a system prompt resource override. -// -// -func (a ArchitectApi) DeleteArchitectSystempromptResource(promptId string, languageCode string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->DeleteArchitectSystempromptResource") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->DeleteArchitectSystempromptResource") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteFlow invokes DELETE /api/v2/flows/{flowId} -// -// Delete flow -// -// -func (a ArchitectApi) DeleteFlow(flowId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->DeleteFlow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteFlows invokes DELETE /api/v2/flows -// -// Batch-delete a list of flows -// -// Multiple IDs can be specified, in which case all specified flows will be deleted. Asynchronous. Notification topic: v2.flows.{flowId} -func (a ArchitectApi) DeleteFlows(id []string) (*Operation, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows" - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'id' when calling ArchitectApi->DeleteFlows") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteFlowsDatatable invokes DELETE /api/v2/flows/datatables/{datatableId} -// -// deletes a specific datatable by id -// -// Deletes an entire datatable (including the schema and data) with a given datatableId -func (a ArchitectApi) DeleteFlowsDatatable(datatableId string, force bool) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->DeleteFlowsDatatable") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["force"] = a.Configuration.APIClient.ParameterToString(force, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteFlowsDatatableRow invokes DELETE /api/v2/flows/datatables/{datatableId}/rows/{rowId} -// -// Delete a row entry -// -// Deletes a row with a given rowId (the value of the key field). -func (a ArchitectApi) DeleteFlowsDatatableRow(datatableId string, rowId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/rows/{rowId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - path = strings.Replace(path, "{rowId}", fmt.Sprintf("%v", rowId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->DeleteFlowsDatatableRow") - } - // verify the required parameter 'rowId' is set - if &rowId == nil { - // - return nil, errors.New("Missing required parameter 'rowId' when calling ArchitectApi->DeleteFlowsDatatableRow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetArchitectDependencytracking invokes GET /api/v2/architect/dependencytracking -// -// Get Dependency Tracking objects that have a given display name -// -// -func (a ArchitectApi) GetArchitectDependencytracking(name string, pageNumber int32, pageSize int32, objectType []string, consumedResources bool, consumingResources bool, consumedResourceType []string, consumingResourceType []string) (*Dependencyobjectentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking" - defaultReturn := new(Dependencyobjectentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'name' is set - if &name == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'name' when calling ArchitectApi->GetArchitectDependencytracking") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range objectType { - queryParams["objectType"] = value - } - } else { - queryParams["objectType"] = a.Configuration.APIClient.ParameterToString(objectType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["consumedResources"] = a.Configuration.APIClient.ParameterToString(consumedResources, collectionFormat) - - - - - collectionFormat = "" - queryParams["consumingResources"] = a.Configuration.APIClient.ParameterToString(consumingResources, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range consumedResourceType { - queryParams["consumedResourceType"] = value - } - } else { - queryParams["consumedResourceType"] = a.Configuration.APIClient.ParameterToString(consumedResourceType, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range consumingResourceType { - queryParams["consumingResourceType"] = value - } - } else { - queryParams["consumingResourceType"] = a.Configuration.APIClient.ParameterToString(consumingResourceType, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencyobjectentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingBuild invokes GET /api/v2/architect/dependencytracking/build -// -// Get Dependency Tracking build status for an organization -// -// -func (a ArchitectApi) GetArchitectDependencytrackingBuild() (*Dependencystatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/build" - defaultReturn := new(Dependencystatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencystatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingConsumedresources invokes GET /api/v2/architect/dependencytracking/consumedresources -// -// Get resources that are consumed by a given Dependency Tracking object -// -// -func (a ArchitectApi) GetArchitectDependencytrackingConsumedresources(id string, version string, objectType string, resourceType []string, pageNumber int32, pageSize int32) (*Consumedresourcesentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/consumedresources" - defaultReturn := new(Consumedresourcesentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'id' when calling ArchitectApi->GetArchitectDependencytrackingConsumedresources") - } - // verify the required parameter 'version' is set - if &version == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'version' when calling ArchitectApi->GetArchitectDependencytrackingConsumedresources") - } - // verify the required parameter 'objectType' is set - if &objectType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'objectType' when calling ArchitectApi->GetArchitectDependencytrackingConsumedresources") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - - - - - collectionFormat = "" - queryParams["version"] = a.Configuration.APIClient.ParameterToString(version, collectionFormat) - - - - - collectionFormat = "" - queryParams["objectType"] = a.Configuration.APIClient.ParameterToString(objectType, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range resourceType { - queryParams["resourceType"] = value - } - } else { - queryParams["resourceType"] = a.Configuration.APIClient.ParameterToString(resourceType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Consumedresourcesentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingConsumingresources invokes GET /api/v2/architect/dependencytracking/consumingresources -// -// Get resources that consume a given Dependency Tracking object -// -// -func (a ArchitectApi) GetArchitectDependencytrackingConsumingresources(id string, objectType string, resourceType []string, pageNumber int32, pageSize int32, flowFilter string) (*Consumingresourcesentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/consumingresources" - defaultReturn := new(Consumingresourcesentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'id' when calling ArchitectApi->GetArchitectDependencytrackingConsumingresources") - } - // verify the required parameter 'objectType' is set - if &objectType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'objectType' when calling ArchitectApi->GetArchitectDependencytrackingConsumingresources") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - - - - - collectionFormat = "" - queryParams["objectType"] = a.Configuration.APIClient.ParameterToString(objectType, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range resourceType { - queryParams["resourceType"] = value - } - } else { - queryParams["resourceType"] = a.Configuration.APIClient.ParameterToString(resourceType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["flowFilter"] = a.Configuration.APIClient.ParameterToString(flowFilter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Consumingresourcesentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingDeletedresourceconsumers invokes GET /api/v2/architect/dependencytracking/deletedresourceconsumers -// -// Get Dependency Tracking objects that consume deleted resources -// -// -func (a ArchitectApi) GetArchitectDependencytrackingDeletedresourceconsumers(name string, objectType []string, flowFilter string, consumedResources bool, consumedResourceType []string, pageNumber int32, pageSize int32) (*Dependencyobjectentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/deletedresourceconsumers" - defaultReturn := new(Dependencyobjectentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range objectType { - queryParams["objectType"] = value - } - } else { - queryParams["objectType"] = a.Configuration.APIClient.ParameterToString(objectType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["flowFilter"] = a.Configuration.APIClient.ParameterToString(flowFilter, collectionFormat) - - - - - collectionFormat = "" - queryParams["consumedResources"] = a.Configuration.APIClient.ParameterToString(consumedResources, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range consumedResourceType { - queryParams["consumedResourceType"] = value - } - } else { - queryParams["consumedResourceType"] = a.Configuration.APIClient.ParameterToString(consumedResourceType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencyobjectentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingObject invokes GET /api/v2/architect/dependencytracking/object -// -// Get a Dependency Tracking object -// -// -func (a ArchitectApi) GetArchitectDependencytrackingObject(id string, version string, objectType string, consumedResources bool, consumingResources bool, consumedResourceType []string, consumingResourceType []string) (*Dependencyobject, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/object" - defaultReturn := new(Dependencyobject) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'id' when calling ArchitectApi->GetArchitectDependencytrackingObject") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - - - - - collectionFormat = "" - queryParams["version"] = a.Configuration.APIClient.ParameterToString(version, collectionFormat) - - - - - collectionFormat = "" - queryParams["objectType"] = a.Configuration.APIClient.ParameterToString(objectType, collectionFormat) - - - - - collectionFormat = "" - queryParams["consumedResources"] = a.Configuration.APIClient.ParameterToString(consumedResources, collectionFormat) - - - - - collectionFormat = "" - queryParams["consumingResources"] = a.Configuration.APIClient.ParameterToString(consumingResources, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range consumedResourceType { - queryParams["consumedResourceType"] = value - } - } else { - queryParams["consumedResourceType"] = a.Configuration.APIClient.ParameterToString(consumedResourceType, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range consumingResourceType { - queryParams["consumingResourceType"] = value - } - } else { - queryParams["consumingResourceType"] = a.Configuration.APIClient.ParameterToString(consumingResourceType, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencyobject - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingType invokes GET /api/v2/architect/dependencytracking/types/{typeId} -// -// Get a Dependency Tracking type. -// -// -func (a ArchitectApi) GetArchitectDependencytrackingType(typeId string) (*Dependencytype, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/types/{typeId}" - path = strings.Replace(path, "{typeId}", fmt.Sprintf("%v", typeId), -1) - defaultReturn := new(Dependencytype) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'typeId' is set - if &typeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'typeId' when calling ArchitectApi->GetArchitectDependencytrackingType") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencytype - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingTypes invokes GET /api/v2/architect/dependencytracking/types -// -// Get Dependency Tracking types. -// -// -func (a ArchitectApi) GetArchitectDependencytrackingTypes(pageNumber int32, pageSize int32) (*Dependencytypeentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/types" - defaultReturn := new(Dependencytypeentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencytypeentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectDependencytrackingUpdatedresourceconsumers invokes GET /api/v2/architect/dependencytracking/updatedresourceconsumers -// -// Get Dependency Tracking objects that depend on updated resources -// -// -func (a ArchitectApi) GetArchitectDependencytrackingUpdatedresourceconsumers(name string, objectType []string, consumedResources bool, consumedResourceType []string, pageNumber int32, pageSize int32) (*Dependencyobjectentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/updatedresourceconsumers" - defaultReturn := new(Dependencyobjectentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range objectType { - queryParams["objectType"] = value - } - } else { - queryParams["objectType"] = a.Configuration.APIClient.ParameterToString(objectType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["consumedResources"] = a.Configuration.APIClient.ParameterToString(consumedResources, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range consumedResourceType { - queryParams["consumedResourceType"] = value - } - } else { - queryParams["consumedResourceType"] = a.Configuration.APIClient.ParameterToString(consumedResourceType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dependencyobjectentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectEmergencygroup invokes GET /api/v2/architect/emergencygroups/{emergencyGroupId} -// -// Gets a emergency group by ID -// -// -func (a ArchitectApi) GetArchitectEmergencygroup(emergencyGroupId string) (*Emergencygroup, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/emergencygroups/{emergencyGroupId}" - path = strings.Replace(path, "{emergencyGroupId}", fmt.Sprintf("%v", emergencyGroupId), -1) - defaultReturn := new(Emergencygroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'emergencyGroupId' is set - if &emergencyGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'emergencyGroupId' when calling ArchitectApi->GetArchitectEmergencygroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emergencygroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectEmergencygroups invokes GET /api/v2/architect/emergencygroups -// -// Get a list of emergency groups. -// -// -func (a ArchitectApi) GetArchitectEmergencygroups(pageNumber int32, pageSize int32, sortBy string, sortOrder string, name string) (*Emergencygrouplisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/emergencygroups" - defaultReturn := new(Emergencygrouplisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emergencygrouplisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectIvr invokes GET /api/v2/architect/ivrs/{ivrId} -// -// Get an IVR config. -// -// -func (a ArchitectApi) GetArchitectIvr(ivrId string) (*Ivr, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/ivrs/{ivrId}" - path = strings.Replace(path, "{ivrId}", fmt.Sprintf("%v", ivrId), -1) - defaultReturn := new(Ivr) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ivrId' is set - if &ivrId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ivrId' when calling ArchitectApi->GetArchitectIvr") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ivr - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectIvrs invokes GET /api/v2/architect/ivrs -// -// Get IVR configs. -// -// -func (a ArchitectApi) GetArchitectIvrs(pageNumber int32, pageSize int32, sortBy string, sortOrder string, name string) (*Ivrentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/ivrs" - defaultReturn := new(Ivrentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ivrentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectPrompt invokes GET /api/v2/architect/prompts/{promptId} -// -// Get specified user prompt -// -// -func (a ArchitectApi) GetArchitectPrompt(promptId string) (*Prompt, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Prompt) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectPrompt") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Prompt - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectPromptHistoryHistoryId invokes GET /api/v2/architect/prompts/{promptId}/history/{historyId} -// -// Get generated prompt history -// -// -func (a ArchitectApi) GetArchitectPromptHistoryHistoryId(promptId string, historyId string, pageNumber int32, pageSize int32, sortOrder string, sortBy string, action []string) (*Historylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/history/{historyId}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{historyId}", fmt.Sprintf("%v", historyId), -1) - defaultReturn := new(Historylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectPromptHistoryHistoryId") - } - // verify the required parameter 'historyId' is set - if &historyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'historyId' when calling ArchitectApi->GetArchitectPromptHistoryHistoryId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range action { - queryParams["action"] = value - } - } else { - queryParams["action"] = a.Configuration.APIClient.ParameterToString(action, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Historylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectPromptResource invokes GET /api/v2/architect/prompts/{promptId}/resources/{languageCode} -// -// Get specified user prompt resource -// -// -func (a ArchitectApi) GetArchitectPromptResource(promptId string, languageCode string) (*Promptasset, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/resources/{languageCode}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - defaultReturn := new(Promptasset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectPromptResource") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->GetArchitectPromptResource") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Promptasset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectPromptResources invokes GET /api/v2/architect/prompts/{promptId}/resources -// -// Get a pageable list of user prompt resources -// -// The returned list is pageable, and query parameters can be used for filtering. -func (a ArchitectApi) GetArchitectPromptResources(promptId string, pageNumber int32, pageSize int32) (*Promptassetentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/resources" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Promptassetentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectPromptResources") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Promptassetentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectPrompts invokes GET /api/v2/architect/prompts -// -// Get a pageable list of user prompts -// -// The returned list is pageable, and query parameters can be used for filtering. Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated. -func (a ArchitectApi) GetArchitectPrompts(pageNumber int32, pageSize int32, name []string, description string, nameOrDescription string, sortBy string, sortOrder string) (*Promptentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts" - defaultReturn := new(Promptentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range name { - queryParams["name"] = value - } - } else { - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["description"] = a.Configuration.APIClient.ParameterToString(description, collectionFormat) - - - - - collectionFormat = "" - queryParams["nameOrDescription"] = a.Configuration.APIClient.ParameterToString(nameOrDescription, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Promptentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSchedule invokes GET /api/v2/architect/schedules/{scheduleId} -// -// Get a schedule by ID -// -// -func (a ArchitectApi) GetArchitectSchedule(scheduleId string) (*Schedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedules/{scheduleId}" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Schedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling ArchitectApi->GetArchitectSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSchedulegroup invokes GET /api/v2/architect/schedulegroups/{scheduleGroupId} -// -// Gets a schedule group by ID -// -// -func (a ArchitectApi) GetArchitectSchedulegroup(scheduleGroupId string) (*Schedulegroup, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedulegroups/{scheduleGroupId}" - path = strings.Replace(path, "{scheduleGroupId}", fmt.Sprintf("%v", scheduleGroupId), -1) - defaultReturn := new(Schedulegroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleGroupId' is set - if &scheduleGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleGroupId' when calling ArchitectApi->GetArchitectSchedulegroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schedulegroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSchedulegroups invokes GET /api/v2/architect/schedulegroups -// -// Get a list of schedule groups. -// -// -func (a ArchitectApi) GetArchitectSchedulegroups(pageNumber int32, pageSize int32, sortBy string, sortOrder string, name string) (*Schedulegroupentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedulegroups" - defaultReturn := new(Schedulegroupentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schedulegroupentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSchedules invokes GET /api/v2/architect/schedules -// -// Get a list of schedules. -// -// -func (a ArchitectApi) GetArchitectSchedules(pageNumber int32, pageSize int32, sortBy string, sortOrder string, name string) (*Scheduleentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedules" - defaultReturn := new(Scheduleentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scheduleentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSystemprompt invokes GET /api/v2/architect/systemprompts/{promptId} -// -// Get a system prompt -// -// -func (a ArchitectApi) GetArchitectSystemprompt(promptId string) (*Systemprompt, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Systemprompt) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectSystemprompt") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Systemprompt - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSystempromptHistoryHistoryId invokes GET /api/v2/architect/systemprompts/{promptId}/history/{historyId} -// -// Get generated prompt history -// -// -func (a ArchitectApi) GetArchitectSystempromptHistoryHistoryId(promptId string, historyId string, pageNumber int32, pageSize int32, sortOrder string, sortBy string, action []string) (*Historylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/history/{historyId}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{historyId}", fmt.Sprintf("%v", historyId), -1) - defaultReturn := new(Historylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectSystempromptHistoryHistoryId") - } - // verify the required parameter 'historyId' is set - if &historyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'historyId' when calling ArchitectApi->GetArchitectSystempromptHistoryHistoryId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range action { - queryParams["action"] = value - } - } else { - queryParams["action"] = a.Configuration.APIClient.ParameterToString(action, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Historylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSystempromptResource invokes GET /api/v2/architect/systemprompts/{promptId}/resources/{languageCode} -// -// Get a system prompt resource. -// -// -func (a ArchitectApi) GetArchitectSystempromptResource(promptId string, languageCode string) (*Systempromptasset, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - defaultReturn := new(Systempromptasset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectSystempromptResource") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->GetArchitectSystempromptResource") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Systempromptasset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSystempromptResources invokes GET /api/v2/architect/systemprompts/{promptId}/resources -// -// Get system prompt resources. -// -// -func (a ArchitectApi) GetArchitectSystempromptResources(promptId string, pageNumber int32, pageSize int32, sortBy string, sortOrder string) (*Systempromptassetentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/resources" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Systempromptassetentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->GetArchitectSystempromptResources") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Systempromptassetentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetArchitectSystemprompts invokes GET /api/v2/architect/systemprompts -// -// Get System Prompts -// -// -func (a ArchitectApi) GetArchitectSystemprompts(pageNumber int32, pageSize int32, sortBy string, sortOrder string, name string, description string, nameOrDescription string) (*Systempromptentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts" - defaultReturn := new(Systempromptentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["description"] = a.Configuration.APIClient.ParameterToString(description, collectionFormat) - - - - - collectionFormat = "" - queryParams["nameOrDescription"] = a.Configuration.APIClient.ParameterToString(nameOrDescription, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Systempromptentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlow invokes GET /api/v2/flows/{flowId} -// -// Get flow -// -// -func (a ArchitectApi) GetFlow(flowId string, deleted bool) (*Flow, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->GetFlow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowHistoryHistoryId invokes GET /api/v2/flows/{flowId}/history/{historyId} -// -// Get generated flow history -// -// -func (a ArchitectApi) GetFlowHistoryHistoryId(flowId string, historyId string, pageNumber int32, pageSize int32, sortOrder string, sortBy string, action []string) (*Historylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}/history/{historyId}" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - path = strings.Replace(path, "{historyId}", fmt.Sprintf("%v", historyId), -1) - defaultReturn := new(Historylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->GetFlowHistoryHistoryId") - } - // verify the required parameter 'historyId' is set - if &historyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'historyId' when calling ArchitectApi->GetFlowHistoryHistoryId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range action { - queryParams["action"] = value - } - } else { - queryParams["action"] = a.Configuration.APIClient.ParameterToString(action, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Historylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowLatestconfiguration invokes GET /api/v2/flows/{flowId}/latestconfiguration -// -// Get the latest configuration for flow -// -// -func (a ArchitectApi) GetFlowLatestconfiguration(flowId string, deleted bool) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}/latestconfiguration" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->GetFlowLatestconfiguration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowVersion invokes GET /api/v2/flows/{flowId}/versions/{versionId} -// -// Get flow version -// -// -func (a ArchitectApi) GetFlowVersion(flowId string, versionId string, deleted string) (*Flowversion, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}/versions/{versionId}" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - path = strings.Replace(path, "{versionId}", fmt.Sprintf("%v", versionId), -1) - defaultReturn := new(Flowversion) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->GetFlowVersion") - } - // verify the required parameter 'versionId' is set - if &versionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'versionId' when calling ArchitectApi->GetFlowVersion") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flowversion - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowVersionConfiguration invokes GET /api/v2/flows/{flowId}/versions/{versionId}/configuration -// -// Create flow version configuration -// -// -func (a ArchitectApi) GetFlowVersionConfiguration(flowId string, versionId string, deleted string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}/versions/{versionId}/configuration" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - path = strings.Replace(path, "{versionId}", fmt.Sprintf("%v", versionId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->GetFlowVersionConfiguration") - } - // verify the required parameter 'versionId' is set - if &versionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'versionId' when calling ArchitectApi->GetFlowVersionConfiguration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowVersions invokes GET /api/v2/flows/{flowId}/versions -// -// Get flow version list -// -// -func (a ArchitectApi) GetFlowVersions(flowId string, pageNumber int32, pageSize int32, deleted bool) (*Flowversionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}/versions" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - defaultReturn := new(Flowversionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->GetFlowVersions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flowversionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlows invokes GET /api/v2/flows -// -// Get a pageable list of flows, filtered by query parameters -// -// If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search. -func (a ArchitectApi) GetFlows(varType []string, pageNumber int32, pageSize int32, sortBy string, sortOrder string, id []string, name string, description string, nameOrDescription string, publishVersionId string, editableBy string, lockedBy string, lockedByClientId string, secure string, deleted bool, includeSchemas bool, publishedAfter string, publishedBefore string, divisionId []string) (*Flowentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows" - defaultReturn := new(Flowentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range varType { - queryParams["varType"] = value - } - } else { - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["description"] = a.Configuration.APIClient.ParameterToString(description, collectionFormat) - - - - - collectionFormat = "" - queryParams["nameOrDescription"] = a.Configuration.APIClient.ParameterToString(nameOrDescription, collectionFormat) - - - - - collectionFormat = "" - queryParams["publishVersionId"] = a.Configuration.APIClient.ParameterToString(publishVersionId, collectionFormat) - - - - - collectionFormat = "" - queryParams["editableBy"] = a.Configuration.APIClient.ParameterToString(editableBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["lockedBy"] = a.Configuration.APIClient.ParameterToString(lockedBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["lockedByClientId"] = a.Configuration.APIClient.ParameterToString(lockedByClientId, collectionFormat) - - - - - collectionFormat = "" - queryParams["secure"] = a.Configuration.APIClient.ParameterToString(secure, collectionFormat) - - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSchemas"] = a.Configuration.APIClient.ParameterToString(includeSchemas, collectionFormat) - - - - - collectionFormat = "" - queryParams["publishedAfter"] = a.Configuration.APIClient.ParameterToString(publishedAfter, collectionFormat) - - - - - collectionFormat = "" - queryParams["publishedBefore"] = a.Configuration.APIClient.ParameterToString(publishedBefore, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flowentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatable invokes GET /api/v2/flows/datatables/{datatableId} -// -// Returns a specific datatable by id -// -// Given a datatableId returns the datatable object and schema associated with it. -func (a ArchitectApi) GetFlowsDatatable(datatableId string, expand string) (*Datatable, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(Datatable) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatable") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Datatable - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatableExportJob invokes GET /api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId} -// -// Returns the state information about an export job -// -// Returns the state information about an export job. -func (a ArchitectApi) GetFlowsDatatableExportJob(datatableId string, exportJobId string) (*Datatableexportjob, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - path = strings.Replace(path, "{exportJobId}", fmt.Sprintf("%v", exportJobId), -1) - defaultReturn := new(Datatableexportjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableExportJob") - } - // verify the required parameter 'exportJobId' is set - if &exportJobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'exportJobId' when calling ArchitectApi->GetFlowsDatatableExportJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Datatableexportjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatableImportJob invokes GET /api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId} -// -// Returns the state information about an import job -// -// Returns the state information about an import job. -func (a ArchitectApi) GetFlowsDatatableImportJob(datatableId string, importJobId string) (*Datatableimportjob, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - path = strings.Replace(path, "{importJobId}", fmt.Sprintf("%v", importJobId), -1) - defaultReturn := new(Datatableimportjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableImportJob") - } - // verify the required parameter 'importJobId' is set - if &importJobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'importJobId' when calling ArchitectApi->GetFlowsDatatableImportJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Datatableimportjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatableImportJobs invokes GET /api/v2/flows/datatables/{datatableId}/import/jobs -// -// Get all recent import jobs -// -// Get all recent import jobs -func (a ArchitectApi) GetFlowsDatatableImportJobs(datatableId string, pageNumber int32, pageSize int32) (*Entitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/import/jobs" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(Entitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableImportJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Entitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatableRow invokes GET /api/v2/flows/datatables/{datatableId}/rows/{rowId} -// -// Returns a specific row for the datatable -// -// Given a datatableId and a rowId (the value of the key field) this will return the full row contents for that rowId. -func (a ArchitectApi) GetFlowsDatatableRow(datatableId string, rowId string, showbrief bool) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/rows/{rowId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - path = strings.Replace(path, "{rowId}", fmt.Sprintf("%v", rowId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableRow") - } - // verify the required parameter 'rowId' is set - if &rowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'rowId' when calling ArchitectApi->GetFlowsDatatableRow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["showbrief"] = a.Configuration.APIClient.ParameterToString(showbrief, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatableRows invokes GET /api/v2/flows/datatables/{datatableId}/rows -// -// Returns the rows for the datatable with the given id -// -// Returns all of the rows for the datatable with the given datatableId. By default this will just be a truncated list returning the key for each row. Set showBrief to false to return all of the row contents. -func (a ArchitectApi) GetFlowsDatatableRows(datatableId string, pageNumber int32, pageSize int32, showbrief bool) (*Datatablerowentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/rows" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(Datatablerowentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableRows") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["showbrief"] = a.Configuration.APIClient.ParameterToString(showbrief, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Datatablerowentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDatatables invokes GET /api/v2/flows/datatables -// -// Retrieve a list of datatables for the org -// -// Returns a metadata list of the datatables associated with this org, including datatableId, name and description. -func (a ArchitectApi) GetFlowsDatatables(expand string, pageNumber int32, pageSize int32, sortBy string, sortOrder string) (*Datatablesdomainentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables" - defaultReturn := new(Datatablesdomainentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Datatablesdomainentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsDivisionviews invokes GET /api/v2/flows/divisionviews -// -// Get a pageable list of basic flow information objects filterable by query parameters. -// -// This returns a simplified version of /flow consisting of name and type. If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search. -func (a ArchitectApi) GetFlowsDivisionviews(varType []string, pageNumber int32, pageSize int32, sortBy string, sortOrder string, id []string, name string, publishVersionId string, publishedAfter string, publishedBefore string, divisionId []string, includeSchemas bool) (*Flowdivisionviewentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/divisionviews" - defaultReturn := new(Flowdivisionviewentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range varType { - queryParams["varType"] = value - } - } else { - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["publishVersionId"] = a.Configuration.APIClient.ParameterToString(publishVersionId, collectionFormat) - - - - - collectionFormat = "" - queryParams["publishedAfter"] = a.Configuration.APIClient.ParameterToString(publishedAfter, collectionFormat) - - - - - collectionFormat = "" - queryParams["publishedBefore"] = a.Configuration.APIClient.ParameterToString(publishedBefore, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["includeSchemas"] = a.Configuration.APIClient.ParameterToString(includeSchemas, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flowdivisionviewentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsOutcome invokes GET /api/v2/flows/outcomes/{flowOutcomeId} -// -// Get a flow outcome -// -// Returns a specified flow outcome -func (a ArchitectApi) GetFlowsOutcome(flowOutcomeId string) (*Flowoutcome, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/outcomes/{flowOutcomeId}" - path = strings.Replace(path, "{flowOutcomeId}", fmt.Sprintf("%v", flowOutcomeId), -1) - defaultReturn := new(Flowoutcome) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowOutcomeId' is set - if &flowOutcomeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowOutcomeId' when calling ArchitectApi->GetFlowsOutcome") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flowoutcome - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFlowsOutcomes invokes GET /api/v2/flows/outcomes -// -// Get a pageable list of flow outcomes, filtered by query parameters -// -// Multiple IDs can be specified, in which case all matching flow outcomes will be returned, and no other parameters will be evaluated. -func (a ArchitectApi) GetFlowsOutcomes(pageNumber int32, pageSize int32, sortBy string, sortOrder string, id []string, name string, description string, nameOrDescription string) (*Flowoutcomelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/outcomes" - defaultReturn := new(Flowoutcomelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["description"] = a.Configuration.APIClient.ParameterToString(description, collectionFormat) - - - - - collectionFormat = "" - queryParams["nameOrDescription"] = a.Configuration.APIClient.ParameterToString(nameOrDescription, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flowoutcomelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectDependencytrackingBuild invokes POST /api/v2/architect/dependencytracking/build -// -// Rebuild Dependency Tracking data for an organization -// -// Asynchronous. Notification topic: v2.architect.dependencytracking.build -func (a ArchitectApi) PostArchitectDependencytrackingBuild() (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/dependencytracking/build" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostArchitectEmergencygroups invokes POST /api/v2/architect/emergencygroups -// -// Creates a new emergency group -// -// -func (a ArchitectApi) PostArchitectEmergencygroups(body Emergencygroup) (*Emergencygroup, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/emergencygroups" - defaultReturn := new(Emergencygroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectEmergencygroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emergencygroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectIvrs invokes POST /api/v2/architect/ivrs -// -// Create IVR config. -// -// -func (a ArchitectApi) PostArchitectIvrs(body Ivr) (*Ivr, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/ivrs" - defaultReturn := new(Ivr) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectIvrs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Ivr - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectPromptHistory invokes POST /api/v2/architect/prompts/{promptId}/history -// -// Generate prompt history -// -// Asynchronous. Notification topic: v2.architect.prompts.{promptId} -func (a ArchitectApi) PostArchitectPromptHistory(promptId string) (*Operation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/history" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PostArchitectPromptHistory") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectPromptResources invokes POST /api/v2/architect/prompts/{promptId}/resources -// -// Create a new user prompt resource -// -// -func (a ArchitectApi) PostArchitectPromptResources(promptId string, body Promptassetcreate) (*Promptasset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/resources" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Promptasset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PostArchitectPromptResources") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectPromptResources") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Promptasset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectPrompts invokes POST /api/v2/architect/prompts -// -// Create a new user prompt -// -// -func (a ArchitectApi) PostArchitectPrompts(body Prompt) (*Prompt, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts" - defaultReturn := new(Prompt) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectPrompts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Prompt - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectSchedulegroups invokes POST /api/v2/architect/schedulegroups -// -// Creates a new schedule group -// -// -func (a ArchitectApi) PostArchitectSchedulegroups(body Schedulegroup) (*Schedulegroup, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedulegroups" - defaultReturn := new(Schedulegroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectSchedulegroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Schedulegroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectSchedules invokes POST /api/v2/architect/schedules -// -// Create a new schedule. -// -// -func (a ArchitectApi) PostArchitectSchedules(body Schedule) (*Schedule, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedules" - defaultReturn := new(Schedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectSchedules") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Schedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectSystempromptHistory invokes POST /api/v2/architect/systemprompts/{promptId}/history -// -// Generate system prompt history -// -// Asynchronous. Notification topic: v2.architect.systemprompts.{systemPromptId} -func (a ArchitectApi) PostArchitectSystempromptHistory(promptId string) (*Operation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/history" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PostArchitectSystempromptHistory") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostArchitectSystempromptResources invokes POST /api/v2/architect/systemprompts/{promptId}/resources -// -// Create system prompt resource override. -// -// -func (a ArchitectApi) PostArchitectSystempromptResources(promptId string, body Systempromptasset) (*Systempromptasset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/resources" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Systempromptasset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PostArchitectSystempromptResources") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostArchitectSystempromptResources") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Systempromptasset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowVersions invokes POST /api/v2/flows/{flowId}/versions -// -// Create flow version -// -// -func (a ArchitectApi) PostFlowVersions(flowId string, body map[string]interface{}) (*Flowversion, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}/versions" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - defaultReturn := new(Flowversion) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->PostFlowVersions") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostFlowVersions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flowversion - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlows invokes POST /api/v2/flows -// -// Create flow -// -// -func (a ArchitectApi) PostFlows(body Flow) (*Flow, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows" - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostFlows") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsActionsCheckin invokes POST /api/v2/flows/actions/checkin -// -// Check-in flow -// -// Asynchronous. Notification topic: v2.flows.{flowId} -func (a ArchitectApi) PostFlowsActionsCheckin(flow string) (*Operation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/actions/checkin" - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flow' is set - if &flow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flow' when calling ArchitectApi->PostFlowsActionsCheckin") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["flow"] = a.Configuration.APIClient.ParameterToString(flow, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsActionsCheckout invokes POST /api/v2/flows/actions/checkout -// -// Check-out flow -// -// -func (a ArchitectApi) PostFlowsActionsCheckout(flow string) (*Flow, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/actions/checkout" - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flow' is set - if &flow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flow' when calling ArchitectApi->PostFlowsActionsCheckout") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["flow"] = a.Configuration.APIClient.ParameterToString(flow, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsActionsDeactivate invokes POST /api/v2/flows/actions/deactivate -// -// Deactivate flow -// -// -func (a ArchitectApi) PostFlowsActionsDeactivate(flow string) (*Flow, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/actions/deactivate" - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flow' is set - if &flow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flow' when calling ArchitectApi->PostFlowsActionsDeactivate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["flow"] = a.Configuration.APIClient.ParameterToString(flow, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsActionsPublish invokes POST /api/v2/flows/actions/publish -// -// Publish flow -// -// Asynchronous. Notification topic: v2.flows.{flowId} -func (a ArchitectApi) PostFlowsActionsPublish(flow string, version string) (*Operation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/actions/publish" - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flow' is set - if &flow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flow' when calling ArchitectApi->PostFlowsActionsPublish") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["flow"] = a.Configuration.APIClient.ParameterToString(flow, collectionFormat) - - - - - collectionFormat = "" - queryParams["version"] = a.Configuration.APIClient.ParameterToString(version, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsActionsRevert invokes POST /api/v2/flows/actions/revert -// -// Revert flow -// -// -func (a ArchitectApi) PostFlowsActionsRevert(flow string) (*Flow, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/actions/revert" - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flow' is set - if &flow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flow' when calling ArchitectApi->PostFlowsActionsRevert") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["flow"] = a.Configuration.APIClient.ParameterToString(flow, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsActionsUnlock invokes POST /api/v2/flows/actions/unlock -// -// Unlock flow -// -// Allows for unlocking a flow in the case where there is no flow configuration available, and thus a check-in will not unlock the flow. The user must have Architect Admin permissions to perform this action. -func (a ArchitectApi) PostFlowsActionsUnlock(flow string) (*Flow, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/actions/unlock" - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flow' is set - if &flow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flow' when calling ArchitectApi->PostFlowsActionsUnlock") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["flow"] = a.Configuration.APIClient.ParameterToString(flow, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsDatatableExportJobs invokes POST /api/v2/flows/datatables/{datatableId}/export/jobs -// -// Begin an export process for exporting all rows from a datatable -// -// Create an export job for exporting rows. The caller can then poll for status of the export using the token returned in the response -func (a ArchitectApi) PostFlowsDatatableExportJobs(datatableId string) (*Datatableexportjob, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/export/jobs" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(Datatableexportjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PostFlowsDatatableExportJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Datatableexportjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsDatatableImportJobs invokes POST /api/v2/flows/datatables/{datatableId}/import/jobs -// -// Begin an import process for importing rows into a datatable -// -// Create an import job for importing rows. The caller can then poll for status of the import using the token returned in the response -func (a ArchitectApi) PostFlowsDatatableImportJobs(datatableId string, body Datatableimportjob) (*Datatableimportjob, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/import/jobs" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(Datatableimportjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PostFlowsDatatableImportJobs") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostFlowsDatatableImportJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Datatableimportjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsDatatableRows invokes POST /api/v2/flows/datatables/{datatableId}/rows -// -// Create a new row entry for the datatable. -// -// Will add the passed in row entry to the datatable with the given datatableId after verifying it against the schema. The DataTableRow should be a json-ized' stream of key -> value pairs { \"Field1\": \"XYZZY\", \"Field2\": false, \"KEY\": \"27272\" } -func (a ArchitectApi) PostFlowsDatatableRows(datatableId string, dataTableRow map[string]interface{}) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/rows" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PostFlowsDatatableRows") - } - // verify the required parameter 'dataTableRow' is set - if &dataTableRow == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dataTableRow' when calling ArchitectApi->PostFlowsDatatableRows") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &dataTableRow - - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsDatatables invokes POST /api/v2/flows/datatables -// -// Create a new datatable with the specified json-schema definition -// -// This will create a new datatable with fields that match the property definitions in the JSON schema. The schema's title field will be overridden by the name field in the DataTable object. See also http://json-schema.org/ -func (a ArchitectApi) PostFlowsDatatables(body Datatable) (*Datatable, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables" - defaultReturn := new(Datatable) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostFlowsDatatables") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Datatable - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostFlowsOutcomes invokes POST /api/v2/flows/outcomes -// -// Create a flow outcome -// -// Asynchronous. Notification topic: v2.flows.outcomes.{flowOutcomeId} -func (a ArchitectApi) PostFlowsOutcomes(body Flowoutcome) (*Flowoutcome, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/outcomes" - defaultReturn := new(Flowoutcome) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flowoutcome - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectEmergencygroup invokes PUT /api/v2/architect/emergencygroups/{emergencyGroupId} -// -// Updates a emergency group by ID -// -// -func (a ArchitectApi) PutArchitectEmergencygroup(emergencyGroupId string, body Emergencygroup) (*Emergencygroup, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/emergencygroups/{emergencyGroupId}" - path = strings.Replace(path, "{emergencyGroupId}", fmt.Sprintf("%v", emergencyGroupId), -1) - defaultReturn := new(Emergencygroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'emergencyGroupId' is set - if &emergencyGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'emergencyGroupId' when calling ArchitectApi->PutArchitectEmergencygroup") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectEmergencygroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emergencygroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectIvr invokes PUT /api/v2/architect/ivrs/{ivrId} -// -// Update an IVR Config. -// -// -func (a ArchitectApi) PutArchitectIvr(ivrId string, body Ivr) (*Ivr, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/ivrs/{ivrId}" - path = strings.Replace(path, "{ivrId}", fmt.Sprintf("%v", ivrId), -1) - defaultReturn := new(Ivr) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ivrId' is set - if &ivrId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ivrId' when calling ArchitectApi->PutArchitectIvr") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectIvr") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Ivr - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectPrompt invokes PUT /api/v2/architect/prompts/{promptId} -// -// Update specified user prompt -// -// -func (a ArchitectApi) PutArchitectPrompt(promptId string, body Prompt) (*Prompt, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - defaultReturn := new(Prompt) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PutArchitectPrompt") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectPrompt") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Prompt - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectPromptResource invokes PUT /api/v2/architect/prompts/{promptId}/resources/{languageCode} -// -// Update specified user prompt resource -// -// -func (a ArchitectApi) PutArchitectPromptResource(promptId string, languageCode string, body Promptasset) (*Promptasset, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/prompts/{promptId}/resources/{languageCode}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - defaultReturn := new(Promptasset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PutArchitectPromptResource") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->PutArchitectPromptResource") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectPromptResource") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Promptasset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectSchedule invokes PUT /api/v2/architect/schedules/{scheduleId} -// -// Update schedule by ID -// -// -func (a ArchitectApi) PutArchitectSchedule(scheduleId string, body Schedule) (*Schedule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedules/{scheduleId}" - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Schedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling ArchitectApi->PutArchitectSchedule") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Schedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectSchedulegroup invokes PUT /api/v2/architect/schedulegroups/{scheduleGroupId} -// -// Updates a schedule group by ID -// -// -func (a ArchitectApi) PutArchitectSchedulegroup(scheduleGroupId string, body Schedulegroup) (*Schedulegroup, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/schedulegroups/{scheduleGroupId}" - path = strings.Replace(path, "{scheduleGroupId}", fmt.Sprintf("%v", scheduleGroupId), -1) - defaultReturn := new(Schedulegroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scheduleGroupId' is set - if &scheduleGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleGroupId' when calling ArchitectApi->PutArchitectSchedulegroup") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectSchedulegroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Schedulegroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutArchitectSystempromptResource invokes PUT /api/v2/architect/systemprompts/{promptId}/resources/{languageCode} -// -// Updates a system prompt resource override. -// -// -func (a ArchitectApi) PutArchitectSystempromptResource(promptId string, languageCode string, body Systempromptasset) (*Systempromptasset, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}" - path = strings.Replace(path, "{promptId}", fmt.Sprintf("%v", promptId), -1) - path = strings.Replace(path, "{languageCode}", fmt.Sprintf("%v", languageCode), -1) - defaultReturn := new(Systempromptasset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'promptId' is set - if &promptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'promptId' when calling ArchitectApi->PutArchitectSystempromptResource") - } - // verify the required parameter 'languageCode' is set - if &languageCode == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageCode' when calling ArchitectApi->PutArchitectSystempromptResource") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutArchitectSystempromptResource") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Systempromptasset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutFlow invokes PUT /api/v2/flows/{flowId} -// -// Update flow -// -// -func (a ArchitectApi) PutFlow(flowId string, body Flow) (*Flow, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/{flowId}" - path = strings.Replace(path, "{flowId}", fmt.Sprintf("%v", flowId), -1) - defaultReturn := new(Flow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowId' is set - if &flowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowId' when calling ArchitectApi->PutFlow") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PutFlow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutFlowsDatatable invokes PUT /api/v2/flows/datatables/{datatableId} -// -// Updates a specific datatable by id -// -// Updates a schema for a datatable with the given datatableId -updates allow only new fields to be added in the schema, no changes or removals of existing fields. -func (a ArchitectApi) PutFlowsDatatable(datatableId string, expand string, body Datatable) (*Datatable, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - defaultReturn := new(Datatable) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PutFlowsDatatable") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Datatable - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutFlowsDatatableRow invokes PUT /api/v2/flows/datatables/{datatableId}/rows/{rowId} -// -// Update a row entry -// -// Updates a row with the given rowId (the value of the key field) to the new values. The DataTableRow should be a json-ized' stream of key -> value pairs { \"Field1\": \"XYZZY\", \"Field2\": false, \"KEY\": \"27272\" } -func (a ArchitectApi) PutFlowsDatatableRow(datatableId string, rowId string, body map[string]interface{}) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/rows/{rowId}" - path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) - path = strings.Replace(path, "{rowId}", fmt.Sprintf("%v", rowId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'datatableId' is set - if &datatableId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PutFlowsDatatableRow") - } - // verify the required parameter 'rowId' is set - if &rowId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'rowId' when calling ArchitectApi->PutFlowsDatatableRow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutFlowsOutcome invokes PUT /api/v2/flows/outcomes/{flowOutcomeId} -// -// Updates a flow outcome -// -// Updates a flow outcome. Asynchronous. Notification topic: v2.flowoutcomes.{flowoutcomeId} -func (a ArchitectApi) PutFlowsOutcome(flowOutcomeId string, body Flowoutcome) (*Operation, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/flows/outcomes/{flowOutcomeId}" - path = strings.Replace(path, "{flowOutcomeId}", fmt.Sprintf("%v", flowOutcomeId), -1) - defaultReturn := new(Operation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'flowOutcomeId' is set - if &flowOutcomeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'flowOutcomeId' when calling ArchitectApi->PutFlowsOutcome") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Operation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/architectdependencytrackingbuildnotificationclient.go b/build/platformclientv2/architectdependencytrackingbuildnotificationclient.go deleted file mode 100644 index 3565efe70..000000000 --- a/build/platformclientv2/architectdependencytrackingbuildnotificationclient.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectdependencytrackingbuildnotificationclient -type Architectdependencytrackingbuildnotificationclient struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectdependencytrackingbuildnotificationclient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectdependencytrackingbuildnotificationdependencytrackingbuildnotification.go b/build/platformclientv2/architectdependencytrackingbuildnotificationdependencytrackingbuildnotification.go deleted file mode 100644 index 43ec0952c..000000000 --- a/build/platformclientv2/architectdependencytrackingbuildnotificationdependencytrackingbuildnotification.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Architectdependencytrackingbuildnotificationdependencytrackingbuildnotification -type Architectdependencytrackingbuildnotificationdependencytrackingbuildnotification struct { - // Status - Status *string `json:"status,omitempty"` - - - // User - User *Architectdependencytrackingbuildnotificationuser `json:"user,omitempty"` - - - // Client - Client *Architectdependencytrackingbuildnotificationclient `json:"client,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectdependencytrackingbuildnotificationdependencytrackingbuildnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectdependencytrackingbuildnotificationhomeorganization.go b/build/platformclientv2/architectdependencytrackingbuildnotificationhomeorganization.go deleted file mode 100644 index 3babab8f3..000000000 --- a/build/platformclientv2/architectdependencytrackingbuildnotificationhomeorganization.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectdependencytrackingbuildnotificationhomeorganization -type Architectdependencytrackingbuildnotificationhomeorganization struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ThirdPartyOrgName - ThirdPartyOrgName *string `json:"thirdPartyOrgName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectdependencytrackingbuildnotificationhomeorganization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectdependencytrackingbuildnotificationuser.go b/build/platformclientv2/architectdependencytrackingbuildnotificationuser.go deleted file mode 100644 index 0bde5f465..000000000 --- a/build/platformclientv2/architectdependencytrackingbuildnotificationuser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectdependencytrackingbuildnotificationuser -type Architectdependencytrackingbuildnotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // HomeOrg - HomeOrg *Architectdependencytrackingbuildnotificationhomeorganization `json:"homeOrg,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectdependencytrackingbuildnotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationarchitectoperation.go b/build/platformclientv2/architectflownotificationarchitectoperation.go deleted file mode 100644 index 1cca17a24..000000000 --- a/build/platformclientv2/architectflownotificationarchitectoperation.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationarchitectoperation -type Architectflownotificationarchitectoperation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Complete - Complete *bool `json:"complete,omitempty"` - - - // User - User *Architectflownotificationuser `json:"user,omitempty"` - - - // Client - Client *Architectflownotificationclient `json:"client,omitempty"` - - - // ActionName - ActionName *string `json:"actionName,omitempty"` - - - // ActionStatus - ActionStatus *string `json:"actionStatus,omitempty"` - - - // ErrorMessage - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // ErrorMessageParams - ErrorMessageParams *Architectflownotificationerrormessageparams `json:"errorMessageParams,omitempty"` - - - // ErrorDetails - ErrorDetails *[]Architectflownotificationerrordetail `json:"errorDetails,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationarchitectoperation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationclient.go b/build/platformclientv2/architectflownotificationclient.go deleted file mode 100644 index 3128ef67a..000000000 --- a/build/platformclientv2/architectflownotificationclient.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationclient -type Architectflownotificationclient struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationclient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationerrordetail.go b/build/platformclientv2/architectflownotificationerrordetail.go deleted file mode 100644 index 77419f9bf..000000000 --- a/build/platformclientv2/architectflownotificationerrordetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationerrordetail -type Architectflownotificationerrordetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationerrordetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationerrormessageparams.go b/build/platformclientv2/architectflownotificationerrormessageparams.go deleted file mode 100644 index fb1dcd3b4..000000000 --- a/build/platformclientv2/architectflownotificationerrormessageparams.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationerrormessageparams -type Architectflownotificationerrormessageparams struct { - // AdditionalProperties - AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationerrormessageparams) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationflownotification.go b/build/platformclientv2/architectflownotificationflownotification.go deleted file mode 100644 index 5c7a831b4..000000000 --- a/build/platformclientv2/architectflownotificationflownotification.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationflownotification -type Architectflownotificationflownotification struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Deleted - Deleted *bool `json:"deleted,omitempty"` - - - // CheckedInVersion - CheckedInVersion *Architectflownotificationflowversion `json:"checkedInVersion,omitempty"` - - - // SavedVersion - SavedVersion *Architectflownotificationflowversion `json:"savedVersion,omitempty"` - - - // PublishedVersion - PublishedVersion *Architectflownotificationflowversion `json:"publishedVersion,omitempty"` - - - // CurrentOperation - CurrentOperation *Architectflownotificationarchitectoperation `json:"currentOperation,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationflownotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationflowversion.go b/build/platformclientv2/architectflownotificationflowversion.go deleted file mode 100644 index a7b25d74d..000000000 --- a/build/platformclientv2/architectflownotificationflowversion.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationflowversion -type Architectflownotificationflowversion struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationflowversion) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationhomeorganization.go b/build/platformclientv2/architectflownotificationhomeorganization.go deleted file mode 100644 index 3d2349dca..000000000 --- a/build/platformclientv2/architectflownotificationhomeorganization.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationhomeorganization -type Architectflownotificationhomeorganization struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ThirdPartyOrgName - ThirdPartyOrgName *string `json:"thirdPartyOrgName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationhomeorganization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflownotificationuser.go b/build/platformclientv2/architectflownotificationuser.go deleted file mode 100644 index 4ed49b91f..000000000 --- a/build/platformclientv2/architectflownotificationuser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflownotificationuser -type Architectflownotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // HomeOrg - HomeOrg *Architectflownotificationhomeorganization `json:"homeOrg,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflownotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationarchitectoperation.go b/build/platformclientv2/architectflowoutcomenotificationarchitectoperation.go deleted file mode 100644 index 7fd8a7f97..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationarchitectoperation.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationarchitectoperation -type Architectflowoutcomenotificationarchitectoperation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Complete - Complete *bool `json:"complete,omitempty"` - - - // User - User *Architectflowoutcomenotificationuser `json:"user,omitempty"` - - - // Client - Client *Architectflowoutcomenotificationclient `json:"client,omitempty"` - - - // ActionName - ActionName *string `json:"actionName,omitempty"` - - - // ActionStatus - ActionStatus *string `json:"actionStatus,omitempty"` - - - // ErrorMessage - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // ErrorMessageParams - ErrorMessageParams *Architectflowoutcomenotificationerrormessageparams `json:"errorMessageParams,omitempty"` - - - // ErrorDetails - ErrorDetails *[]Architectflowoutcomenotificationerrordetail `json:"errorDetails,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationarchitectoperation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationclient.go b/build/platformclientv2/architectflowoutcomenotificationclient.go deleted file mode 100644 index f1a979db5..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationclient.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationclient -type Architectflowoutcomenotificationclient struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationclient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationerrordetail.go b/build/platformclientv2/architectflowoutcomenotificationerrordetail.go deleted file mode 100644 index 710083bdc..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationerrordetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationerrordetail -type Architectflowoutcomenotificationerrordetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationerrordetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationerrormessageparams.go b/build/platformclientv2/architectflowoutcomenotificationerrormessageparams.go deleted file mode 100644 index e92f379db..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationerrormessageparams.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationerrormessageparams -type Architectflowoutcomenotificationerrormessageparams struct { - // AdditionalProperties - AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationerrormessageparams) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationflowoutcomenotification.go b/build/platformclientv2/architectflowoutcomenotificationflowoutcomenotification.go deleted file mode 100644 index 5639f8f8f..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationflowoutcomenotification.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationflowoutcomenotification -type Architectflowoutcomenotificationflowoutcomenotification struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // CurrentOperation - CurrentOperation *Architectflowoutcomenotificationarchitectoperation `json:"currentOperation,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationflowoutcomenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationhomeorganization.go b/build/platformclientv2/architectflowoutcomenotificationhomeorganization.go deleted file mode 100644 index b506c383a..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationhomeorganization.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationhomeorganization -type Architectflowoutcomenotificationhomeorganization struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ThirdPartyOrgName - ThirdPartyOrgName *string `json:"thirdPartyOrgName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationhomeorganization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectflowoutcomenotificationuser.go b/build/platformclientv2/architectflowoutcomenotificationuser.go deleted file mode 100644 index dc368c74a..000000000 --- a/build/platformclientv2/architectflowoutcomenotificationuser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectflowoutcomenotificationuser -type Architectflowoutcomenotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // HomeOrg - HomeOrg *Architectflowoutcomenotificationhomeorganization `json:"homeOrg,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectflowoutcomenotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationarchitectoperation.go b/build/platformclientv2/architectpromptnotificationarchitectoperation.go deleted file mode 100644 index c06cc80c8..000000000 --- a/build/platformclientv2/architectpromptnotificationarchitectoperation.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationarchitectoperation -type Architectpromptnotificationarchitectoperation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Complete - Complete *bool `json:"complete,omitempty"` - - - // User - User *Architectpromptnotificationuser `json:"user,omitempty"` - - - // Client - Client *Architectpromptnotificationclient `json:"client,omitempty"` - - - // ActionName - ActionName *string `json:"actionName,omitempty"` - - - // ActionStatus - ActionStatus *string `json:"actionStatus,omitempty"` - - - // ErrorMessage - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // ErrorMessageParams - ErrorMessageParams *Architectpromptnotificationerrormessageparams `json:"errorMessageParams,omitempty"` - - - // ErrorDetails - ErrorDetails *[]Architectpromptnotificationerrordetail `json:"errorDetails,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationarchitectoperation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationclient.go b/build/platformclientv2/architectpromptnotificationclient.go deleted file mode 100644 index 94c25e74d..000000000 --- a/build/platformclientv2/architectpromptnotificationclient.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationclient -type Architectpromptnotificationclient struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationclient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationerrordetail.go b/build/platformclientv2/architectpromptnotificationerrordetail.go deleted file mode 100644 index cf1efd2dd..000000000 --- a/build/platformclientv2/architectpromptnotificationerrordetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationerrordetail -type Architectpromptnotificationerrordetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationerrordetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationerrormessageparams.go b/build/platformclientv2/architectpromptnotificationerrormessageparams.go deleted file mode 100644 index 7f25c7979..000000000 --- a/build/platformclientv2/architectpromptnotificationerrormessageparams.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationerrormessageparams -type Architectpromptnotificationerrormessageparams struct { - // AdditionalProperties - AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationerrormessageparams) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationhomeorganization.go b/build/platformclientv2/architectpromptnotificationhomeorganization.go deleted file mode 100644 index 752ed1a66..000000000 --- a/build/platformclientv2/architectpromptnotificationhomeorganization.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationhomeorganization -type Architectpromptnotificationhomeorganization struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ThirdPartyOrgName - ThirdPartyOrgName *string `json:"thirdPartyOrgName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationhomeorganization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationpromptnotification.go b/build/platformclientv2/architectpromptnotificationpromptnotification.go deleted file mode 100644 index ec97cfc40..000000000 --- a/build/platformclientv2/architectpromptnotificationpromptnotification.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationpromptnotification -type Architectpromptnotificationpromptnotification struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // CurrentOperation - CurrentOperation *Architectpromptnotificationarchitectoperation `json:"currentOperation,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationpromptnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptnotificationuser.go b/build/platformclientv2/architectpromptnotificationuser.go deleted file mode 100644 index feee37b66..000000000 --- a/build/platformclientv2/architectpromptnotificationuser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptnotificationuser -type Architectpromptnotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // HomeOrg - HomeOrg *Architectpromptnotificationhomeorganization `json:"homeOrg,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptnotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectpromptresourcenotificationpromptresourcenotification.go b/build/platformclientv2/architectpromptresourcenotificationpromptresourcenotification.go deleted file mode 100644 index f706793d7..000000000 --- a/build/platformclientv2/architectpromptresourcenotificationpromptresourcenotification.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectpromptresourcenotificationpromptresourcenotification -type Architectpromptresourcenotificationpromptresourcenotification struct { - // PromptId - PromptId *string `json:"promptId,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Language - Language *string `json:"language,omitempty"` - - - // MediaUri - MediaUri *string `json:"mediaUri,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - - - // DurationSeconds - DurationSeconds *float32 `json:"durationSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectpromptresourcenotificationpromptresourcenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/architectsystempromptresourcenotificationsystempromptresourcenotification.go b/build/platformclientv2/architectsystempromptresourcenotificationsystempromptresourcenotification.go deleted file mode 100644 index 246d85d8a..000000000 --- a/build/platformclientv2/architectsystempromptresourcenotificationsystempromptresourcenotification.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Architectsystempromptresourcenotificationsystempromptresourcenotification -type Architectsystempromptresourcenotificationsystempromptresourcenotification struct { - // PromptId - PromptId *string `json:"promptId,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Language - Language *string `json:"language,omitempty"` - - - // MediaUri - MediaUri *string `json:"mediaUri,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - - - // DurationSeconds - DurationSeconds *float32 `json:"durationSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Architectsystempromptresourcenotificationsystempromptresourcenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/archiveretention.go b/build/platformclientv2/archiveretention.go deleted file mode 100644 index be2280206..000000000 --- a/build/platformclientv2/archiveretention.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Archiveretention -type Archiveretention struct { - // Days - Days *int32 `json:"days,omitempty"` - - - // StorageMedium - StorageMedium *string `json:"storageMedium,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Archiveretention) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/arraynode.go b/build/platformclientv2/arraynode.go deleted file mode 100644 index 0736dde33..000000000 --- a/build/platformclientv2/arraynode.go +++ /dev/null @@ -1,97 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Arraynode -type Arraynode struct { - // NodeType - NodeType *string `json:"nodeType,omitempty"` - - - // Float - Float *bool `json:"float,omitempty"` - - - // Number - Number *bool `json:"number,omitempty"` - - - // Boolean - Boolean *bool `json:"boolean,omitempty"` - - - // Object - Object *bool `json:"object,omitempty"` - - - // ValueNode - ValueNode *bool `json:"valueNode,omitempty"` - - - // ContainerNode - ContainerNode *bool `json:"containerNode,omitempty"` - - - // MissingNode - MissingNode *bool `json:"missingNode,omitempty"` - - - // IntegralNumber - IntegralNumber *bool `json:"integralNumber,omitempty"` - - - // FloatingPointNumber - FloatingPointNumber *bool `json:"floatingPointNumber,omitempty"` - - - // Short - Short *bool `json:"short,omitempty"` - - - // Int - Int *bool `json:"int,omitempty"` - - - // Long - Long *bool `json:"long,omitempty"` - - - // Double - Double *bool `json:"double,omitempty"` - - - // BigDecimal - BigDecimal *bool `json:"bigDecimal,omitempty"` - - - // BigInteger - BigInteger *bool `json:"bigInteger,omitempty"` - - - // Textual - Textual *bool `json:"textual,omitempty"` - - - // Binary - Binary *bool `json:"binary,omitempty"` - - - // Pojo - Pojo *bool `json:"pojo,omitempty"` - - - // Array - Array *bool `json:"array,omitempty"` - - - // Null - Null *bool `json:"null,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Arraynode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/assignedwrapupcode.go b/build/platformclientv2/assignedwrapupcode.go deleted file mode 100644 index d46a6ed7a..000000000 --- a/build/platformclientv2/assignedwrapupcode.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Assignedwrapupcode -type Assignedwrapupcode struct { - // Code - The user configured wrap up code id. - Code *string `json:"code,omitempty"` - - - // Notes - Text entered by the agent to describe the call or disposition. - Notes *string `json:"notes,omitempty"` - - - // Tags - List of tags selected by the agent to describe the call or disposition. - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - The duration in seconds of the wrap-up segment. - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - The timestamp when the wrap-up segment ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Assignedwrapupcode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/asyncconversationquery.go b/build/platformclientv2/asyncconversationquery.go deleted file mode 100644 index 41dc2d6a8..000000000 --- a/build/platformclientv2/asyncconversationquery.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Asyncconversationquery -type Asyncconversationquery struct { - // Interval - Specifies the date and time range of data being queried. Results will include conversations that both started on a day touched by the interval AND either started, ended, or any activity during the interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // ConversationFilters - Filters that target conversation-level data - ConversationFilters *[]Conversationdetailqueryfilter `json:"conversationFilters,omitempty"` - - - // SegmentFilters - Filters that target individual segments within a conversation - SegmentFilters *[]Segmentdetailqueryfilter `json:"segmentFilters,omitempty"` - - - // EvaluationFilters - Filters that target evaluations - EvaluationFilters *[]Evaluationdetailqueryfilter `json:"evaluationFilters,omitempty"` - - - // MediaEndpointStatFilters - Filters that target mediaEndpointStats - MediaEndpointStatFilters *[]Mediaendpointstatdetailqueryfilter `json:"mediaEndpointStatFilters,omitempty"` - - - // SurveyFilters - Filters that target surveys - SurveyFilters *[]Surveydetailqueryfilter `json:"surveyFilters,omitempty"` - - - // Order - Sort the result set in ascending/descending order. Default is ascending - Order *string `json:"order,omitempty"` - - - // OrderBy - Specify which data element within the result set to use for sorting. The options to use as a basis for sorting the results: conversationStart, segmentStart, and segmentEnd. If not specified, the default is conversationStart - OrderBy *string `json:"orderBy,omitempty"` - - - // Limit - Specify number of results to be returned - Limit *int32 `json:"limit,omitempty"` - - - // StartOfDayIntervalMatching - Add a filter to only include conversations that started after the beginning of the interval start date (UTC) - StartOfDayIntervalMatching *bool `json:"startOfDayIntervalMatching,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Asyncconversationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/asyncqueryresponse.go b/build/platformclientv2/asyncqueryresponse.go deleted file mode 100644 index 5173fa3e9..000000000 --- a/build/platformclientv2/asyncqueryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Asyncqueryresponse -type Asyncqueryresponse struct { - // JobId - Unique identifier for the async query execution. Can be used to check the status of the query and retrieve results. - JobId *string `json:"jobId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Asyncqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/asyncquerystatus.go b/build/platformclientv2/asyncquerystatus.go deleted file mode 100644 index def061a11..000000000 --- a/build/platformclientv2/asyncquerystatus.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Asyncquerystatus -type Asyncquerystatus struct { - // State - The current state of the asynchronous query - State *string `json:"state,omitempty"` - - - // ErrorMessage - The error associated with the current query, if the state is FAILED - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // ExpirationDate - The time at which results for this query will expire. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExpirationDate *time.Time `json:"expirationDate,omitempty"` - - - // SubmissionDate - The time at which the query was submitted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SubmissionDate *time.Time `json:"submissionDate,omitempty"` - - - // CompletionDate - The time at which the query completed. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CompletionDate *time.Time `json:"completionDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Asyncquerystatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/asyncuserdetailsquery.go b/build/platformclientv2/asyncuserdetailsquery.go deleted file mode 100644 index 6521ac503..000000000 --- a/build/platformclientv2/asyncuserdetailsquery.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Asyncuserdetailsquery -type Asyncuserdetailsquery struct { - // Interval - Specifies the date and time range of data being queried. Conversations MUST have started within this time range to potentially be included within the result set. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // UserFilters - Filters that target the users to retrieve data for - UserFilters *[]Userdetailqueryfilter `json:"userFilters,omitempty"` - - - // PresenceFilters - Filters that target system and organization presence-level data - PresenceFilters *[]Presencedetailqueryfilter `json:"presenceFilters,omitempty"` - - - // RoutingStatusFilters - Filters that target agent routing status-level data - RoutingStatusFilters *[]Routingstatusdetailqueryfilter `json:"routingStatusFilters,omitempty"` - - - // Order - Sort the result set in ascending/descending order. Default is ascending - Order *string `json:"order,omitempty"` - - - // Limit - Specify number of results to be returned - Limit *int32 `json:"limit,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Asyncuserdetailsquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/asyncweekscheduleresponse.go b/build/platformclientv2/asyncweekscheduleresponse.go deleted file mode 100644 index 66581356b..000000000 --- a/build/platformclientv2/asyncweekscheduleresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Asyncweekscheduleresponse - Response for query for week schedule for a given week in management unit -type Asyncweekscheduleresponse struct { - // Result - Week schedule result. The value will be null if the data is sent through notification or if response is large. - Result *Weekschedule `json:"result,omitempty"` - - - // DownloadUrl - The url to fetch the result for large responses. The value is null if result contains the data - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // Status - The status of the request - Status *string `json:"status,omitempty"` - - - // OperationId - The operation id to watch for on the notification topic if status == Processing - OperationId *string `json:"operationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Asyncweekscheduleresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/attachment.go b/build/platformclientv2/attachment.go deleted file mode 100644 index eb60c5031..000000000 --- a/build/platformclientv2/attachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Attachment -type Attachment struct { - // AttachmentId - The unique identifier for the attachment. - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - The name of the attachment. - Name *string `json:"name,omitempty"` - - - // ContentUri - The content uri of the attachment. If set, this is commonly a public api download location. - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - The type of file the attachment is. - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - The length of the attachment file. - ContentLength *int32 `json:"contentLength,omitempty"` - - - // InlineImage - Whether or not the attachment was attached inline., - InlineImage *bool `json:"inlineImage,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Attachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/attemptlimits.go b/build/platformclientv2/attemptlimits.go deleted file mode 100644 index 03f227c37..000000000 --- a/build/platformclientv2/attemptlimits.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Attemptlimits -type Attemptlimits struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // MaxAttemptsPerContact - The maximum number of times a contact can be called within the resetPeriod. Required if maxAttemptsPerNumber is not defined. - MaxAttemptsPerContact *int32 `json:"maxAttemptsPerContact,omitempty"` - - - // MaxAttemptsPerNumber - The maximum number of times a phone number can be called within the resetPeriod. Required if maxAttemptsPerContact is not defined. - MaxAttemptsPerNumber *int32 `json:"maxAttemptsPerNumber,omitempty"` - - - // TimeZoneId - If the resetPeriod is TODAY, this specifies the timezone in which TODAY occurs. Required if the resetPeriod is TODAY. - TimeZoneId *string `json:"timeZoneId,omitempty"` - - - // ResetPeriod - After how long the number of attempts will be set back to 0. Defaults to NEVER. - ResetPeriod *string `json:"resetPeriod,omitempty"` - - - // RecallEntries - Configuration for recall attempts. - RecallEntries *map[string]Recallentry `json:"recallEntries,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Attemptlimits) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/attemptlimitsentitylisting.go b/build/platformclientv2/attemptlimitsentitylisting.go deleted file mode 100644 index 873d3ea57..000000000 --- a/build/platformclientv2/attemptlimitsentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Attemptlimitsentitylisting -type Attemptlimitsentitylisting struct { - // Entities - Entities *[]Attemptlimits `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Attemptlimitsentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/attribute.go b/build/platformclientv2/attribute.go deleted file mode 100644 index 4b3c60498..000000000 --- a/build/platformclientv2/attribute.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Attribute -type Attribute struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The attribute name. - Name *string `json:"name,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // CreatedBy - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // ModifiedBy - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Attribute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/attributefilteritem.go b/build/platformclientv2/attributefilteritem.go deleted file mode 100644 index 8be935314..000000000 --- a/build/platformclientv2/attributefilteritem.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Attributefilteritem -type Attributefilteritem struct { - // Id - Id *string `json:"id,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Values - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Attributefilteritem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/atzmtimeslot.go b/build/platformclientv2/atzmtimeslot.go deleted file mode 100644 index c3925c177..000000000 --- a/build/platformclientv2/atzmtimeslot.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Atzmtimeslot -type Atzmtimeslot struct { - // EarliestCallableTime - The earliest time to dial a contact. Valid format is HH:mm - EarliestCallableTime *string `json:"earliestCallableTime,omitempty"` - - - // LatestCallableTime - The latest time to dial a contact. Valid format is HH:mm - LatestCallableTime *string `json:"latestCallableTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Atzmtimeslot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/atzmtimeslotwithtimezone.go b/build/platformclientv2/atzmtimeslotwithtimezone.go deleted file mode 100644 index b5c289b9d..000000000 --- a/build/platformclientv2/atzmtimeslotwithtimezone.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Atzmtimeslotwithtimezone -type Atzmtimeslotwithtimezone struct { - // EarliestCallableTime - The earliest time to dial a contact. Valid format is HH:mm - EarliestCallableTime *string `json:"earliestCallableTime,omitempty"` - - - // LatestCallableTime - The latest time to dial a contact. Valid format is HH:mm - LatestCallableTime *string `json:"latestCallableTime,omitempty"` - - - // TimeZoneId - The time zone to use for contacts that cannot be mapped. - TimeZoneId *string `json:"timeZoneId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Atzmtimeslotwithtimezone) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditapi.go b/build/platformclientv2/auditapi.go deleted file mode 100644 index 86cb4d725..000000000 --- a/build/platformclientv2/auditapi.go +++ /dev/null @@ -1,267 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// AuditApi provides functions for API endpoints -type AuditApi struct { - Configuration *Configuration -} - -// NewAuditApi creates an API instance using the default configuration -func NewAuditApi() *AuditApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating AuditApi with base path: %s", strings.ToLower(config.BasePath))) - return &AuditApi{ - Configuration: config, - } -} - -// NewAuditApiWithConfig creates an API instance using the provided configuration -func NewAuditApiWithConfig(config *Configuration) *AuditApi { - config.Debugf("Creating AuditApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &AuditApi{ - Configuration: config, - } -} - -// GetAuditsQueryTransactionId invokes GET /api/v2/audits/query/{transactionId} -// -// Get status of audit query execution -// -// -func (a AuditApi) GetAuditsQueryTransactionId(transactionId string) (*Auditqueryexecutionstatusresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/audits/query/{transactionId}" - path = strings.Replace(path, "{transactionId}", fmt.Sprintf("%v", transactionId), -1) - defaultReturn := new(Auditqueryexecutionstatusresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'transactionId' is set - if &transactionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'transactionId' when calling AuditApi->GetAuditsQueryTransactionId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Auditqueryexecutionstatusresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuditsQueryTransactionIdResults invokes GET /api/v2/audits/query/{transactionId}/results -// -// Get results of audit query -// -// -func (a AuditApi) GetAuditsQueryTransactionIdResults(transactionId string, cursor string, pageSize int32, expand []string) (*Auditqueryexecutionresultsresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/audits/query/{transactionId}/results" - path = strings.Replace(path, "{transactionId}", fmt.Sprintf("%v", transactionId), -1) - defaultReturn := new(Auditqueryexecutionresultsresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'transactionId' is set - if &transactionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'transactionId' when calling AuditApi->GetAuditsQueryTransactionIdResults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Auditqueryexecutionresultsresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuditsQuery invokes POST /api/v2/audits/query -// -// Create audit query execution -// -// -func (a AuditApi) PostAuditsQuery(body Auditqueryrequest) (*Auditqueryexecutionstatusresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/audits/query" - defaultReturn := new(Auditqueryexecutionstatusresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuditApi->PostAuditsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Auditqueryexecutionstatusresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/auditchange.go b/build/platformclientv2/auditchange.go deleted file mode 100644 index 8c5033a01..000000000 --- a/build/platformclientv2/auditchange.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditchange -type Auditchange struct { - // Property - Property *string `json:"property,omitempty"` - - - // Entity - Entity *Auditentityreference `json:"entity,omitempty"` - - - // OldValues - OldValues *[]string `json:"oldValues,omitempty"` - - - // NewValues - NewValues *[]string `json:"newValues,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditchange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditentity.go b/build/platformclientv2/auditentity.go deleted file mode 100644 index ff80466a3..000000000 --- a/build/platformclientv2/auditentity.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditentity -type Auditentity struct { - // VarType - The type of the entity the action of this AuditEntity targeted. - VarType *string `json:"type,omitempty"` - - - // Id - The id of the entity the action of this AuditEntity targeted. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity the action of this AuditEntity targeted. - Name *string `json:"name,omitempty"` - - - // SelfUri - The selfUri for this entity. - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditentityreference.go b/build/platformclientv2/auditentityreference.go deleted file mode 100644 index 082a5cb40..000000000 --- a/build/platformclientv2/auditentityreference.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditentityreference -type Auditentityreference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Action - Action *string `json:"action,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditentityreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditfacet.go b/build/platformclientv2/auditfacet.go deleted file mode 100644 index 99290dd49..000000000 --- a/build/platformclientv2/auditfacet.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditfacet -type Auditfacet struct { - // Name - The name of the field on which to facet. - Name *string `json:"name,omitempty"` - - - // VarType - The type of the facet, DATE or STRING. - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditfacet) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditfilter.go b/build/platformclientv2/auditfilter.go deleted file mode 100644 index 6266010c1..000000000 --- a/build/platformclientv2/auditfilter.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditfilter -type Auditfilter struct { - // Name - The name of the field by which to filter. - Name *string `json:"name,omitempty"` - - - // VarType - The type of the filter, DATE or STRING. - VarType *string `json:"type,omitempty"` - - - // Operator - The operation that the filter performs. - Operator *string `json:"operator,omitempty"` - - - // Values - The values to make the filter comparison against. - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditlogmessage.go b/build/platformclientv2/auditlogmessage.go deleted file mode 100644 index 6acdebcb1..000000000 --- a/build/platformclientv2/auditlogmessage.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Auditlogmessage -type Auditlogmessage struct { - // Id - Id of the audit message. - Id *string `json:"id,omitempty"` - - - // User - User associated with this audit message. - User *Domainentityref `json:"user,omitempty"` - - - // Client - Client associated with this audit message. - Client *Addressableentityref `json:"client,omitempty"` - - - // RemoteIp - List of IP addresses of systems that originated or handled the request. - RemoteIp *[]string `json:"remoteIp,omitempty"` - - - // ServiceName - Name of the service that logged this audit message. - ServiceName *string `json:"serviceName,omitempty"` - - - // EventDate - Date and time of when the audit message was logged. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EventDate *time.Time `json:"eventDate,omitempty"` - - - // Message - Message describing the event being audited. - Message *Messageinfo `json:"message,omitempty"` - - - // Action - Action that took place. - Action *string `json:"action,omitempty"` - - - // Entity - Entity that was impacted. - Entity *Addressableentityref `json:"entity,omitempty"` - - - // EntityType - Type of the entity that was impacted. - EntityType *string `json:"entityType,omitempty"` - - - // PropertyChanges - List of properties that were changed and changes made to those properties. - PropertyChanges *[]Propertychange `json:"propertyChanges,omitempty"` - - - // Context - Additional context for this message. - Context *map[string]string `json:"context,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditlogmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditmessage.go b/build/platformclientv2/auditmessage.go deleted file mode 100644 index 95056f808..000000000 --- a/build/platformclientv2/auditmessage.go +++ /dev/null @@ -1,77 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditmessage -type Auditmessage struct { - // Id - AuditMessage ID. - Id *string `json:"id,omitempty"` - - - // User - User *Audituser `json:"user,omitempty"` - - - // CorrelationId - Correlation ID. - CorrelationId *string `json:"correlationId,omitempty"` - - - // TransactionId - Transaction ID. - TransactionId *string `json:"transactionId,omitempty"` - - - // TransactionInitiator - Whether or not this audit can be considered the initiator of the transaction it is a part of. - TransactionInitiator *bool `json:"transactionInitiator,omitempty"` - - - // Application - The application through which the action of this AuditMessage was initiated. - Application *string `json:"application,omitempty"` - - - // ServiceName - The name of the service which sent this AuditMessage. - ServiceName *string `json:"serviceName,omitempty"` - - - // Level - The level of this audit. USER or SYSTEM. - Level *string `json:"level,omitempty"` - - - // Timestamp - The time at which the action of this AuditMessage was initiated. - Timestamp *string `json:"timestamp,omitempty"` - - - // ReceivedTimestamp - The time at which this AuditMessage was received. - ReceivedTimestamp *string `json:"receivedTimestamp,omitempty"` - - - // Status - The status of the action of this AuditMessage - Status *string `json:"status,omitempty"` - - - // ActionContext - The context of a system-level action - ActionContext *string `json:"actionContext,omitempty"` - - - // Action - A string representing the action that took place - Action *string `json:"action,omitempty"` - - - // Changes - Details about any changes that occurred in this audit - Changes *[]Change `json:"changes,omitempty"` - - - // Entity - Entity *Auditentity `json:"entity,omitempty"` - - - // ServiceContext - The service-specific context associated with this AuditMessage. - ServiceContext *Servicecontext `json:"serviceContext,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditqueryexecutionresultsresponse.go b/build/platformclientv2/auditqueryexecutionresultsresponse.go deleted file mode 100644 index f97b2725d..000000000 --- a/build/platformclientv2/auditqueryexecutionresultsresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditqueryexecutionresultsresponse -type Auditqueryexecutionresultsresponse struct { - // Id - Id of the audit query execution request. - Id *string `json:"id,omitempty"` - - - // PageSize - Number of results in a page. - PageSize *int32 `json:"pageSize,omitempty"` - - - // Cursor - Optional cursor to indicate where to resume the results. - Cursor *string `json:"cursor,omitempty"` - - - // Entities - List of audit messages. - Entities *[]Auditlogmessage `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditqueryexecutionresultsresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditqueryexecutionstatusresponse.go b/build/platformclientv2/auditqueryexecutionstatusresponse.go deleted file mode 100644 index a6f8b5020..000000000 --- a/build/platformclientv2/auditqueryexecutionstatusresponse.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Auditqueryexecutionstatusresponse -type Auditqueryexecutionstatusresponse struct { - // Id - Id of the audit query execution request. - Id *string `json:"id,omitempty"` - - - // State - Status of the audit query execution request. - State *string `json:"state,omitempty"` - - - // StartDate - Start date and time of the audit query execution. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // Interval - Interval for the audit query. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // ServiceName - Service name for the audit query. - ServiceName *string `json:"serviceName,omitempty"` - - - // Filters - Filters for the audit query. - Filters *[]Auditqueryfilter `json:"filters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditqueryexecutionstatusresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditqueryfilter.go b/build/platformclientv2/auditqueryfilter.go deleted file mode 100644 index 8927e6c8b..000000000 --- a/build/platformclientv2/auditqueryfilter.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditqueryfilter -type Auditqueryfilter struct { - // Property - Name of the property to filter. - Property *string `json:"property,omitempty"` - - - // Value - Value of the property to filter. - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditqueryrequest.go b/build/platformclientv2/auditqueryrequest.go deleted file mode 100644 index 5133c8c8c..000000000 --- a/build/platformclientv2/auditqueryrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditqueryrequest -type Auditqueryrequest struct { - // Interval - Date and time range of data to query. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // ServiceName - Name of the service to query audits for. - ServiceName *string `json:"serviceName,omitempty"` - - - // Filters - Additional filters for the query. - Filters *[]Auditqueryfilter `json:"filters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditqueryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditqueryresponse.go b/build/platformclientv2/auditqueryresponse.go deleted file mode 100644 index f079759e7..000000000 --- a/build/platformclientv2/auditqueryresponse.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditqueryresponse -type Auditqueryresponse struct { } - -// String returns a JSON representation of the model -func (o *Auditqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/auditsearchresult.go b/build/platformclientv2/auditsearchresult.go deleted file mode 100644 index 246b78dc6..000000000 --- a/build/platformclientv2/auditsearchresult.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Auditsearchresult -type Auditsearchresult struct { - // PageNumber - Which page was returned. - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PageSize - The number of results in a page. - PageSize *int32 `json:"pageSize,omitempty"` - - - // Total - The total number of results. - Total *int32 `json:"total,omitempty"` - - - // PageCount - The number of pages of results. - PageCount *int32 `json:"pageCount,omitempty"` - - - // FacetInfo - FacetInfo *[]Facetinfo `json:"facetInfo,omitempty"` - - - // AuditMessages - AuditMessages *[]Auditmessage `json:"auditMessages,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Auditsearchresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/audituser.go b/build/platformclientv2/audituser.go deleted file mode 100644 index 84ee521cd..000000000 --- a/build/platformclientv2/audituser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Audituser -type Audituser struct { - // Id - The ID (UUID) of the user who initiated the action of this AuditMessage. - Id *string `json:"id,omitempty"` - - - // Name - The full username of the user who initiated the action of this AuditMessage. - Name *string `json:"name,omitempty"` - - - // Display - The display name of the user who initiated the action of this AuditMessage. - Display *string `json:"display,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Audituser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/authorizationapi.go b/build/platformclientv2/authorizationapi.go deleted file mode 100644 index dbc11967b..000000000 --- a/build/platformclientv2/authorizationapi.go +++ /dev/null @@ -1,3162 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// AuthorizationApi provides functions for API endpoints -type AuthorizationApi struct { - Configuration *Configuration -} - -// NewAuthorizationApi creates an API instance using the default configuration -func NewAuthorizationApi() *AuthorizationApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating AuthorizationApi with base path: %s", strings.ToLower(config.BasePath))) - return &AuthorizationApi{ - Configuration: config, - } -} - -// NewAuthorizationApiWithConfig creates an API instance using the provided configuration -func NewAuthorizationApiWithConfig(config *Configuration) *AuthorizationApi { - config.Debugf("Creating AuthorizationApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &AuthorizationApi{ - Configuration: config, - } -} - -// DeleteAuthorizationDivision invokes DELETE /api/v2/authorization/divisions/{divisionId} -// -// Delete a division. -// -// -func (a AuthorizationApi) DeleteAuthorizationDivision(divisionId string, force bool) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling AuthorizationApi->DeleteAuthorizationDivision") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["force"] = a.Configuration.APIClient.ParameterToString(force, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteAuthorizationRole invokes DELETE /api/v2/authorization/roles/{roleId} -// -// Delete an organization role. -// -// -func (a AuthorizationApi) DeleteAuthorizationRole(roleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->DeleteAuthorizationRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteAuthorizationSubjectDivisionRole invokes DELETE /api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId} -// -// Delete a grant of a role in a division -// -// -func (a AuthorizationApi) DeleteAuthorizationSubjectDivisionRole(subjectId string, divisionId string, roleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->DeleteAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling AuthorizationApi->DeleteAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->DeleteAuthorizationSubjectDivisionRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserRoles invokes DELETE /api/v2/users/{userId}/roles -// -// Removes all the roles from the user. -// -// -func (a AuthorizationApi) DeleteUserRoles(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/roles" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling AuthorizationApi->DeleteUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetAuthorizationDivision invokes GET /api/v2/authorization/divisions/{divisionId} -// -// Returns an authorization division. -// -// -func (a AuthorizationApi) GetAuthorizationDivision(divisionId string, objectCount bool) (*Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'divisionId' when calling AuthorizationApi->GetAuthorizationDivision") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["objectCount"] = a.Configuration.APIClient.ParameterToString(objectCount, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisions invokes GET /api/v2/authorization/divisions -// -// Retrieve a list of all divisions defined for the organization -// -// Request specific divisions by id using a query param \"id\", e.g. ?id=5f777167-63be-4c24-ad41-374155d9e28b&id=72e9fb25-c484-488d-9312-7acba82435b3 -func (a AuthorizationApi) GetAuthorizationDivisions(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, objectCount bool, id []string, name string) (*Authzdivisionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions" - defaultReturn := new(Authzdivisionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["objectCount"] = a.Configuration.APIClient.ParameterToString(objectCount, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzdivisionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionsHome invokes GET /api/v2/authorization/divisions/home -// -// Retrieve the home division for the organization. -// -// Will not include object counts. -func (a AuthorizationApi) GetAuthorizationDivisionsHome() (*Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/home" - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionsLimit invokes GET /api/v2/authorization/divisions/limit -// -// Returns the maximum allowed number of divisions. -// -// -func (a AuthorizationApi) GetAuthorizationDivisionsLimit() (*int32, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/limit" - defaultReturn := new(int32) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *int32 - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedMe invokes GET /api/v2/authorization/divisionspermitted/me -// -// Returns which divisions the current user has the given permission in. -// -// This route is deprecated, use authorization/divisionspermitted/paged/me instead. -func (a AuthorizationApi) GetAuthorizationDivisionspermittedMe(permission string, name string) ([]Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/me" - defaultReturn := make([]Authzdivision, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling AuthorizationApi->GetAuthorizationDivisionspermittedMe") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedPagedMe invokes GET /api/v2/authorization/divisionspermitted/paged/me -// -// Returns which divisions the current user has the given permission in. -// -// -func (a AuthorizationApi) GetAuthorizationDivisionspermittedPagedMe(permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/me" - defaultReturn := new(Divspermittedentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling AuthorizationApi->GetAuthorizationDivisionspermittedPagedMe") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Divspermittedentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedPagedSubjectId invokes GET /api/v2/authorization/divisionspermitted/paged/{subjectId} -// -// Returns which divisions the specified user has the given permission in. -// -// -func (a AuthorizationApi) GetAuthorizationDivisionspermittedPagedSubjectId(subjectId string, permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/{subjectId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - defaultReturn := new(Divspermittedentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->GetAuthorizationDivisionspermittedPagedSubjectId") - } - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling AuthorizationApi->GetAuthorizationDivisionspermittedPagedSubjectId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Divspermittedentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedSubjectId invokes GET /api/v2/authorization/divisionspermitted/{subjectId} -// -// Returns which divisions the specified user has the given permission in. -// -// This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead. -func (a AuthorizationApi) GetAuthorizationDivisionspermittedSubjectId(subjectId string, permission string, name string) ([]Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/{subjectId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - defaultReturn := make([]Authzdivision, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->GetAuthorizationDivisionspermittedSubjectId") - } - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling AuthorizationApi->GetAuthorizationDivisionspermittedSubjectId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationPermissions invokes GET /api/v2/authorization/permissions -// -// Get all permissions. -// -// Retrieve a list of all permission defined in the system. -func (a AuthorizationApi) GetAuthorizationPermissions(pageSize int32, pageNumber int32) (*Permissioncollectionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/permissions" - defaultReturn := new(Permissioncollectionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Permissioncollectionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationProducts invokes GET /api/v2/authorization/products -// -// Get the list of enabled products -// -// Gets the list of enabled products. Some example product names are: collaborateFree, collaboratePro, communicate, and engage. -func (a AuthorizationApi) GetAuthorizationProducts() (*Organizationproductentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/products" - defaultReturn := new(Organizationproductentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organizationproductentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationRole invokes GET /api/v2/authorization/roles/{roleId} -// -// Get a single organization role. -// -// Get the organization role specified by its ID. -func (a AuthorizationApi) GetAuthorizationRole(roleId string, expand []string) (*Domainorganizationrole, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := new(Domainorganizationrole) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->GetAuthorizationRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainorganizationrole - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationRoleComparedefaultRightRoleId invokes GET /api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId} -// -// Get an org role to default role comparison -// -// Compares any organization role to a default role id and show differences -func (a AuthorizationApi) GetAuthorizationRoleComparedefaultRightRoleId(leftRoleId string, rightRoleId string) (*Domainorgroledifference, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}" - path = strings.Replace(path, "{leftRoleId}", fmt.Sprintf("%v", leftRoleId), -1) - path = strings.Replace(path, "{rightRoleId}", fmt.Sprintf("%v", rightRoleId), -1) - defaultReturn := new(Domainorgroledifference) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'leftRoleId' is set - if &leftRoleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'leftRoleId' when calling AuthorizationApi->GetAuthorizationRoleComparedefaultRightRoleId") - } - // verify the required parameter 'rightRoleId' is set - if &rightRoleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'rightRoleId' when calling AuthorizationApi->GetAuthorizationRoleComparedefaultRightRoleId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainorgroledifference - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationRoleSubjectgrants invokes GET /api/v2/authorization/roles/{roleId}/subjectgrants -// -// Get the subjects' granted divisions in the specified role. -// -// Includes the divisions for which the subject has a grant. -func (a AuthorizationApi) GetAuthorizationRoleSubjectgrants(roleId string, pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string) (*Subjectdivisiongrantsentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}/subjectgrants" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := new(Subjectdivisiongrantsentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->GetAuthorizationRoleSubjectgrants") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Subjectdivisiongrantsentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationRoleUsers invokes GET /api/v2/authorization/roles/{roleId}/users -// -// Get a list of the users in a specified role. -// -// Get an array of the UUIDs of the users in the specified role. -func (a AuthorizationApi) GetAuthorizationRoleUsers(roleId string, pageSize int32, pageNumber int32) (*Userentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}/users" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := new(Userentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->GetAuthorizationRoleUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationRoles invokes GET /api/v2/authorization/roles -// -// Retrieve a list of all roles defined for the organization -// -// -func (a AuthorizationApi) GetAuthorizationRoles(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, name string, permission []string, defaultRoleId []string, userCount bool, id []string) (*Organizationroleentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles" - defaultReturn := new(Organizationroleentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range permission { - queryParams["permission"] = value - } - } else { - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range defaultRoleId { - queryParams["defaultRoleId"] = value - } - } else { - queryParams["defaultRoleId"] = a.Configuration.APIClient.ParameterToString(defaultRoleId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["userCount"] = a.Configuration.APIClient.ParameterToString(userCount, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organizationroleentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationSubject invokes GET /api/v2/authorization/subjects/{subjectId} -// -// Returns a listing of roles and permissions for a user. -// -// -func (a AuthorizationApi) GetAuthorizationSubject(subjectId string) (*Authzsubject, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - defaultReturn := new(Authzsubject) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->GetAuthorizationSubject") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzsubject - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationSubjectsMe invokes GET /api/v2/authorization/subjects/me -// -// Returns a listing of roles and permissions for the currently authenticated user. -// -// -func (a AuthorizationApi) GetAuthorizationSubjectsMe() (*Authzsubject, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/me" - defaultReturn := new(Authzsubject) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzsubject - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationSubjectsRolecounts invokes GET /api/v2/authorization/subjects/rolecounts -// -// Get the count of roles granted to a list of subjects -// -// -func (a AuthorizationApi) GetAuthorizationSubjectsRolecounts(id []string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/rolecounts" - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoles invokes GET /api/v2/users/{userId}/roles -// -// Returns a listing of roles and permissions for a user. -// -// -func (a AuthorizationApi) GetUserRoles(userId string) (*Userauthorization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/roles" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling AuthorizationApi->GetUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchAuthorizationRole invokes PATCH /api/v2/authorization/roles/{roleId} -// -// Patch Organization Role for needsUpdate Field -// -// Patch Organization Role for needsUpdate Field -func (a AuthorizationApi) PatchAuthorizationRole(roleId string, body Domainorganizationrole) (*Domainorganizationrole, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := new(Domainorganizationrole) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->PatchAuthorizationRole") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PatchAuthorizationRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainorganizationrole - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationDivisionObject invokes POST /api/v2/authorization/divisions/{divisionId}/objects/{objectType} -// -// Assign a list of objects to a division -// -// Set the division of a specified list of objects. The objects must all be of the same type, one of: CAMPAIGN, MANAGEMENTUNIT, FLOW, QUEUE, or USER. The body of the request is a list of object IDs, which are expected to be GUIDs, e.g. [\"206ce31f-61ec-40ed-a8b1-be6f06303998\",\"250a754e-f5e4-4f51-800f-a92f09d3bf8c\"] -func (a AuthorizationApi) PostAuthorizationDivisionObject(divisionId string, objectType string, body []string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}/objects/{objectType}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - path = strings.Replace(path, "{objectType}", fmt.Sprintf("%v", objectType), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling AuthorizationApi->PostAuthorizationDivisionObject") - } - // verify the required parameter 'objectType' is set - if &objectType == nil { - // - return nil, errors.New("Missing required parameter 'objectType' when calling AuthorizationApi->PostAuthorizationDivisionObject") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationDivisionObject") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationDivisions invokes POST /api/v2/authorization/divisions -// -// Create a division. -// -// -func (a AuthorizationApi) PostAuthorizationDivisions(body Authzdivision) (*Authzdivision, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions" - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationDivisions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationRole invokes POST /api/v2/authorization/roles/{roleId} -// -// Bulk-grant subjects and divisions with an organization role. -// -// -func (a AuthorizationApi) PostAuthorizationRole(roleId string, body Subjectdivisions, subjectType string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->PostAuthorizationRole") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["subjectType"] = a.Configuration.APIClient.ParameterToString(subjectType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationRoleComparedefaultRightRoleId invokes POST /api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId} -// -// Get an unsaved org role to default role comparison -// -// Allows users to compare their existing roles in an unsaved state to its default role -func (a AuthorizationApi) PostAuthorizationRoleComparedefaultRightRoleId(leftRoleId string, rightRoleId string, body Domainorganizationrole) (*Domainorgroledifference, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}" - path = strings.Replace(path, "{leftRoleId}", fmt.Sprintf("%v", leftRoleId), -1) - path = strings.Replace(path, "{rightRoleId}", fmt.Sprintf("%v", rightRoleId), -1) - defaultReturn := new(Domainorgroledifference) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'leftRoleId' is set - if &leftRoleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'leftRoleId' when calling AuthorizationApi->PostAuthorizationRoleComparedefaultRightRoleId") - } - // verify the required parameter 'rightRoleId' is set - if &rightRoleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'rightRoleId' when calling AuthorizationApi->PostAuthorizationRoleComparedefaultRightRoleId") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationRoleComparedefaultRightRoleId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainorgroledifference - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationRoles invokes POST /api/v2/authorization/roles -// -// Create an organization role. -// -// -func (a AuthorizationApi) PostAuthorizationRoles(body Domainorganizationrolecreate) (*Domainorganizationrole, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles" - defaultReturn := new(Domainorganizationrole) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainorganizationrole - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationRolesDefault invokes POST /api/v2/authorization/roles/default -// -// Restores all default roles -// -// This endpoint serves several purposes. 1. It provides the org with default roles. This is important for default roles that will be added after go-live (they can retroactively add the new default-role). Note: When not using a query param of force=true, it only adds the default roles not configured for the org; it does not overwrite roles. 2. Using the query param force=true, you can restore all default roles. Note: This does not have an effect on custom roles. -func (a AuthorizationApi) PostAuthorizationRolesDefault(force bool) (*Organizationroleentitylisting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/default" - defaultReturn := new(Organizationroleentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["force"] = a.Configuration.APIClient.ParameterToString(force, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organizationroleentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationSubjectBulkadd invokes POST /api/v2/authorization/subjects/{subjectId}/bulkadd -// -// Bulk-grant roles and divisions to a subject. -// -// -func (a AuthorizationApi) PostAuthorizationSubjectBulkadd(subjectId string, body Roledivisiongrants, subjectType string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/bulkadd" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->PostAuthorizationSubjectBulkadd") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationSubjectBulkadd") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["subjectType"] = a.Configuration.APIClient.ParameterToString(subjectType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationSubjectBulkremove invokes POST /api/v2/authorization/subjects/{subjectId}/bulkremove -// -// Bulk-remove grants from a subject. -// -// -func (a AuthorizationApi) PostAuthorizationSubjectBulkremove(subjectId string, body Roledivisiongrants) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/bulkremove" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->PostAuthorizationSubjectBulkremove") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PostAuthorizationSubjectBulkremove") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationSubjectDivisionRole invokes POST /api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId} -// -// Make a grant of a role in a division -// -// -func (a AuthorizationApi) PostAuthorizationSubjectDivisionRole(subjectId string, divisionId string, roleId string, subjectType string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->PostAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling AuthorizationApi->PostAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->PostAuthorizationSubjectDivisionRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["subjectType"] = a.Configuration.APIClient.ParameterToString(subjectType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PutAuthorizationDivision invokes PUT /api/v2/authorization/divisions/{divisionId} -// -// Update a division. -// -// -func (a AuthorizationApi) PutAuthorizationDivision(divisionId string, body Authzdivision) (*Authzdivision, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'divisionId' when calling AuthorizationApi->PutAuthorizationDivision") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PutAuthorizationDivision") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAuthorizationRole invokes PUT /api/v2/authorization/roles/{roleId} -// -// Update an organization role. -// -// Update -func (a AuthorizationApi) PutAuthorizationRole(roleId string, body Domainorganizationroleupdate) (*Domainorganizationrole, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := new(Domainorganizationrole) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->PutAuthorizationRole") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PutAuthorizationRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainorganizationrole - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAuthorizationRoleUsersAdd invokes PUT /api/v2/authorization/roles/{roleId}/users/add -// -// Sets the users for the role -// -// -func (a AuthorizationApi) PutAuthorizationRoleUsersAdd(roleId string, body []string) ([]string, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}/users/add" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->PutAuthorizationRoleUsersAdd") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PutAuthorizationRoleUsersAdd") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAuthorizationRoleUsersRemove invokes PUT /api/v2/authorization/roles/{roleId}/users/remove -// -// Removes the users from the role -// -// -func (a AuthorizationApi) PutAuthorizationRoleUsersRemove(roleId string, body []string) ([]string, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/{roleId}/users/remove" - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'roleId' when calling AuthorizationApi->PutAuthorizationRoleUsersRemove") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PutAuthorizationRoleUsersRemove") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAuthorizationRolesDefault invokes PUT /api/v2/authorization/roles/default -// -// Restore specified default roles -// -// -func (a AuthorizationApi) PutAuthorizationRolesDefault(body []Domainorganizationrole) (*Organizationroleentitylisting, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/roles/default" - defaultReturn := new(Organizationroleentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PutAuthorizationRolesDefault") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Organizationroleentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoles invokes PUT /api/v2/users/{userId}/roles -// -// Sets the user's roles -// -// -func (a AuthorizationApi) PutUserRoles(userId string, body []string) (*Userauthorization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/roles" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling AuthorizationApi->PutUserRoles") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling AuthorizationApi->PutUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/authzdivision.go b/build/platformclientv2/authzdivision.go deleted file mode 100644 index e73567756..000000000 --- a/build/platformclientv2/authzdivision.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Authzdivision -type Authzdivision struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - A helpful description for the division. - Description *string `json:"description,omitempty"` - - - // HomeDivision - A flag indicating whether this division is the \"Home\" (default) division. Cannot be modified and any supplied value will be ignored on create or update. - HomeDivision *bool `json:"homeDivision,omitempty"` - - - // ObjectCounts - A count of objects in this division, grouped by type. - ObjectCounts *map[string]int64 `json:"objectCounts,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Authzdivision) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/authzdivisionentitylisting.go b/build/platformclientv2/authzdivisionentitylisting.go deleted file mode 100644 index 8f0c5e5f7..000000000 --- a/build/platformclientv2/authzdivisionentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Authzdivisionentitylisting -type Authzdivisionentitylisting struct { - // Entities - Entities *[]Authzdivision `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Authzdivisionentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/authzgrant.go b/build/platformclientv2/authzgrant.go deleted file mode 100644 index 41bac9036..000000000 --- a/build/platformclientv2/authzgrant.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Authzgrant -type Authzgrant struct { - // SubjectId - SubjectId *string `json:"subjectId,omitempty"` - - - // Division - Division *Authzdivision `json:"division,omitempty"` - - - // Role - Role *Authzgrantrole `json:"role,omitempty"` - - - // GrantMadeAt - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - GrantMadeAt *time.Time `json:"grantMadeAt,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Authzgrant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/authzgrantpolicy.go b/build/platformclientv2/authzgrantpolicy.go deleted file mode 100644 index 76363095b..000000000 --- a/build/platformclientv2/authzgrantpolicy.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Authzgrantpolicy -type Authzgrantpolicy struct { - // Actions - Actions *[]string `json:"actions,omitempty"` - - - // Condition - Condition *string `json:"condition,omitempty"` - - - // Domain - Domain *string `json:"domain,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Authzgrantpolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/authzgrantrole.go b/build/platformclientv2/authzgrantrole.go deleted file mode 100644 index 3fd94f9c2..000000000 --- a/build/platformclientv2/authzgrantrole.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Authzgrantrole -type Authzgrantrole struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Policies - Policies *[]Authzgrantpolicy `json:"policies,omitempty"` - - - // VarDefault - VarDefault *bool `json:"default,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Authzgrantrole) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/authzsubject.go b/build/platformclientv2/authzsubject.go deleted file mode 100644 index 527447d4d..000000000 --- a/build/platformclientv2/authzsubject.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Authzsubject -type Authzsubject struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Grants - Grants *[]Authzgrant `json:"grants,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Authzsubject) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/automatictimezonemappingsettings.go b/build/platformclientv2/automatictimezonemappingsettings.go deleted file mode 100644 index b16cffdfe..000000000 --- a/build/platformclientv2/automatictimezonemappingsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Automatictimezonemappingsettings -type Automatictimezonemappingsettings struct { - // CallableWindows - The time intervals to use for automatic time zone mapping. - CallableWindows *[]Callablewindow `json:"callableWindows,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Automatictimezonemappingsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/availablelanguagelist.go b/build/platformclientv2/availablelanguagelist.go deleted file mode 100644 index afc4bffa7..000000000 --- a/build/platformclientv2/availablelanguagelist.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Availablelanguagelist -type Availablelanguagelist struct { - // Languages - Languages *[]string `json:"languages,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Availablelanguagelist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/availabletopic.go b/build/platformclientv2/availabletopic.go deleted file mode 100644 index 480e0b59c..000000000 --- a/build/platformclientv2/availabletopic.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Availabletopic -type Availabletopic struct { - // Description - Description *string `json:"description,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // RequiresPermissions - Permissions required to subscribe to the topic - RequiresPermissions *[]string `json:"requiresPermissions,omitempty"` - - - // Schema - Schema *map[string]interface{} `json:"schema,omitempty"` - - - // RequiresCurrentUser - True if the topic user ID is required to match the subscribing user ID - RequiresCurrentUser *bool `json:"requiresCurrentUser,omitempty"` - - - // RequiresCurrentUserOrPermission - True if permissions are only required when the topic user ID does not match the subscribing user ID - RequiresCurrentUserOrPermission *bool `json:"requiresCurrentUserOrPermission,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Availabletopic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/availabletopicentitylisting.go b/build/platformclientv2/availabletopicentitylisting.go deleted file mode 100644 index adf46a032..000000000 --- a/build/platformclientv2/availabletopicentitylisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Availabletopicentitylisting -type Availabletopicentitylisting struct { - // Entities - Entities *[]Availabletopic `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Availabletopicentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/availabletranslations.go b/build/platformclientv2/availabletranslations.go deleted file mode 100644 index 4bf8d691c..000000000 --- a/build/platformclientv2/availabletranslations.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Availabletranslations -type Availabletranslations struct { - // OrgSpecific - OrgSpecific *[]string `json:"orgSpecific,omitempty"` - - - // Builtin - Builtin *[]string `json:"builtin,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Availabletranslations) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/batchdownloadjobresult.go b/build/platformclientv2/batchdownloadjobresult.go deleted file mode 100644 index ad5d1783c..000000000 --- a/build/platformclientv2/batchdownloadjobresult.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Batchdownloadjobresult -type Batchdownloadjobresult struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ConversationId - Conversation id of the result - ConversationId *string `json:"conversationId,omitempty"` - - - // RecordingId - Recording id of the result - RecordingId *string `json:"recordingId,omitempty"` - - - // ResultUrl - URL of results... HTTP GET from this location to download results for this item - ResultUrl *string `json:"resultUrl,omitempty"` - - - // ContentType - Content type of this result - ContentType *string `json:"contentType,omitempty"` - - - // ErrorMsg - An error message, in case of failed processing will indicate the cause of the failure - ErrorMsg *string `json:"errorMsg,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Batchdownloadjobresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/batchdownloadjobstatusresult.go b/build/platformclientv2/batchdownloadjobstatusresult.go deleted file mode 100644 index 069f66ba6..000000000 --- a/build/platformclientv2/batchdownloadjobstatusresult.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Batchdownloadjobstatusresult -type Batchdownloadjobstatusresult struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // JobId - JobId returned when job was initially submitted - JobId *string `json:"jobId,omitempty"` - - - // ExpectedResultCount - Number of results expected when job is completed - ExpectedResultCount *int32 `json:"expectedResultCount,omitempty"` - - - // ResultCount - Current number of results available - ResultCount *int32 `json:"resultCount,omitempty"` - - - // ErrorCount - Number of error results produced so far - ErrorCount *int32 `json:"errorCount,omitempty"` - - - // Results - Current set of results for the job - Results *[]Batchdownloadjobresult `json:"results,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Batchdownloadjobstatusresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/batchdownloadjobsubmission.go b/build/platformclientv2/batchdownloadjobsubmission.go deleted file mode 100644 index b04616faf..000000000 --- a/build/platformclientv2/batchdownloadjobsubmission.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Batchdownloadjobsubmission -type Batchdownloadjobsubmission struct { - // BatchDownloadRequestList - List of up to 100 items requested - BatchDownloadRequestList *[]Batchdownloadrequest `json:"batchDownloadRequestList,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Batchdownloadjobsubmission) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/batchdownloadjobsubmissionresult.go b/build/platformclientv2/batchdownloadjobsubmissionresult.go deleted file mode 100644 index 4166268a2..000000000 --- a/build/platformclientv2/batchdownloadjobsubmissionresult.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Batchdownloadjobsubmissionresult -type Batchdownloadjobsubmissionresult struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Batchdownloadjobsubmissionresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/batchdownloadrequest.go b/build/platformclientv2/batchdownloadrequest.go deleted file mode 100644 index 82855e35b..000000000 --- a/build/platformclientv2/batchdownloadrequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Batchdownloadrequest -type Batchdownloadrequest struct { - // ConversationId - Conversation id requested - ConversationId *string `json:"conversationId,omitempty"` - - - // RecordingId - Recording id requested, optional. Leave null for all recordings on the conversation - RecordingId *string `json:"recordingId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Batchdownloadrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/billingapi.go b/build/platformclientv2/billingapi.go deleted file mode 100644 index 802d2c7bc..000000000 --- a/build/platformclientv2/billingapi.go +++ /dev/null @@ -1,197 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "time" -"encoding/json" -) - -// BillingApi provides functions for API endpoints -type BillingApi struct { - Configuration *Configuration -} - -// NewBillingApi creates an API instance using the default configuration -func NewBillingApi() *BillingApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating BillingApi with base path: %s", strings.ToLower(config.BasePath))) - return &BillingApi{ - Configuration: config, - } -} - -// NewBillingApiWithConfig creates an API instance using the provided configuration -func NewBillingApiWithConfig(config *Configuration) *BillingApi { - config.Debugf("Creating BillingApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &BillingApi{ - Configuration: config, - } -} - -// GetBillingReportsBillableusage invokes GET /api/v2/billing/reports/billableusage -// -// Get a report of the billable license usages -// -// Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If response's status is InProgress, wait a few seconds, then try the same request again. -func (a BillingApi) GetBillingReportsBillableusage(startDate time.Time, endDate time.Time) (*Billingusagereport, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/billing/reports/billableusage" - defaultReturn := new(Billingusagereport) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'startDate' is set - if &startDate == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'startDate' when calling BillingApi->GetBillingReportsBillableusage") - } - // verify the required parameter 'endDate' is set - if &endDate == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'endDate' when calling BillingApi->GetBillingReportsBillableusage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["startDate"] = a.Configuration.APIClient.ParameterToString(startDate, collectionFormat) - - - - - collectionFormat = "" - queryParams["endDate"] = a.Configuration.APIClient.ParameterToString(endDate, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Billingusagereport - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetBillingTrusteebillingoverviewTrustorOrgId invokes GET /api/v2/billing/trusteebillingoverview/{trustorOrgId} -// -// Get the billing overview for an organization that is managed by a partner. -// -// Tax Disclaimer: Prices returned by this API do not include applicable taxes. It is the responsibility of the customer to pay all taxes that are appropriate in their jurisdiction. See the PureCloud API Documentation in the Developer Center for more information about this API: https://developer.mypurecloud.com/api/rest/v2/ -func (a BillingApi) GetBillingTrusteebillingoverviewTrustorOrgId(trustorOrgId string, billingPeriodIndex int32) (*Trusteebillingoverview, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/billing/trusteebillingoverview/{trustorOrgId}" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - defaultReturn := new(Trusteebillingoverview) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trustorOrgId' when calling BillingApi->GetBillingTrusteebillingoverviewTrustorOrgId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["billingPeriodIndex"] = a.Configuration.APIClient.ParameterToString(billingPeriodIndex, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trusteebillingoverview - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/billingusage.go b/build/platformclientv2/billingusage.go deleted file mode 100644 index 54f9ed0bb..000000000 --- a/build/platformclientv2/billingusage.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Billingusage -type Billingusage struct { - // Name - Identifies the billable usage. - Name *string `json:"name,omitempty"` - - - // TotalUsage - The total amount of usage, expressed as a decimal number in string format. - TotalUsage *string `json:"totalUsage,omitempty"` - - - // Resources - The resources for which usage was observed (e.g. license users, devices). - Resources *[]Billingusageresource `json:"resources,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Billingusage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/billingusagereport.go b/build/platformclientv2/billingusagereport.go deleted file mode 100644 index 42d6870e5..000000000 --- a/build/platformclientv2/billingusagereport.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Billingusagereport -type Billingusagereport struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // StartDate - The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndDate *time.Time `json:"endDate,omitempty"` - - - // Status - Generation status of report - Status *string `json:"status,omitempty"` - - - // Usages - The usages for the given period. - Usages *[]Billingusage `json:"usages,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Billingusagereport) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/billingusageresource.go b/build/platformclientv2/billingusageresource.go deleted file mode 100644 index 7785ce806..000000000 --- a/build/platformclientv2/billingusageresource.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Billingusageresource -type Billingusageresource struct { - // Name - Identifies the resource (e.g. license user, device). - Name *string `json:"name,omitempty"` - - - // Date - The date that the usage was first observed by the billing subsystem. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Date *time.Time `json:"date,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Billingusageresource) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/biography.go b/build/platformclientv2/biography.go deleted file mode 100644 index 22769f5de..000000000 --- a/build/platformclientv2/biography.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Biography -type Biography struct { - // Biography - Personal detailed description - Biography *string `json:"biography,omitempty"` - - - // Interests - Interests *[]string `json:"interests,omitempty"` - - - // Hobbies - Hobbies *[]string `json:"hobbies,omitempty"` - - - // Spouse - Spouse *string `json:"spouse,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Biography) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/bullseye.go b/build/platformclientv2/bullseye.go deleted file mode 100644 index f4a7ae39a..000000000 --- a/build/platformclientv2/bullseye.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Bullseye -type Bullseye struct { - // Rings - Rings *[]Ring `json:"rings,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Bullseye) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/busearchagentschedulesrequest.go b/build/platformclientv2/busearchagentschedulesrequest.go deleted file mode 100644 index 376652d08..000000000 --- a/build/platformclientv2/busearchagentschedulesrequest.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Busearchagentschedulesrequest -type Busearchagentschedulesrequest struct { - // StartDate - Start date of the range to search. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - End date of the range to search. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndDate *time.Time `json:"endDate,omitempty"` - - - // UserIds - IDs of the users for whose schedules to search - UserIds *[]string `json:"userIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Busearchagentschedulesrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/businessunitreference.go b/build/platformclientv2/businessunitreference.go deleted file mode 100644 index c8bc6cbad..000000000 --- a/build/platformclientv2/businessunitreference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Businessunitreference -type Businessunitreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Businessunitreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/calibration.go b/build/platformclientv2/calibration.go deleted file mode 100644 index 0ed954361..000000000 --- a/build/platformclientv2/calibration.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Calibration -type Calibration struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Calibrator - Calibrator *User `json:"calibrator,omitempty"` - - - // Agent - Agent *User `json:"agent,omitempty"` - - - // Conversation - Conversation *Conversation `json:"conversation,omitempty"` - - - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // AverageScore - AverageScore *int32 `json:"averageScore,omitempty"` - - - // HighScore - HighScore *int32 `json:"highScore,omitempty"` - - - // LowScore - LowScore *int32 `json:"lowScore,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // Evaluations - Evaluations *[]Evaluation `json:"evaluations,omitempty"` - - - // Evaluators - Evaluators *[]User `json:"evaluators,omitempty"` - - - // ScoringIndex - ScoringIndex **Evaluation `json:"scoringIndex,omitempty"` - - - // ExpertEvaluator - ExpertEvaluator *User `json:"expertEvaluator,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Calibration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/calibrationassignment.go b/build/platformclientv2/calibrationassignment.go deleted file mode 100644 index 74c95fae6..000000000 --- a/build/platformclientv2/calibrationassignment.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Calibrationassignment -type Calibrationassignment struct { - // Calibrator - Calibrator *User `json:"calibrator,omitempty"` - - - // Evaluators - Evaluators *[]User `json:"evaluators,omitempty"` - - - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // ExpertEvaluator - ExpertEvaluator *User `json:"expertEvaluator,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Calibrationassignment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/calibrationcreate.go b/build/platformclientv2/calibrationcreate.go deleted file mode 100644 index 4d0fe3045..000000000 --- a/build/platformclientv2/calibrationcreate.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Calibrationcreate -type Calibrationcreate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Calibrator - Calibrator *User `json:"calibrator,omitempty"` - - - // Agent - Agent *User `json:"agent,omitempty"` - - - // Conversation - The conversation to use for the calibration. - Conversation *Conversation `json:"conversation,omitempty"` - - - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // AverageScore - AverageScore *int32 `json:"averageScore,omitempty"` - - - // HighScore - HighScore *int32 `json:"highScore,omitempty"` - - - // LowScore - LowScore *int32 `json:"lowScore,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // Evaluations - Evaluations *[]Evaluation `json:"evaluations,omitempty"` - - - // Evaluators - Evaluators *[]User `json:"evaluators,omitempty"` - - - // ScoringIndex - ScoringIndex *Evaluation `json:"scoringIndex,omitempty"` - - - // ExpertEvaluator - ExpertEvaluator *User `json:"expertEvaluator,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Calibrationcreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/calibrationentitylisting.go b/build/platformclientv2/calibrationentitylisting.go deleted file mode 100644 index 7b8806a49..000000000 --- a/build/platformclientv2/calibrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Calibrationentitylisting -type Calibrationentitylisting struct { - // Entities - Entities *[]Calibration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Calibrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/call.go b/build/platformclientv2/call.go deleted file mode 100644 index 9af533838..000000000 --- a/build/platformclientv2/call.go +++ /dev/null @@ -1,114 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Call -type Call struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Direction - The direction of the call - Direction *string `json:"direction,omitempty"` - - - // Recording - True if this call is being recorded. - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - State of recording on this call. - RecordingState *string `json:"recordingState,omitempty"` - - - // Muted - True if this call is muted so that remote participants can't hear any audio from this end. - Muted *bool `json:"muted,omitempty"` - - - // Confined - True if this call is held and the person on this side hears hold music. - Confined *bool `json:"confined,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // RecordingId - A globally unique identifier for the recording associated with this call. - RecordingId *string `json:"recordingId,omitempty"` - - - // Segments - The time line of the participant's call, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // ErrorInfo - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the call was placed on hold in the cloud clock if the call is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DocumentId - If call is an outbound fax of a document from content management, then this is the id in content management. - DocumentId *string `json:"documentId,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // DisconnectReasons - List of reasons that this call was disconnected. This will be set once the call disconnects. - DisconnectReasons *[]Disconnectreason `json:"disconnectReasons,omitempty"` - - - // FaxStatus - Extra information on fax transmission. - FaxStatus *Faxstatus `json:"faxStatus,omitempty"` - - - // Provider - The source provider for the call. - Provider *string `json:"provider,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // UuiData - User to User Information (UUI) data managed by SIP session application. - UuiData *string `json:"uuiData,omitempty"` - - - // Self - Address and name data for a call endpoint. - Self *Address `json:"self,omitempty"` - - - // Other - Address and name data for a call endpoint. - Other *Address `json:"other,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Call) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callablecontactsdiagnostic.go b/build/platformclientv2/callablecontactsdiagnostic.go deleted file mode 100644 index b5c9c1f9d..000000000 --- a/build/platformclientv2/callablecontactsdiagnostic.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callablecontactsdiagnostic -type Callablecontactsdiagnostic struct { - // AttemptLimits - Attempt limits for the campaign's contact list - AttemptLimits *Domainentityref `json:"attemptLimits,omitempty"` - - - // DncLists - Do not call lists for the campaign - DncLists *[]Domainentityref `json:"dncLists,omitempty"` - - - // CallableTimeSet - Callable time sets for the campaign - CallableTimeSet *Domainentityref `json:"callableTimeSet,omitempty"` - - - // RuleSets - Rule sets for the campaign - RuleSets *[]Domainentityref `json:"ruleSets,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callablecontactsdiagnostic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callabletime.go b/build/platformclientv2/callabletime.go deleted file mode 100644 index 80a790829..000000000 --- a/build/platformclientv2/callabletime.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callabletime -type Callabletime struct { - // TimeSlots - The time intervals for which it is acceptable to place outbound calls. - TimeSlots *[]Campaigntimeslot `json:"timeSlots,omitempty"` - - - // TimeZoneId - The time zone for the time slots; for example, Africa/Abidjan - TimeZoneId *string `json:"timeZoneId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callabletime) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callabletimeset.go b/build/platformclientv2/callabletimeset.go deleted file mode 100644 index 70b47c64e..000000000 --- a/build/platformclientv2/callabletimeset.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callabletimeset -type Callabletimeset struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the CallableTimeSet. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // CallableTimes - The list of CallableTimes for which it is acceptable to place outbound calls. - CallableTimes *[]Callabletime `json:"callableTimes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callabletimeset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callabletimesetentitylisting.go b/build/platformclientv2/callabletimesetentitylisting.go deleted file mode 100644 index db6359ad3..000000000 --- a/build/platformclientv2/callabletimesetentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callabletimesetentitylisting -type Callabletimesetentitylisting struct { - // Entities - Entities *[]Callabletimeset `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callabletimesetentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callablewindow.go b/build/platformclientv2/callablewindow.go deleted file mode 100644 index a116b20dc..000000000 --- a/build/platformclientv2/callablewindow.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callablewindow -type Callablewindow struct { - // Mapped - The time interval to place outbound calls, for contacts that can be mapped to a time zone. - Mapped *Atzmtimeslot `json:"mapped,omitempty"` - - - // Unmapped - The time interval and time zone to place outbound calls, for contacts that cannot be mapped to a time zone. - Unmapped *Atzmtimeslotwithtimezone `json:"unmapped,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callablewindow) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callback.go b/build/platformclientv2/callback.go deleted file mode 100644 index ba50c5623..000000000 --- a/build/platformclientv2/callback.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callback -type Callback struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Segments - The time line of the participant's callback, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // Direction - The direction of the call - Direction *string `json:"direction,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the callback was placed on hold in the cloud clock if the callback is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DialerPreview - The preview data to be used when this callback is a Preview. - DialerPreview *Dialerpreview `json:"dialerPreview,omitempty"` - - - // Voicemail - The voicemail data to be used when this callback is an ACD voicemail. - Voicemail *Voicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - The phone number(s) to use to place the callback. - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - The name of the user requesting a callback. - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // SkipEnabled - True if the ability to skip a callback should be enabled. - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // TimeoutSeconds - The number of seconds before the system automatically places a call for a callback. 0 means the automatic placement is disabled. - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // CallbackScheduledTime - The timestamp when this communication is scheduled in the provider clock. If this value is missing it indicates the callback will be placed immediately. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - The id of the config for automatically placing the callback (and handling the disposition). If null, the callback will not be placed automatically but routed to an agent as per normal. - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // Provider - The source provider for the callback. - Provider *string `json:"provider,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callback) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callbackbasic.go b/build/platformclientv2/callbackbasic.go deleted file mode 100644 index 07fd8853f..000000000 --- a/build/platformclientv2/callbackbasic.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callbackbasic -type Callbackbasic struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Segments - The time line of the participant's callback, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // Direction - The direction of the call - Direction *string `json:"direction,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the callback was placed on hold in the cloud clock if the callback is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DialerPreview - The preview data to be used when this callback is a Preview. - DialerPreview *Dialerpreview `json:"dialerPreview,omitempty"` - - - // Voicemail - The voicemail data to be used when this callback is an ACD voicemail. - Voicemail *Voicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - The phone number(s) to use to place the callback. - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - The name of the user requesting a callback. - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // SkipEnabled - True if the ability to skip a callback should be enabled. - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // TimeoutSeconds - The number of seconds before the system automatically places a call for a callback. 0 means the automatic placement is disabled. - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // CallbackScheduledTime - The timestamp when this communication is scheduled in the provider clock. If this value is missing it indicates the callback will be placed immediately. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - The id of the config for automatically placing the callback (and handling the disposition). If null, the callback will not be placed automatically but routed to an agent as per normal. - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // Provider - The source provider for the callback. - Provider *string `json:"provider,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callbackbasic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callbackconversation.go b/build/platformclientv2/callbackconversation.go deleted file mode 100644 index 7ea4b1f3a..000000000 --- a/build/platformclientv2/callbackconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callbackconversation -type Callbackconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Callbackmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - The list of other media channels involved in the conversation. - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callbackconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callbackconversationentitylisting.go b/build/platformclientv2/callbackconversationentitylisting.go deleted file mode 100644 index 7b33264fb..000000000 --- a/build/platformclientv2/callbackconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callbackconversationentitylisting -type Callbackconversationentitylisting struct { - // Entities - Entities *[]Callbackconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callbackconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callbackidentifier.go b/build/platformclientv2/callbackidentifier.go deleted file mode 100644 index 655d687d4..000000000 --- a/build/platformclientv2/callbackidentifier.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callbackidentifier -type Callbackidentifier struct { - // VarType - The type of the associated callback participant - VarType *string `json:"type,omitempty"` - - - // Id - The identifier of the callback - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callbackidentifier) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callbackmediaparticipant.go b/build/platformclientv2/callbackmediaparticipant.go deleted file mode 100644 index 9cbe1558b..000000000 --- a/build/platformclientv2/callbackmediaparticipant.go +++ /dev/null @@ -1,174 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callbackmediaparticipant -type Callbackmediaparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // State - The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting - State *string `json:"state,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Value is true when the participant is on hold. - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - Value is true when the participant requires wrap-up. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - The wrap-up prompt indicating the type of wrap-up to be performed. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - The PureCloud user for this participant. - User *Domainentityref `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Attributes - A list of ad-hoc attributes for the participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - If the conversation ends in error, contains additional error details. - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // Script - The Engage script that should be used by this participant. - Script *Domainentityref `json:"script,omitempty"` - - - // WrapupTimeoutMs - The amount of time the participant has to complete wrap-up. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - Value is true when the participant has skipped wrap-up. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - The source provider for the communication. - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - If this participant represents an external contact, then this will be the reference for the external contact. - ExternalContact *Domainentityref `json:"externalContact,omitempty"` - - - // ExternalOrganization - If this participant represents an external org, then this will be the reference for the external org. - ExternalOrganization *Domainentityref `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup for this participant, if it has been applied. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // Peer - The peer communication corresponding to a matching leg for this communication. - Peer *string `json:"peer,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context. - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // OutboundPreview - The outbound preview associated with this callback. - OutboundPreview *Dialerpreview `json:"outboundPreview,omitempty"` - - - // Voicemail - The voicemail associated with this callback. - Voicemail *Voicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - The list of phone number to use for this callback. - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - The name of the callback target. - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // SkipEnabled - If true, the callback can be skipped - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // TimeoutSeconds - Duration in seconds before the callback will be auto-dialed. - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // AutomatedCallbackConfigId - The id of the config for automatically placing the callback (and handling the disposition). If absent, the callback will not be placed automatically but routed to an agent as per normal. - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // CallbackScheduledTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callbackmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callbasic.go b/build/platformclientv2/callbasic.go deleted file mode 100644 index 12503c79e..000000000 --- a/build/platformclientv2/callbasic.go +++ /dev/null @@ -1,114 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callbasic -type Callbasic struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Direction - The direction of the call - Direction *string `json:"direction,omitempty"` - - - // Recording - True if this call is being recorded. - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - State of recording on this call. - RecordingState *string `json:"recordingState,omitempty"` - - - // Muted - True if this call is muted so that remote participants can't hear any audio from this end. - Muted *bool `json:"muted,omitempty"` - - - // Confined - True if this call is held and the person on this side hears hold music. - Confined *bool `json:"confined,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // RecordingId - A globally unique identifier for the recording associated with this call. - RecordingId *string `json:"recordingId,omitempty"` - - - // Segments - The time line of the participant's call, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // ErrorInfo - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the call was placed on hold in the cloud clock if the call is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DocumentId - If call is an outbound fax of a document from content management, then this is the id in content management. - DocumentId *string `json:"documentId,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // DisconnectReasons - List of reasons that this call was disconnected. This will be set once the call disconnects. - DisconnectReasons *[]Disconnectreason `json:"disconnectReasons,omitempty"` - - - // FaxStatus - Extra information on fax transmission. - FaxStatus *Faxstatus `json:"faxStatus,omitempty"` - - - // Provider - The source provider for the call. - Provider *string `json:"provider,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // UuiData - User to User Information (UUI) data managed by SIP session application. - UuiData *string `json:"uuiData,omitempty"` - - - // Self - Address and name data for a call endpoint. - Self *Address `json:"self,omitempty"` - - - // Other - Address and name data for a call endpoint. - Other *Address `json:"other,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callbasic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callcommand.go b/build/platformclientv2/callcommand.go deleted file mode 100644 index d8218c06c..000000000 --- a/build/platformclientv2/callcommand.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callcommand -type Callcommand struct { - // CallNumber - The phone number to dial for this call. - CallNumber *string `json:"callNumber,omitempty"` - - - // PhoneColumn - For a dialer preview or scheduled callback, the phone column associated with the phone number - PhoneColumn *string `json:"phoneColumn,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callcommand) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callconversation.go b/build/platformclientv2/callconversation.go deleted file mode 100644 index de42f3e6b..000000000 --- a/build/platformclientv2/callconversation.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callconversation -type Callconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Callmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - The list of other media channels involved in the conversation. - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // MaxParticipants - If this is a conference conversation, then this field indicates the maximum number of participants allowed to participant in the conference. - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callconversationentitylisting.go b/build/platformclientv2/callconversationentitylisting.go deleted file mode 100644 index 59a7fa03d..000000000 --- a/build/platformclientv2/callconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callconversationentitylisting -type Callconversationentitylisting struct { - // Entities - Entities *[]Callconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callforwarding.go b/build/platformclientv2/callforwarding.go deleted file mode 100644 index d5e2aaf6a..000000000 --- a/build/platformclientv2/callforwarding.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callforwarding -type Callforwarding struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // Enabled - Whether or not CallForwarding is enabled - Enabled *bool `json:"enabled,omitempty"` - - - // PhoneNumber - This property is deprecated. Please use the calls property - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // Calls - An ordered list of CallRoutes to be executed when CallForwarding is enabled - Calls *[]Callroute `json:"calls,omitempty"` - - - // Voicemail - The type of voicemail to use with the callForwarding configuration - Voicemail *string `json:"voicemail,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callforwarding) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callforwardingeventcall.go b/build/platformclientv2/callforwardingeventcall.go deleted file mode 100644 index b017116ad..000000000 --- a/build/platformclientv2/callforwardingeventcall.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callforwardingeventcall -type Callforwardingeventcall struct { - // Targets - Targets *[]Callforwardingeventtarget `json:"targets,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callforwardingeventcall) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callforwardingeventcallforwarding.go b/build/platformclientv2/callforwardingeventcallforwarding.go deleted file mode 100644 index b57e5eb18..000000000 --- a/build/platformclientv2/callforwardingeventcallforwarding.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callforwardingeventcallforwarding -type Callforwardingeventcallforwarding struct { - // User - User *Callforwardingeventuser `json:"user,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // Calls - Calls *[]Callforwardingeventcall `json:"calls,omitempty"` - - - // Voicemail - Voicemail *string `json:"voicemail,omitempty"` - - - // ModifiedDate - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callforwardingeventcallforwarding) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callforwardingeventtarget.go b/build/platformclientv2/callforwardingeventtarget.go deleted file mode 100644 index ad77febfb..000000000 --- a/build/platformclientv2/callforwardingeventtarget.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callforwardingeventtarget -type Callforwardingeventtarget struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callforwardingeventtarget) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callforwardingeventuser.go b/build/platformclientv2/callforwardingeventuser.go deleted file mode 100644 index 2795a4527..000000000 --- a/build/platformclientv2/callforwardingeventuser.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callforwardingeventuser -type Callforwardingeventuser struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callforwardingeventuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callhistoryconversation.go b/build/platformclientv2/callhistoryconversation.go deleted file mode 100644 index f1ed978fe..000000000 --- a/build/platformclientv2/callhistoryconversation.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callhistoryconversation -type Callhistoryconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Callhistoryparticipant `json:"participants,omitempty"` - - - // Direction - The direction of the call relating to the current user - Direction *string `json:"direction,omitempty"` - - - // WentToVoicemail - Did the call end in the current user's voicemail - WentToVoicemail *bool `json:"wentToVoicemail,omitempty"` - - - // MissedCall - Did the user not answer this conversation - MissedCall *bool `json:"missedCall,omitempty"` - - - // StartTime - The time the user joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // WasConference - Was this conversation a conference - WasConference *bool `json:"wasConference,omitempty"` - - - // WasCallback - Was this conversation a callback - WasCallback *bool `json:"wasCallback,omitempty"` - - - // HadScreenShare - Did this conversation have a screen share session - HadScreenShare *bool `json:"hadScreenShare,omitempty"` - - - // HadCobrowse - Did this conversation have a cobrowse session - HadCobrowse *bool `json:"hadCobrowse,omitempty"` - - - // WasOutboundCampaign - Was this conversation associated with an outbound campaign - WasOutboundCampaign *bool `json:"wasOutboundCampaign,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callhistoryconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callhistoryconversationentitylisting.go b/build/platformclientv2/callhistoryconversationentitylisting.go deleted file mode 100644 index a2437185d..000000000 --- a/build/platformclientv2/callhistoryconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callhistoryconversationentitylisting -type Callhistoryconversationentitylisting struct { - // Entities - Entities *[]Callhistoryconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callhistoryconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callhistoryparticipant.go b/build/platformclientv2/callhistoryparticipant.go deleted file mode 100644 index f333e556c..000000000 --- a/build/platformclientv2/callhistoryparticipant.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callhistoryparticipant -type Callhistoryparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // Ani - The call ANI. - Ani *string `json:"ani,omitempty"` - - - // Dnis - The call DNIS. - Dnis *string `json:"dnis,omitempty"` - - - // User - The PureCloud user for this participant. - User *User `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Queue `json:"queue,omitempty"` - - - // Group - The group involved in the group ring call. - Group *Group `json:"group,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ExternalContact - The PureCloud external contact - ExternalContact *Externalcontact `json:"externalContact,omitempty"` - - - // ExternalOrganization - The PureCloud external organization - ExternalOrganization *Externalorganization `json:"externalOrganization,omitempty"` - - - // DidInteract - Indicates whether the contact ever connected - DidInteract *bool `json:"didInteract,omitempty"` - - - // SipResponseCodes - Indicates SIP Response codes associated with the participant - SipResponseCodes *[]int64 `json:"sipResponseCodes,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // OutboundCampaign - The outbound campaign associated with the participant - OutboundCampaign *Campaign `json:"outboundCampaign,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callhistoryparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callmediaparticipant.go b/build/platformclientv2/callmediaparticipant.go deleted file mode 100644 index 4ac99bbce..000000000 --- a/build/platformclientv2/callmediaparticipant.go +++ /dev/null @@ -1,190 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callmediaparticipant -type Callmediaparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // State - The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting - State *string `json:"state,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Value is true when the participant is on hold. - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - Value is true when the participant requires wrap-up. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - The wrap-up prompt indicating the type of wrap-up to be performed. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - The PureCloud user for this participant. - User *Domainentityref `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Attributes - A list of ad-hoc attributes for the participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - If the conversation ends in error, contains additional error details. - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // Script - The Engage script that should be used by this participant. - Script *Domainentityref `json:"script,omitempty"` - - - // WrapupTimeoutMs - The amount of time the participant has to complete wrap-up. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - Value is true when the participant has skipped wrap-up. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - The source provider for the communication. - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - If this participant represents an external contact, then this will be the reference for the external contact. - ExternalContact *Domainentityref `json:"externalContact,omitempty"` - - - // ExternalOrganization - If this participant represents an external org, then this will be the reference for the external org. - ExternalOrganization *Domainentityref `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup for this participant, if it has been applied. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // Peer - The peer communication corresponding to a matching leg for this communication. - Peer *string `json:"peer,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context. - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Muted - Value is true when the call is muted. - Muted *bool `json:"muted,omitempty"` - - - // Confined - Value is true when the call is confined. - Confined *bool `json:"confined,omitempty"` - - - // Recording - Value is true when the call is being recorded. - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - The state of the call recording. - RecordingState *string `json:"recordingState,omitempty"` - - - // Group - The group involved in the group ring call. - Group *Domainentityref `json:"group,omitempty"` - - - // Ani - The call ANI. - Ani *string `json:"ani,omitempty"` - - - // Dnis - The call DNIS. - Dnis *string `json:"dnis,omitempty"` - - - // DocumentId - The ID of the Content Management document if the call is a fax. - DocumentId *string `json:"documentId,omitempty"` - - - // FaxStatus - Extra fax information if the call is a fax. - FaxStatus *Faxstatus `json:"faxStatus,omitempty"` - - - // MonitoredParticipantId - The ID of the participant being monitored when performing a call monitor. - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ConsultParticipantId - The ID of the consult transfer target participant when performing a consult transfer. - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // UuiData - User-to-User information which maps to a SIP header field defined in RFC7433. UUI data is used in the Public Switched Telephone Network (PSTN) for use cases described in RFC6567. - UuiData *string `json:"uuiData,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callmediapolicy.go b/build/platformclientv2/callmediapolicy.go deleted file mode 100644 index c1a7bff64..000000000 --- a/build/platformclientv2/callmediapolicy.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callmediapolicy -type Callmediapolicy struct { - // Actions - Actions applied when specified conditions are met - Actions *Policyactions `json:"actions,omitempty"` - - - // Conditions - Conditions for when actions should be applied - Conditions *Callmediapolicyconditions `json:"conditions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callmediapolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callmediapolicyconditions.go b/build/platformclientv2/callmediapolicyconditions.go deleted file mode 100644 index d0da6f828..000000000 --- a/build/platformclientv2/callmediapolicyconditions.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callmediapolicyconditions -type Callmediapolicyconditions struct { - // ForUsers - ForUsers *[]User `json:"forUsers,omitempty"` - - - // DateRanges - DateRanges *[]string `json:"dateRanges,omitempty"` - - - // ForQueues - ForQueues *[]Queue `json:"forQueues,omitempty"` - - - // WrapupCodes - WrapupCodes *[]Wrapupcode `json:"wrapupCodes,omitempty"` - - - // Languages - Languages *[]Language `json:"languages,omitempty"` - - - // TimeAllowed - TimeAllowed *Timeallowed `json:"timeAllowed,omitempty"` - - - // Directions - Directions *[]string `json:"directions,omitempty"` - - - // Duration - Duration *Durationcondition `json:"duration,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callmediapolicyconditions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callrecord.go b/build/platformclientv2/callrecord.go deleted file mode 100644 index e94e546e7..000000000 --- a/build/platformclientv2/callrecord.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Callrecord -type Callrecord struct { - // LastAttempt - Timestamp of the last attempt to reach this number. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - LastAttempt *time.Time `json:"lastAttempt,omitempty"` - - - // LastResult - Result of the last attempt to reach this number - LastResult *string `json:"lastResult,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callrecord) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/callroute.go b/build/platformclientv2/callroute.go deleted file mode 100644 index 6cc3f9b40..000000000 --- a/build/platformclientv2/callroute.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Callroute -type Callroute struct { - // Targets - A list of CallTargets to be called when the CallRoute is executed - Targets *[]Calltarget `json:"targets,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Callroute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/calltarget.go b/build/platformclientv2/calltarget.go deleted file mode 100644 index 7e05eab9f..000000000 --- a/build/platformclientv2/calltarget.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Calltarget -type Calltarget struct { - // VarType - The type of call - VarType *string `json:"type,omitempty"` - - - // Value - The id of the station or an E.164 formatted phone number - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Calltarget) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaign.go b/build/platformclientv2/campaign.go deleted file mode 100644 index 705a653fe..000000000 --- a/build/platformclientv2/campaign.go +++ /dev/null @@ -1,146 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Campaign -type Campaign struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the Campaign. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // ContactList - The ContactList for this Campaign to dial. - ContactList *Domainentityref `json:"contactList,omitempty"` - - - // Queue - The Queue for this Campaign to route calls to. Required for all dialing modes except agentless. - Queue *Domainentityref `json:"queue,omitempty"` - - - // DialingMode - The strategy this Campaign will use for dialing. - DialingMode *string `json:"dialingMode,omitempty"` - - - // Script - The Script to be displayed to agents that are handling outbound calls. Required for all dialing modes except agentless. - Script *Domainentityref `json:"script,omitempty"` - - - // EdgeGroup - The EdgeGroup that will place the calls. Required for all dialing modes except preview. - EdgeGroup *Domainentityref `json:"edgeGroup,omitempty"` - - - // Site - The identifier of the site to be used for dialing; can be set in place of an edge group. - Site *Domainentityref `json:"site,omitempty"` - - - // CampaignStatus - The current status of the Campaign. A Campaign may be turned 'on' or 'off'. Required for updates. - CampaignStatus *string `json:"campaignStatus,omitempty"` - - - // PhoneColumns - The ContactPhoneNumberColumns on the ContactList that this Campaign should dial. - PhoneColumns *[]Phonecolumn `json:"phoneColumns,omitempty"` - - - // AbandonRate - The targeted abandon rate percentage. Required for progressive, power, and predictive campaigns. - AbandonRate *float64 `json:"abandonRate,omitempty"` - - - // DncLists - DncLists for this Campaign to check before placing a call. - DncLists *[]Domainentityref `json:"dncLists,omitempty"` - - - // CallableTimeSet - The callable time set for this campaign to check before placing a call. - CallableTimeSet *Domainentityref `json:"callableTimeSet,omitempty"` - - - // CallAnalysisResponseSet - The call analysis response set to handle call analysis results from the edge. Required for all dialing modes except preview. - CallAnalysisResponseSet *Domainentityref `json:"callAnalysisResponseSet,omitempty"` - - - // Errors - A list of current error conditions associated with the campaign. - Errors *[]Resterrordetail `json:"errors,omitempty"` - - - // CallerName - The caller id name to be displayed on the outbound call. - CallerName *string `json:"callerName,omitempty"` - - - // CallerAddress - The caller id phone number to be displayed on the outbound call. - CallerAddress *string `json:"callerAddress,omitempty"` - - - // OutboundLineCount - The number of outbound lines to be concurrently dialed. Only applicable to non-preview campaigns; only required for agentless. - OutboundLineCount *int32 `json:"outboundLineCount,omitempty"` - - - // RuleSets - Rule sets to be applied while this campaign is dialing. - RuleSets *[]Domainentityref `json:"ruleSets,omitempty"` - - - // SkipPreviewDisabled - Whether or not agents can skip previews without placing a call. Only applicable for preview campaigns. - SkipPreviewDisabled *bool `json:"skipPreviewDisabled,omitempty"` - - - // PreviewTimeOutSeconds - The number of seconds before a call will be automatically placed on a preview. A value of 0 indicates no automatic placement of calls. Only applicable to preview campaigns. - PreviewTimeOutSeconds *int64 `json:"previewTimeOutSeconds,omitempty"` - - - // AlwaysRunning - Indicates (when true) that the campaign will remain on after contacts are depleted, allowing additional contacts to be appended/added to the contact list and processed by the still-running campaign. The campaign can still be turned off manually. - AlwaysRunning *bool `json:"alwaysRunning,omitempty"` - - - // ContactSort - The order in which to sort contacts for dialing, based on a column. - ContactSort *Contactsort `json:"contactSort,omitempty"` - - - // ContactSorts - The order in which to sort contacts for dialing, based on up to four columns. - ContactSorts *[]Contactsort `json:"contactSorts,omitempty"` - - - // NoAnswerTimeout - How long to wait before dispositioning a call as 'no-answer'. Default 30 seconds. Only applicable to non-preview campaigns. - NoAnswerTimeout *int32 `json:"noAnswerTimeout,omitempty"` - - - // CallAnalysisLanguage - The language the edge will use to analyze the call. - CallAnalysisLanguage *string `json:"callAnalysisLanguage,omitempty"` - - - // Priority - The priority of this campaign relative to other campaigns that are running on the same queue. 5 is the highest priority, 1 the lowest. - Priority *int32 `json:"priority,omitempty"` - - - // ContactListFilters - Filter to apply to the contact list before dialing. Currently a campaign can only have one filter applied. - ContactListFilters *[]Domainentityref `json:"contactListFilters,omitempty"` - - - // Division - The division this campaign belongs to. - Division *Domainentityref `json:"division,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaign) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaigndiagnostics.go b/build/platformclientv2/campaigndiagnostics.go deleted file mode 100644 index 7ac06995b..000000000 --- a/build/platformclientv2/campaigndiagnostics.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaigndiagnostics -type Campaigndiagnostics struct { - // CallableContacts - Campaign properties that can impact which contacts are callable - CallableContacts *Callablecontactsdiagnostic `json:"callableContacts,omitempty"` - - - // QueueUtilizationDiagnostic - Information regarding the campaign's queue - QueueUtilizationDiagnostic *Queueutilizationdiagnostic `json:"queueUtilizationDiagnostic,omitempty"` - - - // RuleSetDiagnostics - Information regarding the campaign's rule sets - RuleSetDiagnostics *[]Rulesetdiagnostic `json:"ruleSetDiagnostics,omitempty"` - - - // OutstandingInteractionsCount - Current number of outstanding interactions on the campaign - OutstandingInteractionsCount *int32 `json:"outstandingInteractionsCount,omitempty"` - - - // ScheduledInteractionsCount - Current number of scheduled interactions on the campaign - ScheduledInteractionsCount *int32 `json:"scheduledInteractionsCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaigndiagnostics) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaigndivisionview.go b/build/platformclientv2/campaigndivisionview.go deleted file mode 100644 index 2a50b7642..000000000 --- a/build/platformclientv2/campaigndivisionview.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaigndivisionview -type Campaigndivisionview struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaigndivisionview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaigndivisionviewlisting.go b/build/platformclientv2/campaigndivisionviewlisting.go deleted file mode 100644 index 5361f16a2..000000000 --- a/build/platformclientv2/campaigndivisionviewlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaigndivisionviewlisting -type Campaigndivisionviewlisting struct { - // Entities - Entities *[]Campaigndivisionview `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaigndivisionviewlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignentitylisting.go b/build/platformclientv2/campaignentitylisting.go deleted file mode 100644 index 5f58f8c35..000000000 --- a/build/platformclientv2/campaignentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignentitylisting -type Campaignentitylisting struct { - // Entities - Entities *[]Campaign `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaigninteraction.go b/build/platformclientv2/campaigninteraction.go deleted file mode 100644 index 106566622..000000000 --- a/build/platformclientv2/campaigninteraction.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Campaigninteraction -type Campaigninteraction struct { - // Id - Id *string `json:"id,omitempty"` - - - // Campaign - Campaign *Domainentityref `json:"campaign,omitempty"` - - - // Agent - Agent *Domainentityref `json:"agent,omitempty"` - - - // Contact - Contact *Domainentityref `json:"contact,omitempty"` - - - // DestinationAddress - DestinationAddress *string `json:"destinationAddress,omitempty"` - - - // ActivePreviewCall - Boolean value if there is an active preview call on the interaction - ActivePreviewCall *bool `json:"activePreviewCall,omitempty"` - - - // LastActivePreviewWrapupTime - The time when the last preview of the interaction was wrapped up. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - LastActivePreviewWrapupTime *time.Time `json:"lastActivePreviewWrapupTime,omitempty"` - - - // CreationTime - The time when dialer created the interaction. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreationTime *time.Time `json:"creationTime,omitempty"` - - - // CallPlacedTime - The time when the agent or system places the call. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallPlacedTime *time.Time `json:"callPlacedTime,omitempty"` - - - // CallRoutedTime - The time when the agent was connected to the call. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallRoutedTime *time.Time `json:"callRoutedTime,omitempty"` - - - // PreviewConnectedTime - The time when the customer and routing participant are connected. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - PreviewConnectedTime *time.Time `json:"previewConnectedTime,omitempty"` - - - // Queue - Queue *Domainentityref `json:"queue,omitempty"` - - - // Script - Script *Domainentityref `json:"script,omitempty"` - - - // Disposition - Describes what happened with call analysis for instance: disposition.classification.callable.person, disposition.classification.callable.noanswer - Disposition *string `json:"disposition,omitempty"` - - - // CallerName - CallerName *string `json:"callerName,omitempty"` - - - // CallerAddress - CallerAddress *string `json:"callerAddress,omitempty"` - - - // PreviewPopDeliveredTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - PreviewPopDeliveredTime *time.Time `json:"previewPopDeliveredTime,omitempty"` - - - // Conversation - Conversation *Conversationbasic `json:"conversation,omitempty"` - - - // DialerSystemParticipantId - conversation participant id that is the dialer system participant to monitor the call from dialer perspective - DialerSystemParticipantId *string `json:"dialerSystemParticipantId,omitempty"` - - - // DialingMode - DialingMode *string `json:"dialingMode,omitempty"` - - - // Skills - Any skills that are attached to the call for routing - Skills *[]Domainentityref `json:"skills,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaigninteraction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaigninteractions.go b/build/platformclientv2/campaigninteractions.go deleted file mode 100644 index 4f3afe62d..000000000 --- a/build/platformclientv2/campaigninteractions.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaigninteractions -type Campaigninteractions struct { - // Campaign - Campaign *Domainentityref `json:"campaign,omitempty"` - - - // PendingInteractions - PendingInteractions *[]Campaigninteraction `json:"pendingInteractions,omitempty"` - - - // ProceedingInteractions - ProceedingInteractions *[]Campaigninteraction `json:"proceedingInteractions,omitempty"` - - - // PreviewingInteractions - PreviewingInteractions *[]Campaigninteraction `json:"previewingInteractions,omitempty"` - - - // InteractingInteractions - InteractingInteractions *[]Campaigninteraction `json:"interactingInteractions,omitempty"` - - - // ScheduledInteractions - ScheduledInteractions *[]Campaigninteraction `json:"scheduledInteractions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaigninteractions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignprogress.go b/build/platformclientv2/campaignprogress.go deleted file mode 100644 index 37ac02c71..000000000 --- a/build/platformclientv2/campaignprogress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignprogress -type Campaignprogress struct { - // Campaign - Identifier of the campaign - Campaign *Domainentityref `json:"campaign,omitempty"` - - - // ContactList - Identifier of the contact list - ContactList *Domainentityref `json:"contactList,omitempty"` - - - // NumberOfContactsCalled - Number of contacts called during the campaign - NumberOfContactsCalled *int64 `json:"numberOfContactsCalled,omitempty"` - - - // NumberOfContactsMessaged - Number of contacts messaged during the campaign - NumberOfContactsMessaged *int64 `json:"numberOfContactsMessaged,omitempty"` - - - // TotalNumberOfContacts - Total number of contacts in the campaign - TotalNumberOfContacts *int64 `json:"totalNumberOfContacts,omitempty"` - - - // Percentage - Percentage of contacts processed during the campaign - Percentage *int64 `json:"percentage,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignprogress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignrule.go b/build/platformclientv2/campaignrule.go deleted file mode 100644 index 42b2e76e2..000000000 --- a/build/platformclientv2/campaignrule.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Campaignrule -type Campaignrule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the CampaignRule. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // CampaignRuleEntities - The list of entities that this CampaignRule monitors. - CampaignRuleEntities *Campaignruleentities `json:"campaignRuleEntities,omitempty"` - - - // CampaignRuleConditions - The list of conditions that are evaluated on the entities. - CampaignRuleConditions *[]Campaignrulecondition `json:"campaignRuleConditions,omitempty"` - - - // CampaignRuleActions - The list of actions that are executed if the conditions are satisfied. - CampaignRuleActions *[]Campaignruleaction `json:"campaignRuleActions,omitempty"` - - - // MatchAnyConditions - MatchAnyConditions *bool `json:"matchAnyConditions,omitempty"` - - - // Enabled - Whether or not this CampaignRule is currently enabled. Required on updates. - Enabled *bool `json:"enabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignruleaction.go b/build/platformclientv2/campaignruleaction.go deleted file mode 100644 index efc63aa48..000000000 --- a/build/platformclientv2/campaignruleaction.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignruleaction -type Campaignruleaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // Parameters - The parameters for the CampaignRuleAction. Required for certain actionTypes. - Parameters *Campaignruleparameters `json:"parameters,omitempty"` - - - // ActionType - The action to take on the campaignRuleActionEntities. - ActionType *string `json:"actionType,omitempty"` - - - // CampaignRuleActionEntities - The list of entities that this action will apply to. - CampaignRuleActionEntities *Campaignruleactionentities `json:"campaignRuleActionEntities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignruleaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignruleactionentities.go b/build/platformclientv2/campaignruleactionentities.go deleted file mode 100644 index d488e9c43..000000000 --- a/build/platformclientv2/campaignruleactionentities.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignruleactionentities -type Campaignruleactionentities struct { - // Campaigns - The list of campaigns for a CampaignRule to monitor. Required if the CampaignRule has any conditions that run on a campaign. - Campaigns *[]Domainentityref `json:"campaigns,omitempty"` - - - // Sequences - The list of sequences for a CampaignRule to monitor. Required if the CampaignRule has any conditions that run on a sequence. - Sequences *[]Domainentityref `json:"sequences,omitempty"` - - - // UseTriggeringEntity - If true, the CampaignRuleAction will apply to the same entity that triggered the CampaignRuleCondition. - UseTriggeringEntity *bool `json:"useTriggeringEntity,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignruleactionentities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignrulecondition.go b/build/platformclientv2/campaignrulecondition.go deleted file mode 100644 index 90df581b6..000000000 --- a/build/platformclientv2/campaignrulecondition.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignrulecondition -type Campaignrulecondition struct { - // Id - Id *string `json:"id,omitempty"` - - - // Parameters - The parameters for the CampaignRuleCondition. - Parameters *Campaignruleparameters `json:"parameters,omitempty"` - - - // ConditionType - The type of condition to evaluate. - ConditionType *string `json:"conditionType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignrulecondition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignruleentities.go b/build/platformclientv2/campaignruleentities.go deleted file mode 100644 index 20c62f5e6..000000000 --- a/build/platformclientv2/campaignruleentities.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignruleentities -type Campaignruleentities struct { - // Campaigns - The list of campaigns for a CampaignRule to monitor. Required if the CampaignRule has any conditions that run on a campaign. - Campaigns *[]Domainentityref `json:"campaigns,omitempty"` - - - // Sequences - The list of sequences for a CampaignRule to monitor. Required if the CampaignRule has any conditions that run on a sequence. - Sequences *[]Domainentityref `json:"sequences,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignruleentities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignruleentitylisting.go b/build/platformclientv2/campaignruleentitylisting.go deleted file mode 100644 index 3cf1c7375..000000000 --- a/build/platformclientv2/campaignruleentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignruleentitylisting -type Campaignruleentitylisting struct { - // Entities - Entities *[]Campaignrule `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignruleentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignruleparameters.go b/build/platformclientv2/campaignruleparameters.go deleted file mode 100644 index 3306845ea..000000000 --- a/build/platformclientv2/campaignruleparameters.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignruleparameters -type Campaignruleparameters struct { - // Operator - The operator for comparison. Required for a CampaignRuleCondition. - Operator *string `json:"operator,omitempty"` - - - // Value - The value for comparison. Required for a CampaignRuleCondition. - Value *string `json:"value,omitempty"` - - - // Priority - The priority to set a campaign to. Required for the 'setCampaignPriority' action. - Priority *string `json:"priority,omitempty"` - - - // DialingMode - The dialing mode to set a campaign to. Required for the 'setCampaignDialingMode' action. - DialingMode *string `json:"dialingMode,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignruleparameters) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignschedule.go b/build/platformclientv2/campaignschedule.go deleted file mode 100644 index cefd7018d..000000000 --- a/build/platformclientv2/campaignschedule.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Campaignschedule -type Campaignschedule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // Intervals - A list of intervals during which to run the associated Campaign. - Intervals *[]Scheduleinterval `json:"intervals,omitempty"` - - - // TimeZone - The time zone for this CampaignSchedule. For example, Africa/Abidjan. - TimeZone *string `json:"timeZone,omitempty"` - - - // Campaign - The Campaign that this CampaignSchedule is for. - Campaign *Domainentityref `json:"campaign,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignsequence.go b/build/platformclientv2/campaignsequence.go deleted file mode 100644 index 26c9922f7..000000000 --- a/build/platformclientv2/campaignsequence.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Campaignsequence -type Campaignsequence struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // Campaigns - The ordered list of Campaigns that this CampaignSequence will run. - Campaigns *[]Domainentityref `json:"campaigns,omitempty"` - - - // CurrentCampaign - A zero-based index indicating which Campaign this CampaignSequence is currently on. - CurrentCampaign *int32 `json:"currentCampaign,omitempty"` - - - // Status - The current status of the CampaignSequence. A CampaignSequence can be turned 'on' or 'off'. - Status *string `json:"status,omitempty"` - - - // StopMessage - A message indicating if and why a CampaignSequence has stopped unexpectedly. - StopMessage *string `json:"stopMessage,omitempty"` - - - // Repeat - Indicates if a sequence should repeat from the beginning after the last campaign completes. Default is false. - Repeat *bool `json:"repeat,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignsequence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignsequenceentitylisting.go b/build/platformclientv2/campaignsequenceentitylisting.go deleted file mode 100644 index c9266a269..000000000 --- a/build/platformclientv2/campaignsequenceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignsequenceentitylisting -type Campaignsequenceentitylisting struct { - // Entities - Entities *[]Campaignsequence `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignsequenceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaignstats.go b/build/platformclientv2/campaignstats.go deleted file mode 100644 index ab92bcebb..000000000 --- a/build/platformclientv2/campaignstats.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaignstats -type Campaignstats struct { - // ContactRate - Information regarding the campaign's connect rate - ContactRate *Connectrate `json:"contactRate,omitempty"` - - - // IdleAgents - Number of available agents not currently being utilized - IdleAgents *int32 `json:"idleAgents,omitempty"` - - - // EffectiveIdleAgents - Number of effective available agents not currently being utilized - EffectiveIdleAgents *float64 `json:"effectiveIdleAgents,omitempty"` - - - // AdjustedCallsPerAgent - Calls per agent adjusted by pace - AdjustedCallsPerAgent *float64 `json:"adjustedCallsPerAgent,omitempty"` - - - // OutstandingCalls - Number of campaign calls currently ongoing - OutstandingCalls *int32 `json:"outstandingCalls,omitempty"` - - - // ScheduledCalls - Number of campaign calls currently scheduled - ScheduledCalls *int32 `json:"scheduledCalls,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaignstats) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/campaigntimeslot.go b/build/platformclientv2/campaigntimeslot.go deleted file mode 100644 index dd5238e07..000000000 --- a/build/platformclientv2/campaigntimeslot.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Campaigntimeslot -type Campaigntimeslot struct { - // StartTime - The start time of the interval as an ISO-8601 string, i.e. HH:mm:ss - StartTime *string `json:"startTime,omitempty"` - - - // StopTime - The end time of the interval as an ISO-8601 string, i.e. HH:mm:ss - StopTime *string `json:"stopTime,omitempty"` - - - // Day - The day of the interval. Valid values: [1-7], representing Monday through Sunday - Day *int32 `json:"day,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Campaigntimeslot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/category.go b/build/platformclientv2/category.go deleted file mode 100644 index 849d0c2b9..000000000 --- a/build/platformclientv2/category.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Category - List of available Action categories. -type Category struct { - // Name - Category name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Category) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/categoryentitylisting.go b/build/platformclientv2/categoryentitylisting.go deleted file mode 100644 index ae58e7b87..000000000 --- a/build/platformclientv2/categoryentitylisting.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Categoryentitylisting -type Categoryentitylisting struct { - // Entities - Entities *[]Category `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Categoryentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/certificate.go b/build/platformclientv2/certificate.go deleted file mode 100644 index 15eee2a88..000000000 --- a/build/platformclientv2/certificate.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Certificate - Represents a certificate to parse. -type Certificate struct { - // Certificate - The certificate to parse. - Certificate *string `json:"certificate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Certificate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/certificateauthorityentitylisting.go b/build/platformclientv2/certificateauthorityentitylisting.go deleted file mode 100644 index d4807c86c..000000000 --- a/build/platformclientv2/certificateauthorityentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Certificateauthorityentitylisting -type Certificateauthorityentitylisting struct { - // Entities - Entities *[]Domaincertificateauthority `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Certificateauthorityentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/certificatedetails.go b/build/platformclientv2/certificatedetails.go deleted file mode 100644 index 4b8ef4f8a..000000000 --- a/build/platformclientv2/certificatedetails.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Certificatedetails - Represents the details of a parsed certificate. -type Certificatedetails struct { - // Issuer - Information about the issuer of the certificate. The value of this property is a comma separated key=value format. Each key is one of the attribute names supported by X.500. - Issuer *string `json:"issuer,omitempty"` - - - // Subject - Information about the subject of the certificate. The value of this property is a comma separated key=value format. Each key is one of the attribute names supported by X.500. - Subject *string `json:"subject,omitempty"` - - - // ExpirationDate - The expiration date of the certificate. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExpirationDate *time.Time `json:"expirationDate,omitempty"` - - - // IssueDate - The issue date of the certificate. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - IssueDate *time.Time `json:"issueDate,omitempty"` - - - // Expired - True if the certificate is expired, false otherwise. - Expired *bool `json:"expired,omitempty"` - - - // SignatureValid - SignatureValid *bool `json:"signatureValid,omitempty"` - - - // Valid - Valid *bool `json:"valid,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Certificatedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/change.go b/build/platformclientv2/change.go deleted file mode 100644 index 34dee2c6c..000000000 --- a/build/platformclientv2/change.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Change -type Change struct { - // Entity - Entity *Auditentity `json:"entity,omitempty"` - - - // Property - The property that was changed - Property *string `json:"property,omitempty"` - - - // OldValues - The old values which were modified and/or removed by this action. - OldValues *[]string `json:"oldValues,omitempty"` - - - // NewValues - The new values which were modified and/or added by this action. - NewValues *[]string `json:"newValues,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Change) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/changemypasswordrequest.go b/build/platformclientv2/changemypasswordrequest.go deleted file mode 100644 index ade750cea..000000000 --- a/build/platformclientv2/changemypasswordrequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Changemypasswordrequest -type Changemypasswordrequest struct { - // NewPassword - The new password - NewPassword *string `json:"newPassword,omitempty"` - - - // OldPassword - Your current password - OldPassword *string `json:"oldPassword,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Changemypasswordrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/changepasswordrequest.go b/build/platformclientv2/changepasswordrequest.go deleted file mode 100644 index 47a95f7b9..000000000 --- a/build/platformclientv2/changepasswordrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Changepasswordrequest -type Changepasswordrequest struct { - // NewPassword - The new password - NewPassword *string `json:"newPassword,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Changepasswordrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/channel.go b/build/platformclientv2/channel.go deleted file mode 100644 index 5a7a430fa..000000000 --- a/build/platformclientv2/channel.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Channel -type Channel struct { - // ConnectUri - ConnectUri *string `json:"connectUri,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Expires - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Expires *time.Time `json:"expires,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Channel) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/channelentitylisting.go b/build/platformclientv2/channelentitylisting.go deleted file mode 100644 index e159c652c..000000000 --- a/build/platformclientv2/channelentitylisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Channelentitylisting -type Channelentitylisting struct { - // Entities - Entities *[]Channel `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Channelentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/channeltopic.go b/build/platformclientv2/channeltopic.go deleted file mode 100644 index f2d5d4be7..000000000 --- a/build/platformclientv2/channeltopic.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Channeltopic -type Channeltopic struct { - // Id - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Channeltopic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/channeltopicentitylisting.go b/build/platformclientv2/channeltopicentitylisting.go deleted file mode 100644 index 11df5060e..000000000 --- a/build/platformclientv2/channeltopicentitylisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Channeltopicentitylisting -type Channeltopicentitylisting struct { - // Entities - Entities *[]Channeltopic `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Channeltopicentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chat.go b/build/platformclientv2/chat.go deleted file mode 100644 index 8e0e07ba2..000000000 --- a/build/platformclientv2/chat.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chat -type Chat struct { - // JabberId - JabberId *string `json:"jabberId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatbadgetopicbadgeentity.go b/build/platformclientv2/chatbadgetopicbadgeentity.go deleted file mode 100644 index 596deadc7..000000000 --- a/build/platformclientv2/chatbadgetopicbadgeentity.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatbadgetopicbadgeentity -type Chatbadgetopicbadgeentity struct { - // JabberId - JabberId *string `json:"jabberId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatbadgetopicbadgeentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatbadgetopicchatbadge.go b/build/platformclientv2/chatbadgetopicchatbadge.go deleted file mode 100644 index 2b11239ba..000000000 --- a/build/platformclientv2/chatbadgetopicchatbadge.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Chatbadgetopicchatbadge -type Chatbadgetopicchatbadge struct { - // Entity - Entity *Chatbadgetopicbadgeentity `json:"entity,omitempty"` - - - // UnreadCount - UnreadCount *int32 `json:"unreadCount,omitempty"` - - - // LastUnreadNotificationDate - LastUnreadNotificationDate *time.Time `json:"lastUnreadNotificationDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatbadgetopicchatbadge) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatconversation.go b/build/platformclientv2/chatconversation.go deleted file mode 100644 index a8249b1b8..000000000 --- a/build/platformclientv2/chatconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatconversation -type Chatconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Chatmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - The list of other media channels involved in the conversation. - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatconversationentitylisting.go b/build/platformclientv2/chatconversationentitylisting.go deleted file mode 100644 index a7180663f..000000000 --- a/build/platformclientv2/chatconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatconversationentitylisting -type Chatconversationentitylisting struct { - // Entities - Entities *[]Chatconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatmediaparticipant.go b/build/platformclientv2/chatmediaparticipant.go deleted file mode 100644 index 5dcad2fae..000000000 --- a/build/platformclientv2/chatmediaparticipant.go +++ /dev/null @@ -1,150 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Chatmediaparticipant -type Chatmediaparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // State - The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting - State *string `json:"state,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Value is true when the participant is on hold. - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - Value is true when the participant requires wrap-up. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - The wrap-up prompt indicating the type of wrap-up to be performed. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - The PureCloud user for this participant. - User *Domainentityref `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Attributes - A list of ad-hoc attributes for the participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - If the conversation ends in error, contains additional error details. - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // Script - The Engage script that should be used by this participant. - Script *Domainentityref `json:"script,omitempty"` - - - // WrapupTimeoutMs - The amount of time the participant has to complete wrap-up. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - Value is true when the participant has skipped wrap-up. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - The source provider for the communication. - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - If this participant represents an external contact, then this will be the reference for the external contact. - ExternalContact *Domainentityref `json:"externalContact,omitempty"` - - - // ExternalOrganization - If this participant represents an external org, then this will be the reference for the external org. - ExternalOrganization *Domainentityref `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup for this participant, if it has been applied. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // Peer - The peer communication corresponding to a matching leg for this communication. - Peer *string `json:"peer,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context. - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // RoomId - The ID of the chat room. - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - If available, the URI to the avatar image of this communication. - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatmediapolicy.go b/build/platformclientv2/chatmediapolicy.go deleted file mode 100644 index 73bd1b0bd..000000000 --- a/build/platformclientv2/chatmediapolicy.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatmediapolicy -type Chatmediapolicy struct { - // Actions - Actions applied when specified conditions are met - Actions *Policyactions `json:"actions,omitempty"` - - - // Conditions - Conditions for when actions should be applied - Conditions *Chatmediapolicyconditions `json:"conditions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatmediapolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatmediapolicyconditions.go b/build/platformclientv2/chatmediapolicyconditions.go deleted file mode 100644 index 0994c73fa..000000000 --- a/build/platformclientv2/chatmediapolicyconditions.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatmediapolicyconditions -type Chatmediapolicyconditions struct { - // ForUsers - ForUsers *[]User `json:"forUsers,omitempty"` - - - // DateRanges - DateRanges *[]string `json:"dateRanges,omitempty"` - - - // ForQueues - ForQueues *[]Queue `json:"forQueues,omitempty"` - - - // WrapupCodes - WrapupCodes *[]Wrapupcode `json:"wrapupCodes,omitempty"` - - - // Languages - Languages *[]Language `json:"languages,omitempty"` - - - // TimeAllowed - TimeAllowed *Timeallowed `json:"timeAllowed,omitempty"` - - - // Duration - Duration *Durationcondition `json:"duration,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatmediapolicyconditions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatmessage.go b/build/platformclientv2/chatmessage.go deleted file mode 100644 index dba09bce2..000000000 --- a/build/platformclientv2/chatmessage.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatmessage -type Chatmessage struct { - // Body - The message body - Body *string `json:"body,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // To - The message recipient - To *string `json:"to,omitempty"` - - - // From - The message sender - From *string `json:"from,omitempty"` - - - // Utc - Utc *string `json:"utc,omitempty"` - - - // Chat - The interaction id (if available) - Chat *string `json:"chat,omitempty"` - - - // Message - The message id - Message *string `json:"message,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // BodyType - Type of the message body (v2 chats only) - BodyType *string `json:"bodyType,omitempty"` - - - // SenderCommunicationId - Communication of sender (v2 chats only) - SenderCommunicationId *string `json:"senderCommunicationId,omitempty"` - - - // ParticipantPurpose - Participant purpose of sender (v2 chats only) - ParticipantPurpose *string `json:"participantPurpose,omitempty"` - - - // User - The user information for the sender (if available) - User *Chatmessageuser `json:"user,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/chatmessageuser.go b/build/platformclientv2/chatmessageuser.go deleted file mode 100644 index d318c057b..000000000 --- a/build/platformclientv2/chatmessageuser.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Chatmessageuser -type Chatmessageuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DisplayName - DisplayName *string `json:"displayName,omitempty"` - - - // Username - Username *string `json:"username,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Chatmessageuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/clientapp.go b/build/platformclientv2/clientapp.go deleted file mode 100644 index dc971fe6a..000000000 --- a/build/platformclientv2/clientapp.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Clientapp - Details for a ClientApp -type Clientapp struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the integration, used to distinguish this integration from others of the same type. - Name *string `json:"name,omitempty"` - - - // IntegrationType - Type of the integration - IntegrationType *Integrationtype `json:"integrationType,omitempty"` - - - // Notes - Notes about the integration. - Notes *string `json:"notes,omitempty"` - - - // IntendedState - Configured state of the integration. - IntendedState *string `json:"intendedState,omitempty"` - - - // Config - Configuration information for the integration. - Config *Clientappconfigurationinfo `json:"config,omitempty"` - - - // ReportedState - Last reported status of the integration. - ReportedState *Integrationstatusinfo `json:"reportedState,omitempty"` - - - // Attributes - Read-only attributes for the integration. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Clientapp) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/clientappconfigurationinfo.go b/build/platformclientv2/clientappconfigurationinfo.go deleted file mode 100644 index 379da4228..000000000 --- a/build/platformclientv2/clientappconfigurationinfo.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Clientappconfigurationinfo - Configuration information for the integration -type Clientappconfigurationinfo struct { - // Current - The current, active configuration for the integration. - Current *Integrationconfiguration `json:"current,omitempty"` - - - // Effective - The effective configuration for the app, containing the integration specific configuration along with overrides specified in the integration type. - Effective *Effectiveconfiguration `json:"effective,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Clientappconfigurationinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/clientappentitylisting.go b/build/platformclientv2/clientappentitylisting.go deleted file mode 100644 index f3a5504e3..000000000 --- a/build/platformclientv2/clientappentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Clientappentitylisting -type Clientappentitylisting struct { - // Entities - Entities *[]Clientapp `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Clientappentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/cobrowseconversation.go b/build/platformclientv2/cobrowseconversation.go deleted file mode 100644 index b9f8222ac..000000000 --- a/build/platformclientv2/cobrowseconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Cobrowseconversation -type Cobrowseconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Cobrowsemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - The list of other media channels involved in the conversation. - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Cobrowseconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/cobrowseconversationentitylisting.go b/build/platformclientv2/cobrowseconversationentitylisting.go deleted file mode 100644 index 4034c26eb..000000000 --- a/build/platformclientv2/cobrowseconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Cobrowseconversationentitylisting -type Cobrowseconversationentitylisting struct { - // Entities - Entities *[]Cobrowseconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Cobrowseconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/cobrowsemediaparticipant.go b/build/platformclientv2/cobrowsemediaparticipant.go deleted file mode 100644 index 04d4ddf2e..000000000 --- a/build/platformclientv2/cobrowsemediaparticipant.go +++ /dev/null @@ -1,162 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Cobrowsemediaparticipant -type Cobrowsemediaparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // State - The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting - State *string `json:"state,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Value is true when the participant is on hold. - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - Value is true when the participant requires wrap-up. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - The wrap-up prompt indicating the type of wrap-up to be performed. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - The PureCloud user for this participant. - User *Domainentityref `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Attributes - A list of ad-hoc attributes for the participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - If the conversation ends in error, contains additional error details. - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // Script - The Engage script that should be used by this participant. - Script *Domainentityref `json:"script,omitempty"` - - - // WrapupTimeoutMs - The amount of time the participant has to complete wrap-up. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - Value is true when the participant has skipped wrap-up. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - The source provider for the communication. - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - If this participant represents an external contact, then this will be the reference for the external contact. - ExternalContact *Domainentityref `json:"externalContact,omitempty"` - - - // ExternalOrganization - If this participant represents an external org, then this will be the reference for the external org. - ExternalOrganization *Domainentityref `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup for this participant, if it has been applied. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // Peer - The peer communication corresponding to a matching leg for this communication. - Peer *string `json:"peer,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context. - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // CobrowseSessionId - The co-browse session ID. - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - This value identifies the role of the co-browse client within the co-browse session (a client is a sharer or a viewer). - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // Controlling - ID of co-browse participants for which this client has been granted control (list is empty if this client cannot control any shared pages). - Controlling *[]string `json:"controlling,omitempty"` - - - // ViewerUrl - The URL that can be used to open co-browse session in web browser. - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // ProviderEventTime - The time when the provider event which triggered this conversation update happened in the corrected provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Cobrowsemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/cobrowsesession.go b/build/platformclientv2/cobrowsesession.go deleted file mode 100644 index cb9302172..000000000 --- a/build/platformclientv2/cobrowsesession.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Cobrowsesession -type Cobrowsesession struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Self - Address and name data for a call endpoint. - Self *Address `json:"self,omitempty"` - - - // CobrowseSessionId - The co-browse session ID. - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - This value identifies the role of the co-browse client within the co-browse session (a client is a sharer or a viewer). - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // Controlling - ID of co-browse participants for which this client has been granted control (list is empty if this client cannot control any shared pages). - Controlling *[]string `json:"controlling,omitempty"` - - - // ViewerUrl - The URL that can be used to open co-browse session in web browser. - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // ProviderEventTime - The time when the provider event which triggered this conversation update happened in the corrected provider clock (milliseconds since 1970-01-01 00:00:00 UTC). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Provider - The source provider for the co-browse session. - Provider *string `json:"provider,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // Segments - The time line of the participant's call, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Cobrowsesession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/commandstatus.go b/build/platformclientv2/commandstatus.go deleted file mode 100644 index 525b9b294..000000000 --- a/build/platformclientv2/commandstatus.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Commandstatus -type Commandstatus struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Expiration - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Expiration *time.Time `json:"expiration,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // StatusCode - StatusCode *string `json:"statusCode,omitempty"` - - - // CommandType - CommandType *string `json:"commandType,omitempty"` - - - // Document - Document *Document `json:"document,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Commandstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/commandstatusentitylisting.go b/build/platformclientv2/commandstatusentitylisting.go deleted file mode 100644 index 4f3a6fb77..000000000 --- a/build/platformclientv2/commandstatusentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Commandstatusentitylisting -type Commandstatusentitylisting struct { - // Entities - Entities *[]Commandstatus `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Commandstatusentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/condition.go b/build/platformclientv2/condition.go deleted file mode 100644 index af97b391d..000000000 --- a/build/platformclientv2/condition.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Condition -type Condition struct { - // VarType - The type of the condition. - VarType *string `json:"type,omitempty"` - - - // Inverted - If true, inverts the result of evaluating this Condition. Default is false. - Inverted *bool `json:"inverted,omitempty"` - - - // AttributeName - An attribute name associated with this Condition. Required for a contactAttributeCondition. - AttributeName *string `json:"attributeName,omitempty"` - - - // Value - A value associated with this Condition. This could be text, a number, or a relative time. Not used for a DataActionCondition. - Value *string `json:"value,omitempty"` - - - // ValueType - The type of the value associated with this Condition. Not used for a DataActionCondition. - ValueType *string `json:"valueType,omitempty"` - - - // Operator - An operation with which to evaluate the Condition. Not used for a DataActionCondition. - Operator *string `json:"operator,omitempty"` - - - // Codes - List of wrap-up code identifiers. Required for a wrapupCondition. - Codes *[]string `json:"codes,omitempty"` - - - // Property - A value associated with the property type of this Condition. Required for a contactPropertyCondition. - Property *string `json:"property,omitempty"` - - - // PropertyType - The type of the property associated with this Condition. Required for a contactPropertyCondition. - PropertyType *string `json:"propertyType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Condition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/configuration.go b/build/platformclientv2/configuration.go deleted file mode 100644 index f0145f882..000000000 --- a/build/platformclientv2/configuration.go +++ /dev/null @@ -1,146 +0,0 @@ -package platformclientv2 - -import ( - "encoding/base64" - "encoding/json" - "fmt" - "net/url" - "regexp" - "sync" -) - -// Configuration has settings to configure the SDK -type Configuration struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` - APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"` - APIKey map[string]string `json:"APIKey,omitempty"` - debug bool `json:"debug,omitempty"` - DebugFile string `json:"debugFile,omitempty"` - OAuthToken string `json:"oAuthToken,omitempty"` - Timeout int `json:"timeout,omitempty"` - BasePath string `json:"basePath,omitempty"` - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - AccessToken string `json:"accessToken,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - APIClient APIClient `json:"APIClient,omitempty"` -} - -// AuthResponse contains the access token to use in future requests -type AuthResponse struct { - AccessToken string `json:"access_token,omitempty"` - TokenType string `json:"token_type,omitempty"` - ExpiresIn int `json:"expires_in,omitempty"` -} - -// AuthErrorResponse gives you some intel when authorization goes boom -type AuthErrorResponse struct { - Error string `json:"error,omitempty"` - Description string `json:"description,omitempty"` - ErrorDescription string `json:"error_description,omitempty"` -} - -var once sync.Once -var instance *Configuration - -// GetDefaultConfiguration returns the shared default configuration instance -func GetDefaultConfiguration() *Configuration { - once.Do(func() { - instance = NewConfiguration() - }) - return instance -} - -// NewConfiguration returns a new Configuration instance -func NewConfiguration() *Configuration { - c := &Configuration{ - BasePath: "https://api.mypurecloud.com", - UserName: "", - debug: false, - DefaultHeader: make(map[string]string), - APIKey: make(map[string]string), - APIKeyPrefix: make(map[string]string), - UserAgent: "PureCloud SDK", - } - c.APIClient = NewAPIClient(c) - return c -} - -// AuthorizeClientCredentials authorizes this Configuration instance using client credentials. -// The access token will be set automatically and API instances using this configuration object can now make authorized requests. -func (c *Configuration) AuthorizeClientCredentials(clientID string, clientSecret string) error { - authHostRegex := regexp.MustCompile(`(?i)\/\/api\.`) - authHost := authHostRegex.ReplaceAllString(c.BasePath, "//login.") - headerParams := make(map[string]string) - headerParams["Authorization"] = "Basic " + base64.StdEncoding.EncodeToString([]byte(clientID+":"+clientSecret)) - formParams := url.Values{} - formParams["grant_type"] = []string{"client_credentials"} - response, err := c.APIClient.CallAPI(authHost+"/oauth/token", "POST", nil, headerParams, nil, formParams, "", nil) - if err != nil { - fmt.Println(err) - return err - } - - if response.StatusCode != 200 { - var authErrorResponse *AuthErrorResponse - err = json.Unmarshal([]byte(response.RawBody), &authErrorResponse) - if err != nil { - return err - } - return fmt.Errorf("Auth Error: %v (%v - %v)", authErrorResponse.Description, authErrorResponse.Error, authErrorResponse.ErrorDescription) - } - - var authResponse *AuthResponse - err = json.Unmarshal([]byte(response.RawBody), &authResponse) - if err != nil { - return err - } - c.AccessToken = authResponse.AccessToken - if c.AccessToken == "" { - return fmt.Errorf("Auth Error: No access token found") - } - c.Debugf("Token exipres in %v seconds\n", authResponse.ExpiresIn) - return nil -} - -// AddDefaultHeader sets a header that will be set on every request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// GetAPIKeyWithPrefix appends a prefix to the API key -func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string { - if c.APIKeyPrefix[APIKeyIdentifier] != "" { - return c.APIKeyPrefix[APIKeyIdentifier] + " " + c.APIKey[APIKeyIdentifier] - } - - return c.APIKey[APIKeyIdentifier] -} - -// SetDebug enables debug tracing for HTTP requests, and probably some other stuff -func (c *Configuration) SetDebug(enable bool) { - c.debug = enable -} - -// GetDebug tells you the value of the debug setting in case you forgot -func (c *Configuration) GetDebug() bool { - return c.debug -} - -// Debug prints the provided message using Println if debug tracing is enabled -func (c *Configuration) Debug(msg interface{}) { - if !c.debug { - return - } - fmt.Println(msg) -} - -// Debugf prints the provided formatted message using Printf if debug tracing is enabled -func (c *Configuration) Debugf(msg string, params ...interface{}) { - if !c.debug { - return - } - fmt.Printf(msg, params...) -} diff --git a/build/platformclientv2/connectrate.go b/build/platformclientv2/connectrate.go deleted file mode 100644 index 54c9b0e0d..000000000 --- a/build/platformclientv2/connectrate.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Connectrate -type Connectrate struct { - // Attempts - Number of call attempts made - Attempts *int64 `json:"attempts,omitempty"` - - - // Connects - Number of calls with a live voice detected - Connects *int64 `json:"connects,omitempty"` - - - // ConnectRatio - Ratio of connects to attempts - ConnectRatio *float64 `json:"connectRatio,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Connectrate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/consulttransfer.go b/build/platformclientv2/consulttransfer.go deleted file mode 100644 index 1952884e2..000000000 --- a/build/platformclientv2/consulttransfer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Consulttransfer -type Consulttransfer struct { - // SpeakTo - Determines to whom the initiating participant is speaking. Defaults to DESTINATION - SpeakTo *string `json:"speakTo,omitempty"` - - - // Destination - Destination phone number and name. - Destination *Destination `json:"destination,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Consulttransfer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/consulttransferresponse.go b/build/platformclientv2/consulttransferresponse.go deleted file mode 100644 index d8b7cf1a4..000000000 --- a/build/platformclientv2/consulttransferresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Consulttransferresponse -type Consulttransferresponse struct { - // DestinationParticipantId - Participant ID to whom the call is being transferred. - DestinationParticipantId *string `json:"destinationParticipantId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Consulttransferresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/consulttransferupdate.go b/build/platformclientv2/consulttransferupdate.go deleted file mode 100644 index 483d510d0..000000000 --- a/build/platformclientv2/consulttransferupdate.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Consulttransferupdate -type Consulttransferupdate struct { - // SpeakTo - Determines to whom the initiating participant is speaking. - SpeakTo *string `json:"speakTo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Consulttransferupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/consumedresourcesentitylisting.go b/build/platformclientv2/consumedresourcesentitylisting.go deleted file mode 100644 index f954890d2..000000000 --- a/build/platformclientv2/consumedresourcesentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Consumedresourcesentitylisting -type Consumedresourcesentitylisting struct { - // Entities - Entities *[]Dependency `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Consumedresourcesentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/consumingresourcesentitylisting.go b/build/platformclientv2/consumingresourcesentitylisting.go deleted file mode 100644 index 1c1aab282..000000000 --- a/build/platformclientv2/consumingresourcesentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Consumingresourcesentitylisting -type Consumingresourcesentitylisting struct { - // Entities - Entities *[]Dependency `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Consumingresourcesentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contact.go b/build/platformclientv2/contact.go deleted file mode 100644 index 6e2295dfc..000000000 --- a/build/platformclientv2/contact.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contact -type Contact struct { - // Address - Email address or phone number for this contact type - Address *string `json:"address,omitempty"` - - - // Display - Formatted version of the address property - Display *string `json:"display,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Extension - Use internal extension instead of address. Mutually exclusive with the address field. - Extension *string `json:"extension,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contact) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactaddress.go b/build/platformclientv2/contactaddress.go deleted file mode 100644 index e89843a51..000000000 --- a/build/platformclientv2/contactaddress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactaddress -type Contactaddress struct { - // Address1 - Address1 *string `json:"address1,omitempty"` - - - // Address2 - Address2 *string `json:"address2,omitempty"` - - - // City - City *string `json:"city,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // PostalCode - PostalCode *string `json:"postalCode,omitempty"` - - - // CountryCode - CountryCode *string `json:"countryCode,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactcallbackrequest.go b/build/platformclientv2/contactcallbackrequest.go deleted file mode 100644 index eb8f5b756..000000000 --- a/build/platformclientv2/contactcallbackrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactcallbackrequest -type Contactcallbackrequest struct { - // CampaignId - Campaign identifier - CampaignId *string `json:"campaignId,omitempty"` - - - // ContactListId - Contact list identifier - ContactListId *string `json:"contactListId,omitempty"` - - - // ContactId - Contact identifier - ContactId *string `json:"contactId,omitempty"` - - - // PhoneColumn - Name of the phone column containing the number to be called - PhoneColumn *string `json:"phoneColumn,omitempty"` - - - // Schedule - The scheduled time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ\", example = \"2016-01-02T16:59:59\" - Schedule *string `json:"schedule,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactcallbackrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactcentersettings.go b/build/platformclientv2/contactcentersettings.go deleted file mode 100644 index 9c7bd5d37..000000000 --- a/build/platformclientv2/contactcentersettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactcentersettings -type Contactcentersettings struct { - // RemoveSkillsFromBlindTransfer - Strip skills from transfer - RemoveSkillsFromBlindTransfer *bool `json:"removeSkillsFromBlindTransfer,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactcentersettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactcolumntimezone.go b/build/platformclientv2/contactcolumntimezone.go deleted file mode 100644 index aededc398..000000000 --- a/build/platformclientv2/contactcolumntimezone.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactcolumntimezone -type Contactcolumntimezone struct { - // TimeZone - Time zone that the column matched to. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // ColumnType - Column Type will be either PHONE or ZIP - ColumnType *string `json:"columnType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactcolumntimezone) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactcolumntodataactionfieldmapping.go b/build/platformclientv2/contactcolumntodataactionfieldmapping.go deleted file mode 100644 index f57a31487..000000000 --- a/build/platformclientv2/contactcolumntodataactionfieldmapping.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactcolumntodataactionfieldmapping -type Contactcolumntodataactionfieldmapping struct { } - -// String returns a JSON representation of the model -func (o *Contactcolumntodataactionfieldmapping) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlist.go b/build/platformclientv2/contactlist.go deleted file mode 100644 index 780eace12..000000000 --- a/build/platformclientv2/contactlist.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Contactlist -type Contactlist struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // Division - The division this entity belongs to. - Division *Domainentityref `json:"division,omitempty"` - - - // ColumnNames - The names of the contact data columns. - ColumnNames *[]string `json:"columnNames,omitempty"` - - - // PhoneColumns - Indicates which columns are phone numbers. - PhoneColumns *[]Contactphonenumbercolumn `json:"phoneColumns,omitempty"` - - - // ImportStatus - The status of the import process. - ImportStatus *Importstatus `json:"importStatus,omitempty"` - - - // PreviewModeColumnName - A column to check if a contact should always be dialed in preview mode. - PreviewModeColumnName *string `json:"previewModeColumnName,omitempty"` - - - // PreviewModeAcceptedValues - The values in the previewModeColumnName column that indicate a contact should always be dialed in preview mode. - PreviewModeAcceptedValues *[]string `json:"previewModeAcceptedValues,omitempty"` - - - // Size - The number of contacts in the ContactList. - Size *int64 `json:"size,omitempty"` - - - // AttemptLimits - AttemptLimits for this ContactList. - AttemptLimits *Domainentityref `json:"attemptLimits,omitempty"` - - - // AutomaticTimeZoneMapping - Indicates if automatic time zone mapping is to be used for this ContactList. - AutomaticTimeZoneMapping *bool `json:"automaticTimeZoneMapping,omitempty"` - - - // ZipCodeColumnName - The name of contact list column containing the zip code for use with automatic time zone mapping. Only allowed if 'automaticTimeZoneMapping' is set to true. - ZipCodeColumnName *string `json:"zipCodeColumnName,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistdivisionview.go b/build/platformclientv2/contactlistdivisionview.go deleted file mode 100644 index dc506a843..000000000 --- a/build/platformclientv2/contactlistdivisionview.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistdivisionview -type Contactlistdivisionview struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // ColumnNames - The names of the contact data columns. - ColumnNames *[]string `json:"columnNames,omitempty"` - - - // PhoneColumns - Indicates which columns are phone numbers. - PhoneColumns *[]Contactphonenumbercolumn `json:"phoneColumns,omitempty"` - - - // ImportStatus - The status of the import process. - ImportStatus *Importstatus `json:"importStatus,omitempty"` - - - // Size - The number of contacts in the ContactList. - Size *int64 `json:"size,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistdivisionview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistdivisionviewlisting.go b/build/platformclientv2/contactlistdivisionviewlisting.go deleted file mode 100644 index 680ea4b80..000000000 --- a/build/platformclientv2/contactlistdivisionviewlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistdivisionviewlisting -type Contactlistdivisionviewlisting struct { - // Entities - Entities *[]Contactlistdivisionview `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistdivisionviewlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistdownloadreadyexporturi.go b/build/platformclientv2/contactlistdownloadreadyexporturi.go deleted file mode 100644 index 9332a74a3..000000000 --- a/build/platformclientv2/contactlistdownloadreadyexporturi.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistdownloadreadyexporturi -type Contactlistdownloadreadyexporturi struct { - // Uri - Uri *string `json:"uri,omitempty"` - - - // ExportTimestamp - ExportTimestamp *string `json:"exportTimestamp,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistdownloadreadyexporturi) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistentitylisting.go b/build/platformclientv2/contactlistentitylisting.go deleted file mode 100644 index f4a0543d3..000000000 --- a/build/platformclientv2/contactlistentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistentitylisting -type Contactlistentitylisting struct { - // Entities - Entities *[]Contactlist `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistfilter.go b/build/platformclientv2/contactlistfilter.go deleted file mode 100644 index 29afbcea7..000000000 --- a/build/platformclientv2/contactlistfilter.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Contactlistfilter -type Contactlistfilter struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the list. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // ContactList - The contact list the filter is based on. - ContactList *Domainentityref `json:"contactList,omitempty"` - - - // Clauses - Groups of conditions to filter the contacts by. - Clauses *[]Contactlistfilterclause `json:"clauses,omitempty"` - - - // FilterType - How to join clauses together. - FilterType *string `json:"filterType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistfilterclause.go b/build/platformclientv2/contactlistfilterclause.go deleted file mode 100644 index 5dfc6eb7a..000000000 --- a/build/platformclientv2/contactlistfilterclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistfilterclause -type Contactlistfilterclause struct { - // FilterType - How to join predicates together. - FilterType *string `json:"filterType,omitempty"` - - - // Predicates - Conditions to filter the contacts by. - Predicates *[]Contactlistfilterpredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistfilterclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistfilterentitylisting.go b/build/platformclientv2/contactlistfilterentitylisting.go deleted file mode 100644 index b86018cb1..000000000 --- a/build/platformclientv2/contactlistfilterentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistfilterentitylisting -type Contactlistfilterentitylisting struct { - // Entities - Entities *[]Contactlistfilter `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistfilterentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistfilterpredicate.go b/build/platformclientv2/contactlistfilterpredicate.go deleted file mode 100644 index edc41d41b..000000000 --- a/build/platformclientv2/contactlistfilterpredicate.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistfilterpredicate -type Contactlistfilterpredicate struct { - // Column - Contact list column from the ContactListFilter's contactList. - Column *string `json:"column,omitempty"` - - - // ColumnType - The type of data in the contact column. - ColumnType *string `json:"columnType,omitempty"` - - - // Operator - The operator for this ContactListFilterPredicate. - Operator *string `json:"operator,omitempty"` - - - // Value - Value with which to compare the contact's data. This could be text, a number, or a relative time. A value for relative time should follow the format PxxDTyyHzzM, where xx, yy, and zz specify the days, hours and minutes. For example, a value of P01DT08H30M corresponds to 1 day, 8 hours, and 30 minutes from now. To specify a time in the past, include a negative sign before each numeric value. For example, a value of P-01DT-08H-30M corresponds to 1 day, 8 hours, and 30 minutes in the past. You can also do things like P01DT00H-30M, which would correspond to 23 hours and 30 minutes from now (1 day - 30 minutes). - Value *string `json:"value,omitempty"` - - - // VarRange - A range of values. Required for operators BETWEEN and IN. - VarRange *Contactlistfilterrange `json:"range,omitempty"` - - - // Inverted - Inverts the result of the predicate (i.e., if the predicate returns true, inverting it will return false). - Inverted *bool `json:"inverted,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistfilterpredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistfilterrange.go b/build/platformclientv2/contactlistfilterrange.go deleted file mode 100644 index 546f359c9..000000000 --- a/build/platformclientv2/contactlistfilterrange.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistfilterrange -type Contactlistfilterrange struct { - // Min - The minimum value of the range. Required for the operator BETWEEN. - Min *string `json:"min,omitempty"` - - - // Max - The maximum value of the range. Required for the operator BETWEEN. - Max *string `json:"max,omitempty"` - - - // MinInclusive - Whether or not to include the minimum in the range. - MinInclusive *bool `json:"minInclusive,omitempty"` - - - // MaxInclusive - Whether or not to include the maximum in the range. - MaxInclusive *bool `json:"maxInclusive,omitempty"` - - - // InSet - A set of values that the contact data should be in. Required for the IN operator. - InSet *[]string `json:"inSet,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistfilterrange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlistimportstatusimportstatus.go b/build/platformclientv2/contactlistimportstatusimportstatus.go deleted file mode 100644 index e91ee89e2..000000000 --- a/build/platformclientv2/contactlistimportstatusimportstatus.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlistimportstatusimportstatus -type Contactlistimportstatusimportstatus struct { - // ImportState - ImportState *string `json:"importState,omitempty"` - - - // TotalRecords - TotalRecords *int32 `json:"totalRecords,omitempty"` - - - // CompletedRecords - CompletedRecords *int32 `json:"completedRecords,omitempty"` - - - // PercentageComplete - PercentageComplete *int32 `json:"percentageComplete,omitempty"` - - - // FailureReason - FailureReason *string `json:"failureReason,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlistimportstatusimportstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactlisting.go b/build/platformclientv2/contactlisting.go deleted file mode 100644 index ba12fcbc7..000000000 --- a/build/platformclientv2/contactlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactlisting -type Contactlisting struct { - // Entities - Entities *[]Externalcontact `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactphonenumbercolumn.go b/build/platformclientv2/contactphonenumbercolumn.go deleted file mode 100644 index 9cd88cbee..000000000 --- a/build/platformclientv2/contactphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactphonenumbercolumn -type Contactphonenumbercolumn struct { - // ColumnName - The name of the phone column. - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - Indicates the type of the phone column. For example, 'cell' or 'home'. - VarType *string `json:"type,omitempty"` - - - // CallableTimeColumn - A column that indicates the timezone to use for a given contact when checking callable times. Not allowed if 'automaticTimeZoneMapping' is set to true. - CallableTimeColumn *string `json:"callableTimeColumn,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contactsort.go b/build/platformclientv2/contactsort.go deleted file mode 100644 index f543a8570..000000000 --- a/build/platformclientv2/contactsort.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contactsort -type Contactsort struct { - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // Direction - The direction in which to sort contacts. - Direction *string `json:"direction,omitempty"` - - - // Numeric - Whether or not the column contains numeric data. - Numeric *bool `json:"numeric,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contactsort) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentattributefilteritem.go b/build/platformclientv2/contentattributefilteritem.go deleted file mode 100644 index 963c2d361..000000000 --- a/build/platformclientv2/contentattributefilteritem.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentattributefilteritem -type Contentattributefilteritem struct { - // Id - Id *string `json:"id,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Values - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentattributefilteritem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentfacetfilteritem.go b/build/platformclientv2/contentfacetfilteritem.go deleted file mode 100644 index c9d9fc81c..000000000 --- a/build/platformclientv2/contentfacetfilteritem.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentfacetfilteritem -type Contentfacetfilteritem struct { - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Values - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentfacetfilteritem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentfilteritem.go b/build/platformclientv2/contentfilteritem.go deleted file mode 100644 index 77a819847..000000000 --- a/build/platformclientv2/contentfilteritem.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentfilteritem -type Contentfilteritem struct { - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Values - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentfilteritem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementapi.go b/build/platformclientv2/contentmanagementapi.go deleted file mode 100644 index f7f09030d..000000000 --- a/build/platformclientv2/contentmanagementapi.go +++ /dev/null @@ -1,3208 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ContentManagementApi provides functions for API endpoints -type ContentManagementApi struct { - Configuration *Configuration -} - -// NewContentManagementApi creates an API instance using the default configuration -func NewContentManagementApi() *ContentManagementApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ContentManagementApi with base path: %s", strings.ToLower(config.BasePath))) - return &ContentManagementApi{ - Configuration: config, - } -} - -// NewContentManagementApiWithConfig creates an API instance using the provided configuration -func NewContentManagementApiWithConfig(config *Configuration) *ContentManagementApi { - config.Debugf("Creating ContentManagementApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ContentManagementApi{ - Configuration: config, - } -} - -// DeleteContentmanagementDocument invokes DELETE /api/v2/contentmanagement/documents/{documentId} -// -// Delete a document. -// -// -func (a ContentManagementApi) DeleteContentmanagementDocument(documentId string, override bool) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents/{documentId}" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return nil, errors.New("Missing required parameter 'documentId' when calling ContentManagementApi->DeleteContentmanagementDocument") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["override"] = a.Configuration.APIClient.ParameterToString(override, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteContentmanagementShare invokes DELETE /api/v2/contentmanagement/shares/{shareId} -// -// Deletes an existing share. -// -// This revokes sharing rights specified in the share record -func (a ContentManagementApi) DeleteContentmanagementShare(shareId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/shares/{shareId}" - path = strings.Replace(path, "{shareId}", fmt.Sprintf("%v", shareId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'shareId' is set - if &shareId == nil { - // - return nil, errors.New("Missing required parameter 'shareId' when calling ContentManagementApi->DeleteContentmanagementShare") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteContentmanagementStatusStatusId invokes DELETE /api/v2/contentmanagement/status/{statusId} -// -// Cancel the command for this status -// -// -func (a ContentManagementApi) DeleteContentmanagementStatusStatusId(statusId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/status/{statusId}" - path = strings.Replace(path, "{statusId}", fmt.Sprintf("%v", statusId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'statusId' is set - if &statusId == nil { - // - return nil, errors.New("Missing required parameter 'statusId' when calling ContentManagementApi->DeleteContentmanagementStatusStatusId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteContentmanagementWorkspace invokes DELETE /api/v2/contentmanagement/workspaces/{workspaceId} -// -// Delete a workspace -// -// -func (a ContentManagementApi) DeleteContentmanagementWorkspace(workspaceId string, moveChildrenToWorkspaceId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->DeleteContentmanagementWorkspace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["moveChildrenToWorkspaceId"] = a.Configuration.APIClient.ParameterToString(moveChildrenToWorkspaceId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteContentmanagementWorkspaceMember invokes DELETE /api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId} -// -// Delete a member from a workspace -// -// -func (a ContentManagementApi) DeleteContentmanagementWorkspaceMember(workspaceId string, memberId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->DeleteContentmanagementWorkspaceMember") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return nil, errors.New("Missing required parameter 'memberId' when calling ContentManagementApi->DeleteContentmanagementWorkspaceMember") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteContentmanagementWorkspaceTagvalue invokes DELETE /api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId} -// -// Delete workspace tag -// -// Delete a tag from a workspace. Will remove this tag from all documents. -func (a ContentManagementApi) DeleteContentmanagementWorkspaceTagvalue(workspaceId string, tagId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - path = strings.Replace(path, "{tagId}", fmt.Sprintf("%v", tagId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->DeleteContentmanagementWorkspaceTagvalue") - } - // verify the required parameter 'tagId' is set - if &tagId == nil { - // - return nil, errors.New("Missing required parameter 'tagId' when calling ContentManagementApi->DeleteContentmanagementWorkspaceTagvalue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetContentmanagementDocument invokes GET /api/v2/contentmanagement/documents/{documentId} -// -// Get a document. -// -// -func (a ContentManagementApi) GetContentmanagementDocument(documentId string, expand []string) (*Document, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents/{documentId}" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Document) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling ContentManagementApi->GetContentmanagementDocument") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Document - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementDocumentAudits invokes GET /api/v2/contentmanagement/documents/{documentId}/audits -// -// Get a list of audits for a document. -// -// -func (a ContentManagementApi) GetContentmanagementDocumentAudits(documentId string, pageSize int32, pageNumber int32, transactionFilter string, level string, sortBy string, sortOrder string) (*Documentauditentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents/{documentId}/audits" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Documentauditentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling ContentManagementApi->GetContentmanagementDocumentAudits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["transactionFilter"] = a.Configuration.APIClient.ParameterToString(transactionFilter, collectionFormat) - - - - - collectionFormat = "" - queryParams["level"] = a.Configuration.APIClient.ParameterToString(level, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Documentauditentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementDocumentContent invokes GET /api/v2/contentmanagement/documents/{documentId}/content -// -// Download a document. -// -// -func (a ContentManagementApi) GetContentmanagementDocumentContent(documentId string, disposition string, contentType string) (*Downloadresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents/{documentId}/content" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Downloadresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling ContentManagementApi->GetContentmanagementDocumentContent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["disposition"] = a.Configuration.APIClient.ParameterToString(disposition, collectionFormat) - - - - - collectionFormat = "" - queryParams["contentType"] = a.Configuration.APIClient.ParameterToString(contentType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Downloadresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementDocuments invokes GET /api/v2/contentmanagement/documents -// -// Get a list of documents. -// -// -func (a ContentManagementApi) GetContentmanagementDocuments(workspaceId string, name string, expand []string, pageSize int32, pageNumber int32, sortBy string, sortOrder string) (*Documententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents" - defaultReturn := new(Documententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementDocuments") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["workspaceId"] = a.Configuration.APIClient.ParameterToString(workspaceId, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Documententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementQuery invokes GET /api/v2/contentmanagement/query -// -// Query content -// -// -func (a ContentManagementApi) GetContentmanagementQuery(queryPhrase string, pageSize int32, pageNumber int32, sortBy string, sortOrder string, expand []string) (*Queryresults, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/query" - defaultReturn := new(Queryresults) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queryPhrase' is set - if &queryPhrase == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queryPhrase' when calling ContentManagementApi->GetContentmanagementQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["queryPhrase"] = a.Configuration.APIClient.ParameterToString(queryPhrase, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Queryresults - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementSecurityprofile invokes GET /api/v2/contentmanagement/securityprofiles/{securityProfileId} -// -// Get a Security Profile -// -// -func (a ContentManagementApi) GetContentmanagementSecurityprofile(securityProfileId string) (*Securityprofile, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/securityprofiles/{securityProfileId}" - path = strings.Replace(path, "{securityProfileId}", fmt.Sprintf("%v", securityProfileId), -1) - defaultReturn := new(Securityprofile) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'securityProfileId' is set - if &securityProfileId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'securityProfileId' when calling ContentManagementApi->GetContentmanagementSecurityprofile") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Securityprofile - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementSecurityprofiles invokes GET /api/v2/contentmanagement/securityprofiles -// -// Get a List of Security Profiles -// -// -func (a ContentManagementApi) GetContentmanagementSecurityprofiles() (*Securityprofileentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/securityprofiles" - defaultReturn := new(Securityprofileentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Securityprofileentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementShare invokes GET /api/v2/contentmanagement/shares/{shareId} -// -// Retrieve details about an existing share. -// -// -func (a ContentManagementApi) GetContentmanagementShare(shareId string, expand []string) (*Share, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/shares/{shareId}" - path = strings.Replace(path, "{shareId}", fmt.Sprintf("%v", shareId), -1) - defaultReturn := new(Share) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'shareId' is set - if &shareId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'shareId' when calling ContentManagementApi->GetContentmanagementShare") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Share - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementSharedSharedId invokes GET /api/v2/contentmanagement/shared/{sharedId} -// -// Get shared documents. Securely download a shared document. -// -// This method requires the download sharing URI obtained in the get document response (downloadSharingUri). Documents may be shared between users in the same workspace. Documents may also be shared between any user by creating a content management share. -func (a ContentManagementApi) GetContentmanagementSharedSharedId(sharedId string, redirect bool, disposition string, contentType string, expand string) (*Sharedresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/shared/{sharedId}" - path = strings.Replace(path, "{sharedId}", fmt.Sprintf("%v", sharedId), -1) - defaultReturn := new(Sharedresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sharedId' is set - if &sharedId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sharedId' when calling ContentManagementApi->GetContentmanagementSharedSharedId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["redirect"] = a.Configuration.APIClient.ParameterToString(redirect, collectionFormat) - - - - - collectionFormat = "" - queryParams["disposition"] = a.Configuration.APIClient.ParameterToString(disposition, collectionFormat) - - - - - collectionFormat = "" - queryParams["contentType"] = a.Configuration.APIClient.ParameterToString(contentType, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Sharedresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementShares invokes GET /api/v2/contentmanagement/shares -// -// Gets a list of shares. You must specify at least one filter (e.g. entityId). -// -// Failing to specify a filter will return 400. -func (a ContentManagementApi) GetContentmanagementShares(entityId string, expand []string, pageSize int32, pageNumber int32) (*Shareentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/shares" - defaultReturn := new(Shareentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["entityId"] = a.Configuration.APIClient.ParameterToString(entityId, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Shareentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementStatus invokes GET /api/v2/contentmanagement/status -// -// Get a list of statuses for pending operations -// -// -func (a ContentManagementApi) GetContentmanagementStatus(pageSize int32, pageNumber int32) (*Commandstatusentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/status" - defaultReturn := new(Commandstatusentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Commandstatusentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementStatusStatusId invokes GET /api/v2/contentmanagement/status/{statusId} -// -// Get a status. -// -// -func (a ContentManagementApi) GetContentmanagementStatusStatusId(statusId string) (*Commandstatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/status/{statusId}" - path = strings.Replace(path, "{statusId}", fmt.Sprintf("%v", statusId), -1) - defaultReturn := new(Commandstatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'statusId' is set - if &statusId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'statusId' when calling ContentManagementApi->GetContentmanagementStatusStatusId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Commandstatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementUsage invokes GET /api/v2/contentmanagement/usage -// -// Get usage details. -// -// -func (a ContentManagementApi) GetContentmanagementUsage() (*Usage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/usage" - defaultReturn := new(Usage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Usage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspace invokes GET /api/v2/contentmanagement/workspaces/{workspaceId} -// -// Get a workspace. -// -// -func (a ContentManagementApi) GetContentmanagementWorkspace(workspaceId string, expand []string) (*Workspace, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Workspace) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementWorkspace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Workspace - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspaceDocuments invokes GET /api/v2/contentmanagement/workspaces/{workspaceId}/documents -// -// Get a list of documents. -// -// -func (a ContentManagementApi) GetContentmanagementWorkspaceDocuments(workspaceId string, expand []string, pageSize int32, pageNumber int32, sortBy string, sortOrder string) (*Documententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/documents" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Documententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementWorkspaceDocuments") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Documententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspaceMember invokes GET /api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId} -// -// Get a workspace member -// -// -func (a ContentManagementApi) GetContentmanagementWorkspaceMember(workspaceId string, memberId string, expand []string) (*Workspacemember, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - defaultReturn := new(Workspacemember) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementWorkspaceMember") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'memberId' when calling ContentManagementApi->GetContentmanagementWorkspaceMember") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Workspacemember - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspaceMembers invokes GET /api/v2/contentmanagement/workspaces/{workspaceId}/members -// -// Get a list workspace members -// -// -func (a ContentManagementApi) GetContentmanagementWorkspaceMembers(workspaceId string, pageSize int32, pageNumber int32, expand []string) (*Workspacememberentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/members" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Workspacememberentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementWorkspaceMembers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Workspacememberentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspaceTagvalue invokes GET /api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId} -// -// Get a workspace tag -// -// -func (a ContentManagementApi) GetContentmanagementWorkspaceTagvalue(workspaceId string, tagId string, expand []string) (*Tagvalue, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - path = strings.Replace(path, "{tagId}", fmt.Sprintf("%v", tagId), -1) - defaultReturn := new(Tagvalue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementWorkspaceTagvalue") - } - // verify the required parameter 'tagId' is set - if &tagId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'tagId' when calling ContentManagementApi->GetContentmanagementWorkspaceTagvalue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Tagvalue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspaceTagvalues invokes GET /api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues -// -// Get a list of workspace tags -// -// -func (a ContentManagementApi) GetContentmanagementWorkspaceTagvalues(workspaceId string, value string, pageSize int32, pageNumber int32, expand []string) (*Tagvalueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Tagvalueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->GetContentmanagementWorkspaceTagvalues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["value"] = a.Configuration.APIClient.ParameterToString(value, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Tagvalueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetContentmanagementWorkspaces invokes GET /api/v2/contentmanagement/workspaces -// -// Get a list of workspaces. -// -// Specifying 'content' access will return all workspaces the user has document access to, while 'admin' access will return all group workspaces the user has administrative rights to. -func (a ContentManagementApi) GetContentmanagementWorkspaces(pageSize int32, pageNumber int32, access []string, expand []string) (*Workspaceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces" - defaultReturn := new(Workspaceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range access { - queryParams["access"] = value - } - } else { - queryParams["access"] = a.Configuration.APIClient.ParameterToString(access, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Workspaceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementAuditquery invokes POST /api/v2/contentmanagement/auditquery -// -// Query audits -// -// -func (a ContentManagementApi) PostContentmanagementAuditquery(body Contentqueryrequest) (*Queryresults, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/auditquery" - defaultReturn := new(Queryresults) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementAuditquery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queryresults - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementDocument invokes POST /api/v2/contentmanagement/documents/{documentId} -// -// Update a document. -// -// -func (a ContentManagementApi) PostContentmanagementDocument(documentId string, body Documentupdate, expand string, override bool) (*Document, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents/{documentId}" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Document) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling ContentManagementApi->PostContentmanagementDocument") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementDocument") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["override"] = a.Configuration.APIClient.ParameterToString(override, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Document - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementDocumentContent invokes POST /api/v2/contentmanagement/documents/{documentId}/content -// -// Replace the contents of a document. -// -// -func (a ContentManagementApi) PostContentmanagementDocumentContent(documentId string, body Replacerequest, override bool) (*Replaceresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents/{documentId}/content" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Replaceresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling ContentManagementApi->PostContentmanagementDocumentContent") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementDocumentContent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["override"] = a.Configuration.APIClient.ParameterToString(override, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Replaceresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementDocuments invokes POST /api/v2/contentmanagement/documents -// -// Add a document. -// -// -func (a ContentManagementApi) PostContentmanagementDocuments(body Documentupload, copySource string, moveSource string, override bool) (*Document, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/documents" - defaultReturn := new(Document) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementDocuments") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["copySource"] = a.Configuration.APIClient.ParameterToString(copySource, collectionFormat) - - - - - collectionFormat = "" - queryParams["moveSource"] = a.Configuration.APIClient.ParameterToString(moveSource, collectionFormat) - - - - - collectionFormat = "" - queryParams["override"] = a.Configuration.APIClient.ParameterToString(override, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Document - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementQuery invokes POST /api/v2/contentmanagement/query -// -// Query content -// -// -func (a ContentManagementApi) PostContentmanagementQuery(body Queryrequest, expand string) (*Queryresults, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/query" - defaultReturn := new(Queryresults) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queryresults - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementShares invokes POST /api/v2/contentmanagement/shares -// -// Creates a new share or updates an existing share if the entity has already been shared -// -// -func (a ContentManagementApi) PostContentmanagementShares(body Createsharerequest) (*Createshareresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/shares" - defaultReturn := new(Createshareresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementShares") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Createshareresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementWorkspaceTagvalues invokes POST /api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues -// -// Create a workspace tag -// -// -func (a ContentManagementApi) PostContentmanagementWorkspaceTagvalues(workspaceId string, body Tagvalue) (*Tagvalue, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Tagvalue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->PostContentmanagementWorkspaceTagvalues") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementWorkspaceTagvalues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Tagvalue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementWorkspaceTagvaluesQuery invokes POST /api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query -// -// Perform a prefix query on tags in the workspace -// -// -func (a ContentManagementApi) PostContentmanagementWorkspaceTagvaluesQuery(workspaceId string, body Tagqueryrequest, expand []string) (*Tagvalueentitylisting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Tagvalueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->PostContentmanagementWorkspaceTagvaluesQuery") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementWorkspaceTagvaluesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Tagvalueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostContentmanagementWorkspaces invokes POST /api/v2/contentmanagement/workspaces -// -// Create a group workspace -// -// -func (a ContentManagementApi) PostContentmanagementWorkspaces(body Workspacecreate) (*Workspace, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces" - defaultReturn := new(Workspace) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PostContentmanagementWorkspaces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Workspace - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutContentmanagementWorkspace invokes PUT /api/v2/contentmanagement/workspaces/{workspaceId} -// -// Update a workspace -// -// -func (a ContentManagementApi) PutContentmanagementWorkspace(workspaceId string, body Workspace) (*Workspace, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - defaultReturn := new(Workspace) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->PutContentmanagementWorkspace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PutContentmanagementWorkspace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Workspace - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutContentmanagementWorkspaceMember invokes PUT /api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId} -// -// Add a member to a workspace -// -// -func (a ContentManagementApi) PutContentmanagementWorkspaceMember(workspaceId string, memberId string, body Workspacemember) (*Workspacemember, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - defaultReturn := new(Workspacemember) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->PutContentmanagementWorkspaceMember") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'memberId' when calling ContentManagementApi->PutContentmanagementWorkspaceMember") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PutContentmanagementWorkspaceMember") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Workspacemember - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutContentmanagementWorkspaceTagvalue invokes PUT /api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId} -// -// Update a workspace tag. Will update all documents with the new tag value. -// -// -func (a ContentManagementApi) PutContentmanagementWorkspaceTagvalue(workspaceId string, tagId string, body Tagvalue) (*Tagvalue, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}" - path = strings.Replace(path, "{workspaceId}", fmt.Sprintf("%v", workspaceId), -1) - path = strings.Replace(path, "{tagId}", fmt.Sprintf("%v", tagId), -1) - defaultReturn := new(Tagvalue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'workspaceId' is set - if &workspaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workspaceId' when calling ContentManagementApi->PutContentmanagementWorkspaceTagvalue") - } - // verify the required parameter 'tagId' is set - if &tagId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'tagId' when calling ContentManagementApi->PutContentmanagementWorkspaceTagvalue") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ContentManagementApi->PutContentmanagementWorkspaceTagvalue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Tagvalue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/contentmanagementsingledocumenttopicdocumentdatav2.go b/build/platformclientv2/contentmanagementsingledocumenttopicdocumentdatav2.go deleted file mode 100644 index 994b15e41..000000000 --- a/build/platformclientv2/contentmanagementsingledocumenttopicdocumentdatav2.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Contentmanagementsingledocumenttopicdocumentdatav2 -type Contentmanagementsingledocumenttopicdocumentdatav2 struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Workspace - Workspace *Contentmanagementsingledocumenttopicworkspacedata `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Contentmanagementsingledocumenttopicuserdata `json:"createdBy,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // Filename - Filename *string `json:"filename,omitempty"` - - - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // DateUploaded - DateUploaded *time.Time `json:"dateUploaded,omitempty"` - - - // UploadedBy - UploadedBy *Contentmanagementsingledocumenttopicuserdata `json:"uploadedBy,omitempty"` - - - // LockInfo - LockInfo *Contentmanagementsingledocumenttopiclockdata `json:"lockInfo,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementsingledocumenttopicdocumentdatav2) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementsingledocumenttopiclockdata.go b/build/platformclientv2/contentmanagementsingledocumenttopiclockdata.go deleted file mode 100644 index 02812aff7..000000000 --- a/build/platformclientv2/contentmanagementsingledocumenttopiclockdata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Contentmanagementsingledocumenttopiclockdata -type Contentmanagementsingledocumenttopiclockdata struct { - // LockedBy - LockedBy *Contentmanagementsingledocumenttopicuserdata `json:"lockedBy,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateExpires - DateExpires *time.Time `json:"dateExpires,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementsingledocumenttopiclockdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementsingledocumenttopicuserdata.go b/build/platformclientv2/contentmanagementsingledocumenttopicuserdata.go deleted file mode 100644 index ffe0d104b..000000000 --- a/build/platformclientv2/contentmanagementsingledocumenttopicuserdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentmanagementsingledocumenttopicuserdata -type Contentmanagementsingledocumenttopicuserdata struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementsingledocumenttopicuserdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementsingledocumenttopicworkspacedata.go b/build/platformclientv2/contentmanagementsingledocumenttopicworkspacedata.go deleted file mode 100644 index 963683b97..000000000 --- a/build/platformclientv2/contentmanagementsingledocumenttopicworkspacedata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentmanagementsingledocumenttopicworkspacedata -type Contentmanagementsingledocumenttopicworkspacedata struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementsingledocumenttopicworkspacedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementworkspacedocumentstopicdocumentdatav2.go b/build/platformclientv2/contentmanagementworkspacedocumentstopicdocumentdatav2.go deleted file mode 100644 index 235e60257..000000000 --- a/build/platformclientv2/contentmanagementworkspacedocumentstopicdocumentdatav2.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Contentmanagementworkspacedocumentstopicdocumentdatav2 -type Contentmanagementworkspacedocumentstopicdocumentdatav2 struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Workspace - Workspace *Contentmanagementworkspacedocumentstopicworkspacedata `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Contentmanagementworkspacedocumentstopicuserdata `json:"createdBy,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // Filename - Filename *string `json:"filename,omitempty"` - - - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // DateUploaded - DateUploaded *time.Time `json:"dateUploaded,omitempty"` - - - // UploadedBy - UploadedBy *Contentmanagementworkspacedocumentstopicuserdata `json:"uploadedBy,omitempty"` - - - // LockInfo - LockInfo *Contentmanagementworkspacedocumentstopiclockdata `json:"lockInfo,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementworkspacedocumentstopicdocumentdatav2) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementworkspacedocumentstopiclockdata.go b/build/platformclientv2/contentmanagementworkspacedocumentstopiclockdata.go deleted file mode 100644 index 009f20ab9..000000000 --- a/build/platformclientv2/contentmanagementworkspacedocumentstopiclockdata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Contentmanagementworkspacedocumentstopiclockdata -type Contentmanagementworkspacedocumentstopiclockdata struct { - // LockedBy - LockedBy *Contentmanagementworkspacedocumentstopicuserdata `json:"lockedBy,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateExpires - DateExpires *time.Time `json:"dateExpires,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementworkspacedocumentstopiclockdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementworkspacedocumentstopicuserdata.go b/build/platformclientv2/contentmanagementworkspacedocumentstopicuserdata.go deleted file mode 100644 index 4da7c1bb6..000000000 --- a/build/platformclientv2/contentmanagementworkspacedocumentstopicuserdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentmanagementworkspacedocumentstopicuserdata -type Contentmanagementworkspacedocumentstopicuserdata struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementworkspacedocumentstopicuserdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentmanagementworkspacedocumentstopicworkspacedata.go b/build/platformclientv2/contentmanagementworkspacedocumentstopicworkspacedata.go deleted file mode 100644 index af001c80b..000000000 --- a/build/platformclientv2/contentmanagementworkspacedocumentstopicworkspacedata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentmanagementworkspacedocumentstopicworkspacedata -type Contentmanagementworkspacedocumentstopicworkspacedata struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentmanagementworkspacedocumentstopicworkspacedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentqueryrequest.go b/build/platformclientv2/contentqueryrequest.go deleted file mode 100644 index fdb0204df..000000000 --- a/build/platformclientv2/contentqueryrequest.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentqueryrequest -type Contentqueryrequest struct { - // QueryPhrase - QueryPhrase *string `json:"queryPhrase,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // FacetNameRequests - FacetNameRequests *[]string `json:"facetNameRequests,omitempty"` - - - // Sort - Sort *[]Contentsortitem `json:"sort,omitempty"` - - - // Filters - Filters *[]Contentfacetfilteritem `json:"filters,omitempty"` - - - // AttributeFilters - AttributeFilters *[]Contentattributefilteritem `json:"attributeFilters,omitempty"` - - - // IncludeShares - IncludeShares *bool `json:"includeShares,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentqueryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/contentsortitem.go b/build/platformclientv2/contentsortitem.go deleted file mode 100644 index 83f8b5151..000000000 --- a/build/platformclientv2/contentsortitem.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Contentsortitem -type Contentsortitem struct { - // Name - Name *string `json:"name,omitempty"` - - - // Ascending - Ascending *bool `json:"ascending,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Contentsortitem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversation.go b/build/platformclientv2/conversation.go deleted file mode 100644 index 3ab5ab4c4..000000000 --- a/build/platformclientv2/conversation.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversation -type Conversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // StartTime - The time when the conversation started. This will be the time when the first participant joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The time when the conversation ended. This will be the time when the last participant left the conversation, or null when the conversation is still active. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // Address - The address of the conversation as seen from an external participant. For phone calls this will be the DNIS for inbound calls and the ANI for outbound calls. For other media types this will be the address of the destination participant for inbound and the address of the initiating participant for outbound. - Address *string `json:"address,omitempty"` - - - // Participants - The list of all participants in the conversation. - Participants *[]Participant `json:"participants,omitempty"` - - - // ConversationIds - A list of conversations to merge into this conversation to create a conference. This field is null except when being used to create a conference. - ConversationIds *[]string `json:"conversationIds,omitempty"` - - - // MaxParticipants - If this is a conference conversation, then this field indicates the maximum number of participants allowed to participant in the conference. - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - - - // RecordingState - On update, 'paused' initiates a secure pause, 'active' resumes any paused recordings; otherwise indicates state of conversation recording. - RecordingState *string `json:"recordingState,omitempty"` - - - // State - The conversation's state - State *string `json:"state,omitempty"` - - - // Divisions - Identifiers of divisions associated with this conversation - Divisions *[]Conversationdivisionmembership `json:"divisions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregatedatacontainer.go b/build/platformclientv2/conversationaggregatedatacontainer.go deleted file mode 100644 index ae65733da..000000000 --- a/build/platformclientv2/conversationaggregatedatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregatedatacontainer -type Conversationaggregatedatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Statisticalresponse `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregatedatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregatequeryclause.go b/build/platformclientv2/conversationaggregatequeryclause.go deleted file mode 100644 index b048dc6cd..000000000 --- a/build/platformclientv2/conversationaggregatequeryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregatequeryclause -type Conversationaggregatequeryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Conversationaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregatequeryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregatequeryfilter.go b/build/platformclientv2/conversationaggregatequeryfilter.go deleted file mode 100644 index 531ca4d13..000000000 --- a/build/platformclientv2/conversationaggregatequeryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregatequeryfilter -type Conversationaggregatequeryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Conversationaggregatequeryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Conversationaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregatequeryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregatequerypredicate.go b/build/platformclientv2/conversationaggregatequerypredicate.go deleted file mode 100644 index 4455b46af..000000000 --- a/build/platformclientv2/conversationaggregatequerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregatequerypredicate -type Conversationaggregatequerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregatequerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregatequeryresponse.go b/build/platformclientv2/conversationaggregatequeryresponse.go deleted file mode 100644 index 1dfe5c4b6..000000000 --- a/build/platformclientv2/conversationaggregatequeryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregatequeryresponse -type Conversationaggregatequeryresponse struct { - // Results - Results *[]Conversationaggregatedatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregatequeryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregationquery.go b/build/platformclientv2/conversationaggregationquery.go deleted file mode 100644 index 265e2447f..000000000 --- a/build/platformclientv2/conversationaggregationquery.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregationquery -type Conversationaggregationquery struct { - // Interval - Behaves like one clause in a SQL WHERE. Specifies the date and time range of data being queried. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // Granularity - Granularity aggregates metrics into subpartitions within the time interval specified. The default granularity is the same duration as the interval. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Granularity *string `json:"granularity,omitempty"` - - - // TimeZone - Sets the time zone for the query interval, defaults to UTC. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // GroupBy - Behaves like a SQL GROUPBY. Allows for multiple levels of grouping as a list of dimensions. Partitions resulting aggregate computations into distinct named subgroups rather than across the entire result set as if it were one group. - GroupBy *[]string `json:"groupBy,omitempty"` - - - // Filter - Behaves like a SQL WHERE clause. This is ANDed with the interval parameter. Expresses boolean logical predicates as well as dimensional filters - Filter *Conversationaggregatequeryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // FlattenMultivaluedDimensions - Flattens any multivalued dimensions used in response groups (e.g. ['a','b','c']->'a,b,c') - FlattenMultivaluedDimensions *bool `json:"flattenMultivaluedDimensions,omitempty"` - - - // Views - Custom derived metric views - Views *[]Conversationaggregationview `json:"views,omitempty"` - - - // AlternateTimeDimension - Dimension to use as the alternative timestamp for data in the aggregate. Choosing \"eventTime\" uses the actual time of the data event. - AlternateTimeDimension *string `json:"alternateTimeDimension,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationaggregationview.go b/build/platformclientv2/conversationaggregationview.go deleted file mode 100644 index b195053c0..000000000 --- a/build/platformclientv2/conversationaggregationview.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationaggregationview -type Conversationaggregationview struct { - // Target - Target metric name - Target *string `json:"target,omitempty"` - - - // Name - A unique name for this view. Must be distinct from other views and built-in metric names. - Name *string `json:"name,omitempty"` - - - // Function - Type of view you wish to create - Function *string `json:"function,omitempty"` - - - // VarRange - Range of numbers for slicing up data - VarRange *Aggregationrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationaggregationview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationassociation.go b/build/platformclientv2/conversationassociation.go deleted file mode 100644 index 324ad043e..000000000 --- a/build/platformclientv2/conversationassociation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationassociation -type Conversationassociation struct { - // ExternalContactId - External Contact ID - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ConversationId - Conversation ID - ConversationId *string `json:"conversationId,omitempty"` - - - // CommunicationId - Communication ID - CommunicationId *string `json:"communicationId,omitempty"` - - - // MediaType - Media type - MediaType *string `json:"mediaType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationassociation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationbasic.go b/build/platformclientv2/conversationbasic.go deleted file mode 100644 index b9426d22b..000000000 --- a/build/platformclientv2/conversationbasic.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationbasic -type Conversationbasic struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // StartTime - The time when the conversation started. This will be the time when the first participant joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The time when the conversation ended. This will be the time when the last participant left the conversation, or null when the conversation is still active. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // Divisions - Identifiers of divisions associated with this conversation - Divisions *[]Conversationdivisionmembership `json:"divisions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // Participants - Participants *[]Participantbasic `json:"participants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationbasic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopiccallbackconversation.go b/build/platformclientv2/conversationcallbackeventtopiccallbackconversation.go deleted file mode 100644 index c22a0a6ae..000000000 --- a/build/platformclientv2/conversationcallbackeventtopiccallbackconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopiccallbackconversation -type Conversationcallbackeventtopiccallbackconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationcallbackeventtopiccallbackmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopiccallbackconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopiccallbackmediaparticipant.go b/build/platformclientv2/conversationcallbackeventtopiccallbackmediaparticipant.go deleted file mode 100644 index ceafc9b8d..000000000 --- a/build/platformclientv2/conversationcallbackeventtopiccallbackmediaparticipant.go +++ /dev/null @@ -1,178 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationcallbackeventtopiccallbackmediaparticipant -type Conversationcallbackeventtopiccallbackmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationcallbackeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationcallbackeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationcallbackeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationcallbackeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationcallbackeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationcallbackeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationcallbackeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationcallbackeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationcallbackeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // OutboundPreview - OutboundPreview *Conversationcallbackeventtopicdialerpreview `json:"outboundPreview,omitempty"` - - - // Voicemail - Voicemail *Conversationcallbackeventtopicvoicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // SkipEnabled - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // TimeoutSeconds - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // CallbackScheduledTime - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopiccallbackmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicconversationroutingdata.go b/build/platformclientv2/conversationcallbackeventtopicconversationroutingdata.go deleted file mode 100644 index 7c1d6af14..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicconversationroutingdata -type Conversationcallbackeventtopicconversationroutingdata struct { - // Queue - Queue *Conversationcallbackeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationcallbackeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationcallbackeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationcallbackeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicdetail.go b/build/platformclientv2/conversationcallbackeventtopicdetail.go deleted file mode 100644 index 01d88e378..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicdetail -type Conversationcallbackeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicdialerpreview.go b/build/platformclientv2/conversationcallbackeventtopicdialerpreview.go deleted file mode 100644 index 1cfdf5d12..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicdialerpreview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicdialerpreview -type Conversationcallbackeventtopicdialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - PhoneNumberColumns *[]Conversationcallbackeventtopicphonenumbercolumn `json:"phoneNumberColumns,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicdialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicerrorbody.go b/build/platformclientv2/conversationcallbackeventtopicerrorbody.go deleted file mode 100644 index 3c52ac30b..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicerrorbody -type Conversationcallbackeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationcallbackeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationcallbackeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicjourneyaction.go b/build/platformclientv2/conversationcallbackeventtopicjourneyaction.go deleted file mode 100644 index ad334847b..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicjourneyaction -type Conversationcallbackeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationcallbackeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicjourneyactionmap.go b/build/platformclientv2/conversationcallbackeventtopicjourneyactionmap.go deleted file mode 100644 index e128500ae..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicjourneyactionmap -type Conversationcallbackeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicjourneycontext.go b/build/platformclientv2/conversationcallbackeventtopicjourneycontext.go deleted file mode 100644 index a6ad9bbe0..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicjourneycontext -type Conversationcallbackeventtopicjourneycontext struct { - // Customer - Customer *Conversationcallbackeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationcallbackeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationcallbackeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicjourneycustomer.go b/build/platformclientv2/conversationcallbackeventtopicjourneycustomer.go deleted file mode 100644 index eeeb55638..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicjourneycustomer -type Conversationcallbackeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicjourneycustomersession.go b/build/platformclientv2/conversationcallbackeventtopicjourneycustomersession.go deleted file mode 100644 index 179ee2f5b..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicjourneycustomersession -type Conversationcallbackeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicphonenumbercolumn.go b/build/platformclientv2/conversationcallbackeventtopicphonenumbercolumn.go deleted file mode 100644 index 806c4e6ec..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicphonenumbercolumn -type Conversationcallbackeventtopicphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicscoredagent.go b/build/platformclientv2/conversationcallbackeventtopicscoredagent.go deleted file mode 100644 index a43683766..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicscoredagent -type Conversationcallbackeventtopicscoredagent struct { - // Agent - Agent *Conversationcallbackeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicurireference.go b/build/platformclientv2/conversationcallbackeventtopicurireference.go deleted file mode 100644 index 3ed77da7f..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicurireference -type Conversationcallbackeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicvoicemail.go b/build/platformclientv2/conversationcallbackeventtopicvoicemail.go deleted file mode 100644 index 295d530ef..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicvoicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcallbackeventtopicvoicemail -type Conversationcallbackeventtopicvoicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicvoicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcallbackeventtopicwrapup.go b/build/platformclientv2/conversationcallbackeventtopicwrapup.go deleted file mode 100644 index 6c3af7235..000000000 --- a/build/platformclientv2/conversationcallbackeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationcallbackeventtopicwrapup -type Conversationcallbackeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcallbackeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopiccallconversation.go b/build/platformclientv2/conversationcalleventtopiccallconversation.go deleted file mode 100644 index 42dea4cfb..000000000 --- a/build/platformclientv2/conversationcalleventtopiccallconversation.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopiccallconversation -type Conversationcalleventtopiccallconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationcalleventtopiccallmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // MaxParticipants - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopiccallconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopiccallmediaparticipant.go b/build/platformclientv2/conversationcalleventtopiccallmediaparticipant.go deleted file mode 100644 index f59eb89bc..000000000 --- a/build/platformclientv2/conversationcalleventtopiccallmediaparticipant.go +++ /dev/null @@ -1,190 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationcalleventtopiccallmediaparticipant -type Conversationcalleventtopiccallmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationcalleventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationcalleventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationcalleventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationcalleventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationcalleventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationcalleventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationcalleventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationcalleventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationcalleventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Muted - Muted *bool `json:"muted,omitempty"` - - - // Confined - Confined *bool `json:"confined,omitempty"` - - - // Recording - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Group - Group *Conversationcalleventtopicurireference `json:"group,omitempty"` - - - // Ani - Ani *string `json:"ani,omitempty"` - - - // Dnis - Dnis *string `json:"dnis,omitempty"` - - - // DocumentId - DocumentId *string `json:"documentId,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ConsultParticipantId - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // FaxStatus - FaxStatus *Conversationcalleventtopicfaxstatus `json:"faxStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopiccallmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicconversationroutingdata.go b/build/platformclientv2/conversationcalleventtopicconversationroutingdata.go deleted file mode 100644 index bf35bbf59..000000000 --- a/build/platformclientv2/conversationcalleventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicconversationroutingdata -type Conversationcalleventtopicconversationroutingdata struct { - // Queue - Queue *Conversationcalleventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationcalleventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationcalleventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationcalleventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicdetail.go b/build/platformclientv2/conversationcalleventtopicdetail.go deleted file mode 100644 index d42fda7d1..000000000 --- a/build/platformclientv2/conversationcalleventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicdetail -type Conversationcalleventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicerrorbody.go b/build/platformclientv2/conversationcalleventtopicerrorbody.go deleted file mode 100644 index b4d924592..000000000 --- a/build/platformclientv2/conversationcalleventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicerrorbody -type Conversationcalleventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationcalleventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationcalleventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicfaxstatus.go b/build/platformclientv2/conversationcalleventtopicfaxstatus.go deleted file mode 100644 index 93bde2f61..000000000 --- a/build/platformclientv2/conversationcalleventtopicfaxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicfaxstatus -type Conversationcalleventtopicfaxstatus struct { - // Direction - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - ExpectedPages *int32 `json:"expectedPages,omitempty"` - - - // ActivePage - ActivePage *int32 `json:"activePage,omitempty"` - - - // LinesTransmitted - LinesTransmitted *int32 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - BytesTransmitted *int32 `json:"bytesTransmitted,omitempty"` - - - // DataRate - DataRate *int32 `json:"dataRate,omitempty"` - - - // PageErrors - PageErrors *int32 `json:"pageErrors,omitempty"` - - - // LineErrors - LineErrors *int32 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicfaxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicjourneyaction.go b/build/platformclientv2/conversationcalleventtopicjourneyaction.go deleted file mode 100644 index b98fedf65..000000000 --- a/build/platformclientv2/conversationcalleventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicjourneyaction -type Conversationcalleventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationcalleventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicjourneyactionmap.go b/build/platformclientv2/conversationcalleventtopicjourneyactionmap.go deleted file mode 100644 index f3ba4fb2c..000000000 --- a/build/platformclientv2/conversationcalleventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicjourneyactionmap -type Conversationcalleventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicjourneycontext.go b/build/platformclientv2/conversationcalleventtopicjourneycontext.go deleted file mode 100644 index 945b9642f..000000000 --- a/build/platformclientv2/conversationcalleventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicjourneycontext -type Conversationcalleventtopicjourneycontext struct { - // Customer - Customer *Conversationcalleventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationcalleventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationcalleventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicjourneycustomer.go b/build/platformclientv2/conversationcalleventtopicjourneycustomer.go deleted file mode 100644 index d5f020120..000000000 --- a/build/platformclientv2/conversationcalleventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicjourneycustomer -type Conversationcalleventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicjourneycustomersession.go b/build/platformclientv2/conversationcalleventtopicjourneycustomersession.go deleted file mode 100644 index ce608dd11..000000000 --- a/build/platformclientv2/conversationcalleventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicjourneycustomersession -type Conversationcalleventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicscoredagent.go b/build/platformclientv2/conversationcalleventtopicscoredagent.go deleted file mode 100644 index 9508e03bb..000000000 --- a/build/platformclientv2/conversationcalleventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicscoredagent -type Conversationcalleventtopicscoredagent struct { - // Agent - Agent *Conversationcalleventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicurireference.go b/build/platformclientv2/conversationcalleventtopicurireference.go deleted file mode 100644 index 2eb41a158..000000000 --- a/build/platformclientv2/conversationcalleventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcalleventtopicurireference -type Conversationcalleventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcalleventtopicwrapup.go b/build/platformclientv2/conversationcalleventtopicwrapup.go deleted file mode 100644 index 17e51fa5e..000000000 --- a/build/platformclientv2/conversationcalleventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationcalleventtopicwrapup -type Conversationcalleventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcalleventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchat.go b/build/platformclientv2/conversationchat.go deleted file mode 100644 index 5099ee74a..000000000 --- a/build/platformclientv2/conversationchat.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationchat -type Conversationchat struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // RoomId - The room id for the chat. - RoomId *string `json:"roomId,omitempty"` - - - // RecordingId - A globally unique identifier for the recording associated with this chat. - RecordingId *string `json:"recordingId,omitempty"` - - - // Segments - The time line of the participant's chat, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // Direction - The direction of the chat - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the chat was placed on hold in the cloud clock if the chat is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Provider - The source provider for the email. - Provider *string `json:"provider,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // AvatarImageUrl - If available, the URI to the avatar image of this communication. - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // JourneyContext - A subset of the Journey System's data relevant to a part of a conversation (for external linkage and internal usage/context). - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicchatconversation.go b/build/platformclientv2/conversationchateventtopicchatconversation.go deleted file mode 100644 index 50b43e94f..000000000 --- a/build/platformclientv2/conversationchateventtopicchatconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicchatconversation -type Conversationchateventtopicchatconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationchateventtopicchatmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicchatconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicchatmediaparticipant.go b/build/platformclientv2/conversationchateventtopicchatmediaparticipant.go deleted file mode 100644 index 9f2f6c5ed..000000000 --- a/build/platformclientv2/conversationchateventtopicchatmediaparticipant.go +++ /dev/null @@ -1,154 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationchateventtopicchatmediaparticipant -type Conversationchateventtopicchatmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationchateventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationchateventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationchateventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationchateventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationchateventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationchateventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationchateventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationchateventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationchateventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicchatmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicconversationroutingdata.go b/build/platformclientv2/conversationchateventtopicconversationroutingdata.go deleted file mode 100644 index 654b04ba1..000000000 --- a/build/platformclientv2/conversationchateventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicconversationroutingdata -type Conversationchateventtopicconversationroutingdata struct { - // Queue - Queue *Conversationchateventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationchateventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationchateventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationchateventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicdetail.go b/build/platformclientv2/conversationchateventtopicdetail.go deleted file mode 100644 index 9e792801e..000000000 --- a/build/platformclientv2/conversationchateventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicdetail -type Conversationchateventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicerrorbody.go b/build/platformclientv2/conversationchateventtopicerrorbody.go deleted file mode 100644 index e89cfc158..000000000 --- a/build/platformclientv2/conversationchateventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicerrorbody -type Conversationchateventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationchateventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationchateventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicjourneyaction.go b/build/platformclientv2/conversationchateventtopicjourneyaction.go deleted file mode 100644 index 7bd146c57..000000000 --- a/build/platformclientv2/conversationchateventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicjourneyaction -type Conversationchateventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationchateventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicjourneyactionmap.go b/build/platformclientv2/conversationchateventtopicjourneyactionmap.go deleted file mode 100644 index 7608b0bca..000000000 --- a/build/platformclientv2/conversationchateventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicjourneyactionmap -type Conversationchateventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicjourneycontext.go b/build/platformclientv2/conversationchateventtopicjourneycontext.go deleted file mode 100644 index 78c4ad60e..000000000 --- a/build/platformclientv2/conversationchateventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicjourneycontext -type Conversationchateventtopicjourneycontext struct { - // Customer - Customer *Conversationchateventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationchateventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationchateventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicjourneycustomer.go b/build/platformclientv2/conversationchateventtopicjourneycustomer.go deleted file mode 100644 index 68ac07742..000000000 --- a/build/platformclientv2/conversationchateventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicjourneycustomer -type Conversationchateventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicjourneycustomersession.go b/build/platformclientv2/conversationchateventtopicjourneycustomersession.go deleted file mode 100644 index 585a60f3b..000000000 --- a/build/platformclientv2/conversationchateventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicjourneycustomersession -type Conversationchateventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicscoredagent.go b/build/platformclientv2/conversationchateventtopicscoredagent.go deleted file mode 100644 index bdb08ce13..000000000 --- a/build/platformclientv2/conversationchateventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicscoredagent -type Conversationchateventtopicscoredagent struct { - // Agent - Agent *Conversationchateventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicurireference.go b/build/platformclientv2/conversationchateventtopicurireference.go deleted file mode 100644 index 95bc8ab0d..000000000 --- a/build/platformclientv2/conversationchateventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationchateventtopicurireference -type Conversationchateventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationchateventtopicwrapup.go b/build/platformclientv2/conversationchateventtopicwrapup.go deleted file mode 100644 index 76551175c..000000000 --- a/build/platformclientv2/conversationchateventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationchateventtopicwrapup -type Conversationchateventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationchateventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopiccobrowseconversation.go b/build/platformclientv2/conversationcobrowseeventtopiccobrowseconversation.go deleted file mode 100644 index 581b33c7c..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopiccobrowseconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopiccobrowseconversation -type Conversationcobrowseeventtopiccobrowseconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationcobrowseeventtopiccobrowsemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopiccobrowseconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopiccobrowsemediaparticipant.go b/build/platformclientv2/conversationcobrowseeventtopiccobrowsemediaparticipant.go deleted file mode 100644 index 6891d0eef..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopiccobrowsemediaparticipant.go +++ /dev/null @@ -1,166 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationcobrowseeventtopiccobrowsemediaparticipant -type Conversationcobrowseeventtopiccobrowsemediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationcobrowseeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationcobrowseeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationcobrowseeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationcobrowseeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationcobrowseeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationcobrowseeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationcobrowseeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationcobrowseeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationcobrowseeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // CobrowseSessionId - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // ViewerUrl - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // ProviderEventTime - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // Controlling - Controlling *[]string `json:"controlling,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopiccobrowsemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicconversationroutingdata.go b/build/platformclientv2/conversationcobrowseeventtopicconversationroutingdata.go deleted file mode 100644 index 4eb3cd12d..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicconversationroutingdata -type Conversationcobrowseeventtopicconversationroutingdata struct { - // Queue - Queue *Conversationcobrowseeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationcobrowseeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationcobrowseeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationcobrowseeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicdetail.go b/build/platformclientv2/conversationcobrowseeventtopicdetail.go deleted file mode 100644 index 04460b13d..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicdetail -type Conversationcobrowseeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicerrorbody.go b/build/platformclientv2/conversationcobrowseeventtopicerrorbody.go deleted file mode 100644 index 95bcadd60..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicerrorbody -type Conversationcobrowseeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationcobrowseeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationcobrowseeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicjourneyaction.go b/build/platformclientv2/conversationcobrowseeventtopicjourneyaction.go deleted file mode 100644 index b7850392a..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicjourneyaction -type Conversationcobrowseeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationcobrowseeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicjourneyactionmap.go b/build/platformclientv2/conversationcobrowseeventtopicjourneyactionmap.go deleted file mode 100644 index 7744b13f9..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicjourneyactionmap -type Conversationcobrowseeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicjourneycontext.go b/build/platformclientv2/conversationcobrowseeventtopicjourneycontext.go deleted file mode 100644 index 6c834c818..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicjourneycontext -type Conversationcobrowseeventtopicjourneycontext struct { - // Customer - Customer *Conversationcobrowseeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationcobrowseeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationcobrowseeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicjourneycustomer.go b/build/platformclientv2/conversationcobrowseeventtopicjourneycustomer.go deleted file mode 100644 index 9b0fa2acc..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicjourneycustomer -type Conversationcobrowseeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicjourneycustomersession.go b/build/platformclientv2/conversationcobrowseeventtopicjourneycustomersession.go deleted file mode 100644 index a8b4df11e..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicjourneycustomersession -type Conversationcobrowseeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicscoredagent.go b/build/platformclientv2/conversationcobrowseeventtopicscoredagent.go deleted file mode 100644 index 0164bbb6d..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicscoredagent -type Conversationcobrowseeventtopicscoredagent struct { - // Agent - Agent *Conversationcobrowseeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicurireference.go b/build/platformclientv2/conversationcobrowseeventtopicurireference.go deleted file mode 100644 index 14b4b28c1..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationcobrowseeventtopicurireference -type Conversationcobrowseeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationcobrowseeventtopicwrapup.go b/build/platformclientv2/conversationcobrowseeventtopicwrapup.go deleted file mode 100644 index e1b5ee1c5..000000000 --- a/build/platformclientv2/conversationcobrowseeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationcobrowseeventtopicwrapup -type Conversationcobrowseeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationcobrowseeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationdetailqueryclause.go b/build/platformclientv2/conversationdetailqueryclause.go deleted file mode 100644 index 4b52be483..000000000 --- a/build/platformclientv2/conversationdetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationdetailqueryclause -type Conversationdetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Conversationdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationdetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationdetailqueryfilter.go b/build/platformclientv2/conversationdetailqueryfilter.go deleted file mode 100644 index cf0320fd8..000000000 --- a/build/platformclientv2/conversationdetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationdetailqueryfilter -type Conversationdetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Conversationdetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Conversationdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationdetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationdetailquerypredicate.go b/build/platformclientv2/conversationdetailquerypredicate.go deleted file mode 100644 index 2f361d64d..000000000 --- a/build/platformclientv2/conversationdetailquerypredicate.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationdetailquerypredicate -type Conversationdetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Metric - Left hand side for metric predicates - Metric *string `json:"metric,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension or metric predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension or metric predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationdetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationdivisionmembership.go b/build/platformclientv2/conversationdivisionmembership.go deleted file mode 100644 index 68a80ce23..000000000 --- a/build/platformclientv2/conversationdivisionmembership.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationdivisionmembership -type Conversationdivisionmembership struct { - // Division - A division the conversation belongs to. - Division *Domainentityref `json:"division,omitempty"` - - - // Entities - The entities on the conversation within the division. These are the users, queues, work flows, etc. that can be on conversations and and be assigned to different divisions. - Entities *[]Domainentityref `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationdivisionmembership) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicattachment.go b/build/platformclientv2/conversationemaileventtopicattachment.go deleted file mode 100644 index 76cd7fedc..000000000 --- a/build/platformclientv2/conversationemaileventtopicattachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicattachment -type Conversationemaileventtopicattachment struct { - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicconversationroutingdata.go b/build/platformclientv2/conversationemaileventtopicconversationroutingdata.go deleted file mode 100644 index b939e438e..000000000 --- a/build/platformclientv2/conversationemaileventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicconversationroutingdata -type Conversationemaileventtopicconversationroutingdata struct { - // Queue - Queue *Conversationemaileventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationemaileventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationemaileventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationemaileventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicdetail.go b/build/platformclientv2/conversationemaileventtopicdetail.go deleted file mode 100644 index ec7ef574d..000000000 --- a/build/platformclientv2/conversationemaileventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicdetail -type Conversationemaileventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicemailconversation.go b/build/platformclientv2/conversationemaileventtopicemailconversation.go deleted file mode 100644 index 68cb14b1a..000000000 --- a/build/platformclientv2/conversationemaileventtopicemailconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicemailconversation -type Conversationemaileventtopicemailconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationemaileventtopicemailmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicemailconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicemailmediaparticipant.go b/build/platformclientv2/conversationemaileventtopicemailmediaparticipant.go deleted file mode 100644 index 49f40c34e..000000000 --- a/build/platformclientv2/conversationemaileventtopicemailmediaparticipant.go +++ /dev/null @@ -1,170 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationemaileventtopicemailmediaparticipant -type Conversationemaileventtopicemailmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationemaileventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationemaileventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationemaileventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationemaileventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationemaileventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationemaileventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationemaileventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationemaileventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationemaileventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // MessagesSent - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // AutoGenerated - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // DraftAttachments - DraftAttachments *[]Conversationemaileventtopicattachment `json:"draftAttachments,omitempty"` - - - // Spam - Spam *bool `json:"spam,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicemailmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicerrorbody.go b/build/platformclientv2/conversationemaileventtopicerrorbody.go deleted file mode 100644 index d41a0a53f..000000000 --- a/build/platformclientv2/conversationemaileventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicerrorbody -type Conversationemaileventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationemaileventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationemaileventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicjourneyaction.go b/build/platformclientv2/conversationemaileventtopicjourneyaction.go deleted file mode 100644 index aa9000a83..000000000 --- a/build/platformclientv2/conversationemaileventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicjourneyaction -type Conversationemaileventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationemaileventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicjourneyactionmap.go b/build/platformclientv2/conversationemaileventtopicjourneyactionmap.go deleted file mode 100644 index 9a18d7970..000000000 --- a/build/platformclientv2/conversationemaileventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicjourneyactionmap -type Conversationemaileventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicjourneycontext.go b/build/platformclientv2/conversationemaileventtopicjourneycontext.go deleted file mode 100644 index 4a9ec72dd..000000000 --- a/build/platformclientv2/conversationemaileventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicjourneycontext -type Conversationemaileventtopicjourneycontext struct { - // Customer - Customer *Conversationemaileventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationemaileventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationemaileventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicjourneycustomer.go b/build/platformclientv2/conversationemaileventtopicjourneycustomer.go deleted file mode 100644 index e84039e91..000000000 --- a/build/platformclientv2/conversationemaileventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicjourneycustomer -type Conversationemaileventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicjourneycustomersession.go b/build/platformclientv2/conversationemaileventtopicjourneycustomersession.go deleted file mode 100644 index 6d80182c7..000000000 --- a/build/platformclientv2/conversationemaileventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicjourneycustomersession -type Conversationemaileventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicscoredagent.go b/build/platformclientv2/conversationemaileventtopicscoredagent.go deleted file mode 100644 index 4bd4670eb..000000000 --- a/build/platformclientv2/conversationemaileventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicscoredagent -type Conversationemaileventtopicscoredagent struct { - // Agent - Agent *Conversationemaileventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicurireference.go b/build/platformclientv2/conversationemaileventtopicurireference.go deleted file mode 100644 index 6845f5ce2..000000000 --- a/build/platformclientv2/conversationemaileventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationemaileventtopicurireference -type Conversationemaileventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationemaileventtopicwrapup.go b/build/platformclientv2/conversationemaileventtopicwrapup.go deleted file mode 100644 index acac3926f..000000000 --- a/build/platformclientv2/conversationemaileventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationemaileventtopicwrapup -type Conversationemaileventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationemaileventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationentitylisting.go b/build/platformclientv2/conversationentitylisting.go deleted file mode 100644 index 11daa4deb..000000000 --- a/build/platformclientv2/conversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationentitylisting -type Conversationentitylisting struct { - // Entities - Entities *[]Conversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicaddress.go b/build/platformclientv2/conversationeventtopicaddress.go deleted file mode 100644 index a4a42d0d6..000000000 --- a/build/platformclientv2/conversationeventtopicaddress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicaddress -type Conversationeventtopicaddress struct { - // Name - Name *string `json:"name,omitempty"` - - - // NameRaw - NameRaw *string `json:"nameRaw,omitempty"` - - - // AddressNormalized - AddressNormalized *string `json:"addressNormalized,omitempty"` - - - // AddressRaw - AddressRaw *string `json:"addressRaw,omitempty"` - - - // AddressDisplayable - AddressDisplayable *string `json:"addressDisplayable,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicattachment.go b/build/platformclientv2/conversationeventtopicattachment.go deleted file mode 100644 index f542865df..000000000 --- a/build/platformclientv2/conversationeventtopicattachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicattachment -type Conversationeventtopicattachment struct { - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopiccall.go b/build/platformclientv2/conversationeventtopiccall.go deleted file mode 100644 index 1aa499ea4..000000000 --- a/build/platformclientv2/conversationeventtopiccall.go +++ /dev/null @@ -1,106 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopiccall -type Conversationeventtopiccall struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Recording - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Muted - Muted *bool `json:"muted,omitempty"` - - - // Confined - Confined *bool `json:"confined,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationeventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DocumentId - DocumentId *string `json:"documentId,omitempty"` - - - // Self - Self *Conversationeventtopicaddress `json:"self,omitempty"` - - - // Other - Other *Conversationeventtopicaddress `json:"other,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // DisconnectReasons - DisconnectReasons *[]Conversationeventtopicdisconnectreason `json:"disconnectReasons,omitempty"` - - - // FaxStatus - FaxStatus *Conversationeventtopicfaxstatus `json:"faxStatus,omitempty"` - - - // UuiData - UuiData *string `json:"uuiData,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopiccall) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopiccallback.go b/build/platformclientv2/conversationeventtopiccallback.go deleted file mode 100644 index 447723e1f..000000000 --- a/build/platformclientv2/conversationeventtopiccallback.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopiccallback -type Conversationeventtopiccallback struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DialerPreview - DialerPreview *Conversationeventtopicdialerpreview `json:"dialerPreview,omitempty"` - - - // Voicemail - Voicemail *Conversationeventtopicvoicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // SkipEnabled - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // TimeoutSeconds - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // CallbackScheduledTime - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopiccallback) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicchat.go b/build/platformclientv2/conversationeventtopicchat.go deleted file mode 100644 index 114caf3bf..000000000 --- a/build/platformclientv2/conversationeventtopicchat.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicchat -type Conversationeventtopicchat struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // JourneyContext - JourneyContext *Conversationeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicchat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopiccobrowse.go b/build/platformclientv2/conversationeventtopiccobrowse.go deleted file mode 100644 index f71677839..000000000 --- a/build/platformclientv2/conversationeventtopiccobrowse.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopiccobrowse -type Conversationeventtopiccobrowse struct { - // State - State *string `json:"state,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Self - Self *Conversationeventtopicaddress `json:"self,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // CobrowseSessionId - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // Controlling - Controlling *[]string `json:"controlling,omitempty"` - - - // ViewerUrl - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ProviderEventTime - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopiccobrowse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicconversation.go b/build/platformclientv2/conversationeventtopicconversation.go deleted file mode 100644 index 74f11a3a9..000000000 --- a/build/platformclientv2/conversationeventtopicconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicconversation -type Conversationeventtopicconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // MaxParticipants - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - - - // Participants - Participants *[]Conversationeventtopicparticipant `json:"participants,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicconversationroutingdata.go b/build/platformclientv2/conversationeventtopicconversationroutingdata.go deleted file mode 100644 index 2a6c9cd42..000000000 --- a/build/platformclientv2/conversationeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicconversationroutingdata -type Conversationeventtopicconversationroutingdata struct { - // Queue - Queue *Conversationeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicdialerpreview.go b/build/platformclientv2/conversationeventtopicdialerpreview.go deleted file mode 100644 index 01efa1ef7..000000000 --- a/build/platformclientv2/conversationeventtopicdialerpreview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicdialerpreview -type Conversationeventtopicdialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - PhoneNumberColumns *[]Conversationeventtopicphonenumbercolumn `json:"phoneNumberColumns,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicdialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicdisconnectreason.go b/build/platformclientv2/conversationeventtopicdisconnectreason.go deleted file mode 100644 index d7d24a291..000000000 --- a/build/platformclientv2/conversationeventtopicdisconnectreason.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicdisconnectreason -type Conversationeventtopicdisconnectreason struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Code - Code *int32 `json:"code,omitempty"` - - - // Phrase - Phrase *string `json:"phrase,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicdisconnectreason) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicemail.go b/build/platformclientv2/conversationeventtopicemail.go deleted file mode 100644 index 37e5bd0aa..000000000 --- a/build/platformclientv2/conversationeventtopicemail.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicemail -type Conversationeventtopicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // AutoGenerated - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // MessagesSent - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationeventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DraftAttachments - DraftAttachments *[]Conversationeventtopicattachment `json:"draftAttachments,omitempty"` - - - // Spam - Spam *bool `json:"spam,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicerrordetails.go b/build/platformclientv2/conversationeventtopicerrordetails.go deleted file mode 100644 index ca5b15eaa..000000000 --- a/build/platformclientv2/conversationeventtopicerrordetails.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicerrordetails -type Conversationeventtopicerrordetails struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Uri - Uri *string `json:"uri,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicerrordetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicfaxstatus.go b/build/platformclientv2/conversationeventtopicfaxstatus.go deleted file mode 100644 index d5043d07b..000000000 --- a/build/platformclientv2/conversationeventtopicfaxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicfaxstatus -type Conversationeventtopicfaxstatus struct { - // Direction - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - ExpectedPages *int32 `json:"expectedPages,omitempty"` - - - // ActivePage - ActivePage *int32 `json:"activePage,omitempty"` - - - // LinesTransmitted - LinesTransmitted *int32 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - BytesTransmitted *int32 `json:"bytesTransmitted,omitempty"` - - - // BaudRate - BaudRate *int32 `json:"baudRate,omitempty"` - - - // PageErrors - PageErrors *int32 `json:"pageErrors,omitempty"` - - - // LineErrors - LineErrors *int32 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicfaxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicjourneyaction.go b/build/platformclientv2/conversationeventtopicjourneyaction.go deleted file mode 100644 index ae014a20d..000000000 --- a/build/platformclientv2/conversationeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicjourneyaction -type Conversationeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicjourneyactionmap.go b/build/platformclientv2/conversationeventtopicjourneyactionmap.go deleted file mode 100644 index 4159ca7f5..000000000 --- a/build/platformclientv2/conversationeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicjourneyactionmap -type Conversationeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicjourneycontext.go b/build/platformclientv2/conversationeventtopicjourneycontext.go deleted file mode 100644 index 92fdf989c..000000000 --- a/build/platformclientv2/conversationeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicjourneycontext -type Conversationeventtopicjourneycontext struct { - // Customer - Customer *Conversationeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicjourneycustomer.go b/build/platformclientv2/conversationeventtopicjourneycustomer.go deleted file mode 100644 index d57c9f6c6..000000000 --- a/build/platformclientv2/conversationeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicjourneycustomer -type Conversationeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicjourneycustomersession.go b/build/platformclientv2/conversationeventtopicjourneycustomersession.go deleted file mode 100644 index d18e87eaa..000000000 --- a/build/platformclientv2/conversationeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicjourneycustomersession -type Conversationeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicmessage.go b/build/platformclientv2/conversationeventtopicmessage.go deleted file mode 100644 index 78a0b1cab..000000000 --- a/build/platformclientv2/conversationeventtopicmessage.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicmessage -type Conversationeventtopicmessage struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // ToAddress - ToAddress *Conversationeventtopicaddress `json:"toAddress,omitempty"` - - - // FromAddress - FromAddress *Conversationeventtopicaddress `json:"fromAddress,omitempty"` - - - // Messages - Messages *[]Conversationeventtopicmessagedetails `json:"messages,omitempty"` - - - // MessagesTranscriptUri - MessagesTranscriptUri *string `json:"messagesTranscriptUri,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - RecipientType *string `json:"recipientType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicmessagedetails.go b/build/platformclientv2/conversationeventtopicmessagedetails.go deleted file mode 100644 index 8a3220224..000000000 --- a/build/platformclientv2/conversationeventtopicmessagedetails.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicmessagedetails -type Conversationeventtopicmessagedetails struct { - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // MessageTime - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // MessageStatus - MessageStatus *string `json:"messageStatus,omitempty"` - - - // MessageSegmentCount - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // Media - Media *[]Conversationeventtopicmessagemedia `json:"media,omitempty"` - - - // Stickers - Stickers *[]Conversationeventtopicmessagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicmessagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicmessagemedia.go b/build/platformclientv2/conversationeventtopicmessagemedia.go deleted file mode 100644 index 6e9fa04b8..000000000 --- a/build/platformclientv2/conversationeventtopicmessagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicmessagemedia -type Conversationeventtopicmessagemedia struct { - // Url - Url *string `json:"url,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicmessagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicmessagesticker.go b/build/platformclientv2/conversationeventtopicmessagesticker.go deleted file mode 100644 index b0a862ab7..000000000 --- a/build/platformclientv2/conversationeventtopicmessagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicmessagesticker -type Conversationeventtopicmessagesticker struct { - // Url - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicmessagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicparticipant.go b/build/platformclientv2/conversationeventtopicparticipant.go deleted file mode 100644 index 54ccd9861..000000000 --- a/build/platformclientv2/conversationeventtopicparticipant.go +++ /dev/null @@ -1,154 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicparticipant -type Conversationeventtopicparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // QueueId - QueueId *string `json:"queueId,omitempty"` - - - // GroupId - GroupId *string `json:"groupId,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // ConsultParticipantId - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupExpected - WrapupExpected *bool `json:"wrapupExpected,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // Wrapup - Wrapup *Conversationeventtopicwrapup `json:"wrapup,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // Calls - Calls *[]Conversationeventtopiccall `json:"calls,omitempty"` - - - // Callbacks - Callbacks *[]Conversationeventtopiccallback `json:"callbacks,omitempty"` - - - // Chats - Chats *[]Conversationeventtopicchat `json:"chats,omitempty"` - - - // Cobrowsesessions - Cobrowsesessions *[]Conversationeventtopiccobrowse `json:"cobrowsesessions,omitempty"` - - - // Emails - Emails *[]Conversationeventtopicemail `json:"emails,omitempty"` - - - // Messages - Messages *[]Conversationeventtopicmessage `json:"messages,omitempty"` - - - // Screenshares - Screenshares *[]Conversationeventtopicscreenshare `json:"screenshares,omitempty"` - - - // SocialExpressions - SocialExpressions *[]Conversationeventtopicsocialexpression `json:"socialExpressions,omitempty"` - - - // Videos - Videos *[]Conversationeventtopicvideo `json:"videos,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicphonenumbercolumn.go b/build/platformclientv2/conversationeventtopicphonenumbercolumn.go deleted file mode 100644 index ecf1774c0..000000000 --- a/build/platformclientv2/conversationeventtopicphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicphonenumbercolumn -type Conversationeventtopicphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicscoredagent.go b/build/platformclientv2/conversationeventtopicscoredagent.go deleted file mode 100644 index 4893cd363..000000000 --- a/build/platformclientv2/conversationeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicscoredagent -type Conversationeventtopicscoredagent struct { - // Agent - Agent *Conversationeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicscreenshare.go b/build/platformclientv2/conversationeventtopicscreenshare.go deleted file mode 100644 index d1e014a7c..000000000 --- a/build/platformclientv2/conversationeventtopicscreenshare.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicscreenshare -type Conversationeventtopicscreenshare struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Conversationeventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // Sharing - Sharing *bool `json:"sharing,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicscreenshare) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicsocialexpression.go b/build/platformclientv2/conversationeventtopicsocialexpression.go deleted file mode 100644 index e91154540..000000000 --- a/build/platformclientv2/conversationeventtopicsocialexpression.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicsocialexpression -type Conversationeventtopicsocialexpression struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // SocialMediaId - SocialMediaId *string `json:"socialMediaId,omitempty"` - - - // SocialMediaHub - SocialMediaHub *string `json:"socialMediaHub,omitempty"` - - - // SocialUserName - SocialUserName *string `json:"socialUserName,omitempty"` - - - // PreviewText - PreviewText *string `json:"previewText,omitempty"` - - - // RecordingId - RecordingId *string `json:"recordingId,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicsocialexpression) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicurireference.go b/build/platformclientv2/conversationeventtopicurireference.go deleted file mode 100644 index c86f6c5ce..000000000 --- a/build/platformclientv2/conversationeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicurireference -type Conversationeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicvideo.go b/build/platformclientv2/conversationeventtopicvideo.go deleted file mode 100644 index 059edf309..000000000 --- a/build/platformclientv2/conversationeventtopicvideo.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicvideo -type Conversationeventtopicvideo struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Conversationeventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // AudioMuted - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - VideoMuted *bool `json:"videoMuted,omitempty"` - - - // SharingScreen - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Msids - Msids *[]string `json:"msids,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicvideo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicvoicemail.go b/build/platformclientv2/conversationeventtopicvoicemail.go deleted file mode 100644 index 9f5b10e2e..000000000 --- a/build/platformclientv2/conversationeventtopicvoicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationeventtopicvoicemail -type Conversationeventtopicvoicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicvoicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationeventtopicwrapup.go b/build/platformclientv2/conversationeventtopicwrapup.go deleted file mode 100644 index 27451b702..000000000 --- a/build/platformclientv2/conversationeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationeventtopicwrapup -type Conversationeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicconversationroutingdata.go b/build/platformclientv2/conversationmessageeventtopicconversationroutingdata.go deleted file mode 100644 index c25fc1ea1..000000000 --- a/build/platformclientv2/conversationmessageeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicconversationroutingdata -type Conversationmessageeventtopicconversationroutingdata struct { - // Queue - Queue *Conversationmessageeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationmessageeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationmessageeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationmessageeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicdetail.go b/build/platformclientv2/conversationmessageeventtopicdetail.go deleted file mode 100644 index dd89f5e70..000000000 --- a/build/platformclientv2/conversationmessageeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicdetail -type Conversationmessageeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicerrorbody.go b/build/platformclientv2/conversationmessageeventtopicerrorbody.go deleted file mode 100644 index 4f951360b..000000000 --- a/build/platformclientv2/conversationmessageeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicerrorbody -type Conversationmessageeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationmessageeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationmessageeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicjourneyaction.go b/build/platformclientv2/conversationmessageeventtopicjourneyaction.go deleted file mode 100644 index 515001cde..000000000 --- a/build/platformclientv2/conversationmessageeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicjourneyaction -type Conversationmessageeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationmessageeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicjourneyactionmap.go b/build/platformclientv2/conversationmessageeventtopicjourneyactionmap.go deleted file mode 100644 index ae6d464ea..000000000 --- a/build/platformclientv2/conversationmessageeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicjourneyactionmap -type Conversationmessageeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicjourneycontext.go b/build/platformclientv2/conversationmessageeventtopicjourneycontext.go deleted file mode 100644 index 56f4872f0..000000000 --- a/build/platformclientv2/conversationmessageeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicjourneycontext -type Conversationmessageeventtopicjourneycontext struct { - // Customer - Customer *Conversationmessageeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationmessageeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationmessageeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicjourneycustomer.go b/build/platformclientv2/conversationmessageeventtopicjourneycustomer.go deleted file mode 100644 index 8d30edb8d..000000000 --- a/build/platformclientv2/conversationmessageeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicjourneycustomer -type Conversationmessageeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicjourneycustomersession.go b/build/platformclientv2/conversationmessageeventtopicjourneycustomersession.go deleted file mode 100644 index 71ee97f85..000000000 --- a/build/platformclientv2/conversationmessageeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicjourneycustomersession -type Conversationmessageeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicmessageconversation.go b/build/platformclientv2/conversationmessageeventtopicmessageconversation.go deleted file mode 100644 index 557d3576d..000000000 --- a/build/platformclientv2/conversationmessageeventtopicmessageconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicmessageconversation -type Conversationmessageeventtopicmessageconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationmessageeventtopicmessagemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicmessageconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicmessagedetails.go b/build/platformclientv2/conversationmessageeventtopicmessagedetails.go deleted file mode 100644 index 28044be43..000000000 --- a/build/platformclientv2/conversationmessageeventtopicmessagedetails.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationmessageeventtopicmessagedetails -type Conversationmessageeventtopicmessagedetails struct { - // Message - Message *Conversationmessageeventtopicurireference `json:"message,omitempty"` - - - // MessageTime - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // MessageSegmentCount - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // MessageStatus - MessageStatus *string `json:"messageStatus,omitempty"` - - - // Media - Media *[]Conversationmessageeventtopicmessagemedia `json:"media,omitempty"` - - - // Stickers - Stickers *[]Conversationmessageeventtopicmessagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicmessagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicmessagemedia.go b/build/platformclientv2/conversationmessageeventtopicmessagemedia.go deleted file mode 100644 index 21e0aa67d..000000000 --- a/build/platformclientv2/conversationmessageeventtopicmessagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicmessagemedia -type Conversationmessageeventtopicmessagemedia struct { - // Url - Url *string `json:"url,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicmessagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicmessagemediaparticipant.go b/build/platformclientv2/conversationmessageeventtopicmessagemediaparticipant.go deleted file mode 100644 index 0df5120c6..000000000 --- a/build/platformclientv2/conversationmessageeventtopicmessagemediaparticipant.go +++ /dev/null @@ -1,162 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationmessageeventtopicmessagemediaparticipant -type Conversationmessageeventtopicmessagemediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationmessageeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationmessageeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationmessageeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationmessageeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationmessageeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationmessageeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationmessageeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationmessageeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationmessageeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Messages - Messages *[]Conversationmessageeventtopicmessagedetails `json:"messages,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - RecipientType *string `json:"recipientType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicmessagemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicmessagesticker.go b/build/platformclientv2/conversationmessageeventtopicmessagesticker.go deleted file mode 100644 index aae29e682..000000000 --- a/build/platformclientv2/conversationmessageeventtopicmessagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicmessagesticker -type Conversationmessageeventtopicmessagesticker struct { - // Url - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicmessagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicscoredagent.go b/build/platformclientv2/conversationmessageeventtopicscoredagent.go deleted file mode 100644 index 62520f994..000000000 --- a/build/platformclientv2/conversationmessageeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicscoredagent -type Conversationmessageeventtopicscoredagent struct { - // Agent - Agent *Conversationmessageeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicurireference.go b/build/platformclientv2/conversationmessageeventtopicurireference.go deleted file mode 100644 index 013fcc108..000000000 --- a/build/platformclientv2/conversationmessageeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationmessageeventtopicurireference -type Conversationmessageeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationmessageeventtopicwrapup.go b/build/platformclientv2/conversationmessageeventtopicwrapup.go deleted file mode 100644 index a6124ecb8..000000000 --- a/build/platformclientv2/conversationmessageeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationmessageeventtopicwrapup -type Conversationmessageeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationmessageeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationproperties.go b/build/platformclientv2/conversationproperties.go deleted file mode 100644 index 431296cf9..000000000 --- a/build/platformclientv2/conversationproperties.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationproperties -type Conversationproperties struct { - // IsWaiting - Indicates filtering for waiting - IsWaiting *bool `json:"isWaiting,omitempty"` - - - // IsActive - Indicates filtering for active - IsActive *bool `json:"isActive,omitempty"` - - - // IsAcd - Indicates filtering for Acd - IsAcd *bool `json:"isAcd,omitempty"` - - - // IsPreferred - Indicates filtering for Preferred Agent Routing - IsPreferred *bool `json:"isPreferred,omitempty"` - - - // IsScreenshare - Indicates filtering for screenshare - IsScreenshare *bool `json:"isScreenshare,omitempty"` - - - // IsCobrowse - Indicates filtering for Cobrowse - IsCobrowse *bool `json:"isCobrowse,omitempty"` - - - // IsVoicemail - Indicates filtering for Voice mail - IsVoicemail *bool `json:"isVoicemail,omitempty"` - - - // IsFlagged - Indicates filtering for flagged - IsFlagged *bool `json:"isFlagged,omitempty"` - - - // IsMonitored - Indicates filtering for monitored - IsMonitored *bool `json:"isMonitored,omitempty"` - - - // FilterWrapUpNotes - Indicates filtering for WrapUpNotes - FilterWrapUpNotes *bool `json:"filterWrapUpNotes,omitempty"` - - - // MatchAll - Indicates comparison operation, TRUE indicates filters will use AND logic, FALSE indicates OR logic - MatchAll *bool `json:"matchAll,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationproperties) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationquery.go b/build/platformclientv2/conversationquery.go deleted file mode 100644 index b30b778cb..000000000 --- a/build/platformclientv2/conversationquery.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationquery -type Conversationquery struct { - // Interval - Specifies the date and time range of data being queried. Results will include conversations that both started on a day touched by the interval AND either started, ended, or any activity during the interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // ConversationFilters - Filters that target conversation-level data - ConversationFilters *[]Conversationdetailqueryfilter `json:"conversationFilters,omitempty"` - - - // SegmentFilters - Filters that target individual segments within a conversation - SegmentFilters *[]Segmentdetailqueryfilter `json:"segmentFilters,omitempty"` - - - // EvaluationFilters - Filters that target evaluations - EvaluationFilters *[]Evaluationdetailqueryfilter `json:"evaluationFilters,omitempty"` - - - // MediaEndpointStatFilters - Filters that target mediaEndpointStats - MediaEndpointStatFilters *[]Mediaendpointstatdetailqueryfilter `json:"mediaEndpointStatFilters,omitempty"` - - - // SurveyFilters - Filters that target surveys - SurveyFilters *[]Surveydetailqueryfilter `json:"surveyFilters,omitempty"` - - - // Order - Sort the result set in ascending/descending order. Default is ascending - Order *string `json:"order,omitempty"` - - - // OrderBy - Specify which data element within the result set to use for sorting. The options to use as a basis for sorting the results: conversationStart, segmentStart, and segmentEnd. If not specified, the default is conversationStart - OrderBy *string `json:"orderBy,omitempty"` - - - // Aggregations - Include faceted search and aggregate roll-ups describing your search results. This does not function as a filter, but rather, summary data about the data matching your filters - Aggregations *[]Analyticsqueryaggregation `json:"aggregations,omitempty"` - - - // Paging - Page size and number to control iterating through large result sets. Default page size is 25 - Paging *Pagingspec `json:"paging,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationroutingdata.go b/build/platformclientv2/conversationroutingdata.go deleted file mode 100644 index fc13ba686..000000000 --- a/build/platformclientv2/conversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationroutingdata -type Conversationroutingdata struct { - // Queue - The queue to use for routing decisions - Queue *Addressableentityref `json:"queue,omitempty"` - - - // Language - The language to use for routing decisions - Language *Addressableentityref `json:"language,omitempty"` - - - // Priority - The priority of the conversation to use for routing decisions - Priority *int32 `json:"priority,omitempty"` - - - // Skills - The skills to use for routing decisions - Skills *[]Addressableentityref `json:"skills,omitempty"` - - - // ScoredAgents - A collection of agents and their assigned scores for this conversation (0 - 100, higher being better), for use in routing to preferred agents - ScoredAgents *[]Scoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsapi.go b/build/platformclientv2/conversationsapi.go deleted file mode 100644 index 794b75405..000000000 --- a/build/platformclientv2/conversationsapi.go +++ /dev/null @@ -1,10014 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ConversationsApi provides functions for API endpoints -type ConversationsApi struct { - Configuration *Configuration -} - -// NewConversationsApi creates an API instance using the default configuration -func NewConversationsApi() *ConversationsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ConversationsApi with base path: %s", strings.ToLower(config.BasePath))) - return &ConversationsApi{ - Configuration: config, - } -} - -// NewConversationsApiWithConfig creates an API instance using the provided configuration -func NewConversationsApiWithConfig(config *Configuration) *ConversationsApi { - config.Debugf("Creating ConversationsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ConversationsApi{ - Configuration: config, - } -} - -// DeleteAnalyticsConversationsDetailsJob invokes DELETE /api/v2/analytics/conversations/details/jobs/{jobId} -// -// Delete/cancel an async request -// -// -func (a ConversationsApi) DeleteAnalyticsConversationsDetailsJob(jobId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return nil, errors.New("Missing required parameter 'jobId' when calling ConversationsApi->DeleteAnalyticsConversationsDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationParticipantCode invokes DELETE /api/v2/conversations/{conversationId}/participants/{participantId}/codes/{addCommunicationCode} -// -// Delete a code used to add a communication to this participant -// -// -func (a ConversationsApi) DeleteConversationParticipantCode(conversationId string, participantId string, addCommunicationCode string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/codes/{addCommunicationCode}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{addCommunicationCode}", fmt.Sprintf("%v", addCommunicationCode), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->DeleteConversationParticipantCode") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->DeleteConversationParticipantCode") - } - // verify the required parameter 'addCommunicationCode' is set - if &addCommunicationCode == nil { - // - return nil, errors.New("Missing required parameter 'addCommunicationCode' when calling ConversationsApi->DeleteConversationParticipantCode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationParticipantFlaggedreason invokes DELETE /api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason -// -// Remove flagged reason from conversation participant. -// -// -func (a ConversationsApi) DeleteConversationParticipantFlaggedreason(conversationId string, participantId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->DeleteConversationParticipantFlaggedreason") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->DeleteConversationParticipantFlaggedreason") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationsCallParticipantConsult invokes DELETE /api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult -// -// Cancel the transfer -// -// -func (a ConversationsApi) DeleteConversationsCallParticipantConsult(conversationId string, participantId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->DeleteConversationsCallParticipantConsult") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->DeleteConversationsCallParticipantConsult") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationsEmailMessagesDraftAttachment invokes DELETE /api/v2/conversations/emails/{conversationId}/messages/draft/attachments/{attachmentId} -// -// Delete attachment from draft -// -// -func (a ConversationsApi) DeleteConversationsEmailMessagesDraftAttachment(conversationId string, attachmentId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/{attachmentId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{attachmentId}", fmt.Sprintf("%v", attachmentId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->DeleteConversationsEmailMessagesDraftAttachment") - } - // verify the required parameter 'attachmentId' is set - if &attachmentId == nil { - // - return nil, errors.New("Missing required parameter 'attachmentId' when calling ConversationsApi->DeleteConversationsEmailMessagesDraftAttachment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationsMessagingIntegrationsFacebookIntegrationId invokes DELETE /api/v2/conversations/messaging/integrations/facebook/{integrationId} -// -// Delete a Facebook messaging integration -// -// -func (a ConversationsApi) DeleteConversationsMessagingIntegrationsFacebookIntegrationId(integrationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/facebook/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->DeleteConversationsMessagingIntegrationsFacebookIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationsMessagingIntegrationsLineIntegrationId invokes DELETE /api/v2/conversations/messaging/integrations/line/{integrationId} -// -// Delete a LINE messenger integration -// -// -func (a ConversationsApi) DeleteConversationsMessagingIntegrationsLineIntegrationId(integrationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/line/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->DeleteConversationsMessagingIntegrationsLineIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationsMessagingIntegrationsTwitterIntegrationId invokes DELETE /api/v2/conversations/messaging/integrations/twitter/{integrationId} -// -// Delete a Twitter messaging integration -// -// -func (a ConversationsApi) DeleteConversationsMessagingIntegrationsTwitterIntegrationId(integrationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/twitter/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->DeleteConversationsMessagingIntegrationsTwitterIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteConversationsMessagingIntegrationsWhatsappIntegrationId invokes DELETE /api/v2/conversations/messaging/integrations/whatsapp/{integrationId} -// -// Delete a WhatsApp messaging integration -// -// -func (a ConversationsApi) DeleteConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId string) (*Whatsappintegration, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Whatsappintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->DeleteConversationsMessagingIntegrationsWhatsappIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Whatsappintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationDetails invokes GET /api/v2/analytics/conversations/{conversationId}/details -// -// Get a conversation by id -// -// -func (a ConversationsApi) GetAnalyticsConversationDetails(conversationId string) (*Analyticsconversationwithoutattributes, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/{conversationId}/details" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Analyticsconversationwithoutattributes) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetAnalyticsConversationDetails") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsconversationwithoutattributes - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationsDetails invokes GET /api/v2/analytics/conversations/details -// -// Gets multiple conversations by id -// -// -func (a ConversationsApi) GetAnalyticsConversationsDetails(id []string) (*Analyticsconversationwithoutattributesmultigetresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details" - defaultReturn := new(Analyticsconversationwithoutattributesmultigetresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsconversationwithoutattributesmultigetresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationsDetailsJob invokes GET /api/v2/analytics/conversations/details/jobs/{jobId} -// -// Get status for async query for conversation details -// -// -func (a ConversationsApi) GetAnalyticsConversationsDetailsJob(jobId string) (*Asyncquerystatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Asyncquerystatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling ConversationsApi->GetAnalyticsConversationsDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Asyncquerystatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsConversationsDetailsJobResults invokes GET /api/v2/analytics/conversations/details/jobs/{jobId}/results -// -// Fetch a page of results for an async query -// -// -func (a ConversationsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsconversationasyncqueryresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}/results" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Analyticsconversationasyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling ConversationsApi->GetAnalyticsConversationsDetailsJobResults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsconversationasyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversation invokes GET /api/v2/conversations/{conversationId} -// -// Get conversation -// -// -func (a ConversationsApi) GetConversation(conversationId string) (*Conversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationParticipantSecureivrsession invokes GET /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions/{secureSessionId} -// -// Fetch info on a secure session -// -// -func (a ConversationsApi) GetConversationParticipantSecureivrsession(conversationId string, participantId string, secureSessionId string) (*Securesession, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions/{secureSessionId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{secureSessionId}", fmt.Sprintf("%v", secureSessionId), -1) - defaultReturn := new(Securesession) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationParticipantSecureivrsession") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationParticipantSecureivrsession") - } - // verify the required parameter 'secureSessionId' is set - if &secureSessionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'secureSessionId' when calling ConversationsApi->GetConversationParticipantSecureivrsession") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Securesession - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationParticipantSecureivrsessions invokes GET /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions -// -// Get a list of secure sessions for this participant. -// -// -func (a ConversationsApi) GetConversationParticipantSecureivrsessions(conversationId string, participantId string) (*Securesessionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Securesessionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationParticipantSecureivrsessions") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationParticipantSecureivrsessions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Securesessionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationParticipantWrapup invokes GET /api/v2/conversations/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationParticipantWrapupcodes invokes GET /api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversations invokes GET /api/v2/conversations -// -// Get active conversations for the logged in user -// -// -func (a ConversationsApi) GetConversations(communicationType string) (*Conversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations" - defaultReturn := new(Conversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["communicationType"] = a.Configuration.APIClient.ParameterToString(communicationType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Conversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCall invokes GET /api/v2/conversations/calls/{conversationId} -// -// Get call conversation -// -// -func (a ConversationsApi) GetConversationsCall(conversationId string) (*Callconversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Callconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCall") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallParticipantWrapup invokes GET /api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationsCallParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCallParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsCallParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallParticipantWrapupcodes invokes GET /api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationsCallParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCallParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsCallParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallback invokes GET /api/v2/conversations/callbacks/{conversationId} -// -// Get callback conversation -// -// -func (a ConversationsApi) GetConversationsCallback(conversationId string) (*Callbackconversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Callbackconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCallback") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callbackconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallbackParticipantWrapup invokes GET /api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationsCallbackParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCallbackParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsCallbackParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallbackParticipantWrapupcodes invokes GET /api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationsCallbackParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCallbackParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsCallbackParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallbacks invokes GET /api/v2/conversations/callbacks -// -// Get active callback conversations for the logged in user -// -// -func (a ConversationsApi) GetConversationsCallbacks() (*Callbackconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks" - defaultReturn := new(Callbackconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callbackconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCalls invokes GET /api/v2/conversations/calls -// -// Get active call conversations for the logged in user -// -// -func (a ConversationsApi) GetConversationsCalls() (*Callconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls" - defaultReturn := new(Callconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallsHistory invokes GET /api/v2/conversations/calls/history -// -// Get call history -// -// -func (a ConversationsApi) GetConversationsCallsHistory(pageSize int32, pageNumber int32, interval string, expand []string) (*Callhistoryconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/history" - defaultReturn := new(Callhistoryconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["interval"] = a.Configuration.APIClient.ParameterToString(interval, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callhistoryconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCallsMaximumconferenceparties invokes GET /api/v2/conversations/calls/maximumconferenceparties -// -// Get the maximum number of participants that this user can have on a conference -// -// -func (a ConversationsApi) GetConversationsCallsMaximumconferenceparties() (*Maxparticipants, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/maximumconferenceparties" - defaultReturn := new(Maxparticipants) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Maxparticipants - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsChat invokes GET /api/v2/conversations/chats/{conversationId} -// -// Get chat conversation -// -// -func (a ConversationsApi) GetConversationsChat(conversationId string) (*Chatconversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Chatconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsChat") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Chatconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsChatMessage invokes GET /api/v2/conversations/chats/{conversationId}/messages/{messageId} -// -// Get a web chat conversation message -// -// The current user must be involved with the conversation to get its messages. -func (a ConversationsApi) GetConversationsChatMessage(conversationId string, messageId string) (*Webchatmessage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/messages/{messageId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Webchatmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsChatMessage") - } - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling ConversationsApi->GetConversationsChatMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsChatMessages invokes GET /api/v2/conversations/chats/{conversationId}/messages -// -// Get the messages of a chat conversation. -// -// The current user must be involved with the conversation to get its messages. -func (a ConversationsApi) GetConversationsChatMessages(conversationId string, after string, before string, sortOrder string, maxResults int32) (*Webchatmessageentitylist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Webchatmessageentitylist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsChatMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["after"] = a.Configuration.APIClient.ParameterToString(after, collectionFormat) - - - - - collectionFormat = "" - queryParams["before"] = a.Configuration.APIClient.ParameterToString(before, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["maxResults"] = a.Configuration.APIClient.ParameterToString(maxResults, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatmessageentitylist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsChatParticipantWrapup invokes GET /api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationsChatParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsChatParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsChatParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsChatParticipantWrapupcodes invokes GET /api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationsChatParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsChatParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsChatParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsChats invokes GET /api/v2/conversations/chats -// -// Get active chat conversations for the logged in user -// -// -func (a ConversationsApi) GetConversationsChats() (*Chatconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats" - defaultReturn := new(Chatconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Chatconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCobrowsesession invokes GET /api/v2/conversations/cobrowsesessions/{conversationId} -// -// Get cobrowse conversation -// -// -func (a ConversationsApi) GetConversationsCobrowsesession(conversationId string) (*Cobrowseconversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Cobrowseconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCobrowsesession") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Cobrowseconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCobrowsesessionParticipantWrapup invokes GET /api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationsCobrowsesessionParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCobrowsesessionParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsCobrowsesessionParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCobrowsesessionParticipantWrapupcodes invokes GET /api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationsCobrowsesessionParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsCobrowsesessionParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsCobrowsesessionParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsCobrowsesessions invokes GET /api/v2/conversations/cobrowsesessions -// -// Get active cobrowse conversations for the logged in user -// -// -func (a ConversationsApi) GetConversationsCobrowsesessions() (*Cobrowseconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions" - defaultReturn := new(Cobrowseconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Cobrowseconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmail invokes GET /api/v2/conversations/emails/{conversationId} -// -// Get email conversation -// -// -func (a ConversationsApi) GetConversationsEmail(conversationId string) (*Emailconversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsEmail") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emailconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmailMessage invokes GET /api/v2/conversations/emails/{conversationId}/messages/{messageId} -// -// Get conversation message -// -// -func (a ConversationsApi) GetConversationsEmailMessage(conversationId string, messageId string) (*Emailmessage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages/{messageId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Emailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsEmailMessage") - } - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling ConversationsApi->GetConversationsEmailMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmailMessages invokes GET /api/v2/conversations/emails/{conversationId}/messages -// -// Get conversation messages -// -// -func (a ConversationsApi) GetConversationsEmailMessages(conversationId string) (*Emailmessagelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailmessagelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsEmailMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emailmessagelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmailMessagesDraft invokes GET /api/v2/conversations/emails/{conversationId}/messages/draft -// -// Get conversation draft reply -// -// -func (a ConversationsApi) GetConversationsEmailMessagesDraft(conversationId string) (*Emailmessage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages/draft" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsEmailMessagesDraft") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmailParticipantWrapup invokes GET /api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationsEmailParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsEmailParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsEmailParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmailParticipantWrapupcodes invokes GET /api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationsEmailParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsEmailParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsEmailParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsEmails invokes GET /api/v2/conversations/emails -// -// Get active email conversations for the logged in user -// -// -func (a ConversationsApi) GetConversationsEmails() (*Emailconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails" - defaultReturn := new(Emailconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emailconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessage invokes GET /api/v2/conversations/messages/{conversationId} -// -// Get message conversation -// -// -func (a ConversationsApi) GetConversationsMessage(conversationId string) (*Messageconversation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Messageconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messageconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessageCommunicationMessagesMediaMediaId invokes GET /api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/{mediaId} -// -// Get media -// -// -func (a ConversationsApi) GetConversationsMessageCommunicationMessagesMediaMediaId(conversationId string, communicationId string, mediaId string) (*Messagemediadata, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/{mediaId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - path = strings.Replace(path, "{mediaId}", fmt.Sprintf("%v", mediaId), -1) - defaultReturn := new(Messagemediadata) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsMessageCommunicationMessagesMediaMediaId") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->GetConversationsMessageCommunicationMessagesMediaMediaId") - } - // verify the required parameter 'mediaId' is set - if &mediaId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'mediaId' when calling ConversationsApi->GetConversationsMessageCommunicationMessagesMediaMediaId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messagemediadata - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessageMessage invokes GET /api/v2/conversations/messages/{conversationId}/messages/{messageId} -// -// Get message -// -// -func (a ConversationsApi) GetConversationsMessageMessage(conversationId string, messageId string) (*Messagedata, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/messages/{messageId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Messagedata) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsMessageMessage") - } - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling ConversationsApi->GetConversationsMessageMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messagedata - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessageParticipantWrapup invokes GET /api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup -// -// Get the wrap-up for this conversation participant. -// -// -func (a ConversationsApi) GetConversationsMessageParticipantWrapup(conversationId string, participantId string, provisional bool) (*Assignedwrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Assignedwrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsMessageParticipantWrapup") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsMessageParticipantWrapup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["provisional"] = a.Configuration.APIClient.ParameterToString(provisional, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Assignedwrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessageParticipantWrapupcodes invokes GET /api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapupcodes -// -// Get list of wrapup codes for this conversation participant -// -// -func (a ConversationsApi) GetConversationsMessageParticipantWrapupcodes(conversationId string, participantId string) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapupcodes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->GetConversationsMessageParticipantWrapupcodes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->GetConversationsMessageParticipantWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessages invokes GET /api/v2/conversations/messages -// -// Get active message conversations for the logged in user -// -// -func (a ConversationsApi) GetConversationsMessages() (*Messageconversationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages" - defaultReturn := new(Messageconversationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messageconversationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrations invokes GET /api/v2/conversations/messaging/integrations -// -// Get a list of Integrations -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrations(pageSize int32, pageNumber int32) (*Messagingintegrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations" - defaultReturn := new(Messagingintegrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messagingintegrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsFacebook invokes GET /api/v2/conversations/messaging/integrations/facebook -// -// Get a list of Facebook Integrations -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsFacebook(pageSize int32, pageNumber int32) (*Facebookintegrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/facebook" - defaultReturn := new(Facebookintegrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Facebookintegrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsFacebookIntegrationId invokes GET /api/v2/conversations/messaging/integrations/facebook/{integrationId} -// -// Get a Facebook messaging integration -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsFacebookIntegrationId(integrationId string) (*Facebookintegration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/facebook/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Facebookintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->GetConversationsMessagingIntegrationsFacebookIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Facebookintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsLine invokes GET /api/v2/conversations/messaging/integrations/line -// -// Get a list of LINE messenger Integrations -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsLine(pageSize int32, pageNumber int32) (*Lineintegrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/line" - defaultReturn := new(Lineintegrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Lineintegrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsLineIntegrationId invokes GET /api/v2/conversations/messaging/integrations/line/{integrationId} -// -// Get a LINE messenger integration -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsLineIntegrationId(integrationId string) (*Lineintegration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/line/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Lineintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->GetConversationsMessagingIntegrationsLineIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Lineintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsTwitter invokes GET /api/v2/conversations/messaging/integrations/twitter -// -// Get a list of Twitter Integrations -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsTwitter(pageSize int32, pageNumber int32) (*Twitterintegrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/twitter" - defaultReturn := new(Twitterintegrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Twitterintegrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsTwitterIntegrationId invokes GET /api/v2/conversations/messaging/integrations/twitter/{integrationId} -// -// Get a Twitter messaging integration -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsTwitterIntegrationId(integrationId string) (*Twitterintegration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/twitter/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Twitterintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->GetConversationsMessagingIntegrationsTwitterIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Twitterintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsWhatsapp invokes GET /api/v2/conversations/messaging/integrations/whatsapp -// -// Get a list of WhatsApp Integrations -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsWhatsapp(pageSize int32, pageNumber int32) (*Whatsappintegrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/whatsapp" - defaultReturn := new(Whatsappintegrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Whatsappintegrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingIntegrationsWhatsappIntegrationId invokes GET /api/v2/conversations/messaging/integrations/whatsapp/{integrationId} -// -// Get a WhatsApp messaging integration -// -// -func (a ConversationsApi) GetConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId string) (*Whatsappintegration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Whatsappintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->GetConversationsMessagingIntegrationsWhatsappIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Whatsappintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationsMessagingSticker invokes GET /api/v2/conversations/messaging/stickers/{messengerType} -// -// Get a list of Messaging Stickers -// -// -func (a ConversationsApi) GetConversationsMessagingSticker(messengerType string, pageSize int32, pageNumber int32) (*Messagingstickerentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/stickers/{messengerType}" - path = strings.Replace(path, "{messengerType}", fmt.Sprintf("%v", messengerType), -1) - defaultReturn := new(Messagingstickerentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messengerType' is set - if &messengerType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messengerType' when calling ConversationsApi->GetConversationsMessagingSticker") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messagingstickerentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationParticipant invokes PATCH /api/v2/conversations/{conversationId}/participants/{participantId} -// -// Update a participant. -// -// Update conversation participant. -func (a ConversationsApi) PatchConversationParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationParticipant") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationParticipantAttributes invokes PATCH /api/v2/conversations/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationParticipantAttributes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCall invokes PATCH /api/v2/conversations/calls/{conversationId} -// -// Update a conversation by setting it's recording state, merging in other conversations to create a conference, or disconnecting all of the participants -// -// -func (a ConversationsApi) PatchConversationsCall(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCall") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCall") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsCallParticipant invokes PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId} -// -// Update conversation participant -// -// -func (a ConversationsApi) PatchConversationsCallParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallParticipant") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCallParticipantAttributes invokes PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationsCallParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallParticipantAttributes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCallParticipantCommunication invokes PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId} -// -// Update conversation participant's communication by disconnecting it. -// -// -func (a ConversationsApi) PatchConversationsCallParticipantCommunication(conversationId string, participantId string, communicationId string, body Mediaparticipantrequest) (*Empty, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallParticipantCommunication") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallParticipantCommunication") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PatchConversationsCallParticipantCommunication") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallParticipantCommunication") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsCallParticipantConsult invokes PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult -// -// Change who can speak -// -// -func (a ConversationsApi) PatchConversationsCallParticipantConsult(conversationId string, participantId string, body Consulttransferupdate) (*Consulttransferresponse, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Consulttransferresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallParticipantConsult") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallParticipantConsult") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallParticipantConsult") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Consulttransferresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsCallback invokes PATCH /api/v2/conversations/callbacks/{conversationId} -// -// Update a conversation by disconnecting all of the participants -// -// -func (a ConversationsApi) PatchConversationsCallback(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallback") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallback") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsCallbackParticipant invokes PATCH /api/v2/conversations/callbacks/{conversationId}/participants/{participantId} -// -// Update conversation participant -// -// -func (a ConversationsApi) PatchConversationsCallbackParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallbackParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallbackParticipant") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallbackParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCallbackParticipantAttributes invokes PATCH /api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationsCallbackParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallbackParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallbackParticipantAttributes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallbackParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCallbackParticipantCommunication invokes PATCH /api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId} -// -// Update conversation participant's communication by disconnecting it. -// -// -func (a ConversationsApi) PatchConversationsCallbackParticipantCommunication(conversationId string, participantId string, communicationId string, body Mediaparticipantrequest) (*Empty, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCallbackParticipantCommunication") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCallbackParticipantCommunication") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PatchConversationsCallbackParticipantCommunication") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCallbackParticipantCommunication") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsChat invokes PATCH /api/v2/conversations/chats/{conversationId} -// -// Update a conversation by disconnecting all of the participants -// -// -func (a ConversationsApi) PatchConversationsChat(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsChat") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsChat") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsChatParticipant invokes PATCH /api/v2/conversations/chats/{conversationId}/participants/{participantId} -// -// Update conversation participant -// -// -func (a ConversationsApi) PatchConversationsChatParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsChatParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsChatParticipant") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsChatParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsChatParticipantAttributes invokes PATCH /api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationsChatParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsChatParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsChatParticipantAttributes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsChatParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsChatParticipantCommunication invokes PATCH /api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId} -// -// Update conversation participant's communication by disconnecting it. -// -// -func (a ConversationsApi) PatchConversationsChatParticipantCommunication(conversationId string, participantId string, communicationId string, body Mediaparticipantrequest) (*Empty, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsChatParticipantCommunication") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsChatParticipantCommunication") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PatchConversationsChatParticipantCommunication") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsChatParticipantCommunication") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsCobrowsesession invokes PATCH /api/v2/conversations/cobrowsesessions/{conversationId} -// -// Update a conversation by disconnecting all of the participants -// -// -func (a ConversationsApi) PatchConversationsCobrowsesession(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCobrowsesession") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCobrowsesession") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsCobrowsesessionParticipant invokes PATCH /api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId} -// -// Update conversation participant -// -// -func (a ConversationsApi) PatchConversationsCobrowsesessionParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCobrowsesessionParticipantAttributes invokes PATCH /api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationsCobrowsesessionParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsCobrowsesessionParticipantCommunication invokes PATCH /api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId} -// -// Update conversation participant's communication by disconnecting it. -// -// -func (a ConversationsApi) PatchConversationsCobrowsesessionParticipantCommunication(conversationId string, participantId string, communicationId string, body Mediaparticipantrequest) (*Empty, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipantCommunication") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipantCommunication") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipantCommunication") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsCobrowsesessionParticipantCommunication") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsEmail invokes PATCH /api/v2/conversations/emails/{conversationId} -// -// Update a conversation by disconnecting all of the participants -// -// -func (a ConversationsApi) PatchConversationsEmail(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsEmail") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsEmail") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsEmailParticipant invokes PATCH /api/v2/conversations/emails/{conversationId}/participants/{participantId} -// -// Update conversation participant -// -// -func (a ConversationsApi) PatchConversationsEmailParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsEmailParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsEmailParticipant") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsEmailParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsEmailParticipantAttributes invokes PATCH /api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationsEmailParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsEmailParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsEmailParticipantAttributes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsEmailParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsEmailParticipantCommunication invokes PATCH /api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId} -// -// Update conversation participant's communication by disconnecting it. -// -// -func (a ConversationsApi) PatchConversationsEmailParticipantCommunication(conversationId string, participantId string, communicationId string, body Mediaparticipantrequest) (*Empty, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsEmailParticipantCommunication") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsEmailParticipantCommunication") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PatchConversationsEmailParticipantCommunication") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsEmailParticipantCommunication") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsMessage invokes PATCH /api/v2/conversations/messages/{conversationId} -// -// Update a conversation by disconnecting all of the participants -// -// -func (a ConversationsApi) PatchConversationsMessage(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsMessage") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsMessageParticipant invokes PATCH /api/v2/conversations/messages/{conversationId}/participants/{participantId} -// -// Update conversation participant -// -// -func (a ConversationsApi) PatchConversationsMessageParticipant(conversationId string, participantId string, body Mediaparticipantrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/participants/{participantId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsMessageParticipant") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsMessageParticipant") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsMessageParticipantAttributes invokes PATCH /api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes -// -// Update the attributes on a conversation participant. -// -// -func (a ConversationsApi) PatchConversationsMessageParticipantAttributes(conversationId string, participantId string, body Participantattributes) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsMessageParticipantAttributes") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsMessageParticipantAttributes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchConversationsMessageParticipantCommunication invokes PATCH /api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId} -// -// Update conversation participant's communication by disconnecting it. -// -// -func (a ConversationsApi) PatchConversationsMessageParticipantCommunication(conversationId string, participantId string, communicationId string, body Mediaparticipantrequest) (*Empty, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PatchConversationsMessageParticipantCommunication") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PatchConversationsMessageParticipantCommunication") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PatchConversationsMessageParticipantCommunication") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsMessageParticipantCommunication") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchConversationsMessagingIntegrationsWhatsappIntegrationId invokes PATCH /api/v2/conversations/messaging/integrations/whatsapp/{integrationId} -// -// Activate a WhatsApp messaging integration. -// -// The following steps are required in order to fully activate a Whatsapp Integration: Initially, you will need to get an activation code by sending: an action set to Activate, and an authenticationMethod choosing from Sms or Voice. Finally, once you have been informed of an activation code on selected authenticationMethod, you will need to confirm the code by sending: an action set to Confirm, and the confirmationCode you have received from Whatsapp. -func (a ConversationsApi) PatchConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId string, body Whatsappintegrationupdaterequest) (*Whatsappintegration, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Whatsappintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->PatchConversationsMessagingIntegrationsWhatsappIntegrationId") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PatchConversationsMessagingIntegrationsWhatsappIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Whatsappintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationDetailsProperties invokes POST /api/v2/analytics/conversations/{conversationId}/details/properties -// -// Index conversation properties -// -// -func (a ConversationsApi) PostAnalyticsConversationDetailsProperties(conversationId string, body Propertyindexrequest) (*Propertyindexrequest, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/{conversationId}/details/properties" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Propertyindexrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostAnalyticsConversationDetailsProperties") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostAnalyticsConversationDetailsProperties") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Propertyindexrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationsAggregatesQuery invokes POST /api/v2/analytics/conversations/aggregates/query -// -// Query for conversation aggregates -// -// -func (a ConversationsApi) PostAnalyticsConversationsAggregatesQuery(body Conversationaggregationquery) (*Conversationaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/aggregates/query" - defaultReturn := new(Conversationaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostAnalyticsConversationsAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversationaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationsDetailsJobs invokes POST /api/v2/analytics/conversations/details/jobs -// -// Query for conversation details asynchronously -// -// -func (a ConversationsApi) PostAnalyticsConversationsDetailsJobs(body Asyncconversationquery) (*Asyncqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs" - defaultReturn := new(Asyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostAnalyticsConversationsDetailsJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsConversationsDetailsQuery invokes POST /api/v2/analytics/conversations/details/query -// -// Query for conversation details -// -// -func (a ConversationsApi) PostAnalyticsConversationsDetailsQuery(body Conversationquery) (*Analyticsconversationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/query" - defaultReturn := new(Analyticsconversationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostAnalyticsConversationsDetailsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Analyticsconversationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationDisconnect invokes POST /api/v2/conversations/{conversationId}/disconnect -// -// Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resyncronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation. -// -// -func (a ConversationsApi) PostConversationDisconnect(conversationId string) (*string, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/disconnect" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationDisconnect") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationParticipantCallbacks invokes POST /api/v2/conversations/{conversationId}/participants/{participantId}/callbacks -// -// Create a new callback for the specified participant on the conversation. -// -// -func (a ConversationsApi) PostConversationParticipantCallbacks(conversationId string, participantId string, body Createcallbackonconversationcommand) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationParticipantCallbacks") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationParticipantCallbacks") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationParticipantDigits invokes POST /api/v2/conversations/{conversationId}/participants/{participantId}/digits -// -// Sends DTMF to the participant -// -// -func (a ConversationsApi) PostConversationParticipantDigits(conversationId string, participantId string, body Digits) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/digits" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationParticipantDigits") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationParticipantDigits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationParticipantReplace invokes POST /api/v2/conversations/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationParticipantReplace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationParticipantSecureivrsessions invokes POST /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions -// -// Create secure IVR session. Only a participant in the conversation can invoke a secure IVR. -// -// -func (a ConversationsApi) PostConversationParticipantSecureivrsessions(conversationId string, participantId string, body Createsecuresession) (*Securesession, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Securesession) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationParticipantSecureivrsessions") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationParticipantSecureivrsessions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Securesession - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsCall invokes POST /api/v2/conversations/calls/{conversationId} -// -// Place a new call as part of a callback conversation. -// -// -func (a ConversationsApi) PostConversationsCall(conversationId string, body Callcommand) (*Conversation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCall") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCall") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsCallParticipantConsult invokes POST /api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult -// -// Initiate and update consult transfer -// -// -func (a ConversationsApi) PostConversationsCallParticipantConsult(conversationId string, participantId string, body Consulttransfer) (*Consulttransferresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - defaultReturn := new(Consulttransferresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCallParticipantConsult") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsCallParticipantConsult") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCallParticipantConsult") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Consulttransferresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsCallParticipantMonitor invokes POST /api/v2/conversations/calls/{conversationId}/participants/{participantId}/monitor -// -// Listen in on the conversation from the point of view of a given participant. -// -// -func (a ConversationsApi) PostConversationsCallParticipantMonitor(conversationId string, participantId string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/monitor" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCallParticipantMonitor") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsCallParticipantMonitor") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsCallParticipantReplace invokes POST /api/v2/conversations/calls/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationsCallParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCallParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsCallParticipantReplace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCallParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsCallParticipants invokes POST /api/v2/conversations/calls/{conversationId}/participants -// -// Add participants to a conversation -// -// -func (a ConversationsApi) PostConversationsCallParticipants(conversationId string, body Conversation) (*Conversation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Conversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCallParticipants") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCallParticipants") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Conversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsCallbackParticipantReplace invokes POST /api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationsCallbackParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCallbackParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsCallbackParticipantReplace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCallbackParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsCallbacks invokes POST /api/v2/conversations/callbacks -// -// Create a Callback -// -// -func (a ConversationsApi) PostConversationsCallbacks(body Createcallbackcommand) (*Createcallbackresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/callbacks" - defaultReturn := new(Createcallbackresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCallbacks") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Createcallbackresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsCalls invokes POST /api/v2/conversations/calls -// -// Create a call conversation -// -// -func (a ConversationsApi) PostConversationsCalls(body Createcallrequest) (*Createcallresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls" - defaultReturn := new(Createcallresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsCalls") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Createcallresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsChatCommunicationMessages invokes POST /api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages -// -// Send a message on behalf of a communication in a chat conversation. -// -// -func (a ConversationsApi) PostConversationsChatCommunicationMessages(conversationId string, communicationId string, body Createwebchatmessagerequest) (*Webchatmessage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Webchatmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsChatCommunicationMessages") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PostConversationsChatCommunicationMessages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsChatCommunicationMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Webchatmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsChatCommunicationTyping invokes POST /api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing -// -// Send a typing-indicator on behalf of a communication in a chat conversation. -// -// -func (a ConversationsApi) PostConversationsChatCommunicationTyping(conversationId string, communicationId string) (*Webchattyping, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Webchattyping) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsChatCommunicationTyping") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PostConversationsChatCommunicationTyping") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchattyping - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsChatParticipantReplace invokes POST /api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationsChatParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsChatParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsChatParticipantReplace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsChatParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsChats invokes POST /api/v2/conversations/chats -// -// Create a web chat conversation -// -// -func (a ConversationsApi) PostConversationsChats(body Createwebchatrequest) (*Chatconversation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/chats" - defaultReturn := new(Chatconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsChats") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Chatconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsCobrowsesessionParticipantReplace invokes POST /api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationsCobrowsesessionParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsCobrowsesessionParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsCobrowsesessionParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsEmailInboundmessages invokes POST /api/v2/conversations/emails/{conversationId}/inboundmessages -// -// Send an email to an external conversation. An external conversation is one where the provider is not PureCloud based. This endpoint allows the sender of the external email to reply or send a new message to the existing conversation. The new message will be treated as part of the existing conversation and chained to it. -// -// -func (a ConversationsApi) PostConversationsEmailInboundmessages(conversationId string, body Inboundmessagerequest) (*Emailconversation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/inboundmessages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsEmailInboundmessages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsEmailInboundmessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emailconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsEmailMessages invokes POST /api/v2/conversations/emails/{conversationId}/messages -// -// Send an email reply -// -// -func (a ConversationsApi) PostConversationsEmailMessages(conversationId string, body Emailmessage) (*Emailmessage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsEmailMessages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsEmailMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsEmailMessagesDraftAttachmentsCopy invokes POST /api/v2/conversations/emails/{conversationId}/messages/draft/attachments/copy -// -// Copy attachments from an email message to the current draft. -// -// -func (a ConversationsApi) PostConversationsEmailMessagesDraftAttachmentsCopy(conversationId string, body Copyattachmentsrequest) (*Emailmessage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/copy" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsEmailMessagesDraftAttachmentsCopy") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsEmailMessagesDraftAttachmentsCopy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsEmailParticipantReplace invokes POST /api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationsEmailParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsEmailParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsEmailParticipantReplace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsEmailParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsEmails invokes POST /api/v2/conversations/emails -// -// Create an email conversation -// -// If the direction of the request is INBOUND, this will create an external conversation with a third party provider. If the direction of the the request is OUTBOUND, this will create a conversation to send outbound emails on behalf of a queue. -func (a ConversationsApi) PostConversationsEmails(body Createemailrequest) (*Emailconversation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails" - defaultReturn := new(Emailconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsEmails") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emailconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsFaxes invokes POST /api/v2/conversations/faxes -// -// Create Fax Conversation -// -// -func (a ConversationsApi) PostConversationsFaxes(body Faxsendrequest) (*Faxsendresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/faxes" - defaultReturn := new(Faxsendresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsFaxes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Faxsendresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessageCommunicationMessages invokes POST /api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages -// -// Send message -// -// -func (a ConversationsApi) PostConversationsMessageCommunicationMessages(conversationId string, communicationId string, body Additionalmessage) (*Messagedata, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Messagedata) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsMessageCommunicationMessages") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PostConversationsMessageCommunicationMessages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessageCommunicationMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Messagedata - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessageCommunicationMessagesMedia invokes POST /api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media -// -// Create media -// -// -func (a ConversationsApi) PostConversationsMessageCommunicationMessagesMedia(conversationId string, communicationId string) (*Messagemediadata, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Messagemediadata) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsMessageCommunicationMessagesMedia") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PostConversationsMessageCommunicationMessagesMedia") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messagemediadata - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessageMessagesBulk invokes POST /api/v2/conversations/messages/{conversationId}/messages/bulk -// -// Get messages in batch -// -// The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: [\"a3069a33b-bbb1-4703-9d68-061d9e9db96e\", \"55bc6be3-078c-4a49-a4e6-1e05776ed7e8\"] -func (a ConversationsApi) PostConversationsMessageMessagesBulk(conversationId string, body []string) (*Textmessagelisting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/messages/bulk" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Textmessagelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsMessageMessagesBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Textmessagelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessageParticipantReplace invokes POST /api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace -// -// Replace this participant with the specified user and/or address -// -// -func (a ConversationsApi) PostConversationsMessageParticipantReplace(conversationId string, participantId string, body Transferrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PostConversationsMessageParticipantReplace") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PostConversationsMessageParticipantReplace") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessageParticipantReplace") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationsMessages invokes POST /api/v2/conversations/messages -// -// Create an outbound messaging conversation. -// -// If there is an existing conversation between the remote address and the address associated with the queue specified in createOutboundRequest then the result of this request depends on the state of that conversation and the useExistingConversation field of createOutboundRequest. If the existing conversation is in alerting or connected state, then the request will fail. If the existing conversation is disconnected but still within the conversation window then the request will fail unless useExistingConversation is set to true. -func (a ConversationsApi) PostConversationsMessages(body Createoutboundmessagingconversationrequest) (*Messageconversation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages" - defaultReturn := new(Messageconversation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Messageconversation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessagesAgentless invokes POST /api/v2/conversations/messages/agentless -// -// Send an agentless outbound message -// -// Send an agentlesss (api participant) outbound message using a client credential grant. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will generate a new Conversation, if there is an existing active Conversation between the fromAddress and toAddress already, then this POST will fail. -func (a ConversationsApi) PostConversationsMessagesAgentless(body Sendagentlessoutboundmessagerequest) (*Sendagentlessoutboundmessageresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messages/agentless" - defaultReturn := new(Sendagentlessoutboundmessageresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessagesAgentless") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Sendagentlessoutboundmessageresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessagingIntegrationsFacebook invokes POST /api/v2/conversations/messaging/integrations/facebook -// -// Create a Facebook Integration -// -// -func (a ConversationsApi) PostConversationsMessagingIntegrationsFacebook(body Facebookintegrationrequest) (*Facebookintegration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/facebook" - defaultReturn := new(Facebookintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessagingIntegrationsFacebook") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Facebookintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessagingIntegrationsLine invokes POST /api/v2/conversations/messaging/integrations/line -// -// Create a LINE messenger Integration -// -// -func (a ConversationsApi) PostConversationsMessagingIntegrationsLine(body Lineintegrationrequest) (*Lineintegration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/line" - defaultReturn := new(Lineintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessagingIntegrationsLine") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Lineintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessagingIntegrationsTwitter invokes POST /api/v2/conversations/messaging/integrations/twitter -// -// Create a Twitter Integration -// -// -func (a ConversationsApi) PostConversationsMessagingIntegrationsTwitter(body Twitterintegrationrequest) (*Twitterintegration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/twitter" - defaultReturn := new(Twitterintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessagingIntegrationsTwitter") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Twitterintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostConversationsMessagingIntegrationsWhatsapp invokes POST /api/v2/conversations/messaging/integrations/whatsapp -// -// Create a WhatsApp Integration -// -// -func (a ConversationsApi) PostConversationsMessagingIntegrationsWhatsapp(body Whatsappintegrationrequest) (*Whatsappintegration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/whatsapp" - defaultReturn := new(Whatsappintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PostConversationsMessagingIntegrationsWhatsapp") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Whatsappintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutConversationParticipantFlaggedreason invokes PUT /api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason -// -// Set flagged reason on conversation participant to indicate bad conversation quality. -// -// -func (a ConversationsApi) PutConversationParticipantFlaggedreason(conversationId string, participantId string) (*APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PutConversationParticipantFlaggedreason") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PutConversationParticipantFlaggedreason") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PutConversationsCallParticipantCommunicationUuidata invokes PUT /api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/uuidata -// -// Set uuiData to be sent on future commands. -// -// -func (a ConversationsApi) PutConversationsCallParticipantCommunicationUuidata(conversationId string, participantId string, communicationId string, body Setuuidatarequest) (*Empty, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/uuidata" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{participantId}", fmt.Sprintf("%v", participantId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PutConversationsCallParticipantCommunicationUuidata") - } - // verify the required parameter 'participantId' is set - if &participantId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'participantId' when calling ConversationsApi->PutConversationsCallParticipantCommunicationUuidata") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling ConversationsApi->PutConversationsCallParticipantCommunicationUuidata") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PutConversationsCallParticipantCommunicationUuidata") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutConversationsEmailMessagesDraft invokes PUT /api/v2/conversations/emails/{conversationId}/messages/draft -// -// Update conversation draft reply -// -// -func (a ConversationsApi) PutConversationsEmailMessagesDraft(conversationId string, body Emailmessage) (*Emailmessage, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/emails/{conversationId}/messages/draft" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Emailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling ConversationsApi->PutConversationsEmailMessagesDraft") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PutConversationsEmailMessagesDraft") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Emailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutConversationsMessagingIntegrationsLineIntegrationId invokes PUT /api/v2/conversations/messaging/integrations/line/{integrationId} -// -// Update a LINE messenger integration -// -// -func (a ConversationsApi) PutConversationsMessagingIntegrationsLineIntegrationId(integrationId string, body Lineintegrationrequest) (*Lineintegration, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/messaging/integrations/line/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Lineintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling ConversationsApi->PutConversationsMessagingIntegrationsLineIntegrationId") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ConversationsApi->PutConversationsMessagingIntegrationsLineIntegrationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Lineintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/conversationscreenshareeventtopicconversationroutingdata.go b/build/platformclientv2/conversationscreenshareeventtopicconversationroutingdata.go deleted file mode 100644 index f8bc3cc8a..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicconversationroutingdata -type Conversationscreenshareeventtopicconversationroutingdata struct { - // Queue - Queue *Conversationscreenshareeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationscreenshareeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationscreenshareeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationscreenshareeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicdetail.go b/build/platformclientv2/conversationscreenshareeventtopicdetail.go deleted file mode 100644 index 05990733b..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicdetail -type Conversationscreenshareeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicerrorbody.go b/build/platformclientv2/conversationscreenshareeventtopicerrorbody.go deleted file mode 100644 index b56ed55b0..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicerrorbody -type Conversationscreenshareeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationscreenshareeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationscreenshareeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicjourneyaction.go b/build/platformclientv2/conversationscreenshareeventtopicjourneyaction.go deleted file mode 100644 index 9cccebed9..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicjourneyaction -type Conversationscreenshareeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationscreenshareeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicjourneyactionmap.go b/build/platformclientv2/conversationscreenshareeventtopicjourneyactionmap.go deleted file mode 100644 index 430fb05bd..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicjourneyactionmap -type Conversationscreenshareeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicjourneycontext.go b/build/platformclientv2/conversationscreenshareeventtopicjourneycontext.go deleted file mode 100644 index becf15614..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicjourneycontext -type Conversationscreenshareeventtopicjourneycontext struct { - // Customer - Customer *Conversationscreenshareeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationscreenshareeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationscreenshareeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicjourneycustomer.go b/build/platformclientv2/conversationscreenshareeventtopicjourneycustomer.go deleted file mode 100644 index 2333b85d5..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicjourneycustomer -type Conversationscreenshareeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicjourneycustomersession.go b/build/platformclientv2/conversationscreenshareeventtopicjourneycustomersession.go deleted file mode 100644 index 9cf8a3991..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicjourneycustomersession -type Conversationscreenshareeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicscoredagent.go b/build/platformclientv2/conversationscreenshareeventtopicscoredagent.go deleted file mode 100644 index e6a331214..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicscoredagent -type Conversationscreenshareeventtopicscoredagent struct { - // Agent - Agent *Conversationscreenshareeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicscreenshareconversation.go b/build/platformclientv2/conversationscreenshareeventtopicscreenshareconversation.go deleted file mode 100644 index 82a28d1b5..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicscreenshareconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicscreenshareconversation -type Conversationscreenshareeventtopicscreenshareconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationscreenshareeventtopicscreensharemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicscreenshareconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicscreensharemediaparticipant.go b/build/platformclientv2/conversationscreenshareeventtopicscreensharemediaparticipant.go deleted file mode 100644 index fa4655ad8..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicscreensharemediaparticipant.go +++ /dev/null @@ -1,158 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationscreenshareeventtopicscreensharemediaparticipant -type Conversationscreenshareeventtopicscreensharemediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationscreenshareeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationscreenshareeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationscreenshareeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationscreenshareeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationscreenshareeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationscreenshareeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationscreenshareeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationscreenshareeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationscreenshareeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // PeerCount - PeerCount *int32 `json:"peerCount,omitempty"` - - - // Sharing - Sharing *bool `json:"sharing,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicscreensharemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicurireference.go b/build/platformclientv2/conversationscreenshareeventtopicurireference.go deleted file mode 100644 index 90d9af2c4..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationscreenshareeventtopicurireference -type Conversationscreenshareeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationscreenshareeventtopicwrapup.go b/build/platformclientv2/conversationscreenshareeventtopicwrapup.go deleted file mode 100644 index 849441d46..000000000 --- a/build/platformclientv2/conversationscreenshareeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationscreenshareeventtopicwrapup -type Conversationscreenshareeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationscreenshareeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicconversationroutingdata.go b/build/platformclientv2/conversationsocialexpressioneventtopicconversationroutingdata.go deleted file mode 100644 index ece79d448..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicconversationroutingdata -type Conversationsocialexpressioneventtopicconversationroutingdata struct { - // Queue - Queue *Conversationsocialexpressioneventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationsocialexpressioneventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationsocialexpressioneventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationsocialexpressioneventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicdetail.go b/build/platformclientv2/conversationsocialexpressioneventtopicdetail.go deleted file mode 100644 index 58b511f8c..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicdetail -type Conversationsocialexpressioneventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicerrorbody.go b/build/platformclientv2/conversationsocialexpressioneventtopicerrorbody.go deleted file mode 100644 index 9293c3f6d..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicerrorbody -type Conversationsocialexpressioneventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationsocialexpressioneventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationsocialexpressioneventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicjourneyaction.go b/build/platformclientv2/conversationsocialexpressioneventtopicjourneyaction.go deleted file mode 100644 index 1d74224f2..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicjourneyaction -type Conversationsocialexpressioneventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationsocialexpressioneventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicjourneyactionmap.go b/build/platformclientv2/conversationsocialexpressioneventtopicjourneyactionmap.go deleted file mode 100644 index e9009d67d..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicjourneyactionmap -type Conversationsocialexpressioneventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicjourneycontext.go b/build/platformclientv2/conversationsocialexpressioneventtopicjourneycontext.go deleted file mode 100644 index c4e676383..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicjourneycontext -type Conversationsocialexpressioneventtopicjourneycontext struct { - // Customer - Customer *Conversationsocialexpressioneventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationsocialexpressioneventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationsocialexpressioneventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomer.go b/build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomer.go deleted file mode 100644 index 6d7b038e1..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicjourneycustomer -type Conversationsocialexpressioneventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomersession.go b/build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomersession.go deleted file mode 100644 index 8c9faab05..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicjourneycustomersession -type Conversationsocialexpressioneventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicscoredagent.go b/build/platformclientv2/conversationsocialexpressioneventtopicscoredagent.go deleted file mode 100644 index 3d817e5e9..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicscoredagent -type Conversationsocialexpressioneventtopicscoredagent struct { - // Agent - Agent *Conversationsocialexpressioneventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicsocialconversation.go b/build/platformclientv2/conversationsocialexpressioneventtopicsocialconversation.go deleted file mode 100644 index 22ce884c6..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicsocialconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicsocialconversation -type Conversationsocialexpressioneventtopicsocialconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationsocialexpressioneventtopicsocialmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicsocialconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicsocialmediaparticipant.go b/build/platformclientv2/conversationsocialexpressioneventtopicsocialmediaparticipant.go deleted file mode 100644 index 2b60349ed..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicsocialmediaparticipant.go +++ /dev/null @@ -1,162 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationsocialexpressioneventtopicsocialmediaparticipant -type Conversationsocialexpressioneventtopicsocialmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationsocialexpressioneventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationsocialexpressioneventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationsocialexpressioneventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationsocialexpressioneventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationsocialexpressioneventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationsocialexpressioneventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationsocialexpressioneventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationsocialexpressioneventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationsocialexpressioneventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // SocialMediaId - SocialMediaId *string `json:"socialMediaId,omitempty"` - - - // SocialMediaHub - SocialMediaHub *string `json:"socialMediaHub,omitempty"` - - - // SocialUserName - SocialUserName *string `json:"socialUserName,omitempty"` - - - // PreviewText - PreviewText *string `json:"previewText,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicsocialmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicurireference.go b/build/platformclientv2/conversationsocialexpressioneventtopicurireference.go deleted file mode 100644 index 8ba2537ae..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationsocialexpressioneventtopicurireference -type Conversationsocialexpressioneventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationsocialexpressioneventtopicwrapup.go b/build/platformclientv2/conversationsocialexpressioneventtopicwrapup.go deleted file mode 100644 index 860968de3..000000000 --- a/build/platformclientv2/conversationsocialexpressioneventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationsocialexpressioneventtopicwrapup -type Conversationsocialexpressioneventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationsocialexpressioneventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicconversationroutingdata.go b/build/platformclientv2/conversationvideoeventtopicconversationroutingdata.go deleted file mode 100644 index e9d2b9c1c..000000000 --- a/build/platformclientv2/conversationvideoeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicconversationroutingdata -type Conversationvideoeventtopicconversationroutingdata struct { - // Queue - Queue *Conversationvideoeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Conversationvideoeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Conversationvideoeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Conversationvideoeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicdetail.go b/build/platformclientv2/conversationvideoeventtopicdetail.go deleted file mode 100644 index f4203397c..000000000 --- a/build/platformclientv2/conversationvideoeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicdetail -type Conversationvideoeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicerrorbody.go b/build/platformclientv2/conversationvideoeventtopicerrorbody.go deleted file mode 100644 index 9f5c95f62..000000000 --- a/build/platformclientv2/conversationvideoeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicerrorbody -type Conversationvideoeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Conversationvideoeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Conversationvideoeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicjourneyaction.go b/build/platformclientv2/conversationvideoeventtopicjourneyaction.go deleted file mode 100644 index dafaf9973..000000000 --- a/build/platformclientv2/conversationvideoeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicjourneyaction -type Conversationvideoeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Conversationvideoeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicjourneyactionmap.go b/build/platformclientv2/conversationvideoeventtopicjourneyactionmap.go deleted file mode 100644 index 9a76c6b18..000000000 --- a/build/platformclientv2/conversationvideoeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicjourneyactionmap -type Conversationvideoeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicjourneycontext.go b/build/platformclientv2/conversationvideoeventtopicjourneycontext.go deleted file mode 100644 index e47ae1aa1..000000000 --- a/build/platformclientv2/conversationvideoeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicjourneycontext -type Conversationvideoeventtopicjourneycontext struct { - // Customer - Customer *Conversationvideoeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Conversationvideoeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Conversationvideoeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicjourneycustomer.go b/build/platformclientv2/conversationvideoeventtopicjourneycustomer.go deleted file mode 100644 index 4f40af35c..000000000 --- a/build/platformclientv2/conversationvideoeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicjourneycustomer -type Conversationvideoeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicjourneycustomersession.go b/build/platformclientv2/conversationvideoeventtopicjourneycustomersession.go deleted file mode 100644 index f4fda2bc6..000000000 --- a/build/platformclientv2/conversationvideoeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicjourneycustomersession -type Conversationvideoeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicscoredagent.go b/build/platformclientv2/conversationvideoeventtopicscoredagent.go deleted file mode 100644 index 993b98662..000000000 --- a/build/platformclientv2/conversationvideoeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicscoredagent -type Conversationvideoeventtopicscoredagent struct { - // Agent - Agent *Conversationvideoeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicurireference.go b/build/platformclientv2/conversationvideoeventtopicurireference.go deleted file mode 100644 index a66718ee7..000000000 --- a/build/platformclientv2/conversationvideoeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicurireference -type Conversationvideoeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicvideoconversation.go b/build/platformclientv2/conversationvideoeventtopicvideoconversation.go deleted file mode 100644 index 697134e39..000000000 --- a/build/platformclientv2/conversationvideoeventtopicvideoconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Conversationvideoeventtopicvideoconversation -type Conversationvideoeventtopicvideoconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Conversationvideoeventtopicvideomediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicvideoconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicvideomediaparticipant.go b/build/platformclientv2/conversationvideoeventtopicvideomediaparticipant.go deleted file mode 100644 index a8eaa926c..000000000 --- a/build/platformclientv2/conversationvideoeventtopicvideomediaparticipant.go +++ /dev/null @@ -1,170 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationvideoeventtopicvideomediaparticipant -type Conversationvideoeventtopicvideomediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Conversationvideoeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Conversationvideoeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Conversationvideoeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Conversationvideoeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Conversationvideoeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Conversationvideoeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Conversationvideoeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Conversationvideoeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Conversationvideoeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // AudioMuted - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - VideoMuted *bool `json:"videoMuted,omitempty"` - - - // SharingScreen - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // PeerCount - PeerCount *int32 `json:"peerCount,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // Msids - Msids *[]string `json:"msids,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicvideomediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/conversationvideoeventtopicwrapup.go b/build/platformclientv2/conversationvideoeventtopicwrapup.go deleted file mode 100644 index 3365fdd76..000000000 --- a/build/platformclientv2/conversationvideoeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Conversationvideoeventtopicwrapup -type Conversationvideoeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Conversationvideoeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/copyattachmentsrequest.go b/build/platformclientv2/copyattachmentsrequest.go deleted file mode 100644 index c4fde06cb..000000000 --- a/build/platformclientv2/copyattachmentsrequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Copyattachmentsrequest -type Copyattachmentsrequest struct { - // SourceMessage - A reference to the email message within the current conversation that owns the attachments to be copied - SourceMessage *Domainentityref `json:"sourceMessage,omitempty"` - - - // Attachments - A list of attachments that will be copied from the source message to the current draft - Attachments *[]Attachment `json:"attachments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Copyattachmentsrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/copyshorttermforecastrequest.go b/build/platformclientv2/copyshorttermforecastrequest.go deleted file mode 100644 index c1c8d12b3..000000000 --- a/build/platformclientv2/copyshorttermforecastrequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Copyshorttermforecastrequest - Create a new short term forecast by copying an existing forecast -type Copyshorttermforecastrequest struct { - // WeekDate - The first day of the short term forecast in yyyy-MM-dd format. Must be the management unit's start day of week - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - Description for the new forecast - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Copyshorttermforecastrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/copyvoicemailmessage.go b/build/platformclientv2/copyvoicemailmessage.go deleted file mode 100644 index d24a613e5..000000000 --- a/build/platformclientv2/copyvoicemailmessage.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Copyvoicemailmessage - Used to copy a VoicemailMessage to either a User or a Group -type Copyvoicemailmessage struct { - // VoicemailMessageId - The id of the VoicemailMessage to copy - VoicemailMessageId *string `json:"voicemailMessageId,omitempty"` - - - // UserId - The id of the User to copy the VoicemailMessage to - UserId *string `json:"userId,omitempty"` - - - // GroupId - The id of the Group to copy the VoicemailMessage to - GroupId *string `json:"groupId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Copyvoicemailmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/copyweekschedulerequest.go b/build/platformclientv2/copyweekschedulerequest.go deleted file mode 100644 index cb138d228..000000000 --- a/build/platformclientv2/copyweekschedulerequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Copyweekschedulerequest -type Copyweekschedulerequest struct { - // Description - Description of the copied week schedule - Description *string `json:"description,omitempty"` - - - // WeekDate - Week in yyyy-MM-dd format to which the schedule is copied - WeekDate *string `json:"weekDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Copyweekschedulerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/copyworkplan.go b/build/platformclientv2/copyworkplan.go deleted file mode 100644 index dab847262..000000000 --- a/build/platformclientv2/copyworkplan.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Copyworkplan - Information associated with a work plan thats created as a copy -type Copyworkplan struct { - // Name - Name of the copied work plan - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Copyworkplan) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/coversheet.go b/build/platformclientv2/coversheet.go deleted file mode 100644 index dadad2c34..000000000 --- a/build/platformclientv2/coversheet.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Coversheet -type Coversheet struct { - // Notes - Text to be added to the coversheet - Notes *string `json:"notes,omitempty"` - - - // Locale - Locale, e.g. = en-US - Locale *string `json:"locale,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Coversheet) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createactivitycoderequest.go b/build/platformclientv2/createactivitycoderequest.go deleted file mode 100644 index e749f2931..000000000 --- a/build/platformclientv2/createactivitycoderequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createactivitycoderequest - Activity Code -type Createactivitycoderequest struct { - // Name - The name of the activity code - Name *string `json:"name,omitempty"` - - - // Category - The activity code's category - Category *string `json:"category,omitempty"` - - - // LengthInMinutes - The default length of the activity in minutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // CountsAsPaidTime - Whether an agent is paid while performing this activity - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // CountsAsWorkTime - Indicates whether or not the activity should be counted as work time - CountsAsWorkTime *bool `json:"countsAsWorkTime,omitempty"` - - - // AgentTimeOffSelectable - Whether an agent can select this activity code when creating or editing a time off request - AgentTimeOffSelectable *bool `json:"agentTimeOffSelectable,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createactivitycoderequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createadmintimeoffrequest.go b/build/platformclientv2/createadmintimeoffrequest.go deleted file mode 100644 index 899430348..000000000 --- a/build/platformclientv2/createadmintimeoffrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Createadmintimeoffrequest -type Createadmintimeoffrequest struct { - // Status - The status of this time off request - Status *string `json:"status,omitempty"` - - - // Users - A set of IDs for users to associate with this time off request - Users *[]Userreference `json:"users,omitempty"` - - - // ActivityCodeId - The ID of the activity code associated with this time off request. Activity code must be of the TimeOff category - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Notes - Notes about the time off request - Notes *string `json:"notes,omitempty"` - - - // FullDayManagementUnitDates - A set of dates in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - - - // PartialDayStartDateTimes - A set of start date-times in ISO-8601 format for partial day requests. - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // DailyDurationMinutes - The daily duration of this time off request in minutes - DailyDurationMinutes *int32 `json:"dailyDurationMinutes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createadmintimeoffrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createagenttimeoffrequest.go b/build/platformclientv2/createagenttimeoffrequest.go deleted file mode 100644 index 7c2c4c69c..000000000 --- a/build/platformclientv2/createagenttimeoffrequest.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Createagenttimeoffrequest -type Createagenttimeoffrequest struct { - // ActivityCodeId - The ID of the activity code associated with this time off request. Activity code must be of the TimeOff category - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Notes - Notes about the time off request - Notes *string `json:"notes,omitempty"` - - - // FullDayManagementUnitDates - A set of dates in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - - - // PartialDayStartDateTimes - A set of start date-times in ISO-8601 format for partial day requests. - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // DailyDurationMinutes - The daily duration of this time off request in minutes - DailyDurationMinutes *int32 `json:"dailyDurationMinutes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createagenttimeoffrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createcallbackcommand.go b/build/platformclientv2/createcallbackcommand.go deleted file mode 100644 index d7b20ce06..000000000 --- a/build/platformclientv2/createcallbackcommand.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Createcallbackcommand -type Createcallbackcommand struct { - // ScriptId - The identifier of the script to be used for the callback - ScriptId *string `json:"scriptId,omitempty"` - - - // QueueId - The identifier of the queue to be used for the callback. Either queueId or routingData is required. - QueueId *string `json:"queueId,omitempty"` - - - // RoutingData - The routing data to be used for the callback. Either queueId or routingData is required. - RoutingData *Routingdata `json:"routingData,omitempty"` - - - // CallbackUserName - The name of the party to be called back. - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // CallbackNumbers - A list of phone numbers for the callback. - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackScheduledTime - The scheduled date-time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // CountryCode - The country code to be associated with the callback numbers. - CountryCode *string `json:"countryCode,omitempty"` - - - // ValidateCallbackNumbers - Whether or not to validate the callback numbers for phone number format. - ValidateCallbackNumbers *bool `json:"validateCallbackNumbers,omitempty"` - - - // Data - A map of key-value pairs containing additional data that can be associated to the callback. These values will appear in the attributes property on the conversation participant. Example: { \"notes\": \"ready to close the deal!\", \"customerPreferredName\": \"Doc\" } - Data *map[string]string `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createcallbackcommand) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createcallbackonconversationcommand.go b/build/platformclientv2/createcallbackonconversationcommand.go deleted file mode 100644 index 5bfd4066d..000000000 --- a/build/platformclientv2/createcallbackonconversationcommand.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Createcallbackonconversationcommand -type Createcallbackonconversationcommand struct { - // ScriptId - The identifier of the script to be used for the callback - ScriptId *string `json:"scriptId,omitempty"` - - - // QueueId - The identifier of the queue to be used for the callback. Either queueId or routingData is required. - QueueId *string `json:"queueId,omitempty"` - - - // RoutingData - The routing data to be used for the callback. Either queueId or routingData is required. - RoutingData *Routingdata `json:"routingData,omitempty"` - - - // CallbackUserName - The name of the party to be called back. - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // CallbackNumbers - A list of phone numbers for the callback. - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackScheduledTime - The scheduled date-time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // CountryCode - The country code to be associated with the callback numbers. - CountryCode *string `json:"countryCode,omitempty"` - - - // ValidateCallbackNumbers - Whether or not to validate the callback numbers for phone number format. - ValidateCallbackNumbers *bool `json:"validateCallbackNumbers,omitempty"` - - - // Data - A map of key-value pairs containing additional data that can be associated to the callback. These values will appear in the attributes property on the conversation participant. Example: { \"notes\": \"ready to close the deal!\", \"customerPreferredName\": \"Doc\" } - Data *map[string]string `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createcallbackonconversationcommand) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createcallbackresponse.go b/build/platformclientv2/createcallbackresponse.go deleted file mode 100644 index 3f3431ced..000000000 --- a/build/platformclientv2/createcallbackresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createcallbackresponse -type Createcallbackresponse struct { - // Conversation - The conversation associated with the callback - Conversation *Domainentityref `json:"conversation,omitempty"` - - - // CallbackIdentifiers - The list of communication identifiers for the callback participants - CallbackIdentifiers *[]Callbackidentifier `json:"callbackIdentifiers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createcallbackresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createcallrequest.go b/build/platformclientv2/createcallrequest.go deleted file mode 100644 index 47d8e9ddc..000000000 --- a/build/platformclientv2/createcallrequest.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createcallrequest -type Createcallrequest struct { - // PhoneNumber - The phone number to dial. - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // CallerId - The caller id phone number for this outbound call. - CallerId *string `json:"callerId,omitempty"` - - - // CallerIdName - The caller id name for this outbound call. - CallerIdName *string `json:"callerIdName,omitempty"` - - - // CallFromQueueId - The queue ID to call on behalf of. - CallFromQueueId *string `json:"callFromQueueId,omitempty"` - - - // CallQueueId - The queue ID to call. - CallQueueId *string `json:"callQueueId,omitempty"` - - - // CallUserId - The user ID to call. - CallUserId *string `json:"callUserId,omitempty"` - - - // Priority - The priority to assign to this call (if calling a queue). - Priority *int32 `json:"priority,omitempty"` - - - // LanguageId - The language skill ID to use for routing this call (if calling a queue). - LanguageId *string `json:"languageId,omitempty"` - - - // RoutingSkillsIds - The skill ID's to use for routing this call (if calling a queue). - RoutingSkillsIds *[]string `json:"routingSkillsIds,omitempty"` - - - // ConversationIds - The list of existing call conversations to merge into a new ad-hoc conference. - ConversationIds *[]string `json:"conversationIds,omitempty"` - - - // Participants - The list of participants to call to create a new ad-hoc conference. - Participants *[]Destination `json:"participants,omitempty"` - - - // UuiData - User to User Information (UUI) data managed by SIP session application. - UuiData *string `json:"uuiData,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createcallrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createcallresponse.go b/build/platformclientv2/createcallresponse.go deleted file mode 100644 index fbc55d330..000000000 --- a/build/platformclientv2/createcallresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createcallresponse -type Createcallresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createcallresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createemailrequest.go b/build/platformclientv2/createemailrequest.go deleted file mode 100644 index 4d2f3dce7..000000000 --- a/build/platformclientv2/createemailrequest.go +++ /dev/null @@ -1,73 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createemailrequest -type Createemailrequest struct { - // QueueId - The ID of the queue to use for routing the email conversation. This field is mutually exclusive with flowId - QueueId *string `json:"queueId,omitempty"` - - - // FlowId - The ID of the flow to use for routing email conversation. This field is mutually exclusive with queueId - FlowId *string `json:"flowId,omitempty"` - - - // Provider - The name of the provider that is sourcing the emails. The Provider \"PureCloud Email\" is reserved for native emails. - Provider *string `json:"provider,omitempty"` - - - // SkillIds - The list of skill ID's to use for routing. - SkillIds *[]string `json:"skillIds,omitempty"` - - - // LanguageId - The ID of the language to use for routing. - LanguageId *string `json:"languageId,omitempty"` - - - // Priority - The priority to assign to the conversation for routing. - Priority *int64 `json:"priority,omitempty"` - - - // Attributes - The list of attributes to associate with the customer participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ToAddress - The email address of the recipient of the email. - ToAddress *string `json:"toAddress,omitempty"` - - - // ToName - The name of the recipient of the email. - ToName *string `json:"toName,omitempty"` - - - // FromAddress - The email address of the sender of the email. - FromAddress *string `json:"fromAddress,omitempty"` - - - // FromName - The name of the sender of the email. - FromName *string `json:"fromName,omitempty"` - - - // Subject - The subject of the email - Subject *string `json:"subject,omitempty"` - - - // Direction - Specify OUTBOUND to send an email on behalf of a queue, or INBOUND to create an external conversation. An external conversation is one where the provider is not PureCloud based. - Direction *string `json:"direction,omitempty"` - - - // HtmlBody - An HTML body content of the email. - HtmlBody *string `json:"htmlBody,omitempty"` - - - // TextBody - A text body content of the email. - TextBody *string `json:"textBody,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createemailrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createintegrationrequest.go b/build/platformclientv2/createintegrationrequest.go deleted file mode 100644 index b8c1b8898..000000000 --- a/build/platformclientv2/createintegrationrequest.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createintegrationrequest - Details for an Integration -type Createintegrationrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the integration, used to distinguish this integration from others of the same type. - Name *string `json:"name,omitempty"` - - - // IntegrationType - Type of the integration to create. - IntegrationType *Integrationtype `json:"integrationType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createintegrationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createmanagementunitapirequest.go b/build/platformclientv2/createmanagementunitapirequest.go deleted file mode 100644 index 9e2a58631..000000000 --- a/build/platformclientv2/createmanagementunitapirequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createmanagementunitapirequest - Create Management Unit -type Createmanagementunitapirequest struct { - // Name - The name of the management unit - Name *string `json:"name,omitempty"` - - - // TimeZone - The default time zone to use for this management unit. Moving to Business Unit - TimeZone *string `json:"timeZone,omitempty"` - - - // StartDayOfWeek - The configured first day of the week for scheduling and forecasting purposes. Moving to Business Unit - StartDayOfWeek *string `json:"startDayOfWeek,omitempty"` - - - // Settings - The configuration for the management unit. If omitted, reasonable defaults will be assigned - Settings *Createmanagementunitsettingsrequest `json:"settings,omitempty"` - - - // DivisionId - The id of the division to which this management unit belongs. Defaults to home division ID - DivisionId *string `json:"divisionId,omitempty"` - - - // BusinessUnitId - The id of the business unit to which this management unit belongs. Required after business unit launch - BusinessUnitId *string `json:"businessUnitId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createmanagementunitapirequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createmanagementunitsettingsrequest.go b/build/platformclientv2/createmanagementunitsettingsrequest.go deleted file mode 100644 index fae42b9be..000000000 --- a/build/platformclientv2/createmanagementunitsettingsrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createmanagementunitsettingsrequest - Management Unit Settings -type Createmanagementunitsettingsrequest struct { - // Adherence - Adherence settings for this management unit - Adherence *Adherencesettings `json:"adherence,omitempty"` - - - // ShortTermForecasting - Short term forecasting settings for this management unit. Moving to Business Unit - ShortTermForecasting *Shorttermforecastingsettings `json:"shortTermForecasting,omitempty"` - - - // TimeOff - Time off request settings for this management unit - TimeOff *Timeoffrequestsettings `json:"timeOff,omitempty"` - - - // Scheduling - Scheduling settings for this management unit - Scheduling *Schedulingsettingsrequest `json:"scheduling,omitempty"` - - - // ShiftTrading - Shift trade settings for this management unit - ShiftTrading *Shifttradesettings `json:"shiftTrading,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createmanagementunitsettingsrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createoutboundmessagingconversationrequest.go b/build/platformclientv2/createoutboundmessagingconversationrequest.go deleted file mode 100644 index 56be356d4..000000000 --- a/build/platformclientv2/createoutboundmessagingconversationrequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createoutboundmessagingconversationrequest -type Createoutboundmessagingconversationrequest struct { - // QueueId - The ID of the queue to be associated with the message. This will determine the fromAddress of the message. - QueueId *string `json:"queueId,omitempty"` - - - // ToAddress - The messaging address of the recipient of the message. For an SMS messenger type, the phone number address must be in E.164 format. E.g. +13175555555 or +34234234234 - ToAddress *string `json:"toAddress,omitempty"` - - - // ToAddressMessengerType - The messaging address messenger type. - ToAddressMessengerType *string `json:"toAddressMessengerType,omitempty"` - - - // UseExistingConversation - An override to use an existing conversation. If set to true, an existing conversation will be used if there is one within the conversation window. If set to false, create request fails if there is a conversation within the conversation window. - UseExistingConversation *bool `json:"useExistingConversation,omitempty"` - - - // ExternalContactId - The external contact Id of the recipient of the message. - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - The external organization Id of the recipient of the message. - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createoutboundmessagingconversationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createqueuemediaassociationrequest.go b/build/platformclientv2/createqueuemediaassociationrequest.go deleted file mode 100644 index 57f0f337f..000000000 --- a/build/platformclientv2/createqueuemediaassociationrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createqueuemediaassociationrequest - A combination of a single queue and one or more media types to associate with a service goal group -type Createqueuemediaassociationrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Queue - The queue to associate with the service goal group - Queue *Queuereference `json:"queue,omitempty"` - - - // MediaTypes - The media types of the given queue to associate with the service goal group - MediaTypes *[]string `json:"mediaTypes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createqueuemediaassociationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createqueuerequest.go b/build/platformclientv2/createqueuerequest.go deleted file mode 100644 index 950c62876..000000000 --- a/build/platformclientv2/createqueuerequest.go +++ /dev/null @@ -1,106 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Createqueuerequest -type Createqueuerequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The queue name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Writabledivision `json:"division,omitempty"` - - - // Description - The queue description. - Description *string `json:"description,omitempty"` - - - // DateCreated - The date the queue was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the queue. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the queue. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the queue. - CreatedBy *string `json:"createdBy,omitempty"` - - - // MemberCount - The number of users in the queue. - MemberCount *int32 `json:"memberCount,omitempty"` - - - // MediaSettings - The media settings for the queue. Valid key values: CALL, CALLBACK, CHAT, EMAIL, MESSAGE, SOCIAL_EXPRESSION, VIDEO_COMM - MediaSettings *map[string]Mediasetting `json:"mediaSettings,omitempty"` - - - // Bullseye - The bulls-eye settings for the queue. - Bullseye *Bullseye `json:"bullseye,omitempty"` - - - // AcwSettings - The ACW settings for the queue. - AcwSettings *Acwsettings `json:"acwSettings,omitempty"` - - - // SkillEvaluationMethod - The skill evaluation method to use when routing conversations. - SkillEvaluationMethod *string `json:"skillEvaluationMethod,omitempty"` - - - // QueueFlow - The in-queue flow to use for conversations waiting in queue. - QueueFlow *Domainentityref `json:"queueFlow,omitempty"` - - - // WhisperPrompt - The prompt used for whisper on the queue, if configured. - WhisperPrompt *Domainentityref `json:"whisperPrompt,omitempty"` - - - // AutoAnswerOnly - Specifies whether the configured whisper should play for all ACD calls, or only for those which are auto-answered. - AutoAnswerOnly *bool `json:"autoAnswerOnly,omitempty"` - - - // CallingPartyName - The name to use for caller identification for outbound calls from this queue. - CallingPartyName *string `json:"callingPartyName,omitempty"` - - - // CallingPartyNumber - The phone number to use for caller identification for outbound calls from this queue. - CallingPartyNumber *string `json:"callingPartyNumber,omitempty"` - - - // DefaultScripts - The default script Ids for the communication types. - DefaultScripts *map[string]Script `json:"defaultScripts,omitempty"` - - - // OutboundMessagingAddresses - The messaging addresses for the queue. - OutboundMessagingAddresses *Queuemessagingaddresses `json:"outboundMessagingAddresses,omitempty"` - - - // OutboundEmailAddress - OutboundEmailAddress *Queueemailaddress `json:"outboundEmailAddress,omitempty"` - - - // SourceQueueId - The id of an existing queue to copy the settings from when creating a new queue. - SourceQueueId *string `json:"sourceQueueId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createqueuerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createsecuresession.go b/build/platformclientv2/createsecuresession.go deleted file mode 100644 index 9d1166867..000000000 --- a/build/platformclientv2/createsecuresession.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createsecuresession -type Createsecuresession struct { - // SourceParticipantId - requesting participant - SourceParticipantId *string `json:"sourceParticipantId,omitempty"` - - - // FlowId - the flow id to execute in the secure session - FlowId *string `json:"flowId,omitempty"` - - - // UserData - user data for the secure session - UserData *string `json:"userData,omitempty"` - - - // Disconnect - if true, disconnect the agent after creating the session - Disconnect *bool `json:"disconnect,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createsecuresession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createservicegoalgrouprequest.go b/build/platformclientv2/createservicegoalgrouprequest.go deleted file mode 100644 index 45aafa54a..000000000 --- a/build/platformclientv2/createservicegoalgrouprequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createservicegoalgrouprequest - Service Goal Group -type Createservicegoalgrouprequest struct { - // Name - name - Name *string `json:"name,omitempty"` - - - // Goals - Goals defined for this service goal group - Goals *Servicegoalgroupgoals `json:"goals,omitempty"` - - - // QueueMediaAssociations - List of queues and media types from that queue to associate with this service goal group - QueueMediaAssociations *[]Createqueuemediaassociationrequest `json:"queueMediaAssociations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createservicegoalgrouprequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createsharerequest.go b/build/platformclientv2/createsharerequest.go deleted file mode 100644 index 7ee83807b..000000000 --- a/build/platformclientv2/createsharerequest.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createsharerequest -type Createsharerequest struct { - // SharedEntityType - The share entity type - SharedEntityType *string `json:"sharedEntityType,omitempty"` - - - // SharedEntity - The entity that will be shared - SharedEntity *Sharedentity `json:"sharedEntity,omitempty"` - - - // MemberType - MemberType *string `json:"memberType,omitempty"` - - - // Member - The member that will have access to this share. Only required if a list of members is not provided. - Member *Sharedentity `json:"member,omitempty"` - - - // Members - Members *[]Createsharerequestmember `json:"members,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createsharerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createsharerequestmember.go b/build/platformclientv2/createsharerequestmember.go deleted file mode 100644 index fc05c0762..000000000 --- a/build/platformclientv2/createsharerequestmember.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createsharerequestmember -type Createsharerequestmember struct { - // MemberType - MemberType *string `json:"memberType,omitempty"` - - - // Member - Member *Memberentity `json:"member,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createsharerequestmember) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createshareresponse.go b/build/platformclientv2/createshareresponse.go deleted file mode 100644 index 88e0124ea..000000000 --- a/build/platformclientv2/createshareresponse.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createshareresponse -type Createshareresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SharedEntityType - SharedEntityType *string `json:"sharedEntityType,omitempty"` - - - // SharedEntity - SharedEntity *Domainentityref `json:"sharedEntity,omitempty"` - - - // MemberType - MemberType *string `json:"memberType,omitempty"` - - - // Member - Member *Domainentityref `json:"member,omitempty"` - - - // SharedBy - SharedBy *Domainentityref `json:"sharedBy,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // Succeeded - Succeeded *[]Share `json:"succeeded,omitempty"` - - - // Failed - Failed *[]Share `json:"failed,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createshareresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createuser.go b/build/platformclientv2/createuser.go deleted file mode 100644 index 08618e29a..000000000 --- a/build/platformclientv2/createuser.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createuser -type Createuser struct { - // Name - User's full name - Name *string `json:"name,omitempty"` - - - // Department - Department *string `json:"department,omitempty"` - - - // Email - User's email and username - Email *string `json:"email,omitempty"` - - - // Addresses - Email addresses and phone numbers for this user - Addresses *[]Contact `json:"addresses,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Password - User's password - Password *string `json:"password,omitempty"` - - - // DivisionId - The division to which this user will belong - DivisionId *string `json:"divisionId,omitempty"` - - - // State - Optional initialized state of the user. If not specified, state will be Active if invites are sent, otherwise Inactive. - State *string `json:"state,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createwebchatconversationrequest.go b/build/platformclientv2/createwebchatconversationrequest.go deleted file mode 100644 index 218edd249..000000000 --- a/build/platformclientv2/createwebchatconversationrequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createwebchatconversationrequest -type Createwebchatconversationrequest struct { - // OrganizationId - The organization identifier. - OrganizationId *string `json:"organizationId,omitempty"` - - - // DeploymentId - The web chat Deployment ID which contains the appropriate settings for this chat conversation. - DeploymentId *string `json:"deploymentId,omitempty"` - - - // RoutingTarget - The routing information to use for the new chat conversation. - RoutingTarget *Webchatroutingtarget `json:"routingTarget,omitempty"` - - - // MemberInfo - The guest member info to use for the new chat conversation. - MemberInfo *Guestmemberinfo `json:"memberInfo,omitempty"` - - - // MemberAuthToken - If the guest member is an authenticated member (ie, not anonymous) his JWT is provided here. The token will have been previously generated with the \"POST /api/v2/signeddata\" resource. - MemberAuthToken *string `json:"memberAuthToken,omitempty"` - - - // JourneyContext - A subset of the Journey System's data relevant to this conversation/session request (for external linkage and internal usage/context). - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createwebchatconversationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createwebchatconversationresponse.go b/build/platformclientv2/createwebchatconversationresponse.go deleted file mode 100644 index 4d8780875..000000000 --- a/build/platformclientv2/createwebchatconversationresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createwebchatconversationresponse -type Createwebchatconversationresponse struct { - // Id - Chat Conversation identifier - Id *string `json:"id,omitempty"` - - - // Jwt - The JWT that you can use to identify subsequent calls on this conversation - Jwt *string `json:"jwt,omitempty"` - - - // EventStreamUri - The URI which provides the conversation event stream. - EventStreamUri *string `json:"eventStreamUri,omitempty"` - - - // Member - Chat Member - Member *Webchatmemberinfo `json:"member,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createwebchatconversationresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createwebchatmessagerequest.go b/build/platformclientv2/createwebchatmessagerequest.go deleted file mode 100644 index 06b201da7..000000000 --- a/build/platformclientv2/createwebchatmessagerequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createwebchatmessagerequest -type Createwebchatmessagerequest struct { - // Body - The message body. Note that message bodies are limited to 4,000 characters. - Body *string `json:"body,omitempty"` - - - // BodyType - The purpose of the message within the conversation, such as a standard text entry versus a greeting. - BodyType *string `json:"bodyType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createwebchatmessagerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createwebchatrequest.go b/build/platformclientv2/createwebchatrequest.go deleted file mode 100644 index 41b302e74..000000000 --- a/build/platformclientv2/createwebchatrequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createwebchatrequest -type Createwebchatrequest struct { - // QueueId - The ID of the queue to use for routing the chat conversation. - QueueId *string `json:"queueId,omitempty"` - - - // Provider - The name of the provider that is sourcing the web chat. - Provider *string `json:"provider,omitempty"` - - - // SkillIds - The list of skill ID's to use for routing. - SkillIds *[]string `json:"skillIds,omitempty"` - - - // LanguageId - The ID of the langauge to use for routing. - LanguageId *string `json:"languageId,omitempty"` - - - // Priority - The priority to assign to the conversation for routing. - Priority *int64 `json:"priority,omitempty"` - - - // Attributes - The list of attributes to associate with the customer participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // CustomerName - The name of the customer participating in the web chat. - CustomerName *string `json:"customerName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createwebchatrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createworkplan.go b/build/platformclientv2/createworkplan.go deleted file mode 100644 index a0c5bf5e0..000000000 --- a/build/platformclientv2/createworkplan.go +++ /dev/null @@ -1,81 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createworkplan - Work plan information -type Createworkplan struct { - // Name - Name of this work plan - Name *string `json:"name,omitempty"` - - - // Enabled - Whether the work plan is enabled for scheduling - Enabled *bool `json:"enabled,omitempty"` - - - // ConstrainWeeklyPaidTime - Whether the weekly paid time constraint is enabled for this work plan - ConstrainWeeklyPaidTime *bool `json:"constrainWeeklyPaidTime,omitempty"` - - - // FlexibleWeeklyPaidTime - Whether the weekly paid time constraint is flexible for this work plan - FlexibleWeeklyPaidTime *bool `json:"flexibleWeeklyPaidTime,omitempty"` - - - // WeeklyExactPaidMinutes - Exact weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == false - WeeklyExactPaidMinutes *int32 `json:"weeklyExactPaidMinutes,omitempty"` - - - // WeeklyMinimumPaidMinutes - Minimum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true - WeeklyMinimumPaidMinutes *int32 `json:"weeklyMinimumPaidMinutes,omitempty"` - - - // WeeklyMaximumPaidMinutes - Maximum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true - WeeklyMaximumPaidMinutes *int32 `json:"weeklyMaximumPaidMinutes,omitempty"` - - - // ConstrainPaidTimeGranularity - Whether paid time granularity should be constrained for this workplan - ConstrainPaidTimeGranularity *bool `json:"constrainPaidTimeGranularity,omitempty"` - - - // PaidTimeGranularityMinutes - Granularity in minutes allowed for shift paid time in this work plan. Used if constrainPaidTimeGranularity == true - PaidTimeGranularityMinutes *int32 `json:"paidTimeGranularityMinutes,omitempty"` - - - // ConstrainMinimumTimeBetweenShifts - Whether the minimum time between shifts constraint is enabled for this work plan - ConstrainMinimumTimeBetweenShifts *bool `json:"constrainMinimumTimeBetweenShifts,omitempty"` - - - // MinimumTimeBetweenShiftsMinutes - Minimum time between shifts in minutes defined in this work plan. Used if constrainMinimumTimeBetweenShifts == true - MinimumTimeBetweenShiftsMinutes *int32 `json:"minimumTimeBetweenShiftsMinutes,omitempty"` - - - // MaximumDays - Maximum number days in a week allowed to be scheduled for this work plan - MaximumDays *int32 `json:"maximumDays,omitempty"` - - - // MinimumWorkingDaysPerWeek - The minimum number of days that agents assigned to a work plan must work per week - MinimumWorkingDaysPerWeek *int32 `json:"minimumWorkingDaysPerWeek,omitempty"` - - - // OptionalDays - Optional days to schedule for this work plan - OptionalDays *Setwrapperdayofweek `json:"optionalDays,omitempty"` - - - // ShiftStartVariances - Variance in minutes among start times of shifts in this work plan - ShiftStartVariances *Listwrappershiftstartvariance `json:"shiftStartVariances,omitempty"` - - - // Shifts - Shifts in this work plan - Shifts *[]Createworkplanshift `json:"shifts,omitempty"` - - - // Agents - Agents in this work plan - Agents *[]Userreference `json:"agents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createworkplan) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createworkplanactivity.go b/build/platformclientv2/createworkplanactivity.go deleted file mode 100644 index eabfb2275..000000000 --- a/build/platformclientv2/createworkplanactivity.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createworkplanactivity - Activity configured for shift in work plan -type Createworkplanactivity struct { - // ActivityCodeId - ID of the activity code associated with this activity - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Description - Description of the activity - Description *string `json:"description,omitempty"` - - - // LengthMinutes - Length of the activity in minutes - LengthMinutes *int32 `json:"lengthMinutes,omitempty"` - - - // StartTimeIsRelativeToShiftStart - Whether the start time of the activity is relative to the start time of the shift it belongs to - StartTimeIsRelativeToShiftStart *bool `json:"startTimeIsRelativeToShiftStart,omitempty"` - - - // FlexibleStartTime - Whether the start time of the activity is flexible - FlexibleStartTime *bool `json:"flexibleStartTime,omitempty"` - - - // EarliestStartTimeMinutes - Earliest activity start in offset minutes relative to shift start time if startTimeIsRelativeToShiftStart == true else its based on midnight. Used if flexibleStartTime == true - EarliestStartTimeMinutes *int32 `json:"earliestStartTimeMinutes,omitempty"` - - - // LatestStartTimeMinutes - Latest activity start in offset minutes relative to shift start time if startTimeIsRelativeToShiftStart == true else its based on midnight. Used if flexibleStartTime == true - LatestStartTimeMinutes *int32 `json:"latestStartTimeMinutes,omitempty"` - - - // ExactStartTimeMinutes - Exact activity start in offset minutes relative to shift start time if startTimeIsRelativeToShiftStart == true else its based on midnight. Used if flexibleStartTime == false - ExactStartTimeMinutes *int32 `json:"exactStartTimeMinutes,omitempty"` - - - // StartTimeIncrementMinutes - Increment in offset minutes that would contribute to different possible start times for the activity - StartTimeIncrementMinutes *int32 `json:"startTimeIncrementMinutes,omitempty"` - - - // CountsAsPaidTime - Whether the activity is paid - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // CountsAsContiguousWorkTime - Whether the activity duration is counted towards contiguous work time - CountsAsContiguousWorkTime *bool `json:"countsAsContiguousWorkTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createworkplanactivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/createworkplanshift.go b/build/platformclientv2/createworkplanshift.go deleted file mode 100644 index 5c2d5533b..000000000 --- a/build/platformclientv2/createworkplanshift.go +++ /dev/null @@ -1,85 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Createworkplanshift - Shift in a work plan -type Createworkplanshift struct { - // Name - Name of the shift - Name *string `json:"name,omitempty"` - - - // Days - Days of the week applicable for this shift - Days *Setwrapperdayofweek `json:"days,omitempty"` - - - // FlexibleStartTime - Whether the start time of the shift is flexible - FlexibleStartTime *bool `json:"flexibleStartTime,omitempty"` - - - // ExactStartTimeMinutesFromMidnight - Exact start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == false - ExactStartTimeMinutesFromMidnight *int32 `json:"exactStartTimeMinutesFromMidnight,omitempty"` - - - // EarliestStartTimeMinutesFromMidnight - Earliest start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == true - EarliestStartTimeMinutesFromMidnight *int32 `json:"earliestStartTimeMinutesFromMidnight,omitempty"` - - - // LatestStartTimeMinutesFromMidnight - Latest start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == true - LatestStartTimeMinutesFromMidnight *int32 `json:"latestStartTimeMinutesFromMidnight,omitempty"` - - - // ConstrainStopTime - Whether the latest stop time constraint for the shift is enabled. Deprecated, use constrainLatestStopTime instead - ConstrainStopTime *bool `json:"constrainStopTime,omitempty"` - - - // ConstrainLatestStopTime - Whether the latest stop time constraint for the shift is enabled - ConstrainLatestStopTime *bool `json:"constrainLatestStopTime,omitempty"` - - - // LatestStopTimeMinutesFromMidnight - Latest stop time of the shift defined as offset minutes from midnight. Used if constrainStopTime == true - LatestStopTimeMinutesFromMidnight *int32 `json:"latestStopTimeMinutesFromMidnight,omitempty"` - - - // StartIncrementMinutes - Increment in offset minutes that would contribute to different possible start times for the shift. Used if flexibleStartTime == true - StartIncrementMinutes *int32 `json:"startIncrementMinutes,omitempty"` - - - // FlexiblePaidTime - Whether the paid time setting for the shift is flexible - FlexiblePaidTime *bool `json:"flexiblePaidTime,omitempty"` - - - // ExactPaidTimeMinutes - Exact paid time in minutes configured for the shift. Used if flexiblePaidTime == false - ExactPaidTimeMinutes *int32 `json:"exactPaidTimeMinutes,omitempty"` - - - // MinimumPaidTimeMinutes - Minimum paid time in minutes configured for the shift. Used if flexiblePaidTime == true - MinimumPaidTimeMinutes *int32 `json:"minimumPaidTimeMinutes,omitempty"` - - - // MaximumPaidTimeMinutes - Maximum paid time in minutes configured for the shift. Used if flexiblePaidTime == true - MaximumPaidTimeMinutes *int32 `json:"maximumPaidTimeMinutes,omitempty"` - - - // ConstrainContiguousWorkTime - Whether the contiguous time constraint for the shift is enabled - ConstrainContiguousWorkTime *bool `json:"constrainContiguousWorkTime,omitempty"` - - - // MinimumContiguousWorkTimeMinutes - Minimum contiguous time in minutes configured for the shift. Used if constrainContiguousWorkTime == true - MinimumContiguousWorkTimeMinutes *int32 `json:"minimumContiguousWorkTimeMinutes,omitempty"` - - - // MaximumContiguousWorkTimeMinutes - Maximum contiguous time in minutes configured for the shift. Used if constrainContiguousWorkTime == true - MaximumContiguousWorkTimeMinutes *int32 `json:"maximumContiguousWorkTimeMinutes,omitempty"` - - - // Activities - Activities configured for this shift - Activities *[]Createworkplanactivity `json:"activities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Createworkplanshift) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/credential.go b/build/platformclientv2/credential.go deleted file mode 100644 index f2258354b..000000000 --- a/build/platformclientv2/credential.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Credential -type Credential struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - The type of credential. - VarType *Credentialtype `json:"type,omitempty"` - - - // CredentialFields - CredentialFields *map[string]string `json:"credentialFields,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Credential) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/credentialinfo.go b/build/platformclientv2/credentialinfo.go deleted file mode 100644 index 55ff238c4..000000000 --- a/build/platformclientv2/credentialinfo.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Credentialinfo -type Credentialinfo struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // CreatedDate - Date the credentials were created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedDate - Date credentials were last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // VarType - Type of the credentials. - VarType *Credentialtype `json:"type,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Credentialinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/credentialinfolisting.go b/build/platformclientv2/credentialinfolisting.go deleted file mode 100644 index 7729c569b..000000000 --- a/build/platformclientv2/credentialinfolisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Credentialinfolisting -type Credentialinfolisting struct { - // Entities - Entities *[]Credentialinfo `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Credentialinfolisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/credentialspecification.go b/build/platformclientv2/credentialspecification.go deleted file mode 100644 index 50806d65b..000000000 --- a/build/platformclientv2/credentialspecification.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Credentialspecification - Specifies the requirements for a credential that can be provided for configuring an integration -type Credentialspecification struct { - // Required - Indicates if the credential must be provided in order for the integration configuration to be valid. - Required *bool `json:"required,omitempty"` - - - // Title - Title describing the usage for this credential. - Title *string `json:"title,omitempty"` - - - // CredentialTypes - List of acceptable credential types that can be provided for this credential. - CredentialTypes *[]string `json:"credentialTypes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Credentialspecification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/credentialtype.go b/build/platformclientv2/credentialtype.go deleted file mode 100644 index 2a2073dde..000000000 --- a/build/platformclientv2/credentialtype.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Credentialtype -type Credentialtype struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Properties - Properties describing credentials of this type. - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // DisplayOrder - Order in which properties should be displayed in the UI. - DisplayOrder *[]string `json:"displayOrder,omitempty"` - - - // Required - Properties that are required fields. - Required *[]string `json:"required,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Credentialtype) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/credentialtypelisting.go b/build/platformclientv2/credentialtypelisting.go deleted file mode 100644 index a6fb8741f..000000000 --- a/build/platformclientv2/credentialtypelisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Credentialtypelisting -type Credentialtypelisting struct { - // Entities - Entities *[]Credentialtype `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Credentialtypelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/currentuserschedulerequestbody.go b/build/platformclientv2/currentuserschedulerequestbody.go deleted file mode 100644 index ef3d9b02a..000000000 --- a/build/platformclientv2/currentuserschedulerequestbody.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Currentuserschedulerequestbody - POST request body for fetching the current user's schedule over a given range -type Currentuserschedulerequestbody struct { - // StartDate - Beginning of the range of schedules to fetch, in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - End of the range of schedules to fetch, in ISO-8601 format - EndDate *time.Time `json:"endDate,omitempty"` - - - // LoadFullWeeks - Whether to load the full week's schedule (for the current user) of any week overlapping the start/end date query parameters, defaults to false - LoadFullWeeks *bool `json:"loadFullWeeks,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Currentuserschedulerequestbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/customerinteractioncenter.go b/build/platformclientv2/customerinteractioncenter.go deleted file mode 100644 index 3d0a567ff..000000000 --- a/build/platformclientv2/customerinteractioncenter.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Customerinteractioncenter -type Customerinteractioncenter struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Customerinteractioncenter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dataactionconditionpredicate.go b/build/platformclientv2/dataactionconditionpredicate.go deleted file mode 100644 index bb78083ca..000000000 --- a/build/platformclientv2/dataactionconditionpredicate.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dataactionconditionpredicate -type Dataactionconditionpredicate struct { } - -// String returns a JSON representation of the model -func (o *Dataactionconditionpredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dataschema.go b/build/platformclientv2/dataschema.go deleted file mode 100644 index 36ba5f30c..000000000 --- a/build/platformclientv2/dataschema.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dataschema -type Dataschema struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Version - The schema's version, a positive integer. Required for updates. - Version *int32 `json:"version,omitempty"` - - - // AppliesTo - One of \"CONTACT\" or \"EXTERNAL_ORGANIZATION\". Indicates the built-in entity type to which this schema applies. - AppliesTo *[]string `json:"appliesTo,omitempty"` - - - // Enabled - The schema's enabled/disabled status. A disabled schema cannot be assigned to any other entities, but the data on those entities from the schema still exists. - Enabled *bool `json:"enabled,omitempty"` - - - // CreatedBy - The URI of the user that created this schema. - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // DateCreated - The date and time this schema was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // JsonSchema - A JSON schema defining the extension to the built-in entity type. - JsonSchema *Jsonschemadocument `json:"jsonSchema,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dataschema) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/datatable.go b/build/platformclientv2/datatable.go deleted file mode 100644 index c6ab42515..000000000 --- a/build/platformclientv2/datatable.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Datatable - Contains a metadata representation for a JSON schema stored in DataTables along with an optional field for the schema itself -type Datatable struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - The description from the JSON schema (equates to the Description field on the JSON schema.) - Description *string `json:"description,omitempty"` - - - // Schema - the schema as stored in the system. - Schema *Jsonschemadocument `json:"schema,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Datatable) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/datatablerowentitylisting.go b/build/platformclientv2/datatablerowentitylisting.go deleted file mode 100644 index 4986b4db2..000000000 --- a/build/platformclientv2/datatablerowentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Datatablerowentitylisting -type Datatablerowentitylisting struct { - // Entities - Entities *[]map[string]interface{} `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Datatablerowentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/datatablesdomainentitylisting.go b/build/platformclientv2/datatablesdomainentitylisting.go deleted file mode 100644 index db0463d9d..000000000 --- a/build/platformclientv2/datatablesdomainentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Datatablesdomainentitylisting -type Datatablesdomainentitylisting struct { - // Entities - Entities *[]Datatable `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Datatablesdomainentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/daterange.go b/build/platformclientv2/daterange.go deleted file mode 100644 index c11dddcef..000000000 --- a/build/platformclientv2/daterange.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Daterange -type Daterange struct { - // StartDate - The inclusive start of a date range in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. - StartDate *string `json:"startDate,omitempty"` - - - // EndDate - The inclusive end of a date range in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. - EndDate *string `json:"endDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Daterange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/defaultgreetinglist.go b/build/platformclientv2/defaultgreetinglist.go deleted file mode 100644 index a6bc535c3..000000000 --- a/build/platformclientv2/defaultgreetinglist.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Defaultgreetinglist -type Defaultgreetinglist struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Owner - Owner *Greetingowner `json:"owner,omitempty"` - - - // OwnerType - OwnerType *string `json:"ownerType,omitempty"` - - - // Greetings - Greetings *map[string]Greeting `json:"greetings,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // CreatedBy - CreatedBy *string `json:"createdBy,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // ModifiedBy - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Defaultgreetinglist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/deletableuserreference.go b/build/platformclientv2/deletableuserreference.go deleted file mode 100644 index fccff60b5..000000000 --- a/build/platformclientv2/deletableuserreference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Deletableuserreference - User reference with delete flag to remove the user from an associated entity -type Deletableuserreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Delete - If marked true, the user will be removed an associated entity - Delete *bool `json:"delete,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Deletableuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/deleteretention.go b/build/platformclientv2/deleteretention.go deleted file mode 100644 index 2b667f830..000000000 --- a/build/platformclientv2/deleteretention.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Deleteretention -type Deleteretention struct { - // Days - Days *int32 `json:"days,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Deleteretention) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dependency.go b/build/platformclientv2/dependency.go deleted file mode 100644 index 28f168206..000000000 --- a/build/platformclientv2/dependency.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dependency -type Dependency struct { - // Id - The dependency identifier - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Deleted - Deleted *bool `json:"deleted,omitempty"` - - - // Updated - Updated *bool `json:"updated,omitempty"` - - - // StateUnknown - StateUnknown *bool `json:"stateUnknown,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dependency) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dependencyobject.go b/build/platformclientv2/dependencyobject.go deleted file mode 100644 index 0d6d992cf..000000000 --- a/build/platformclientv2/dependencyobject.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dependencyobject -type Dependencyobject struct { - // Id - The dependency identifier - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Deleted - Deleted *bool `json:"deleted,omitempty"` - - - // Updated - Updated *bool `json:"updated,omitempty"` - - - // StateUnknown - StateUnknown *bool `json:"stateUnknown,omitempty"` - - - // ConsumedResources - ConsumedResources *[]Dependency `json:"consumedResources,omitempty"` - - - // ConsumingResources - ConsumingResources *[]Dependency `json:"consumingResources,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dependencyobject) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dependencyobjectentitylisting.go b/build/platformclientv2/dependencyobjectentitylisting.go deleted file mode 100644 index b597e37df..000000000 --- a/build/platformclientv2/dependencyobjectentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dependencyobjectentitylisting -type Dependencyobjectentitylisting struct { - // Entities - Entities *[]Dependencyobject `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dependencyobjectentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dependencystatus.go b/build/platformclientv2/dependencystatus.go deleted file mode 100644 index bbb5ff104..000000000 --- a/build/platformclientv2/dependencystatus.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dependencystatus -type Dependencystatus struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User that initiated the build. - User *User `json:"user,omitempty"` - - - // Client - OAuth client that initiated the build. - Client *Domainentityref `json:"client,omitempty"` - - - // BuildId - BuildId *string `json:"buildId,omitempty"` - - - // DateStarted - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateStarted *time.Time `json:"dateStarted,omitempty"` - - - // DateCompleted - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCompleted *time.Time `json:"dateCompleted,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // FailedObjects - FailedObjects *[]Failedobject `json:"failedObjects,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dependencystatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dependencytype.go b/build/platformclientv2/dependencytype.go deleted file mode 100644 index 3a74fc2d1..000000000 --- a/build/platformclientv2/dependencytype.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dependencytype -type Dependencytype struct { - // Id - The dependency type identifier - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Versioned - Versioned *bool `json:"versioned,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dependencytype) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dependencytypeentitylisting.go b/build/platformclientv2/dependencytypeentitylisting.go deleted file mode 100644 index 6aafc3993..000000000 --- a/build/platformclientv2/dependencytypeentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dependencytypeentitylisting -type Dependencytypeentitylisting struct { - // Entities - Entities *[]Dependencytype `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dependencytypeentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/destination.go b/build/platformclientv2/destination.go deleted file mode 100644 index 991a67672..000000000 --- a/build/platformclientv2/destination.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Destination -type Destination struct { - // Address - Address or phone number. - Address *string `json:"address,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // QueueId - QueueId *string `json:"queueId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Destination) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/detail.go b/build/platformclientv2/detail.go deleted file mode 100644 index 6e3c52efc..000000000 --- a/build/platformclientv2/detail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Detail -type Detail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Detail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialeraction.go b/build/platformclientv2/dialeraction.go deleted file mode 100644 index a0c8a72a1..000000000 --- a/build/platformclientv2/dialeraction.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialeraction -type Dialeraction struct { - // VarType - The type of this DialerAction. - VarType *string `json:"type,omitempty"` - - - // ActionTypeName - Additional type specification for this DialerAction. - ActionTypeName *string `json:"actionTypeName,omitempty"` - - - // UpdateOption - Specifies how a contact attribute should be updated. Required for MODIFY_CONTACT_ATTRIBUTE. - UpdateOption *string `json:"updateOption,omitempty"` - - - // Properties - A map of key-value pairs pertinent to the DialerAction. Different types of DialerActions require different properties. MODIFY_CONTACT_ATTRIBUTE with an updateOption of SET takes a contact column as the key and accepts any value. SCHEDULE_CALLBACK takes a key 'callbackOffset' that specifies how far in the future the callback should be scheduled, in minutes. SET_CALLER_ID takes two keys: 'callerAddress', which should be the caller id phone number, and 'callerName'. For either key, you can also specify a column on the contact to get the value from. To do this, specify 'contact.Column', where 'Column' is the name of the contact column from which to get the value. SET_SKILLS takes a key 'skills' with an array of skill ids wrapped into a string (Example: {'skills': '['skillIdHere']'} ). - Properties *map[string]string `json:"properties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialeraction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerattemptlimitsconfigchangeattemptlimits.go b/build/platformclientv2/dialerattemptlimitsconfigchangeattemptlimits.go deleted file mode 100644 index bf45e5f6b..000000000 --- a/build/platformclientv2/dialerattemptlimitsconfigchangeattemptlimits.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialerattemptlimitsconfigchangeattemptlimits -type Dialerattemptlimitsconfigchangeattemptlimits struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // MaxAttemptsPerContact - MaxAttemptsPerContact *int32 `json:"maxAttemptsPerContact,omitempty"` - - - // MaxAttemptsPerNumber - MaxAttemptsPerNumber *int32 `json:"maxAttemptsPerNumber,omitempty"` - - - // TimeZoneId - TimeZoneId *string `json:"timeZoneId,omitempty"` - - - // ResetPeriod - ResetPeriod *string `json:"resetPeriod,omitempty"` - - - // RecallEntries - RecallEntries *map[string]Dialerattemptlimitsconfigchangerecallentry `json:"recallEntries,omitempty"` - - - // BreadthFirstRecalls - BreadthFirstRecalls *bool `json:"breadthFirstRecalls,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerattemptlimitsconfigchangeattemptlimits) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerattemptlimitsconfigchangerecallentry.go b/build/platformclientv2/dialerattemptlimitsconfigchangerecallentry.go deleted file mode 100644 index 6df75dd87..000000000 --- a/build/platformclientv2/dialerattemptlimitsconfigchangerecallentry.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerattemptlimitsconfigchangerecallentry -type Dialerattemptlimitsconfigchangerecallentry struct { - // NbrAttempts - NbrAttempts *int32 `json:"nbrAttempts,omitempty"` - - - // MinutesBetweenAttempts - MinutesBetweenAttempts *int32 `json:"minutesBetweenAttempts,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerattemptlimitsconfigchangerecallentry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerauditrequest.go b/build/platformclientv2/dialerauditrequest.go deleted file mode 100644 index d8e36c618..000000000 --- a/build/platformclientv2/dialerauditrequest.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerauditrequest -type Dialerauditrequest struct { - // QueryPhrase - The word or words to search for. - QueryPhrase *string `json:"queryPhrase,omitempty"` - - - // QueryFields - The fields in which to search for the queryPhrase. - QueryFields *[]string `json:"queryFields,omitempty"` - - - // Facets - The fields to facet on. - Facets *[]Auditfacet `json:"facets,omitempty"` - - - // Filters - The fields to filter on. - Filters *[]Auditfilter `json:"filters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerauditrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercallabletimesetconfigchangecallabletime.go b/build/platformclientv2/dialercallabletimesetconfigchangecallabletime.go deleted file mode 100644 index 70c589f2a..000000000 --- a/build/platformclientv2/dialercallabletimesetconfigchangecallabletime.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercallabletimesetconfigchangecallabletime -type Dialercallabletimesetconfigchangecallabletime struct { - // TimeSlots - TimeSlots *[]Dialercallabletimesetconfigchangetimeslot `json:"timeSlots,omitempty"` - - - // TimeZoneId - TimeZoneId *string `json:"timeZoneId,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercallabletimesetconfigchangecallabletime) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercallabletimesetconfigchangecallabletimeset.go b/build/platformclientv2/dialercallabletimesetconfigchangecallabletimeset.go deleted file mode 100644 index 98e85c12d..000000000 --- a/build/platformclientv2/dialercallabletimesetconfigchangecallabletimeset.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialercallabletimesetconfigchangecallabletimeset -type Dialercallabletimesetconfigchangecallabletimeset struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // CallableTimes - CallableTimes *[]Dialercallabletimesetconfigchangecallabletime `json:"callableTimes,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercallabletimesetconfigchangecallabletimeset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercallabletimesetconfigchangetimeslot.go b/build/platformclientv2/dialercallabletimesetconfigchangetimeslot.go deleted file mode 100644 index 3def29063..000000000 --- a/build/platformclientv2/dialercallabletimesetconfigchangetimeslot.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercallabletimesetconfigchangetimeslot -type Dialercallabletimesetconfigchangetimeslot struct { - // StartTime - StartTime *string `json:"startTime,omitempty"` - - - // StopTime - StopTime *string `json:"stopTime,omitempty"` - - - // Day - Day *int32 `json:"day,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercallabletimesetconfigchangetimeslot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignconfigchangecampaign.go b/build/platformclientv2/dialercampaignconfigchangecampaign.go deleted file mode 100644 index 47fb30820..000000000 --- a/build/platformclientv2/dialercampaignconfigchangecampaign.go +++ /dev/null @@ -1,146 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialercampaignconfigchangecampaign -type Dialercampaignconfigchangecampaign struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // ContactList - ContactList *Dialercampaignconfigchangeurireference `json:"contactList,omitempty"` - - - // Queue - Queue *Dialercampaignconfigchangeurireference `json:"queue,omitempty"` - - - // DialingMode - DialingMode *string `json:"dialingMode,omitempty"` - - - // Script - Script *Dialercampaignconfigchangeurireference `json:"script,omitempty"` - - - // EdgeGroup - EdgeGroup *Dialercampaignconfigchangeurireference `json:"edgeGroup,omitempty"` - - - // Site - Site *Dialercampaignconfigchangeurireference `json:"site,omitempty"` - - - // CampaignStatus - CampaignStatus *string `json:"campaignStatus,omitempty"` - - - // PhoneColumns - PhoneColumns *[]Dialercampaignconfigchangephonecolumn `json:"phoneColumns,omitempty"` - - - // AbandonRate - AbandonRate *float32 `json:"abandonRate,omitempty"` - - - // DncLists - DncLists *[]Dialercampaignconfigchangeurireference `json:"dncLists,omitempty"` - - - // CallableTimeSet - CallableTimeSet *Dialercampaignconfigchangeurireference `json:"callableTimeSet,omitempty"` - - - // CallAnalysisResponseSet - CallAnalysisResponseSet *Dialercampaignconfigchangeurireference `json:"callAnalysisResponseSet,omitempty"` - - - // CallerName - CallerName *string `json:"callerName,omitempty"` - - - // CallerAddress - CallerAddress *string `json:"callerAddress,omitempty"` - - - // OutboundLineCount - OutboundLineCount *int32 `json:"outboundLineCount,omitempty"` - - - // Errors - Errors *[]Dialercampaignconfigchangeresterrordetail `json:"errors,omitempty"` - - - // RuleSets - RuleSets *[]Dialercampaignconfigchangeurireference `json:"ruleSets,omitempty"` - - - // SkipPreviewDisabled - SkipPreviewDisabled *bool `json:"skipPreviewDisabled,omitempty"` - - - // PreviewTimeOutSeconds - PreviewTimeOutSeconds *int32 `json:"previewTimeOutSeconds,omitempty"` - - - // SingleNumberPreview - SingleNumberPreview *bool `json:"singleNumberPreview,omitempty"` - - - // ContactSort - ContactSort *Dialercampaignconfigchangecontactsort `json:"contactSort,omitempty"` - - - // ContactSorts - ContactSorts *[]Dialercampaignconfigchangecontactsort `json:"contactSorts,omitempty"` - - - // NoAnswerTimeout - NoAnswerTimeout *int32 `json:"noAnswerTimeout,omitempty"` - - - // CallAnalysisLanguage - CallAnalysisLanguage *string `json:"callAnalysisLanguage,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // ContactListFilters - ContactListFilters *[]Dialercampaignconfigchangeurireference `json:"contactListFilters,omitempty"` - - - // Division - Division *Dialercampaignconfigchangeurireference `json:"division,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignconfigchangecampaign) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignconfigchangecontactsort.go b/build/platformclientv2/dialercampaignconfigchangecontactsort.go deleted file mode 100644 index e438a6889..000000000 --- a/build/platformclientv2/dialercampaignconfigchangecontactsort.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignconfigchangecontactsort -type Dialercampaignconfigchangecontactsort struct { - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // Numeric - Numeric *bool `json:"numeric,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignconfigchangecontactsort) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignconfigchangephonecolumn.go b/build/platformclientv2/dialercampaignconfigchangephonecolumn.go deleted file mode 100644 index 810a5c7cd..000000000 --- a/build/platformclientv2/dialercampaignconfigchangephonecolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignconfigchangephonecolumn -type Dialercampaignconfigchangephonecolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignconfigchangephonecolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignconfigchangeresterrordetail.go b/build/platformclientv2/dialercampaignconfigchangeresterrordetail.go deleted file mode 100644 index 273a60aa4..000000000 --- a/build/platformclientv2/dialercampaignconfigchangeresterrordetail.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignconfigchangeresterrordetail -type Dialercampaignconfigchangeresterrordetail struct { - // VarError - VarError *string `json:"error,omitempty"` - - - // Details - Details *string `json:"details,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignconfigchangeresterrordetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignconfigchangeurireference.go b/build/platformclientv2/dialercampaignconfigchangeurireference.go deleted file mode 100644 index 2322ebb61..000000000 --- a/build/platformclientv2/dialercampaignconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignconfigchangeurireference -type Dialercampaignconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignprogresseventcampaignprogress.go b/build/platformclientv2/dialercampaignprogresseventcampaignprogress.go deleted file mode 100644 index c9fda353e..000000000 --- a/build/platformclientv2/dialercampaignprogresseventcampaignprogress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignprogresseventcampaignprogress -type Dialercampaignprogresseventcampaignprogress struct { - // Campaign - Campaign *Dialercampaignprogresseventurireference `json:"campaign,omitempty"` - - - // NumberOfContactsCalled - NumberOfContactsCalled *float32 `json:"numberOfContactsCalled,omitempty"` - - - // NumberOfContactsMessaged - NumberOfContactsMessaged *float32 `json:"numberOfContactsMessaged,omitempty"` - - - // TotalNumberOfContacts - TotalNumberOfContacts *float32 `json:"totalNumberOfContacts,omitempty"` - - - // Percentage - Percentage *int32 `json:"percentage,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignprogresseventcampaignprogress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignprogresseventurireference.go b/build/platformclientv2/dialercampaignprogresseventurireference.go deleted file mode 100644 index 8d6c23943..000000000 --- a/build/platformclientv2/dialercampaignprogresseventurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignprogresseventurireference -type Dialercampaignprogresseventurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignprogresseventurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignruleconfigchangecampaignrule.go b/build/platformclientv2/dialercampaignruleconfigchangecampaignrule.go deleted file mode 100644 index ab689cdfd..000000000 --- a/build/platformclientv2/dialercampaignruleconfigchangecampaignrule.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialercampaignruleconfigchangecampaignrule -type Dialercampaignruleconfigchangecampaignrule struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // CampaignRuleEntities - CampaignRuleEntities *Dialercampaignruleconfigchangecampaignruleentities `json:"campaignRuleEntities,omitempty"` - - - // CampaignRuleConditions - CampaignRuleConditions *[]Dialercampaignruleconfigchangecampaignrulecondition `json:"campaignRuleConditions,omitempty"` - - - // CampaignRuleActions - CampaignRuleActions *[]Dialercampaignruleconfigchangecampaignruleaction `json:"campaignRuleActions,omitempty"` - - - // MatchAnyConditions - MatchAnyConditions *bool `json:"matchAnyConditions,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignruleconfigchangecampaignrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignruleconfigchangecampaignruleaction.go b/build/platformclientv2/dialercampaignruleconfigchangecampaignruleaction.go deleted file mode 100644 index 817013385..000000000 --- a/build/platformclientv2/dialercampaignruleconfigchangecampaignruleaction.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignruleconfigchangecampaignruleaction -type Dialercampaignruleconfigchangecampaignruleaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // Parameters - Parameters *map[string]string `json:"parameters,omitempty"` - - - // ActionType - ActionType *string `json:"actionType,omitempty"` - - - // CampaignRuleActionEntities - CampaignRuleActionEntities *Dialercampaignruleconfigchangecampaignruleactionentities `json:"campaignRuleActionEntities,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignruleconfigchangecampaignruleaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignruleconfigchangecampaignruleactionentities.go b/build/platformclientv2/dialercampaignruleconfigchangecampaignruleactionentities.go deleted file mode 100644 index 0b23fcf70..000000000 --- a/build/platformclientv2/dialercampaignruleconfigchangecampaignruleactionentities.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignruleconfigchangecampaignruleactionentities -type Dialercampaignruleconfigchangecampaignruleactionentities struct { - // Campaigns - Campaigns *[]Dialercampaignruleconfigchangeurireference `json:"campaigns,omitempty"` - - - // Sequences - Sequences *[]Dialercampaignruleconfigchangeurireference `json:"sequences,omitempty"` - - - // UseTriggeringEntity - UseTriggeringEntity *bool `json:"useTriggeringEntity,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignruleconfigchangecampaignruleactionentities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignruleconfigchangecampaignrulecondition.go b/build/platformclientv2/dialercampaignruleconfigchangecampaignrulecondition.go deleted file mode 100644 index 30671da89..000000000 --- a/build/platformclientv2/dialercampaignruleconfigchangecampaignrulecondition.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignruleconfigchangecampaignrulecondition -type Dialercampaignruleconfigchangecampaignrulecondition struct { - // Id - Id *string `json:"id,omitempty"` - - - // Parameters - Parameters *map[string]string `json:"parameters,omitempty"` - - - // ConditionType - ConditionType *string `json:"conditionType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignruleconfigchangecampaignrulecondition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignruleconfigchangecampaignruleentities.go b/build/platformclientv2/dialercampaignruleconfigchangecampaignruleentities.go deleted file mode 100644 index 72bdc3e72..000000000 --- a/build/platformclientv2/dialercampaignruleconfigchangecampaignruleentities.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignruleconfigchangecampaignruleentities -type Dialercampaignruleconfigchangecampaignruleentities struct { - // Campaigns - Campaigns *[]Dialercampaignruleconfigchangeurireference `json:"campaigns,omitempty"` - - - // Sequences - Sequences *[]Dialercampaignruleconfigchangeurireference `json:"sequences,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignruleconfigchangecampaignruleentities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignruleconfigchangeurireference.go b/build/platformclientv2/dialercampaignruleconfigchangeurireference.go deleted file mode 100644 index 7f9e3733e..000000000 --- a/build/platformclientv2/dialercampaignruleconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignruleconfigchangeurireference -type Dialercampaignruleconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignruleconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignscheduleconfigchangecampaignschedule.go b/build/platformclientv2/dialercampaignscheduleconfigchangecampaignschedule.go deleted file mode 100644 index 66f95fa75..000000000 --- a/build/platformclientv2/dialercampaignscheduleconfigchangecampaignschedule.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialercampaignscheduleconfigchangecampaignschedule -type Dialercampaignscheduleconfigchangecampaignschedule struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // Intervals - Intervals *[]Dialercampaignscheduleconfigchangescheduleinterval `json:"intervals,omitempty"` - - - // TimeZone - TimeZone *string `json:"timeZone,omitempty"` - - - // Campaign - Campaign *Dialercampaignscheduleconfigchangeurireference `json:"campaign,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignscheduleconfigchangecampaignschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignscheduleconfigchangescheduleinterval.go b/build/platformclientv2/dialercampaignscheduleconfigchangescheduleinterval.go deleted file mode 100644 index c09b3b368..000000000 --- a/build/platformclientv2/dialercampaignscheduleconfigchangescheduleinterval.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignscheduleconfigchangescheduleinterval -type Dialercampaignscheduleconfigchangescheduleinterval struct { - // Start - Start *string `json:"start,omitempty"` - - - // End - End *string `json:"end,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignscheduleconfigchangescheduleinterval) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercampaignscheduleconfigchangeurireference.go b/build/platformclientv2/dialercampaignscheduleconfigchangeurireference.go deleted file mode 100644 index db8d26b90..000000000 --- a/build/platformclientv2/dialercampaignscheduleconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercampaignscheduleconfigchangeurireference -type Dialercampaignscheduleconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercampaignscheduleconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontact.go b/build/platformclientv2/dialercontact.go deleted file mode 100644 index d7e8c3d14..000000000 --- a/build/platformclientv2/dialercontact.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontact -type Dialercontact struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContactListId - The identifier of the contact list containing this contact. - ContactListId *string `json:"contactListId,omitempty"` - - - // Data - An ordered map of the contact's columns and corresponding values. - Data *map[string]interface{} `json:"data,omitempty"` - - - // CallRecords - A map of call records for the contact phone columns. - CallRecords *map[string]Callrecord `json:"callRecords,omitempty"` - - - // Callable - Indicates whether or not the contact can be called. - Callable *bool `json:"callable,omitempty"` - - - // PhoneNumberStatus - A map of phone number columns to PhoneNumberStatuses, which indicate if the phone number is callable or not. - PhoneNumberStatus *map[string]Phonenumberstatus `json:"phoneNumberStatus,omitempty"` - - - // ContactColumnTimeZones - Map containing data about the timezone the contact is mapped to. This will only be populated if the contact list has automatic timezone mapping turned on. The key is the column name. The value is the timezone it mapped to and the type of column: Phone or Zip - ContactColumnTimeZones *map[string]Contactcolumntimezone `json:"contactColumnTimeZones,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontact) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactid.go b/build/platformclientv2/dialercontactid.go deleted file mode 100644 index 53a74c248..000000000 --- a/build/platformclientv2/dialercontactid.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactid -type Dialercontactid struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistconfigchangecontactlist.go b/build/platformclientv2/dialercontactlistconfigchangecontactlist.go deleted file mode 100644 index 6c37f7790..000000000 --- a/build/platformclientv2/dialercontactlistconfigchangecontactlist.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialercontactlistconfigchangecontactlist -type Dialercontactlistconfigchangecontactlist struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // ColumnNames - ColumnNames *[]string `json:"columnNames,omitempty"` - - - // PhoneColumns - PhoneColumns *[]Dialercontactlistconfigchangecontactphonenumbercolumn `json:"phoneColumns,omitempty"` - - - // ImportStatus - ImportStatus *Dialercontactlistconfigchangeimportstatus `json:"importStatus,omitempty"` - - - // PreviewModeColumnName - PreviewModeColumnName *string `json:"previewModeColumnName,omitempty"` - - - // PreviewModeAcceptedValues - PreviewModeAcceptedValues *[]string `json:"previewModeAcceptedValues,omitempty"` - - - // Size - Size *int32 `json:"size,omitempty"` - - - // AttemptLimits - AttemptLimits *Dialercontactlistconfigchangeurireference `json:"attemptLimits,omitempty"` - - - // AutomaticTimeZoneMapping - AutomaticTimeZoneMapping *bool `json:"automaticTimeZoneMapping,omitempty"` - - - // ZipCodeColumnName - ZipCodeColumnName *string `json:"zipCodeColumnName,omitempty"` - - - // Division - Division *Dialercontactlistconfigchangeurireference `json:"division,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistconfigchangecontactlist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistconfigchangecontactphonenumbercolumn.go b/build/platformclientv2/dialercontactlistconfigchangecontactphonenumbercolumn.go deleted file mode 100644 index eca930a9b..000000000 --- a/build/platformclientv2/dialercontactlistconfigchangecontactphonenumbercolumn.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistconfigchangecontactphonenumbercolumn -type Dialercontactlistconfigchangecontactphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // CallableTimeColumn - CallableTimeColumn *string `json:"callableTimeColumn,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistconfigchangecontactphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistconfigchangeimportstatus.go b/build/platformclientv2/dialercontactlistconfigchangeimportstatus.go deleted file mode 100644 index 6690aed4f..000000000 --- a/build/platformclientv2/dialercontactlistconfigchangeimportstatus.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistconfigchangeimportstatus -type Dialercontactlistconfigchangeimportstatus struct { - // ImportState - ImportState *string `json:"importState,omitempty"` - - - // TotalRecords - TotalRecords *int32 `json:"totalRecords,omitempty"` - - - // CompletedRecords - CompletedRecords *int32 `json:"completedRecords,omitempty"` - - - // PercentageComplete - PercentageComplete *int32 `json:"percentageComplete,omitempty"` - - - // FailureReason - FailureReason *string `json:"failureReason,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistconfigchangeimportstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistconfigchangeurireference.go b/build/platformclientv2/dialercontactlistconfigchangeurireference.go deleted file mode 100644 index 51882c259..000000000 --- a/build/platformclientv2/dialercontactlistconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistconfigchangeurireference -type Dialercontactlistconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistfilterconfigchangecontactlistfilter.go b/build/platformclientv2/dialercontactlistfilterconfigchangecontactlistfilter.go deleted file mode 100644 index 445c092e5..000000000 --- a/build/platformclientv2/dialercontactlistfilterconfigchangecontactlistfilter.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialercontactlistfilterconfigchangecontactlistfilter -type Dialercontactlistfilterconfigchangecontactlistfilter struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // ContactList - ContactList *Dialercontactlistfilterconfigchangeurireference `json:"contactList,omitempty"` - - - // ContactListColumns - ContactListColumns *[]string `json:"contactListColumns,omitempty"` - - - // Clauses - Clauses *[]Dialercontactlistfilterconfigchangefilterclause `json:"clauses,omitempty"` - - - // FilterType - FilterType *string `json:"filterType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistfilterconfigchangecontactlistfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistfilterconfigchangefilterclause.go b/build/platformclientv2/dialercontactlistfilterconfigchangefilterclause.go deleted file mode 100644 index 6dccb1490..000000000 --- a/build/platformclientv2/dialercontactlistfilterconfigchangefilterclause.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistfilterconfigchangefilterclause -type Dialercontactlistfilterconfigchangefilterclause struct { - // FilterType - FilterType *string `json:"filterType,omitempty"` - - - // Predicates - Predicates *[]Dialercontactlistfilterconfigchangefilterpredicate `json:"predicates,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistfilterconfigchangefilterclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistfilterconfigchangefilterpredicate.go b/build/platformclientv2/dialercontactlistfilterconfigchangefilterpredicate.go deleted file mode 100644 index abd8c1308..000000000 --- a/build/platformclientv2/dialercontactlistfilterconfigchangefilterpredicate.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistfilterconfigchangefilterpredicate -type Dialercontactlistfilterconfigchangefilterpredicate struct { - // Column - Column *string `json:"column,omitempty"` - - - // ColumnType - ColumnType *string `json:"columnType,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - - - // VarRange - VarRange *Dialercontactlistfilterconfigchangerange `json:"range,omitempty"` - - - // Inverted - Inverted *bool `json:"inverted,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistfilterconfigchangefilterpredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistfilterconfigchangerange.go b/build/platformclientv2/dialercontactlistfilterconfigchangerange.go deleted file mode 100644 index 609637d84..000000000 --- a/build/platformclientv2/dialercontactlistfilterconfigchangerange.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistfilterconfigchangerange -type Dialercontactlistfilterconfigchangerange struct { - // Min - Min *string `json:"min,omitempty"` - - - // Max - Max *string `json:"max,omitempty"` - - - // MinInclusive - MinInclusive *bool `json:"minInclusive,omitempty"` - - - // MaxInclusive - MaxInclusive *bool `json:"maxInclusive,omitempty"` - - - // InSet - InSet *[]string `json:"inSet,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistfilterconfigchangerange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialercontactlistfilterconfigchangeurireference.go b/build/platformclientv2/dialercontactlistfilterconfigchangeurireference.go deleted file mode 100644 index bc330839d..000000000 --- a/build/platformclientv2/dialercontactlistfilterconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialercontactlistfilterconfigchangeurireference -type Dialercontactlistfilterconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialercontactlistfilterconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerdnclistconfigchangednclist.go b/build/platformclientv2/dialerdnclistconfigchangednclist.go deleted file mode 100644 index 45d92ce88..000000000 --- a/build/platformclientv2/dialerdnclistconfigchangednclist.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialerdnclistconfigchangednclist -type Dialerdnclistconfigchangednclist struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // ImportStatus - ImportStatus *Dialerdnclistconfigchangeimportstatus `json:"importStatus,omitempty"` - - - // Size - Size *int32 `json:"size,omitempty"` - - - // DncSourceType - DncSourceType *string `json:"dncSourceType,omitempty"` - - - // LoginId - LoginId *string `json:"loginId,omitempty"` - - - // DncCodes - DncCodes *[]string `json:"dncCodes,omitempty"` - - - // LicenseId - LicenseId *string `json:"licenseId,omitempty"` - - - // Division - Division *Dialerdnclistconfigchangeurireference `json:"division,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerdnclistconfigchangednclist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerdnclistconfigchangeimportstatus.go b/build/platformclientv2/dialerdnclistconfigchangeimportstatus.go deleted file mode 100644 index 2a5da1a3a..000000000 --- a/build/platformclientv2/dialerdnclistconfigchangeimportstatus.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerdnclistconfigchangeimportstatus -type Dialerdnclistconfigchangeimportstatus struct { - // ImportState - ImportState *string `json:"importState,omitempty"` - - - // TotalRecords - TotalRecords *int32 `json:"totalRecords,omitempty"` - - - // CompletedRecords - CompletedRecords *int32 `json:"completedRecords,omitempty"` - - - // PercentageComplete - PercentageComplete *int32 `json:"percentageComplete,omitempty"` - - - // FailureReason - FailureReason *string `json:"failureReason,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerdnclistconfigchangeimportstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerdnclistconfigchangeurireference.go b/build/platformclientv2/dialerdnclistconfigchangeurireference.go deleted file mode 100644 index c2337e8b4..000000000 --- a/build/platformclientv2/dialerdnclistconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerdnclistconfigchangeurireference -type Dialerdnclistconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerdnclistconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerevententitylisting.go b/build/platformclientv2/dialerevententitylisting.go deleted file mode 100644 index 86b25522d..000000000 --- a/build/platformclientv2/dialerevententitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerevententitylisting -type Dialerevententitylisting struct { - // Entities - Entities *[]Eventlog `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerevententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslot.go b/build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslot.go deleted file mode 100644 index 4416149da..000000000 --- a/build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslot.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialeroutboundsettingsconfigchangeatzmtimeslot -type Dialeroutboundsettingsconfigchangeatzmtimeslot struct { - // EarliestCallableTime - EarliestCallableTime *string `json:"earliestCallableTime,omitempty"` - - - // LatestCallableTime - LatestCallableTime *string `json:"latestCallableTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialeroutboundsettingsconfigchangeatzmtimeslot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone.go b/build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone.go deleted file mode 100644 index 84a47b440..000000000 --- a/build/platformclientv2/dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone -type Dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone struct { - // EarliestCallableTime - EarliestCallableTime *string `json:"earliestCallableTime,omitempty"` - - - // LatestCallableTime - LatestCallableTime *string `json:"latestCallableTime,omitempty"` - - - // TimeZoneId - TimeZoneId *string `json:"timeZoneId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings.go b/build/platformclientv2/dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings.go deleted file mode 100644 index 1d8a6f2ca..000000000 --- a/build/platformclientv2/dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings -type Dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings struct { - // CallableWindows - CallableWindows *[]Dialeroutboundsettingsconfigchangecallablewindow `json:"callableWindows,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialeroutboundsettingsconfigchangecallablewindow.go b/build/platformclientv2/dialeroutboundsettingsconfigchangecallablewindow.go deleted file mode 100644 index 53aab002a..000000000 --- a/build/platformclientv2/dialeroutboundsettingsconfigchangecallablewindow.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialeroutboundsettingsconfigchangecallablewindow -type Dialeroutboundsettingsconfigchangecallablewindow struct { - // Mapped - Mapped *Dialeroutboundsettingsconfigchangeatzmtimeslot `json:"mapped,omitempty"` - - - // Unmapped - Unmapped *Dialeroutboundsettingsconfigchangeatzmtimeslotwithtimezone `json:"unmapped,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialeroutboundsettingsconfigchangecallablewindow) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialeroutboundsettingsconfigchangeoutboundsettings.go b/build/platformclientv2/dialeroutboundsettingsconfigchangeoutboundsettings.go deleted file mode 100644 index c10cf78af..000000000 --- a/build/platformclientv2/dialeroutboundsettingsconfigchangeoutboundsettings.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialeroutboundsettingsconfigchangeoutboundsettings -type Dialeroutboundsettingsconfigchangeoutboundsettings struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // MaxCallsPerAgent - MaxCallsPerAgent *int32 `json:"maxCallsPerAgent,omitempty"` - - - // MaxLineUtilization - MaxLineUtilization *float32 `json:"maxLineUtilization,omitempty"` - - - // AbandonSeconds - AbandonSeconds *float32 `json:"abandonSeconds,omitempty"` - - - // ComplianceAbandonRateDenominator - ComplianceAbandonRateDenominator *string `json:"complianceAbandonRateDenominator,omitempty"` - - - // AutomaticTimeZoneMapping - AutomaticTimeZoneMapping *Dialeroutboundsettingsconfigchangeautomatictimezonemappingsettings `json:"automaticTimeZoneMapping,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialeroutboundsettingsconfigchangeoutboundsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerpreview.go b/build/platformclientv2/dialerpreview.go deleted file mode 100644 index 946f8c613..000000000 --- a/build/platformclientv2/dialerpreview.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerpreview -type Dialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - The contact associated with this preview data pop - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - The contactList associated with this preview data pop. - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - The campaignId associated with this preview data pop. - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - The phone number columns associated with this campaign - PhoneNumberColumns *[]Phonenumbercolumn `json:"phoneNumberColumns,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerresponsesetconfigchangereaction.go b/build/platformclientv2/dialerresponsesetconfigchangereaction.go deleted file mode 100644 index 61a22330a..000000000 --- a/build/platformclientv2/dialerresponsesetconfigchangereaction.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerresponsesetconfigchangereaction -type Dialerresponsesetconfigchangereaction struct { - // Data - Data *string `json:"data,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ReactionType - ReactionType *string `json:"reactionType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerresponsesetconfigchangereaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerresponsesetconfigchangeresponseset.go b/build/platformclientv2/dialerresponsesetconfigchangeresponseset.go deleted file mode 100644 index 30f226931..000000000 --- a/build/platformclientv2/dialerresponsesetconfigchangeresponseset.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialerresponsesetconfigchangeresponseset -type Dialerresponsesetconfigchangeresponseset struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // Responses - Responses *map[string]Dialerresponsesetconfigchangereaction `json:"responses,omitempty"` - - - // BeepDetectionEnabled - BeepDetectionEnabled *bool `json:"beepDetectionEnabled,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerresponsesetconfigchangeresponseset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrule.go b/build/platformclientv2/dialerrule.go deleted file mode 100644 index c01476598..000000000 --- a/build/platformclientv2/dialerrule.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrule -type Dialerrule struct { - // Id - The identifier of the rule. - Id *string `json:"id,omitempty"` - - - // Name - The name of the rule. - Name *string `json:"name,omitempty"` - - - // Order - The ranked order of the rule. Rules are processed from lowest number to highest. - Order *int32 `json:"order,omitempty"` - - - // Category - The category of the rule. - Category *string `json:"category,omitempty"` - - - // Conditions - A list of Conditions. All of the Conditions must evaluate to true to trigger the actions. - Conditions *[]Condition `json:"conditions,omitempty"` - - - // Actions - The list of actions to be taken if the conditions are true. - Actions *[]Dialeraction `json:"actions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangeaction.go b/build/platformclientv2/dialerrulesetconfigchangeaction.go deleted file mode 100644 index 1f733c0df..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangeaction.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrulesetconfigchangeaction -type Dialerrulesetconfigchangeaction struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // ActionTypeName - ActionTypeName *string `json:"actionTypeName,omitempty"` - - - // UpdateOption - UpdateOption *string `json:"updateOption,omitempty"` - - - // Properties - Properties *map[string]string `json:"properties,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangeaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangecondition.go b/build/platformclientv2/dialerrulesetconfigchangecondition.go deleted file mode 100644 index db9c9aa32..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangecondition.go +++ /dev/null @@ -1,81 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrulesetconfigchangecondition -type Dialerrulesetconfigchangecondition struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Inverted - Inverted *bool `json:"inverted,omitempty"` - - - // AttributeName - AttributeName *string `json:"attributeName,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - - - // ValueType - ValueType *string `json:"valueType,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Codes - Codes *[]string `json:"codes,omitempty"` - - - // PropertyType - PropertyType *string `json:"propertyType,omitempty"` - - - // Property - Property *string `json:"property,omitempty"` - - - // DataNotFoundResolution - DataNotFoundResolution *bool `json:"dataNotFoundResolution,omitempty"` - - - // ContactIdField - ContactIdField *string `json:"contactIdField,omitempty"` - - - // CallAnalysisResultField - CallAnalysisResultField *string `json:"callAnalysisResultField,omitempty"` - - - // AgentWrapupField - AgentWrapupField *string `json:"agentWrapupField,omitempty"` - - - // ContactColumnToDataActionFieldMappings - ContactColumnToDataActionFieldMappings *[]Dialerrulesetconfigchangecontactcolumntodataactionfieldmapping `json:"contactColumnToDataActionFieldMappings,omitempty"` - - - // Predicates - Predicates *[]Dialerrulesetconfigchangedataactionconditionpredicate `json:"predicates,omitempty"` - - - // DataAction - DataAction *Dialerrulesetconfigchangeurireference `json:"dataAction,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangecondition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangecontactcolumntodataactionfieldmapping.go b/build/platformclientv2/dialerrulesetconfigchangecontactcolumntodataactionfieldmapping.go deleted file mode 100644 index 9dd690f43..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangecontactcolumntodataactionfieldmapping.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrulesetconfigchangecontactcolumntodataactionfieldmapping -type Dialerrulesetconfigchangecontactcolumntodataactionfieldmapping struct { - // ContactColumnName - ContactColumnName *string `json:"contactColumnName,omitempty"` - - - // DataActionField - DataActionField *string `json:"dataActionField,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangecontactcolumntodataactionfieldmapping) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangedataactionconditionpredicate.go b/build/platformclientv2/dialerrulesetconfigchangedataactionconditionpredicate.go deleted file mode 100644 index 9a0f45241..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangedataactionconditionpredicate.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrulesetconfigchangedataactionconditionpredicate -type Dialerrulesetconfigchangedataactionconditionpredicate struct { - // OutputField - OutputField *string `json:"outputField,omitempty"` - - - // OutputOperator - OutputOperator *string `json:"outputOperator,omitempty"` - - - // ComparisonValue - ComparisonValue *string `json:"comparisonValue,omitempty"` - - - // OutputFieldMissingResolution - OutputFieldMissingResolution *bool `json:"outputFieldMissingResolution,omitempty"` - - - // Inverted - Inverted *bool `json:"inverted,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangedataactionconditionpredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangerule.go b/build/platformclientv2/dialerrulesetconfigchangerule.go deleted file mode 100644 index d0b53e5fb..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangerule.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrulesetconfigchangerule -type Dialerrulesetconfigchangerule struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Order - Order *int32 `json:"order,omitempty"` - - - // Category - Category *string `json:"category,omitempty"` - - - // Actions - Actions *[]Dialerrulesetconfigchangeaction `json:"actions,omitempty"` - - - // Conditions - Conditions *[]Dialerrulesetconfigchangecondition `json:"conditions,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangerule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangeruleset.go b/build/platformclientv2/dialerrulesetconfigchangeruleset.go deleted file mode 100644 index 3553a20a9..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangeruleset.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialerrulesetconfigchangeruleset -type Dialerrulesetconfigchangeruleset struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // ContactList - ContactList *Dialerrulesetconfigchangeurireference `json:"contactList,omitempty"` - - - // Queue - Queue *Dialerrulesetconfigchangeurireference `json:"queue,omitempty"` - - - // Rules - Rules *[]Dialerrulesetconfigchangerule `json:"rules,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangeruleset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerrulesetconfigchangeurireference.go b/build/platformclientv2/dialerrulesetconfigchangeurireference.go deleted file mode 100644 index d22593a36..000000000 --- a/build/platformclientv2/dialerrulesetconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialerrulesetconfigchangeurireference -type Dialerrulesetconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerrulesetconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialersequenceconfigchangecampaignsequence.go b/build/platformclientv2/dialersequenceconfigchangecampaignsequence.go deleted file mode 100644 index 168b7e1f9..000000000 --- a/build/platformclientv2/dialersequenceconfigchangecampaignsequence.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialersequenceconfigchangecampaignsequence -type Dialersequenceconfigchangecampaignsequence struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // Campaigns - Campaigns *[]Dialersequenceconfigchangeurireference `json:"campaigns,omitempty"` - - - // CurrentCampaign - CurrentCampaign *int32 `json:"currentCampaign,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // StopMessage - StopMessage *string `json:"stopMessage,omitempty"` - - - // Repeat - Repeat *bool `json:"repeat,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialersequenceconfigchangecampaignsequence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialersequenceconfigchangeurireference.go b/build/platformclientv2/dialersequenceconfigchangeurireference.go deleted file mode 100644 index 366f6225b..000000000 --- a/build/platformclientv2/dialersequenceconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialersequenceconfigchangeurireference -type Dialersequenceconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialersequenceconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialersequencescheduleconfigchangescheduleinterval.go b/build/platformclientv2/dialersequencescheduleconfigchangescheduleinterval.go deleted file mode 100644 index 576fab4e0..000000000 --- a/build/platformclientv2/dialersequencescheduleconfigchangescheduleinterval.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialersequencescheduleconfigchangescheduleinterval -type Dialersequencescheduleconfigchangescheduleinterval struct { - // Start - Start *string `json:"start,omitempty"` - - - // End - End *string `json:"end,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialersequencescheduleconfigchangescheduleinterval) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialersequencescheduleconfigchangesequenceschedule.go b/build/platformclientv2/dialersequencescheduleconfigchangesequenceschedule.go deleted file mode 100644 index 6943de935..000000000 --- a/build/platformclientv2/dialersequencescheduleconfigchangesequenceschedule.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialersequencescheduleconfigchangesequenceschedule -type Dialersequencescheduleconfigchangesequenceschedule struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // Intervals - Intervals *[]Dialersequencescheduleconfigchangescheduleinterval `json:"intervals,omitempty"` - - - // TimeZone - TimeZone *string `json:"timeZone,omitempty"` - - - // Sequence - Sequence *Dialersequencescheduleconfigchangeurireference `json:"sequence,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialersequencescheduleconfigchangesequenceschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialersequencescheduleconfigchangeurireference.go b/build/platformclientv2/dialersequencescheduleconfigchangeurireference.go deleted file mode 100644 index e038b5622..000000000 --- a/build/platformclientv2/dialersequencescheduleconfigchangeurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialersequencescheduleconfigchangeurireference -type Dialersequencescheduleconfigchangeurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialersequencescheduleconfigchangeurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialerwrapupcodemappingconfigchangewrapupcodemapping.go b/build/platformclientv2/dialerwrapupcodemappingconfigchangewrapupcodemapping.go deleted file mode 100644 index 45715ac76..000000000 --- a/build/platformclientv2/dialerwrapupcodemappingconfigchangewrapupcodemapping.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dialerwrapupcodemappingconfigchangewrapupcodemapping -type Dialerwrapupcodemappingconfigchangewrapupcodemapping struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - - - // DefaultSet - DefaultSet *[]string `json:"defaultSet,omitempty"` - - - // Mapping - Mapping *map[string][]string `json:"mapping,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialerwrapupcodemappingconfigchangewrapupcodemapping) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialogflowagent.go b/build/platformclientv2/dialogflowagent.go deleted file mode 100644 index 65a6c83c7..000000000 --- a/build/platformclientv2/dialogflowagent.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialogflowagent -type Dialogflowagent struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Project - The project this Dialogflow agent belongs to - Project *Dialogflowproject `json:"project,omitempty"` - - - // Languages - The target languages of the Dialogflow agent - Languages *[]string `json:"languages,omitempty"` - - - // Intents - An array of Intents associated with this bot alias - Intents *[]Dialogflowintent `json:"intents,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialogflowagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialogflowagentsummary.go b/build/platformclientv2/dialogflowagentsummary.go deleted file mode 100644 index 75b4c9784..000000000 --- a/build/platformclientv2/dialogflowagentsummary.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialogflowagentsummary -type Dialogflowagentsummary struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Project - The project this Dialogflow agent belongs to - Project *Dialogflowproject `json:"project,omitempty"` - - - // Description - A description of the Dialogflow agent - Description *string `json:"description,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialogflowagentsummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialogflowagentsummaryentitylisting.go b/build/platformclientv2/dialogflowagentsummaryentitylisting.go deleted file mode 100644 index 0de0e842c..000000000 --- a/build/platformclientv2/dialogflowagentsummaryentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialogflowagentsummaryentitylisting -type Dialogflowagentsummaryentitylisting struct { - // Entities - Entities *[]Dialogflowagentsummary `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialogflowagentsummaryentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialogflowintent.go b/build/platformclientv2/dialogflowintent.go deleted file mode 100644 index 70a9c238b..000000000 --- a/build/platformclientv2/dialogflowintent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialogflowintent -type Dialogflowintent struct { - // Name - The intent name - Name *string `json:"name,omitempty"` - - - // Parameters - An object mapping parameter names to Parameter objects - Parameters *map[string]Dialogflowparameter `json:"parameters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialogflowintent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialogflowparameter.go b/build/platformclientv2/dialogflowparameter.go deleted file mode 100644 index 6fc908110..000000000 --- a/build/platformclientv2/dialogflowparameter.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialogflowparameter -type Dialogflowparameter struct { - // Name - The parameter name - Name *string `json:"name,omitempty"` - - - // VarType - The parameter type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialogflowparameter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dialogflowproject.go b/build/platformclientv2/dialogflowproject.go deleted file mode 100644 index 78e46b95f..000000000 --- a/build/platformclientv2/dialogflowproject.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dialogflowproject -type Dialogflowproject struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dialogflowproject) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/did.go b/build/platformclientv2/did.go deleted file mode 100644 index 22e4dd474..000000000 --- a/build/platformclientv2/did.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Did -type Did struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // PhoneNumber - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // DidPool - DidPool *Domainentityref `json:"didPool,omitempty"` - - - // Owner - A Uri reference to the owner of this DID, which is either a User or an IVR - Owner *Domainentityref `json:"owner,omitempty"` - - - // OwnerType - OwnerType *string `json:"ownerType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Did) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/didentitylisting.go b/build/platformclientv2/didentitylisting.go deleted file mode 100644 index 453e1d088..000000000 --- a/build/platformclientv2/didentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Didentitylisting -type Didentitylisting struct { - // Entities - Entities *[]Did `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Didentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/didpool.go b/build/platformclientv2/didpool.go deleted file mode 100644 index cb6785fe0..000000000 --- a/build/platformclientv2/didpool.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Didpool -type Didpool struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // StartPhoneNumber - The starting phone number for the range of this DID pool. Must be in E.164 format - StartPhoneNumber *string `json:"startPhoneNumber,omitempty"` - - - // EndPhoneNumber - The ending phone number for the range of this DID pool. Must be in E.164 format - EndPhoneNumber *string `json:"endPhoneNumber,omitempty"` - - - // Comments - Comments *string `json:"comments,omitempty"` - - - // Provider - The provider for this DID pool - Provider *string `json:"provider,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Didpool) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/didpoolentitylisting.go b/build/platformclientv2/didpoolentitylisting.go deleted file mode 100644 index cd6b955a3..000000000 --- a/build/platformclientv2/didpoolentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Didpoolentitylisting -type Didpoolentitylisting struct { - // Entities - Entities *[]Didpool `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Didpoolentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/digitlength.go b/build/platformclientv2/digitlength.go deleted file mode 100644 index e2b2114e9..000000000 --- a/build/platformclientv2/digitlength.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Digitlength -type Digitlength struct { - // Start - Start *string `json:"start,omitempty"` - - - // End - End *string `json:"end,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Digitlength) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/digits.go b/build/platformclientv2/digits.go deleted file mode 100644 index 6369b20ad..000000000 --- a/build/platformclientv2/digits.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Digits -type Digits struct { - // Digits - A string representing the digits pressed on phone. - Digits *string `json:"digits,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Digits) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/directoryuserdeviceslisting.go b/build/platformclientv2/directoryuserdeviceslisting.go deleted file mode 100644 index bbceae8b2..000000000 --- a/build/platformclientv2/directoryuserdeviceslisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Directoryuserdeviceslisting -type Directoryuserdeviceslisting struct { - // Entities - Entities *[]Userdevice `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Directoryuserdeviceslisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/disconnectreason.go b/build/platformclientv2/disconnectreason.go deleted file mode 100644 index 3aec6d545..000000000 --- a/build/platformclientv2/disconnectreason.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Disconnectreason -type Disconnectreason struct { - // VarType - Disconnect reason protocol type. - VarType *string `json:"type,omitempty"` - - - // Code - Protocol specific reason code. See the Q.850 and SIP specs. - Code *int32 `json:"code,omitempty"` - - - // Phrase - Human readable English description of the disconnect reason. - Phrase *string `json:"phrase,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Disconnectreason) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/division.go b/build/platformclientv2/division.go deleted file mode 100644 index dc95a3494..000000000 --- a/build/platformclientv2/division.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Division -type Division struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Division) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclist.go b/build/platformclientv2/dnclist.go deleted file mode 100644 index aa250e3e7..000000000 --- a/build/platformclientv2/dnclist.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dnclist -type Dnclist struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the DncList. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // ImportStatus - The status of the import process - ImportStatus *Importstatus `json:"importStatus,omitempty"` - - - // Size - The total number of phone numbers in the DncList. - Size *int64 `json:"size,omitempty"` - - - // DncSourceType - The type of the DncList. - DncSourceType *string `json:"dncSourceType,omitempty"` - - - // LoginId - A dnc.com loginId. Required if the dncSourceType is dnc.com. - LoginId *string `json:"loginId,omitempty"` - - - // DncCodes - The list of dnc.com codes to be treated as DNC. Required if the dncSourceType is dnc.com. - DncCodes *[]string `json:"dncCodes,omitempty"` - - - // LicenseId - A gryphon license number. Required if the dncSourceType is gryphon. - LicenseId *string `json:"licenseId,omitempty"` - - - // Division - The division this DncList belongs to. - Division *Domainentityref `json:"division,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclistcreate.go b/build/platformclientv2/dnclistcreate.go deleted file mode 100644 index 2745ffb16..000000000 --- a/build/platformclientv2/dnclistcreate.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Dnclistcreate -type Dnclistcreate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the DncList. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // ImportStatus - The status of the import process - ImportStatus *Importstatus `json:"importStatus,omitempty"` - - - // Size - The total number of phone numbers in the DncList. - Size *int64 `json:"size,omitempty"` - - - // DncSourceType - The type of the DncList. - DncSourceType *string `json:"dncSourceType,omitempty"` - - - // LoginId - A dnc.com loginId. Required if the dncSourceType is dnc.com. - LoginId *string `json:"loginId,omitempty"` - - - // DncCodes - The list of dnc.com codes to be treated as DNC. Required if the dncSourceType is dnc.com. - DncCodes *[]string `json:"dncCodes,omitempty"` - - - // LicenseId - A gryphon license number. Required if the dncSourceType is gryphon. - LicenseId *string `json:"licenseId,omitempty"` - - - // Division - The division this DncList belongs to. - Division *Domainentityref `json:"division,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclistcreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclistdivisionview.go b/build/platformclientv2/dnclistdivisionview.go deleted file mode 100644 index db3122f4b..000000000 --- a/build/platformclientv2/dnclistdivisionview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dnclistdivisionview -type Dnclistdivisionview struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // ImportStatus - The status of the import process. - ImportStatus *Importstatus `json:"importStatus,omitempty"` - - - // Size - The number of contacts in the ContactList. - Size *int64 `json:"size,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclistdivisionview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclistdivisionviewlisting.go b/build/platformclientv2/dnclistdivisionviewlisting.go deleted file mode 100644 index 745d3ebce..000000000 --- a/build/platformclientv2/dnclistdivisionviewlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dnclistdivisionviewlisting -type Dnclistdivisionviewlisting struct { - // Entities - Entities *[]Dnclistdivisionview `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclistdivisionviewlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclistdownloadreadyexporturi.go b/build/platformclientv2/dnclistdownloadreadyexporturi.go deleted file mode 100644 index 464442764..000000000 --- a/build/platformclientv2/dnclistdownloadreadyexporturi.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dnclistdownloadreadyexporturi -type Dnclistdownloadreadyexporturi struct { - // Uri - Uri *string `json:"uri,omitempty"` - - - // ExportTimestamp - ExportTimestamp *string `json:"exportTimestamp,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclistdownloadreadyexporturi) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclistentitylisting.go b/build/platformclientv2/dnclistentitylisting.go deleted file mode 100644 index f16ad434a..000000000 --- a/build/platformclientv2/dnclistentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dnclistentitylisting -type Dnclistentitylisting struct { - // Entities - Entities *[]Dnclist `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclistentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/dnclistimportstatusimportstatus.go b/build/platformclientv2/dnclistimportstatusimportstatus.go deleted file mode 100644 index b515b22fc..000000000 --- a/build/platformclientv2/dnclistimportstatusimportstatus.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Dnclistimportstatusimportstatus -type Dnclistimportstatusimportstatus struct { - // ImportState - ImportState *string `json:"importState,omitempty"` - - - // TotalRecords - TotalRecords *int32 `json:"totalRecords,omitempty"` - - - // CompletedRecords - CompletedRecords *int32 `json:"completedRecords,omitempty"` - - - // PercentageComplete - PercentageComplete *int32 `json:"percentageComplete,omitempty"` - - - // FailureReason - FailureReason *string `json:"failureReason,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Dnclistimportstatusimportstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/document.go b/build/platformclientv2/document.go deleted file mode 100644 index fc87be432..000000000 --- a/build/platformclientv2/document.go +++ /dev/null @@ -1,138 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Document -type Document struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // DateUploaded - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateUploaded *time.Time `json:"dateUploaded,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // UploadedBy - UploadedBy *Domainentityref `json:"uploadedBy,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int64 `json:"contentLength,omitempty"` - - - // SystemType - SystemType *string `json:"systemType,omitempty"` - - - // Filename - Filename *string `json:"filename,omitempty"` - - - // PageCount - PageCount *int64 `json:"pageCount,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - - - // CallerAddress - CallerAddress *string `json:"callerAddress,omitempty"` - - - // ReceiverAddress - ReceiverAddress *string `json:"receiverAddress,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // TagValues - TagValues *[]Tagvalue `json:"tagValues,omitempty"` - - - // Attributes - Attributes *[]Documentattribute `json:"attributes,omitempty"` - - - // Thumbnails - Thumbnails *[]Documentthumbnail `json:"thumbnails,omitempty"` - - - // UploadStatus - UploadStatus *Domainentityref `json:"uploadStatus,omitempty"` - - - // UploadDestinationUri - UploadDestinationUri *string `json:"uploadDestinationUri,omitempty"` - - - // UploadMethod - UploadMethod *string `json:"uploadMethod,omitempty"` - - - // LockInfo - LockInfo *Lockinfo `json:"lockInfo,omitempty"` - - - // Acl - A list of permitted action rights for the user making the request - Acl *[]string `json:"acl,omitempty"` - - - // SharingStatus - SharingStatus *string `json:"sharingStatus,omitempty"` - - - // SharingUri - SharingUri *string `json:"sharingUri,omitempty"` - - - // DownloadSharingUri - DownloadSharingUri *string `json:"downloadSharingUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Document) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentationresult.go b/build/platformclientv2/documentationresult.go deleted file mode 100644 index 2709754dc..000000000 --- a/build/platformclientv2/documentationresult.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Documentationresult -type Documentationresult struct { - // Id - The globally unique identifier for the object. - Id *int32 `json:"id,omitempty"` - - - // Categories - The category of the documentation entity. Will be returned in responses for certain entities. - Categories *[]int32 `json:"categories,omitempty"` - - - // Description - The description of the documentation entity. Will be returned in responses for certain entities. - Description *string `json:"description,omitempty"` - - - // Content - The text or html content for the documentation entity. Will be returned in responses for certain entities. - Content *string `json:"content,omitempty"` - - - // Excerpt - The excerpt of the documentation entity. Will be returned in responses for certain entities. - Excerpt *string `json:"excerpt,omitempty"` - - - // Link - URL link for the documentation entity. Will be returned in responses for certain entities. - Link *string `json:"link,omitempty"` - - - // Modified - The modified date for the documentation entity. Will be returned in responses for certain entities. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Modified *time.Time `json:"modified,omitempty"` - - - // Name - The name of the documentation entity. Will be returned in responses for certain entities. - Name *string `json:"name,omitempty"` - - - // Service - The service of the documentation entity. Will be returned in responses for certain entities. - Service *[]int32 `json:"service,omitempty"` - - - // Slug - The slug of the documentation entity. Will be returned in responses for certain entities. - Slug *string `json:"slug,omitempty"` - - - // Title - The title of the documentation entity. Will be returned in responses for certain entities. - Title *string `json:"title,omitempty"` - - - // GetType - The search type. Will be returned in responses for certain entities. - GetType *string `json:"get_type,omitempty"` - - - // FacetFeature - The facet feature of the documentation entity. Will be returned in responses for certain entities. - FacetFeature *[]int32 `json:"facet_feature,omitempty"` - - - // FacetRole - The facet role of the documentation entity. Will be returned in responses for certain entities. - FacetRole *[]int32 `json:"facet_role,omitempty"` - - - // FacetService - The facet service of the documentation entity. Will be returned in responses for certain entities. - FacetService *[]int32 `json:"facet_service,omitempty"` - - - // FaqCategories - The faq categories of the documentation entity. Will be returned in responses for certain entities. - FaqCategories *[]int32 `json:"faq_categories,omitempty"` - - - // ReleasenoteCategory - The releasenote category of the documentation entity. Will be returned in responses for certain entities. - ReleasenoteCategory *[]int32 `json:"releasenote_category,omitempty"` - - - // ReleasenoteTag - The releasenote tag of the documentation entity. Will be returned in responses for certain entities. - ReleasenoteTag *[]int32 `json:"releasenote_tag,omitempty"` - - - // ServiceArea - The service area of the documentation entity. Will be returned in responses for certain entities. - ServiceArea *[]int32 `json:"service-area,omitempty"` - - - // VideoCategories - The video categories of the documentation entity. Will be returned in responses for certain entities. - VideoCategories *[]int32 `json:"video_categories,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentationsearchcriteria.go b/build/platformclientv2/documentationsearchcriteria.go deleted file mode 100644 index 37b20b6bf..000000000 --- a/build/platformclientv2/documentationsearchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentationsearchcriteria -type Documentationsearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Documentationsearchcriteria `json:"group,omitempty"` - - - // VarType - Search Type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentationsearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentationsearchrequest.go b/build/platformclientv2/documentationsearchrequest.go deleted file mode 100644 index 92e23ee1a..000000000 --- a/build/platformclientv2/documentationsearchrequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentationsearchrequest -type Documentationsearchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // Query - Query *[]Documentationsearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentationsearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentationsearchresponse.go b/build/platformclientv2/documentationsearchresponse.go deleted file mode 100644 index 0365e53a5..000000000 --- a/build/platformclientv2/documentationsearchresponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentationsearchresponse -type Documentationsearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *[]Documentationresult `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentationsearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentattribute.go b/build/platformclientv2/documentattribute.go deleted file mode 100644 index d03847d2c..000000000 --- a/build/platformclientv2/documentattribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentattribute -type Documentattribute struct { - // Attribute - Attribute *Attribute `json:"attribute,omitempty"` - - - // Values - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentattribute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentaudit.go b/build/platformclientv2/documentaudit.go deleted file mode 100644 index 7033b85a6..000000000 --- a/build/platformclientv2/documentaudit.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Documentaudit -type Documentaudit struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User *Domainentityref `json:"user,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // TransactionId - TransactionId *string `json:"transactionId,omitempty"` - - - // TransactionInitiator - TransactionInitiator *bool `json:"transactionInitiator,omitempty"` - - - // Application - Application *string `json:"application,omitempty"` - - - // ServiceName - ServiceName *string `json:"serviceName,omitempty"` - - - // Level - Level *string `json:"level,omitempty"` - - - // Timestamp - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // ActionContext - ActionContext *string `json:"actionContext,omitempty"` - - - // Action - Action *string `json:"action,omitempty"` - - - // Entity - Entity *Auditentityreference `json:"entity,omitempty"` - - - // Changes - Changes *[]Auditchange `json:"changes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentaudit) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentauditentitylisting.go b/build/platformclientv2/documentauditentitylisting.go deleted file mode 100644 index 3ba199560..000000000 --- a/build/platformclientv2/documentauditentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentauditentitylisting -type Documentauditentitylisting struct { - // Entities - Entities *[]Documentaudit `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentauditentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documententitylisting.go b/build/platformclientv2/documententitylisting.go deleted file mode 100644 index ad66e4058..000000000 --- a/build/platformclientv2/documententitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documententitylisting -type Documententitylisting struct { - // Entities - Entities *[]Document `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentthumbnail.go b/build/platformclientv2/documentthumbnail.go deleted file mode 100644 index 88f511762..000000000 --- a/build/platformclientv2/documentthumbnail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentthumbnail -type Documentthumbnail struct { - // Resolution - Resolution *string `json:"resolution,omitempty"` - - - // ImageUri - ImageUri *string `json:"imageUri,omitempty"` - - - // Height - Height *int32 `json:"height,omitempty"` - - - // Width - Width *int32 `json:"width,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentthumbnail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentupdate.go b/build/platformclientv2/documentupdate.go deleted file mode 100644 index 17ab8dcdc..000000000 --- a/build/platformclientv2/documentupdate.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentupdate -type Documentupdate struct { - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // Name - The name of the document - Name *string `json:"name,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - - - // AddTags - AddTags *[]string `json:"addTags,omitempty"` - - - // RemoveTags - RemoveTags *[]string `json:"removeTags,omitempty"` - - - // AddTagIds - AddTagIds *[]string `json:"addTagIds,omitempty"` - - - // RemoveTagIds - RemoveTagIds *[]string `json:"removeTagIds,omitempty"` - - - // UpdateAttributes - UpdateAttributes *[]Documentattribute `json:"updateAttributes,omitempty"` - - - // RemoveAttributes - RemoveAttributes *[]string `json:"removeAttributes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/documentupload.go b/build/platformclientv2/documentupload.go deleted file mode 100644 index f3c5ab667..000000000 --- a/build/platformclientv2/documentupload.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Documentupload -type Documentupload struct { - // Name - The name of the document - Name *string `json:"name,omitempty"` - - - // Workspace - The workspace the document will be uploaded to - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // TagIds - TagIds *[]string `json:"tagIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Documentupload) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domaincapabilities.go b/build/platformclientv2/domaincapabilities.go deleted file mode 100644 index 60b63857b..000000000 --- a/build/platformclientv2/domaincapabilities.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domaincapabilities -type Domaincapabilities struct { - // Enabled - True if this address family on the interface is enabled. - Enabled *bool `json:"enabled,omitempty"` - - - // Dhcp - True if this address family on the interface is using DHCP. - Dhcp *bool `json:"dhcp,omitempty"` - - - // Metric - The metric being used for the address family on this interface. Lower values will have a higher priority. If autoMetric is true, this value will be the automatically calculated metric. To set this value be sure autoMetric is false. If no value is returned, metric configuration is not supported on this Edge. - Metric *int32 `json:"metric,omitempty"` - - - // AutoMetric - True if the metric is being calculated automatically for the address family on this interface. - AutoMetric *bool `json:"autoMetric,omitempty"` - - - // SupportsMetric - True if metric configuration is supported. - SupportsMetric *bool `json:"supportsMetric,omitempty"` - - - // PingEnabled - Set to true to enable this address family on this interface to respond to ping requests. - PingEnabled *bool `json:"pingEnabled,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domaincapabilities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domaincertificateauthority.go b/build/platformclientv2/domaincertificateauthority.go deleted file mode 100644 index 94995ac56..000000000 --- a/build/platformclientv2/domaincertificateauthority.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Domaincertificateauthority - A certificate authority represents an organization that has issued a digital certificate for making secure connections with an edge device. -type Domaincertificateauthority struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Certificate - The authorities signed X509 PEM encoded certificate. - Certificate *string `json:"certificate,omitempty"` - - - // VarType - The certificate authorities type. Managed certificate authorities are generated and maintained by Interactive Intelligence. These are read-only and not modifiable by clients. Remote authorities are customer managed. - VarType *string `json:"type,omitempty"` - - - // Services - The service(s) that the authority can be used to authenticate. - Services *[]string `json:"services,omitempty"` - - - // CertificateDetails - The details of the parsed certificate(s). - CertificateDetails *[]Certificatedetails `json:"certificateDetails,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domaincertificateauthority) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainedgesoftwareupdatedto.go b/build/platformclientv2/domainedgesoftwareupdatedto.go deleted file mode 100644 index f5a57f7b6..000000000 --- a/build/platformclientv2/domainedgesoftwareupdatedto.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Domainedgesoftwareupdatedto -type Domainedgesoftwareupdatedto struct { - // Version - Version - Version *Domainedgesoftwareversiondto `json:"version,omitempty"` - - - // MaxDownloadRate - MaxDownloadRate *int32 `json:"maxDownloadRate,omitempty"` - - - // DownloadStartTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DownloadStartTime *time.Time `json:"downloadStartTime,omitempty"` - - - // ExecuteStartTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExecuteStartTime *time.Time `json:"executeStartTime,omitempty"` - - - // ExecuteStopTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExecuteStopTime *time.Time `json:"executeStopTime,omitempty"` - - - // ExecuteOnIdle - ExecuteOnIdle *bool `json:"executeOnIdle,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // EdgeUri - EdgeUri *string `json:"edgeUri,omitempty"` - - - // CallDrainingWaitTimeSeconds - CallDrainingWaitTimeSeconds *int64 `json:"callDrainingWaitTimeSeconds,omitempty"` - - - // Current - Current *bool `json:"current,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainedgesoftwareupdatedto) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainedgesoftwareversiondto.go b/build/platformclientv2/domainedgesoftwareversiondto.go deleted file mode 100644 index 3fba4daf8..000000000 --- a/build/platformclientv2/domainedgesoftwareversiondto.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Domainedgesoftwareversiondto -type Domainedgesoftwareversiondto struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // EdgeVersion - EdgeVersion *string `json:"edgeVersion,omitempty"` - - - // PublishDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - PublishDate *time.Time `json:"publishDate,omitempty"` - - - // EdgeUri - EdgeUri *string `json:"edgeUri,omitempty"` - - - // LatestRelease - LatestRelease *bool `json:"latestRelease,omitempty"` - - - // Current - Current *bool `json:"current,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainedgesoftwareversiondto) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainedgesoftwareversiondtoentitylisting.go b/build/platformclientv2/domainedgesoftwareversiondtoentitylisting.go deleted file mode 100644 index 57f6d263b..000000000 --- a/build/platformclientv2/domainedgesoftwareversiondtoentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainedgesoftwareversiondtoentitylisting -type Domainedgesoftwareversiondtoentitylisting struct { - // Entities - Entities *[]Domainedgesoftwareversiondto `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainedgesoftwareversiondtoentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainentity.go b/build/platformclientv2/domainentity.go deleted file mode 100644 index b5c0ba0a1..000000000 --- a/build/platformclientv2/domainentity.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainentity -type Domainentity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainentitylisting.go b/build/platformclientv2/domainentitylisting.go deleted file mode 100644 index aafab1173..000000000 --- a/build/platformclientv2/domainentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainentitylisting -type Domainentitylisting struct { - // Entities - Entities *[]Domainentity `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainentitylistingevaluationform.go b/build/platformclientv2/domainentitylistingevaluationform.go deleted file mode 100644 index 2bae99af2..000000000 --- a/build/platformclientv2/domainentitylistingevaluationform.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainentitylistingevaluationform -type Domainentitylistingevaluationform struct { - // Entities - Entities *[]Evaluationform `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainentitylistingevaluationform) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainentitylistingqueryresult.go b/build/platformclientv2/domainentitylistingqueryresult.go deleted file mode 100644 index f78ba4285..000000000 --- a/build/platformclientv2/domainentitylistingqueryresult.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainentitylistingqueryresult -type Domainentitylistingqueryresult struct { - // Entities - Entities *[]Queryresult `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainentitylistingqueryresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainentitylistingsurveyform.go b/build/platformclientv2/domainentitylistingsurveyform.go deleted file mode 100644 index 0805f393a..000000000 --- a/build/platformclientv2/domainentitylistingsurveyform.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainentitylistingsurveyform -type Domainentitylistingsurveyform struct { - // Entities - Entities *[]Surveyform `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainentitylistingsurveyform) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainentityref.go b/build/platformclientv2/domainentityref.go deleted file mode 100644 index 5e116f7e7..000000000 --- a/build/platformclientv2/domainentityref.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainentityref -type Domainentityref struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainentityref) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainlogicalinterface.go b/build/platformclientv2/domainlogicalinterface.go deleted file mode 100644 index e0554b3a1..000000000 --- a/build/platformclientv2/domainlogicalinterface.go +++ /dev/null @@ -1,174 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Domainlogicalinterface -type Domainlogicalinterface struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // EdgeUri - EdgeUri *string `json:"edgeUri,omitempty"` - - - // EdgeAssignedId - EdgeAssignedId *string `json:"edgeAssignedId,omitempty"` - - - // FriendlyName - Friendly Name - FriendlyName *string `json:"friendlyName,omitempty"` - - - // VlanTagId - VlanTagId *int32 `json:"vlanTagId,omitempty"` - - - // HardwareAddress - Hardware Address - HardwareAddress *string `json:"hardwareAddress,omitempty"` - - - // PhysicalAdapterId - Physical Adapter Id - PhysicalAdapterId *string `json:"physicalAdapterId,omitempty"` - - - // IfStatus - IfStatus *string `json:"ifStatus,omitempty"` - - - // InterfaceType - The type of this network interface. - InterfaceType *string `json:"interfaceType,omitempty"` - - - // PublicNatAddressIpV4 - IPv4 NENT IP Address - PublicNatAddressIpV4 *string `json:"publicNatAddressIpV4,omitempty"` - - - // PublicNatAddressIpV6 - IPv6 NENT IP Address - PublicNatAddressIpV6 *string `json:"publicNatAddressIpV6,omitempty"` - - - // Routes - The list of routes assigned to this interface. - Routes *[]Domainnetworkroute `json:"routes,omitempty"` - - - // Addresses - The list of IP addresses on this interface. Priority of dns addresses are based on order in the list. - Addresses *[]Domainnetworkaddress `json:"addresses,omitempty"` - - - // Ipv4Capabilities - IPv4 interface settings. - Ipv4Capabilities *Domaincapabilities `json:"ipv4Capabilities,omitempty"` - - - // Ipv6Capabilities - IPv6 interface settings. - Ipv6Capabilities *Domaincapabilities `json:"ipv6Capabilities,omitempty"` - - - // CurrentState - CurrentState *string `json:"currentState,omitempty"` - - - // LastModifiedUserId - LastModifiedUserId *string `json:"lastModifiedUserId,omitempty"` - - - // LastModifiedCorrelationId - LastModifiedCorrelationId *string `json:"lastModifiedCorrelationId,omitempty"` - - - // CommandResponses - CommandResponses *[]Domainnetworkcommandresponse `json:"commandResponses,omitempty"` - - - // InheritPhoneTrunkBasesIPv4 - The IPv4 phone trunk base assignment will be inherited from the Edge Group. - InheritPhoneTrunkBasesIPv4 *bool `json:"inheritPhoneTrunkBasesIPv4,omitempty"` - - - // InheritPhoneTrunkBasesIPv6 - The IPv6 phone trunk base assignment will be inherited from the Edge Group. - InheritPhoneTrunkBasesIPv6 *bool `json:"inheritPhoneTrunkBasesIPv6,omitempty"` - - - // UseForInternalEdgeCommunication - This interface will be used for all internal edge-to-edge communication using settings from the edgeTrunkBaseAssignment on the Edge Group. - UseForInternalEdgeCommunication *bool `json:"useForInternalEdgeCommunication,omitempty"` - - - // UseForIndirectEdgeCommunication - Site Interconnects using the \"Indirect\" method will communicate using the Public IP Address specified on the interface. Use this option when a NAT enabled firewall is between the Edge and the far end. - UseForIndirectEdgeCommunication *bool `json:"useForIndirectEdgeCommunication,omitempty"` - - - // UseForCloudProxyEdgeCommunication - Site Interconnects using the \"Cloud Proxy\" method will broker the connection between them with a Cloud Proxy. This method is required for connections between one or more Sites using Cloud Media, but can optionally be used between two premises Sites if Direct or Indirect are not an option. - UseForCloudProxyEdgeCommunication *bool `json:"useForCloudProxyEdgeCommunication,omitempty"` - - - // ExternalTrunkBaseAssignments - External trunk base settings to use for external communication from this interface. - ExternalTrunkBaseAssignments *[]Trunkbaseassignment `json:"externalTrunkBaseAssignments,omitempty"` - - - // PhoneTrunkBaseAssignments - Phone trunk base settings to use for phone communication from this interface. These settings will be ignored when \"inheritPhoneTrunkBases\" is true. - PhoneTrunkBaseAssignments *[]Trunkbaseassignment `json:"phoneTrunkBaseAssignments,omitempty"` - - - // TraceEnabled - TraceEnabled *bool `json:"traceEnabled,omitempty"` - - - // StartDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndDate *time.Time `json:"endDate,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainlogicalinterface) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainnetworkaddress.go b/build/platformclientv2/domainnetworkaddress.go deleted file mode 100644 index a62407234..000000000 --- a/build/platformclientv2/domainnetworkaddress.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainnetworkaddress -type Domainnetworkaddress struct { - // VarType - The type of address. - VarType *string `json:"type,omitempty"` - - - // Address - An IPv4 or IPv6 IP address. When specifying an address of type \"ip\", use CIDR format for the subnet mask. - Address *string `json:"address,omitempty"` - - - // Persistent - True if this address will persist on Edge restart. Addresses assigned by DHCP will be returned as false. - Persistent *bool `json:"persistent,omitempty"` - - - // Family - The address family for this address. - Family *int32 `json:"family,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainnetworkaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainnetworkcommandresponse.go b/build/platformclientv2/domainnetworkcommandresponse.go deleted file mode 100644 index 42a2dc015..000000000 --- a/build/platformclientv2/domainnetworkcommandresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainnetworkcommandresponse -type Domainnetworkcommandresponse struct { - // CorrelationId - CorrelationId *string `json:"correlationId,omitempty"` - - - // CommandName - CommandName *string `json:"commandName,omitempty"` - - - // Acknowledged - Acknowledged *bool `json:"acknowledged,omitempty"` - - - // ErrorInfo - ErrorInfo **Errordetails `json:"errorInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainnetworkcommandresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainnetworkroute.go b/build/platformclientv2/domainnetworkroute.go deleted file mode 100644 index 30dd0bbe6..000000000 --- a/build/platformclientv2/domainnetworkroute.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainnetworkroute -type Domainnetworkroute struct { - // Prefix - The IPv4 or IPv6 route prefix in CIDR notation. - Prefix *string `json:"prefix,omitempty"` - - - // Nexthop - The IPv4 or IPv6 nexthop IP address. - Nexthop *string `json:"nexthop,omitempty"` - - - // Persistent - True if this route will persist on Edge restart. Routes assigned by DHCP will be returned as false. - Persistent *bool `json:"persistent,omitempty"` - - - // Metric - The metric being used for route. Lower values will have a higher priority. - Metric *int32 `json:"metric,omitempty"` - - - // Family - The address family for this route. - Family *int32 `json:"family,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainnetworkroute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainorganizationproduct.go b/build/platformclientv2/domainorganizationproduct.go deleted file mode 100644 index 68f15af7f..000000000 --- a/build/platformclientv2/domainorganizationproduct.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainorganizationproduct -type Domainorganizationproduct struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainorganizationproduct) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainorganizationrole.go b/build/platformclientv2/domainorganizationrole.go deleted file mode 100644 index ec4f54b28..000000000 --- a/build/platformclientv2/domainorganizationrole.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainorganizationrole -type Domainorganizationrole struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // DefaultRoleId - DefaultRoleId *string `json:"defaultRoleId,omitempty"` - - - // Permissions - Permissions *[]string `json:"permissions,omitempty"` - - - // UnusedPermissions - A collection of the permissions the role is not using - UnusedPermissions *[]string `json:"unusedPermissions,omitempty"` - - - // PermissionPolicies - PermissionPolicies *[]Domainpermissionpolicy `json:"permissionPolicies,omitempty"` - - - // UserCount - UserCount *int32 `json:"userCount,omitempty"` - - - // RoleNeedsUpdate - Optional unless patch operation. - RoleNeedsUpdate *bool `json:"roleNeedsUpdate,omitempty"` - - - // VarDefault - VarDefault *bool `json:"default,omitempty"` - - - // Base - Base *bool `json:"base,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainorganizationrole) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainorganizationrolecreate.go b/build/platformclientv2/domainorganizationrolecreate.go deleted file mode 100644 index b4f33f76a..000000000 --- a/build/platformclientv2/domainorganizationrolecreate.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainorganizationrolecreate -type Domainorganizationrolecreate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The role name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // DefaultRoleId - DefaultRoleId *string `json:"defaultRoleId,omitempty"` - - - // Permissions - Permissions *[]string `json:"permissions,omitempty"` - - - // UnusedPermissions - A collection of the permissions the role is not using - UnusedPermissions *[]string `json:"unusedPermissions,omitempty"` - - - // PermissionPolicies - PermissionPolicies *[]Domainpermissionpolicy `json:"permissionPolicies,omitempty"` - - - // UserCount - UserCount *int32 `json:"userCount,omitempty"` - - - // RoleNeedsUpdate - Optional unless patch operation. - RoleNeedsUpdate *bool `json:"roleNeedsUpdate,omitempty"` - - - // VarDefault - VarDefault *bool `json:"default,omitempty"` - - - // Base - Base *bool `json:"base,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainorganizationrolecreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainorganizationroleupdate.go b/build/platformclientv2/domainorganizationroleupdate.go deleted file mode 100644 index c64bd147c..000000000 --- a/build/platformclientv2/domainorganizationroleupdate.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainorganizationroleupdate -type Domainorganizationroleupdate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the role - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // DefaultRoleId - DefaultRoleId *string `json:"defaultRoleId,omitempty"` - - - // Permissions - Permissions *[]string `json:"permissions,omitempty"` - - - // UnusedPermissions - A collection of the permissions the role is not using - UnusedPermissions *[]string `json:"unusedPermissions,omitempty"` - - - // PermissionPolicies - PermissionPolicies *[]Domainpermissionpolicy `json:"permissionPolicies,omitempty"` - - - // UserCount - UserCount *int32 `json:"userCount,omitempty"` - - - // RoleNeedsUpdate - Optional unless patch operation. - RoleNeedsUpdate *bool `json:"roleNeedsUpdate,omitempty"` - - - // VarDefault - VarDefault *bool `json:"default,omitempty"` - - - // Base - Base *bool `json:"base,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainorganizationroleupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainorgroledifference.go b/build/platformclientv2/domainorgroledifference.go deleted file mode 100644 index 5e9e7d28f..000000000 --- a/build/platformclientv2/domainorgroledifference.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainorgroledifference -type Domainorgroledifference struct { - // RemovedPermissionPolicies - RemovedPermissionPolicies *[]Domainpermissionpolicy `json:"removedPermissionPolicies,omitempty"` - - - // AddedPermissionPolicies - AddedPermissionPolicies *[]Domainpermissionpolicy `json:"addedPermissionPolicies,omitempty"` - - - // SamePermissionPolicies - SamePermissionPolicies *[]Domainpermissionpolicy `json:"samePermissionPolicies,omitempty"` - - - // UserOrgRole - UserOrgRole *Domainorganizationrole `json:"userOrgRole,omitempty"` - - - // RoleFromDefault - RoleFromDefault *Domainorganizationrole `json:"roleFromDefault,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainorgroledifference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainpermission.go b/build/platformclientv2/domainpermission.go deleted file mode 100644 index a09d43396..000000000 --- a/build/platformclientv2/domainpermission.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainpermission -type Domainpermission struct { - // Domain - Domain *string `json:"domain,omitempty"` - - - // EntityType - EntityType *string `json:"entityType,omitempty"` - - - // Action - Action *string `json:"action,omitempty"` - - - // Label - Label *string `json:"label,omitempty"` - - - // AllowsConditions - AllowsConditions *bool `json:"allowsConditions,omitempty"` - - - // DivisionAware - DivisionAware *bool `json:"divisionAware,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainpermission) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainpermissioncollection.go b/build/platformclientv2/domainpermissioncollection.go deleted file mode 100644 index feec2edd7..000000000 --- a/build/platformclientv2/domainpermissioncollection.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainpermissioncollection -type Domainpermissioncollection struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Domain - Domain *string `json:"domain,omitempty"` - - - // PermissionMap - PermissionMap *map[string][]Domainpermission `json:"permissionMap,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainpermissioncollection) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainpermissionpolicy.go b/build/platformclientv2/domainpermissionpolicy.go deleted file mode 100644 index 9a86fd56d..000000000 --- a/build/platformclientv2/domainpermissionpolicy.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainpermissionpolicy -type Domainpermissionpolicy struct { - // Domain - Domain *string `json:"domain,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // PolicyName - PolicyName *string `json:"policyName,omitempty"` - - - // PolicyDescription - PolicyDescription *string `json:"policyDescription,omitempty"` - - - // ActionSet - ActionSet *[]string `json:"actionSet,omitempty"` - - - // NamedResources - NamedResources *[]string `json:"namedResources,omitempty"` - - - // AllowConditions - AllowConditions *bool `json:"allowConditions,omitempty"` - - - // ResourceConditionNode - ResourceConditionNode *Domainresourceconditionnode `json:"resourceConditionNode,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainpermissionpolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainphysicalcapabilities.go b/build/platformclientv2/domainphysicalcapabilities.go deleted file mode 100644 index 9788374ab..000000000 --- a/build/platformclientv2/domainphysicalcapabilities.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainphysicalcapabilities -type Domainphysicalcapabilities struct { - // Vlan - Vlan *bool `json:"vlan,omitempty"` - - - // Team - Team *bool `json:"team,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainphysicalcapabilities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainphysicalinterface.go b/build/platformclientv2/domainphysicalinterface.go deleted file mode 100644 index 8b81cf359..000000000 --- a/build/platformclientv2/domainphysicalinterface.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Domainphysicalinterface -type Domainphysicalinterface struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // EdgeUri - EdgeUri *string `json:"edgeUri,omitempty"` - - - // FriendlyName - FriendlyName *string `json:"friendlyName,omitempty"` - - - // HardwareAddress - HardwareAddress *string `json:"hardwareAddress,omitempty"` - - - // PortLabel - PortLabel *string `json:"portLabel,omitempty"` - - - // PhysicalCapabilities - PhysicalCapabilities *Domainphysicalcapabilities `json:"physicalCapabilities,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainphysicalinterface) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainresourceconditionnode.go b/build/platformclientv2/domainresourceconditionnode.go deleted file mode 100644 index cf516d806..000000000 --- a/build/platformclientv2/domainresourceconditionnode.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainresourceconditionnode -type Domainresourceconditionnode struct { - // VariableName - VariableName *string `json:"variableName,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Operands - Operands *[]Domainresourceconditionvalue `json:"operands,omitempty"` - - - // Conjunction - Conjunction *string `json:"conjunction,omitempty"` - - - // Terms - Terms *[]Domainresourceconditionnode `json:"terms,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainresourceconditionnode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainresourceconditionvalue.go b/build/platformclientv2/domainresourceconditionvalue.go deleted file mode 100644 index a014af5cb..000000000 --- a/build/platformclientv2/domainresourceconditionvalue.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainresourceconditionvalue -type Domainresourceconditionvalue struct { - // User - User *User `json:"user,omitempty"` - - - // Queue - Queue *Queue `json:"queue,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainresourceconditionvalue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainrole.go b/build/platformclientv2/domainrole.go deleted file mode 100644 index 8f6785faf..000000000 --- a/build/platformclientv2/domainrole.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Domainrole -type Domainrole struct { - // Id - The ID of the role - Id *string `json:"id,omitempty"` - - - // Name - The name of the role - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainrole) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/domainschemareference.go b/build/platformclientv2/domainschemareference.go deleted file mode 100644 index 882f7a906..000000000 --- a/build/platformclientv2/domainschemareference.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Domainschemareference -type Domainschemareference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Domainschemareference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/downloadresponse.go b/build/platformclientv2/downloadresponse.go deleted file mode 100644 index 62cbe69b5..000000000 --- a/build/platformclientv2/downloadresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Downloadresponse -type Downloadresponse struct { - // ContentLocationUri - ContentLocationUri *string `json:"contentLocationUri,omitempty"` - - - // ImageUri - ImageUri *string `json:"imageUri,omitempty"` - - - // Thumbnails - Thumbnails *[]Documentthumbnail `json:"thumbnails,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Downloadresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/draftvalidationresult.go b/build/platformclientv2/draftvalidationresult.go deleted file mode 100644 index da0abfd93..000000000 --- a/build/platformclientv2/draftvalidationresult.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Draftvalidationresult - Validation results -type Draftvalidationresult struct { - // Valid - Indicates if configuration is valid - Valid *bool `json:"valid,omitempty"` - - - // Errors - List of errors causing validation failure - Errors *[]Errorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Draftvalidationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/durationcondition.go b/build/platformclientv2/durationcondition.go deleted file mode 100644 index 0d81e815c..000000000 --- a/build/platformclientv2/durationcondition.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Durationcondition -type Durationcondition struct { - // DurationTarget - DurationTarget *string `json:"durationTarget,omitempty"` - - - // DurationOperator - DurationOperator *string `json:"durationOperator,omitempty"` - - - // DurationRange - DurationRange *string `json:"durationRange,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Durationcondition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edge.go b/build/platformclientv2/edge.go deleted file mode 100644 index f8c1ebf7d..000000000 --- a/build/platformclientv2/edge.go +++ /dev/null @@ -1,178 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edge -type Edge struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Interfaces - The list of interfaces for the edge. (Deprecated) Replaced by configuring trunks/ip info on the logical interface instead - Interfaces *[]Edgeinterface `json:"interfaces,omitempty"` - - - // Make - Make *string `json:"make,omitempty"` - - - // Model - Model *string `json:"model,omitempty"` - - - // ApiVersion - ApiVersion *string `json:"apiVersion,omitempty"` - - - // SoftwareVersion - SoftwareVersion *string `json:"softwareVersion,omitempty"` - - - // SoftwareVersionTimestamp - SoftwareVersionTimestamp *string `json:"softwareVersionTimestamp,omitempty"` - - - // SoftwareVersionPlatform - SoftwareVersionPlatform *string `json:"softwareVersionPlatform,omitempty"` - - - // SoftwareVersionConfiguration - SoftwareVersionConfiguration *string `json:"softwareVersionConfiguration,omitempty"` - - - // FullSoftwareVersion - FullSoftwareVersion *string `json:"fullSoftwareVersion,omitempty"` - - - // PairingId - The pairing Id for a hardware Edge in the format: 00000-00000-00000-00000-00000. This field is only required when creating an Edge with a deployment type of HARDWARE. - PairingId *string `json:"pairingId,omitempty"` - - - // Fingerprint - Fingerprint *string `json:"fingerprint,omitempty"` - - - // FingerprintHint - FingerprintHint *string `json:"fingerprintHint,omitempty"` - - - // CurrentVersion - CurrentVersion *string `json:"currentVersion,omitempty"` - - - // StagedVersion - StagedVersion *string `json:"stagedVersion,omitempty"` - - - // Patch - Patch *string `json:"patch,omitempty"` - - - // StatusCode - The current status of the Edge. - StatusCode *string `json:"statusCode,omitempty"` - - - // EdgeGroup - EdgeGroup *Edgegroup `json:"edgeGroup,omitempty"` - - - // Site - The Site to which the Edge is assigned. - Site *Site `json:"site,omitempty"` - - - // SoftwareStatus - SoftwareStatus *Domainedgesoftwareupdatedto `json:"softwareStatus,omitempty"` - - - // OnlineStatus - OnlineStatus *string `json:"onlineStatus,omitempty"` - - - // SerialNumber - SerialNumber *string `json:"serialNumber,omitempty"` - - - // PhysicalEdge - PhysicalEdge *bool `json:"physicalEdge,omitempty"` - - - // Managed - Managed *bool `json:"managed,omitempty"` - - - // EdgeDeploymentType - EdgeDeploymentType *string `json:"edgeDeploymentType,omitempty"` - - - // CallDrainingState - CallDrainingState *string `json:"callDrainingState,omitempty"` - - - // ConversationCount - ConversationCount *int32 `json:"conversationCount,omitempty"` - - - // Proxy - Edge HTTP proxy configuration for the WAN port. The field can be a hostname, FQDN, IPv4 or IPv6 address. If port is not included, port 80 is assumed. - Proxy *string `json:"proxy,omitempty"` - - - // OfflineConfigCalled - True if the offline edge configuration endpoint has been called for this edge. - OfflineConfigCalled *bool `json:"offlineConfigCalled,omitempty"` - - - // OsName - The name provided by the operating system of the Edge. - OsName *string `json:"osName,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edge) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeautoupdateconfig.go b/build/platformclientv2/edgeautoupdateconfig.go deleted file mode 100644 index b08ef98b6..000000000 --- a/build/platformclientv2/edgeautoupdateconfig.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgeautoupdateconfig -type Edgeautoupdateconfig struct { - // TimeZone - TimeZone *string `json:"timeZone,omitempty"` - - - // Rrule - Rrule *string `json:"rrule,omitempty"` - - - // Start - Date time is represented as an ISO-8601 string without a timezone. For example: yyyy-MM-ddTHH:mm:ss.SSS - Start *time.Time `json:"start,omitempty"` - - - // End - Date time is represented as an ISO-8601 string without a timezone. For example: yyyy-MM-ddTHH:mm:ss.SSS - End *time.Time `json:"end,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeautoupdateconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeentitylisting.go b/build/platformclientv2/edgeentitylisting.go deleted file mode 100644 index c0f9f11da..000000000 --- a/build/platformclientv2/edgeentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgeentitylisting -type Edgeentitylisting struct { - // Entities - Entities *[]Edge `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgegroup.go b/build/platformclientv2/edgegroup.go deleted file mode 100644 index 497da2602..000000000 --- a/build/platformclientv2/edgegroup.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgegroup -type Edgegroup struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Managed - Is this edge group being managed remotely. - Managed *bool `json:"managed,omitempty"` - - - // EdgeTrunkBaseAssignment - A trunk base settings assignment of trunkType \"EDGE\" to use for edge-to-edge communication. - EdgeTrunkBaseAssignment *Trunkbaseassignment `json:"edgeTrunkBaseAssignment,omitempty"` - - - // PhoneTrunkBases - Trunk base settings of trunkType \"PHONE\" to inherit to edge logical interface for phone communication. - PhoneTrunkBases *[]Trunkbase `json:"phoneTrunkBases,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgegroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgegroupentitylisting.go b/build/platformclientv2/edgegroupentitylisting.go deleted file mode 100644 index 5c1faee97..000000000 --- a/build/platformclientv2/edgegroupentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgegroupentitylisting -type Edgegroupentitylisting struct { - // Entities - Entities *[]Edgegroup `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgegroupentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeinterface.go b/build/platformclientv2/edgeinterface.go deleted file mode 100644 index 9921a4123..000000000 --- a/build/platformclientv2/edgeinterface.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgeinterface -type Edgeinterface struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // IpAddress - IpAddress *string `json:"ipAddress,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // MacAddress - MacAddress *string `json:"macAddress,omitempty"` - - - // IfName - IfName *string `json:"ifName,omitempty"` - - - // Endpoints - Endpoints *[]Domainentityref `json:"endpoints,omitempty"` - - - // LineTypes - LineTypes *[]string `json:"lineTypes,omitempty"` - - - // AddressFamilyId - AddressFamilyId *string `json:"addressFamilyId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeinterface) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeline.go b/build/platformclientv2/edgeline.go deleted file mode 100644 index bb4cd8be1..000000000 --- a/build/platformclientv2/edgeline.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgeline -type Edgeline struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Schema - Schema *Domainentityref `json:"schema,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // Edge - Edge *Edge `json:"edge,omitempty"` - - - // EdgeGroup - EdgeGroup *Edgegroup `json:"edgeGroup,omitempty"` - - - // LineType - LineType *string `json:"lineType,omitempty"` - - - // Endpoint - Endpoint *Endpoint `json:"endpoint,omitempty"` - - - // IpAddress - IpAddress *string `json:"ipAddress,omitempty"` - - - // LogicalInterfaceId - LogicalInterfaceId *string `json:"logicalInterfaceId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeline) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgelineentitylisting.go b/build/platformclientv2/edgelineentitylisting.go deleted file mode 100644 index fc2fc169b..000000000 --- a/build/platformclientv2/edgelineentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgelineentitylisting -type Edgelineentitylisting struct { - // Entities - Entities *[]Edgeline `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgelineentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgelogsjob.go b/build/platformclientv2/edgelogsjob.go deleted file mode 100644 index a39456d9a..000000000 --- a/build/platformclientv2/edgelogsjob.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgelogsjob -type Edgelogsjob struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Files - The files available to upload from the Edge to the cloud. - Files *[]Edgelogsjobfile `json:"files,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgelogsjob) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgelogsjobfile.go b/build/platformclientv2/edgelogsjobfile.go deleted file mode 100644 index 9b5f5960f..000000000 --- a/build/platformclientv2/edgelogsjobfile.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgelogsjobfile -type Edgelogsjobfile struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // TimeCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - TimeCreated *time.Time `json:"timeCreated,omitempty"` - - - // TimeModified - The time this log file was last modified on the Edge. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - TimeModified *time.Time `json:"timeModified,omitempty"` - - - // SizeBytes - The size of this file in bytes. - SizeBytes *float64 `json:"sizeBytes,omitempty"` - - - // UploadStatus - The status of the upload of this file from the Edge to the cloud. Use /upload to start an upload. - UploadStatus *string `json:"uploadStatus,omitempty"` - - - // EdgePath - The path of this file on the Edge. - EdgePath *string `json:"edgePath,omitempty"` - - - // DownloadId - The download ID to use with the downloads API. - DownloadId *string `json:"downloadId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgelogsjobfile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgelogsjobrequest.go b/build/platformclientv2/edgelogsjobrequest.go deleted file mode 100644 index f08e0c1db..000000000 --- a/build/platformclientv2/edgelogsjobrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgelogsjobrequest -type Edgelogsjobrequest struct { - // Path - A relative directory to the root Edge log folder to query from. - Path *string `json:"path,omitempty"` - - - // Query - The pattern to use when searching for logs, which may include the wildcards {*, ?}. Multiple search patterns may be combined using a pipe '|' as a delimiter. - Query *string `json:"query,omitempty"` - - - // Recurse - Boolean whether or not to recurse into directories. - Recurse *bool `json:"recurse,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgelogsjobrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgelogsjobresponse.go b/build/platformclientv2/edgelogsjobresponse.go deleted file mode 100644 index cdac1796d..000000000 --- a/build/platformclientv2/edgelogsjobresponse.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgelogsjobresponse -type Edgelogsjobresponse struct { - // Id - The created job id. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgelogsjobresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgelogsjobuploadrequest.go b/build/platformclientv2/edgelogsjobuploadrequest.go deleted file mode 100644 index c20755f5b..000000000 --- a/build/platformclientv2/edgelogsjobuploadrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgelogsjobuploadrequest -type Edgelogsjobuploadrequest struct { - // FileIds - A list of file ids to upload. - FileIds *[]string `json:"fileIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgelogsjobuploadrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgemetrics.go b/build/platformclientv2/edgemetrics.go deleted file mode 100644 index 50b1a2b80..000000000 --- a/build/platformclientv2/edgemetrics.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgemetrics -type Edgemetrics struct { - // Edge - Edge *Domainentityref `json:"edge,omitempty"` - - - // EventTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EventTime *time.Time `json:"eventTime,omitempty"` - - - // UpTimeMsec - UpTimeMsec *int64 `json:"upTimeMsec,omitempty"` - - - // Processors - Processors *[]Edgemetricsprocessor `json:"processors,omitempty"` - - - // Memory - Memory *[]Edgemetricsmemory `json:"memory,omitempty"` - - - // Disks - Disks *[]Edgemetricsdisk `json:"disks,omitempty"` - - - // Subsystems - Subsystems *[]Edgemetricssubsystem `json:"subsystems,omitempty"` - - - // Networks - Networks *[]Edgemetricsnetwork `json:"networks,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgemetrics) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgemetricsdisk.go b/build/platformclientv2/edgemetricsdisk.go deleted file mode 100644 index a1b600b21..000000000 --- a/build/platformclientv2/edgemetricsdisk.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgemetricsdisk -type Edgemetricsdisk struct { - // AvailableBytes - Available memory in bytes. - AvailableBytes *float64 `json:"availableBytes,omitempty"` - - - // PartitionName - Disk partition name. - PartitionName *string `json:"partitionName,omitempty"` - - - // TotalBytes - Total memory in bytes. - TotalBytes *float64 `json:"totalBytes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgemetricsdisk) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgemetricsmemory.go b/build/platformclientv2/edgemetricsmemory.go deleted file mode 100644 index 7778a48c0..000000000 --- a/build/platformclientv2/edgemetricsmemory.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgemetricsmemory -type Edgemetricsmemory struct { - // AvailableBytes - Available memory in bytes. - AvailableBytes *float64 `json:"availableBytes,omitempty"` - - - // VarType - Type of memory. Virtual or physical. - VarType *string `json:"type,omitempty"` - - - // TotalBytes - Total memory in bytes. - TotalBytes *float64 `json:"totalBytes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgemetricsmemory) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgemetricsnetwork.go b/build/platformclientv2/edgemetricsnetwork.go deleted file mode 100644 index 4780854ac..000000000 --- a/build/platformclientv2/edgemetricsnetwork.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgemetricsnetwork -type Edgemetricsnetwork struct { - // Ifname - Identifier for the network adapter. - Ifname *string `json:"ifname,omitempty"` - - - // SentBytesPerSec - Number of byes sent per second. - SentBytesPerSec *int32 `json:"sentBytesPerSec,omitempty"` - - - // ReceivedBytesPerSec - Number of byes received per second. - ReceivedBytesPerSec *int32 `json:"receivedBytesPerSec,omitempty"` - - - // BandwidthBitsPerSec - Total bandwidth of the adapter in bits per second. - BandwidthBitsPerSec *float64 `json:"bandwidthBitsPerSec,omitempty"` - - - // UtilizationPct - Percent utilization of the network adapter. - UtilizationPct *float64 `json:"utilizationPct,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgemetricsnetwork) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgemetricsprocessor.go b/build/platformclientv2/edgemetricsprocessor.go deleted file mode 100644 index a77d63d34..000000000 --- a/build/platformclientv2/edgemetricsprocessor.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgemetricsprocessor -type Edgemetricsprocessor struct { - // ActiveTimePct - Percent time processor was active. - ActiveTimePct *float64 `json:"activeTimePct,omitempty"` - - - // CpuId - Machine CPU identifier. 'total' will always be included in the array and is the total of all CPU resources. - CpuId *string `json:"cpuId,omitempty"` - - - // IdleTimePct - Percent time processor was idle. - IdleTimePct *float64 `json:"idleTimePct,omitempty"` - - - // PrivilegedTimePct - Percent time processor spent in privileged mode. - PrivilegedTimePct *float64 `json:"privilegedTimePct,omitempty"` - - - // UserTimePct - Percent time processor spent in user mode. - UserTimePct *float64 `json:"userTimePct,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgemetricsprocessor) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgemetricssubsystem.go b/build/platformclientv2/edgemetricssubsystem.go deleted file mode 100644 index 5d3f26df5..000000000 --- a/build/platformclientv2/edgemetricssubsystem.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgemetricssubsystem -type Edgemetricssubsystem struct { - // DelayMs - Delay in milliseconds. - DelayMs *int32 `json:"delayMs,omitempty"` - - - // ProcessName - Name of the Edge process. - ProcessName *string `json:"processName,omitempty"` - - - // MediaSubsystem - Subsystem for an Edge device. - MediaSubsystem **Edgemetricssubsystem `json:"mediaSubsystem,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgemetricssubsystem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgenetworkdiagnostic.go b/build/platformclientv2/edgenetworkdiagnostic.go deleted file mode 100644 index 86dfd7ead..000000000 --- a/build/platformclientv2/edgenetworkdiagnostic.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgenetworkdiagnostic -type Edgenetworkdiagnostic struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgenetworkdiagnostic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgenetworkdiagnosticrequest.go b/build/platformclientv2/edgenetworkdiagnosticrequest.go deleted file mode 100644 index b11b89adc..000000000 --- a/build/platformclientv2/edgenetworkdiagnosticrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgenetworkdiagnosticrequest -type Edgenetworkdiagnosticrequest struct { - // Host - IPv4/6 address or host to be probed for connectivity. No port allowed. - Host *string `json:"host,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgenetworkdiagnosticrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgenetworkdiagnosticresponse.go b/build/platformclientv2/edgenetworkdiagnosticresponse.go deleted file mode 100644 index 663588867..000000000 --- a/build/platformclientv2/edgenetworkdiagnosticresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgenetworkdiagnosticresponse -type Edgenetworkdiagnosticresponse struct { - // CommandCorrelationId - UUID of each executed command on edge - CommandCorrelationId *string `json:"commandCorrelationId,omitempty"` - - - // Diagnostics - Response string of executed command from edge - Diagnostics *string `json:"diagnostics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgenetworkdiagnosticresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgerebootparameters.go b/build/platformclientv2/edgerebootparameters.go deleted file mode 100644 index 4efdb80d6..000000000 --- a/build/platformclientv2/edgerebootparameters.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgerebootparameters -type Edgerebootparameters struct { - // CallDrainingWaitTimeSeconds - The number of seconds to wait for call draining to complete before initiating the reboot. A value of 0 will prevent call draining and all calls will disconnect immediately. - CallDrainingWaitTimeSeconds *int32 `json:"callDrainingWaitTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgerebootparameters) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeservicestaterequest.go b/build/platformclientv2/edgeservicestaterequest.go deleted file mode 100644 index 71bd395ad..000000000 --- a/build/platformclientv2/edgeservicestaterequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgeservicestaterequest -type Edgeservicestaterequest struct { - // InService - A boolean that sets the Edge in-service or out-of-service. - InService *bool `json:"inService,omitempty"` - - - // CallDrainingWaitTimeSeconds - The number of seconds to wait for call draining to complete before initiating the reboot. A value of 0 will prevent call draining and all calls will disconnect immediately. - CallDrainingWaitTimeSeconds *int32 `json:"callDrainingWaitTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeservicestaterequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgetrunkbase.go b/build/platformclientv2/edgetrunkbase.go deleted file mode 100644 index 111cc1f21..000000000 --- a/build/platformclientv2/edgetrunkbase.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Edgetrunkbase -type Edgetrunkbase struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // TrunkMetabase - The meta-base this trunk is based on. - TrunkMetabase *Domainentityref `json:"trunkMetabase,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // TrunkType - The type of this trunk base. - TrunkType *string `json:"trunkType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgetrunkbase) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeversioninformation.go b/build/platformclientv2/edgeversioninformation.go deleted file mode 100644 index aa178ddec..000000000 --- a/build/platformclientv2/edgeversioninformation.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgeversioninformation -type Edgeversioninformation struct { - // SoftwareVersion - SoftwareVersion *string `json:"softwareVersion,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeversioninformation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/edgeversionreport.go b/build/platformclientv2/edgeversionreport.go deleted file mode 100644 index b142a29b0..000000000 --- a/build/platformclientv2/edgeversionreport.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Edgeversionreport -type Edgeversionreport struct { - // OldestVersion - OldestVersion *Edgeversioninformation `json:"oldestVersion,omitempty"` - - - // NewestVersion - NewestVersion *Edgeversioninformation `json:"newestVersion,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Edgeversionreport) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/effectiveconfiguration.go b/build/platformclientv2/effectiveconfiguration.go deleted file mode 100644 index 665c3bec4..000000000 --- a/build/platformclientv2/effectiveconfiguration.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Effectiveconfiguration - Effective Configuration for an ClientApp. This is comprised of the integration specific configuration along with overrides specified in the integration type. -type Effectiveconfiguration struct { - // Properties - Key-value configuration settings described by the schema in the propertiesSchemaUri field. - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // Advanced - Advanced configuration described by the schema in the advancedSchemaUri field. - Advanced *map[string]interface{} `json:"advanced,omitempty"` - - - // Name - The name of the integration, used to distinguish this integration from others of the same type. - Name *string `json:"name,omitempty"` - - - // Notes - Notes about the integration. - Notes *string `json:"notes,omitempty"` - - - // Credentials - Credentials required by the integration. The required keys are indicated in the credentials property of the Integration Type - Credentials *map[string]Credentialinfo `json:"credentials,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Effectiveconfiguration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/email.go b/build/platformclientv2/email.go deleted file mode 100644 index f5a1ce8c2..000000000 --- a/build/platformclientv2/email.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Email -type Email struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // Subject - The subject for the initial email that started this conversation. - Subject *string `json:"subject,omitempty"` - - - // MessagesSent - The number of email messages sent by this participant. - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // Segments - The time line of the participant's email, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // Direction - The direction of the email - Direction *string `json:"direction,omitempty"` - - - // RecordingId - A globally unique identifier for the recording associated with this call. - RecordingId *string `json:"recordingId,omitempty"` - - - // ErrorInfo - ErrorInfo *Errorbody `json:"errorInfo,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the email was placed on hold in the cloud clock if the email is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AutoGenerated - Indicates that the email was auto-generated like an Out of Office reply. - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // Provider - The source provider for the email. - Provider *string `json:"provider,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // MessageId - A globally unique identifier for the stored content of this communication. - MessageId *string `json:"messageId,omitempty"` - - - // DraftAttachments - A list of uploaded attachments on the email draft. - DraftAttachments *[]Attachment `json:"draftAttachments,omitempty"` - - - // Spam - Indicates if the inbound email was marked as spam. - Spam *bool `json:"spam,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Email) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailaddress.go b/build/platformclientv2/emailaddress.go deleted file mode 100644 index 8301feb3c..000000000 --- a/build/platformclientv2/emailaddress.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailaddress -type Emailaddress struct { - // Email - Email *string `json:"email,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailattachment.go b/build/platformclientv2/emailattachment.go deleted file mode 100644 index 2b88a3e4f..000000000 --- a/build/platformclientv2/emailattachment.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailattachment -type Emailattachment struct { - // Name - Name *string `json:"name,omitempty"` - - - // ContentPath - ContentPath *string `json:"contentPath,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailconversation.go b/build/platformclientv2/emailconversation.go deleted file mode 100644 index 29a115785..000000000 --- a/build/platformclientv2/emailconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailconversation -type Emailconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Emailmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - The list of other media channels involved in the conversation. - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailconversationentitylisting.go b/build/platformclientv2/emailconversationentitylisting.go deleted file mode 100644 index e966f0981..000000000 --- a/build/platformclientv2/emailconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailconversationentitylisting -type Emailconversationentitylisting struct { - // Entities - Entities *[]Emailconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailmediaparticipant.go b/build/platformclientv2/emailmediaparticipant.go deleted file mode 100644 index 6c886c90e..000000000 --- a/build/platformclientv2/emailmediaparticipant.go +++ /dev/null @@ -1,166 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Emailmediaparticipant -type Emailmediaparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // State - The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting - State *string `json:"state,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Value is true when the participant is on hold. - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - Value is true when the participant requires wrap-up. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - The wrap-up prompt indicating the type of wrap-up to be performed. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - The PureCloud user for this participant. - User *Domainentityref `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Attributes - A list of ad-hoc attributes for the participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - If the conversation ends in error, contains additional error details. - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // Script - The Engage script that should be used by this participant. - Script *Domainentityref `json:"script,omitempty"` - - - // WrapupTimeoutMs - The amount of time the participant has to complete wrap-up. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - Value is true when the participant has skipped wrap-up. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - The source provider for the communication. - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - If this participant represents an external contact, then this will be the reference for the external contact. - ExternalContact *Domainentityref `json:"externalContact,omitempty"` - - - // ExternalOrganization - If this participant represents an external org, then this will be the reference for the external org. - ExternalOrganization *Domainentityref `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup for this participant, if it has been applied. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // Peer - The peer communication corresponding to a matching leg for this communication. - Peer *string `json:"peer,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context. - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Subject - The subject of the email. - Subject *string `json:"subject,omitempty"` - - - // MessagesSent - The number of messages that have been sent in this email conversation. - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // AutoGenerated - Indicates that the email was auto-generated like an Out of Office reply. - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // DraftAttachments - A list of uploaded attachments on the email draft. - DraftAttachments *[]Attachment `json:"draftAttachments,omitempty"` - - - // Spam - Indicates if the inbound email was marked as spam. - Spam *bool `json:"spam,omitempty"` - - - // MessageId - A globally unique identifier for the stored content of this communication. - MessageId *string `json:"messageId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailmediapolicy.go b/build/platformclientv2/emailmediapolicy.go deleted file mode 100644 index 44a408150..000000000 --- a/build/platformclientv2/emailmediapolicy.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailmediapolicy -type Emailmediapolicy struct { - // Actions - Actions applied when specified conditions are met - Actions *Policyactions `json:"actions,omitempty"` - - - // Conditions - Conditions for when actions should be applied - Conditions *Emailmediapolicyconditions `json:"conditions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailmediapolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailmediapolicyconditions.go b/build/platformclientv2/emailmediapolicyconditions.go deleted file mode 100644 index 80bc3c64d..000000000 --- a/build/platformclientv2/emailmediapolicyconditions.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailmediapolicyconditions -type Emailmediapolicyconditions struct { - // ForUsers - ForUsers *[]User `json:"forUsers,omitempty"` - - - // DateRanges - DateRanges *[]string `json:"dateRanges,omitempty"` - - - // ForQueues - ForQueues *[]Queue `json:"forQueues,omitempty"` - - - // WrapupCodes - WrapupCodes *[]Wrapupcode `json:"wrapupCodes,omitempty"` - - - // Languages - Languages *[]Language `json:"languages,omitempty"` - - - // TimeAllowed - TimeAllowed *Timeallowed `json:"timeAllowed,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailmediapolicyconditions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailmessage.go b/build/platformclientv2/emailmessage.go deleted file mode 100644 index 8d9d03715..000000000 --- a/build/platformclientv2/emailmessage.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Emailmessage -type Emailmessage struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // To - The recipients of the email message. - To *[]Emailaddress `json:"to,omitempty"` - - - // Cc - The recipients that were copied on the email message. - Cc *[]Emailaddress `json:"cc,omitempty"` - - - // Bcc - The recipients that were blind copied on the email message. - Bcc *[]Emailaddress `json:"bcc,omitempty"` - - - // From - The sender of the email message. - From *Emailaddress `json:"from,omitempty"` - - - // Subject - The subject of the email message. - Subject *string `json:"subject,omitempty"` - - - // Attachments - The attachments of the email message. - Attachments *[]Attachment `json:"attachments,omitempty"` - - - // TextBody - The text body of the email message. - TextBody *string `json:"textBody,omitempty"` - - - // HtmlBody - The html body of the email message. - HtmlBody *string `json:"htmlBody,omitempty"` - - - // Time - The time when the message was received or sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Time *time.Time `json:"time,omitempty"` - - - // HistoryIncluded - Indicates whether the history of previous emails of the conversation is included within the email bodies of this message. - HistoryIncluded *bool `json:"historyIncluded,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailmessagelisting.go b/build/platformclientv2/emailmessagelisting.go deleted file mode 100644 index f70d1c369..000000000 --- a/build/platformclientv2/emailmessagelisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailmessagelisting -type Emailmessagelisting struct { - // Entities - Entities *[]Emailmessage `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailmessagelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emailsetup.go b/build/platformclientv2/emailsetup.go deleted file mode 100644 index 417080c30..000000000 --- a/build/platformclientv2/emailsetup.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emailsetup -type Emailsetup struct { - // RootDomain - The root PureCloud domain that all sub-domains are created from. - RootDomain *string `json:"rootDomain,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emailsetup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/embeddedintegration.go b/build/platformclientv2/embeddedintegration.go deleted file mode 100644 index 2a05203c5..000000000 --- a/build/platformclientv2/embeddedintegration.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Embeddedintegration -type Embeddedintegration struct { - // EnableWhitelist - EnableWhitelist *bool `json:"enableWhitelist,omitempty"` - - - // DomainWhitelist - DomainWhitelist *[]string `json:"domainWhitelist,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Embeddedintegration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emergencycallflow.go b/build/platformclientv2/emergencycallflow.go deleted file mode 100644 index 7c243082b..000000000 --- a/build/platformclientv2/emergencycallflow.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emergencycallflow - An emergency flow associates a call flow to use in an emergency with the ivr(s) to route to it. -type Emergencycallflow struct { - // EmergencyFlow - The call flow to execute in an emergency. - EmergencyFlow *Domainentityref `json:"emergencyFlow,omitempty"` - - - // Ivrs - The IVR(s) to route to the call flow during an emergency. - Ivrs *[]Domainentityref `json:"ivrs,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emergencycallflow) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emergencygroup.go b/build/platformclientv2/emergencygroup.go deleted file mode 100644 index 68d0dfe43..000000000 --- a/build/platformclientv2/emergencygroup.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Emergencygroup - A group of emergency call flows to use in an emergency. -type Emergencygroup struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Enabled - True if an emergency is occurring and the associated emergency call flow(s) should be used. False otherwise. - Enabled *bool `json:"enabled,omitempty"` - - - // EmergencyCallFlows - The emergency call flow(s) to use during an emergency. - EmergencyCallFlows *[]Emergencycallflow `json:"emergencyCallFlows,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emergencygroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/emergencygrouplisting.go b/build/platformclientv2/emergencygrouplisting.go deleted file mode 100644 index 2a1553c49..000000000 --- a/build/platformclientv2/emergencygrouplisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Emergencygrouplisting -type Emergencygrouplisting struct { - // Entities - Entities *[]Emergencygroup `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Emergencygrouplisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/employerinfo.go b/build/platformclientv2/employerinfo.go deleted file mode 100644 index 65eee3fdc..000000000 --- a/build/platformclientv2/employerinfo.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Employerinfo -type Employerinfo struct { - // OfficialName - OfficialName *string `json:"officialName,omitempty"` - - - // EmployeeId - EmployeeId *string `json:"employeeId,omitempty"` - - - // EmployeeType - EmployeeType *string `json:"employeeType,omitempty"` - - - // DateHire - DateHire *string `json:"dateHire,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Employerinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/empty.go b/build/platformclientv2/empty.go deleted file mode 100644 index 6931b39b3..000000000 --- a/build/platformclientv2/empty.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Empty -type Empty struct { } - -// String returns a JSON representation of the model -func (o *Empty) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/encryptionkey.go b/build/platformclientv2/encryptionkey.go deleted file mode 100644 index 41b65d59c..000000000 --- a/build/platformclientv2/encryptionkey.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Encryptionkey -type Encryptionkey struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // CreateDate - create date of the key pair. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreateDate *time.Time `json:"createDate,omitempty"` - - - // KeydataSummary - key data summary (base 64 encoded public key) - KeydataSummary *string `json:"keydataSummary,omitempty"` - - - // User - user that requested generation of public key - User *User `json:"user,omitempty"` - - - // LocalEncryptionConfiguration - Local configuration - LocalEncryptionConfiguration *Localencryptionconfiguration `json:"localEncryptionConfiguration,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Encryptionkey) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/encryptionkeyentitylisting.go b/build/platformclientv2/encryptionkeyentitylisting.go deleted file mode 100644 index f9c5fbd41..000000000 --- a/build/platformclientv2/encryptionkeyentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Encryptionkeyentitylisting -type Encryptionkeyentitylisting struct { - // Entities - Entities *[]Encryptionkey `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Encryptionkeyentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/endpoint.go b/build/platformclientv2/endpoint.go deleted file mode 100644 index 72fb096d7..000000000 --- a/build/platformclientv2/endpoint.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Endpoint -type Endpoint struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Count - Count *int32 `json:"count,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // Schema - Schema - Schema *Domainentityref `json:"schema,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // Site - Site *Domainentityref `json:"site,omitempty"` - - - // Dids - Dids *[]string `json:"dids,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Endpoint) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/entry.go b/build/platformclientv2/entry.go deleted file mode 100644 index 863cf7f44..000000000 --- a/build/platformclientv2/entry.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Entry -type Entry struct { - // Value - A value included in this facet. - Value *string `json:"value,omitempty"` - - - // Count - The number of results with this value. - Count *int32 `json:"count,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Entry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/errorbody.go b/build/platformclientv2/errorbody.go deleted file mode 100644 index a6a578657..000000000 --- a/build/platformclientv2/errorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Errorbody -type Errorbody struct { - // Message - Message *string `json:"message,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // Status - Status *int32 `json:"status,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Detail `json:"details,omitempty"` - - - // Errors - Errors *[]Errorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Errorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/errordetails.go b/build/platformclientv2/errordetails.go deleted file mode 100644 index b635957bf..000000000 --- a/build/platformclientv2/errordetails.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Errordetails -type Errordetails struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Nested - Nested **Errordetails `json:"nested,omitempty"` - - - // Details - Details *string `json:"details,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Errordetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/errorinfo.go b/build/platformclientv2/errorinfo.go deleted file mode 100644 index c142a7e6f..000000000 --- a/build/platformclientv2/errorinfo.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Errorinfo -type Errorinfo struct { - // Message - Message *string `json:"message,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Errorinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/estimatedwaittimepredictions.go b/build/platformclientv2/estimatedwaittimepredictions.go deleted file mode 100644 index 5faac08b0..000000000 --- a/build/platformclientv2/estimatedwaittimepredictions.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Estimatedwaittimepredictions -type Estimatedwaittimepredictions struct { - // Results - Returned upon a successful estimated wait time request. - Results *[]Predictionresults `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Estimatedwaittimepredictions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluation.go b/build/platformclientv2/evaluation.go deleted file mode 100644 index 758e1c616..000000000 --- a/build/platformclientv2/evaluation.go +++ /dev/null @@ -1,110 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Evaluation -type Evaluation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Conversation - Conversation *Conversation `json:"conversation,omitempty"` - - - // EvaluationForm - Evaluation form used for evaluation. - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // Evaluator - Evaluator *User `json:"evaluator,omitempty"` - - - // Agent - Agent *User `json:"agent,omitempty"` - - - // Calibration - Calibration *Calibration `json:"calibration,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // Answers - Answers *Evaluationscoringset `json:"answers,omitempty"` - - - // AgentHasRead - AgentHasRead *bool `json:"agentHasRead,omitempty"` - - - // ReleaseDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReleaseDate *time.Time `json:"releaseDate,omitempty"` - - - // AssignedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - AssignedDate *time.Time `json:"assignedDate,omitempty"` - - - // ChangedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ChangedDate *time.Time `json:"changedDate,omitempty"` - - - // Queue - Queue *Queue `json:"queue,omitempty"` - - - // MediaType - List of different communication types used in conversation. - MediaType *[]string `json:"mediaType,omitempty"` - - - // Rescore - Is only true when evaluation is re-scored. - Rescore *bool `json:"rescore,omitempty"` - - - // ConversationDate - Date of conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConversationDate *time.Time `json:"conversationDate,omitempty"` - - - // ConversationEndDate - End date of conversation if it had completed before evaluation creation. Null if created before the conversation ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConversationEndDate *time.Time `json:"conversationEndDate,omitempty"` - - - // NeverRelease - Signifies if the evaluation is never to be released. This cannot be set true if release date is also set. - NeverRelease *bool `json:"neverRelease,omitempty"` - - - // ResourceId - Only used for email evaluations. Will be null for all other evaluations. - ResourceId *string `json:"resourceId,omitempty"` - - - // ResourceType - The type of resource. Only used for email evaluations. Will be null for evaluations on all other resources. - ResourceType *string `json:"resourceType,omitempty"` - - - // Redacted - Is only true when the user making the request does not have sufficient permissions to see evaluation - Redacted *bool `json:"redacted,omitempty"` - - - // IsScoringIndex - IsScoringIndex *bool `json:"isScoringIndex,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregatedatacontainer.go b/build/platformclientv2/evaluationaggregatedatacontainer.go deleted file mode 100644 index 7981558f7..000000000 --- a/build/platformclientv2/evaluationaggregatedatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregatedatacontainer -type Evaluationaggregatedatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Statisticalresponse `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregatedatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregatequeryclause.go b/build/platformclientv2/evaluationaggregatequeryclause.go deleted file mode 100644 index 9630c31e4..000000000 --- a/build/platformclientv2/evaluationaggregatequeryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregatequeryclause -type Evaluationaggregatequeryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Evaluationaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregatequeryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregatequeryfilter.go b/build/platformclientv2/evaluationaggregatequeryfilter.go deleted file mode 100644 index 77c11afcf..000000000 --- a/build/platformclientv2/evaluationaggregatequeryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregatequeryfilter -type Evaluationaggregatequeryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Evaluationaggregatequeryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Evaluationaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregatequeryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregatequerypredicate.go b/build/platformclientv2/evaluationaggregatequerypredicate.go deleted file mode 100644 index 0908939b4..000000000 --- a/build/platformclientv2/evaluationaggregatequerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregatequerypredicate -type Evaluationaggregatequerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregatequerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregatequeryresponse.go b/build/platformclientv2/evaluationaggregatequeryresponse.go deleted file mode 100644 index ca86485dc..000000000 --- a/build/platformclientv2/evaluationaggregatequeryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregatequeryresponse -type Evaluationaggregatequeryresponse struct { - // Results - Results *[]Evaluationaggregatedatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregatequeryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregationquery.go b/build/platformclientv2/evaluationaggregationquery.go deleted file mode 100644 index d75f106c5..000000000 --- a/build/platformclientv2/evaluationaggregationquery.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregationquery -type Evaluationaggregationquery struct { - // Interval - Behaves like one clause in a SQL WHERE. Specifies the date and time range of data being queried. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // Granularity - Granularity aggregates metrics into subpartitions within the time interval specified. The default granularity is the same duration as the interval. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Granularity *string `json:"granularity,omitempty"` - - - // TimeZone - Sets the time zone for the query interval, defaults to UTC. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // GroupBy - Behaves like a SQL GROUPBY. Allows for multiple levels of grouping as a list of dimensions. Partitions resulting aggregate computations into distinct named subgroups rather than across the entire result set as if it were one group. - GroupBy *[]string `json:"groupBy,omitempty"` - - - // Filter - Behaves like a SQL WHERE clause. This is ANDed with the interval parameter. Expresses boolean logical predicates as well as dimensional filters - Filter *Evaluationaggregatequeryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // FlattenMultivaluedDimensions - Flattens any multivalued dimensions used in response groups (e.g. ['a','b','c']->'a,b,c') - FlattenMultivaluedDimensions *bool `json:"flattenMultivaluedDimensions,omitempty"` - - - // Views - Custom derived metric views - Views *[]Evaluationaggregationview `json:"views,omitempty"` - - - // AlternateTimeDimension - Dimension to use as the alternative timestamp for data in the aggregate. Choosing \"eventTime\" uses the actual time of the data event. - AlternateTimeDimension *string `json:"alternateTimeDimension,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationaggregationview.go b/build/platformclientv2/evaluationaggregationview.go deleted file mode 100644 index d9774b7b5..000000000 --- a/build/platformclientv2/evaluationaggregationview.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationaggregationview -type Evaluationaggregationview struct { - // Target - Target metric name - Target *string `json:"target,omitempty"` - - - // Name - A unique name for this view. Must be distinct from other views and built-in metric names. - Name *string `json:"name,omitempty"` - - - // Function - Type of view you wish to create - Function *string `json:"function,omitempty"` - - - // VarRange - Range of numbers for slicing up data - VarRange *Aggregationrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationaggregationview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationassignment.go b/build/platformclientv2/evaluationassignment.go deleted file mode 100644 index a8ec9ea67..000000000 --- a/build/platformclientv2/evaluationassignment.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationassignment -type Evaluationassignment struct { - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // User - User *User `json:"user,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationassignment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationdetailqueryclause.go b/build/platformclientv2/evaluationdetailqueryclause.go deleted file mode 100644 index c8306233c..000000000 --- a/build/platformclientv2/evaluationdetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationdetailqueryclause -type Evaluationdetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Evaluationdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationdetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationdetailqueryfilter.go b/build/platformclientv2/evaluationdetailqueryfilter.go deleted file mode 100644 index 1dffada0d..000000000 --- a/build/platformclientv2/evaluationdetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationdetailqueryfilter -type Evaluationdetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Evaluationdetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Evaluationdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationdetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationdetailquerypredicate.go b/build/platformclientv2/evaluationdetailquerypredicate.go deleted file mode 100644 index 7c772d061..000000000 --- a/build/platformclientv2/evaluationdetailquerypredicate.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationdetailquerypredicate -type Evaluationdetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Metric - Left hand side for metric predicates - Metric *string `json:"metric,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension or metric predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension or metric predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationdetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationentitylisting.go b/build/platformclientv2/evaluationentitylisting.go deleted file mode 100644 index 234b6186b..000000000 --- a/build/platformclientv2/evaluationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationentitylisting -type Evaluationentitylisting struct { - // Entities - Entities *[]Evaluation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationform.go b/build/platformclientv2/evaluationform.go deleted file mode 100644 index 6a8326fc2..000000000 --- a/build/platformclientv2/evaluationform.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Evaluationform -type Evaluationform struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The evaluation form name - Name *string `json:"name,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // Published - Published *bool `json:"published,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // QuestionGroups - A list of question groups - QuestionGroups *[]Evaluationquestiongroup `json:"questionGroups,omitempty"` - - - // PublishedVersions - PublishedVersions *Domainentitylistingevaluationform `json:"publishedVersions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationform) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationformandscoringset.go b/build/platformclientv2/evaluationformandscoringset.go deleted file mode 100644 index 6df05f186..000000000 --- a/build/platformclientv2/evaluationformandscoringset.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationformandscoringset -type Evaluationformandscoringset struct { - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // Answers - Answers *Evaluationscoringset `json:"answers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationformandscoringset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationformentitylisting.go b/build/platformclientv2/evaluationformentitylisting.go deleted file mode 100644 index 5ef993c86..000000000 --- a/build/platformclientv2/evaluationformentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationformentitylisting -type Evaluationformentitylisting struct { - // Entities - Entities *[]Evaluationform `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationformentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationquestion.go b/build/platformclientv2/evaluationquestion.go deleted file mode 100644 index 79f9550a1..000000000 --- a/build/platformclientv2/evaluationquestion.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationquestion -type Evaluationquestion struct { - // Id - Id *string `json:"id,omitempty"` - - - // Text - Text *string `json:"text,omitempty"` - - - // HelpText - HelpText *string `json:"helpText,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // NaEnabled - NaEnabled *bool `json:"naEnabled,omitempty"` - - - // CommentsRequired - CommentsRequired *bool `json:"commentsRequired,omitempty"` - - - // VisibilityCondition - VisibilityCondition *Visibilitycondition `json:"visibilityCondition,omitempty"` - - - // AnswerOptions - Options from which to choose an answer for this question. Only used by Multiple Choice type questions. - AnswerOptions *[]Answeroption `json:"answerOptions,omitempty"` - - - // IsKill - IsKill *bool `json:"isKill,omitempty"` - - - // IsCritical - IsCritical *bool `json:"isCritical,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationquestion) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationquestiongroup.go b/build/platformclientv2/evaluationquestiongroup.go deleted file mode 100644 index cae42a1f2..000000000 --- a/build/platformclientv2/evaluationquestiongroup.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationquestiongroup -type Evaluationquestiongroup struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // DefaultAnswersToHighest - DefaultAnswersToHighest *bool `json:"defaultAnswersToHighest,omitempty"` - - - // DefaultAnswersToNA - DefaultAnswersToNA *bool `json:"defaultAnswersToNA,omitempty"` - - - // NaEnabled - NaEnabled *bool `json:"naEnabled,omitempty"` - - - // Weight - Weight *float32 `json:"weight,omitempty"` - - - // ManualWeight - ManualWeight *bool `json:"manualWeight,omitempty"` - - - // Questions - Questions *[]Evaluationquestion `json:"questions,omitempty"` - - - // VisibilityCondition - VisibilityCondition *Visibilitycondition `json:"visibilityCondition,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationquestiongroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationquestiongroupscore.go b/build/platformclientv2/evaluationquestiongroupscore.go deleted file mode 100644 index e19c00409..000000000 --- a/build/platformclientv2/evaluationquestiongroupscore.go +++ /dev/null @@ -1,73 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationquestiongroupscore -type Evaluationquestiongroupscore struct { - // QuestionGroupId - QuestionGroupId *string `json:"questionGroupId,omitempty"` - - - // TotalScore - TotalScore *float32 `json:"totalScore,omitempty"` - - - // MaxTotalScore - MaxTotalScore *float32 `json:"maxTotalScore,omitempty"` - - - // MarkedNA - MarkedNA *bool `json:"markedNA,omitempty"` - - - // TotalCriticalScore - TotalCriticalScore *float32 `json:"totalCriticalScore,omitempty"` - - - // MaxTotalCriticalScore - MaxTotalCriticalScore *float32 `json:"maxTotalCriticalScore,omitempty"` - - - // TotalNonCriticalScore - TotalNonCriticalScore *float32 `json:"totalNonCriticalScore,omitempty"` - - - // MaxTotalNonCriticalScore - MaxTotalNonCriticalScore *float32 `json:"maxTotalNonCriticalScore,omitempty"` - - - // TotalScoreUnweighted - TotalScoreUnweighted *float32 `json:"totalScoreUnweighted,omitempty"` - - - // MaxTotalScoreUnweighted - MaxTotalScoreUnweighted *float32 `json:"maxTotalScoreUnweighted,omitempty"` - - - // TotalCriticalScoreUnweighted - TotalCriticalScoreUnweighted *float32 `json:"totalCriticalScoreUnweighted,omitempty"` - - - // MaxTotalCriticalScoreUnweighted - MaxTotalCriticalScoreUnweighted *float32 `json:"maxTotalCriticalScoreUnweighted,omitempty"` - - - // TotalNonCriticalScoreUnweighted - TotalNonCriticalScoreUnweighted *float32 `json:"totalNonCriticalScoreUnweighted,omitempty"` - - - // MaxTotalNonCriticalScoreUnweighted - MaxTotalNonCriticalScoreUnweighted *float32 `json:"maxTotalNonCriticalScoreUnweighted,omitempty"` - - - // QuestionScores - QuestionScores *[]Evaluationquestionscore `json:"questionScores,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationquestiongroupscore) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationquestionscore.go b/build/platformclientv2/evaluationquestionscore.go deleted file mode 100644 index 4660e5d86..000000000 --- a/build/platformclientv2/evaluationquestionscore.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationquestionscore -type Evaluationquestionscore struct { - // QuestionId - QuestionId *string `json:"questionId,omitempty"` - - - // AnswerId - AnswerId *string `json:"answerId,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - - - // MarkedNA - MarkedNA *bool `json:"markedNA,omitempty"` - - - // FailedKillQuestion - FailedKillQuestion *bool `json:"failedKillQuestion,omitempty"` - - - // Comments - Comments *string `json:"comments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationquestionscore) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluationscoringset.go b/build/platformclientv2/evaluationscoringset.go deleted file mode 100644 index c144a4483..000000000 --- a/build/platformclientv2/evaluationscoringset.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluationscoringset -type Evaluationscoringset struct { - // TotalScore - TotalScore *float32 `json:"totalScore,omitempty"` - - - // TotalCriticalScore - TotalCriticalScore *float32 `json:"totalCriticalScore,omitempty"` - - - // TotalNonCriticalScore - TotalNonCriticalScore *float32 `json:"totalNonCriticalScore,omitempty"` - - - // QuestionGroupScores - QuestionGroupScores *[]Evaluationquestiongroupscore `json:"questionGroupScores,omitempty"` - - - // AnyFailedKillQuestions - AnyFailedKillQuestions *bool `json:"anyFailedKillQuestions,omitempty"` - - - // Comments - Comments *string `json:"comments,omitempty"` - - - // AgentComments - AgentComments *string `json:"agentComments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluationscoringset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluatoractivity.go b/build/platformclientv2/evaluatoractivity.go deleted file mode 100644 index ffffce5e4..000000000 --- a/build/platformclientv2/evaluatoractivity.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluatoractivity -type Evaluatoractivity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Evaluator - Evaluator *User `json:"evaluator,omitempty"` - - - // NumEvaluationsAssigned - NumEvaluationsAssigned *int32 `json:"numEvaluationsAssigned,omitempty"` - - - // NumEvaluationsStarted - NumEvaluationsStarted *int32 `json:"numEvaluationsStarted,omitempty"` - - - // NumEvaluationsCompleted - NumEvaluationsCompleted *int32 `json:"numEvaluationsCompleted,omitempty"` - - - // NumCalibrationsAssigned - NumCalibrationsAssigned *int32 `json:"numCalibrationsAssigned,omitempty"` - - - // NumCalibrationsStarted - NumCalibrationsStarted *int32 `json:"numCalibrationsStarted,omitempty"` - - - // NumCalibrationsCompleted - NumCalibrationsCompleted *int32 `json:"numCalibrationsCompleted,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluatoractivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evaluatoractivityentitylisting.go b/build/platformclientv2/evaluatoractivityentitylisting.go deleted file mode 100644 index 509f9d149..000000000 --- a/build/platformclientv2/evaluatoractivityentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evaluatoractivityentitylisting -type Evaluatoractivityentitylisting struct { - // Entities - Entities *[]Evaluatoractivity `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evaluatoractivityentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/evententity.go b/build/platformclientv2/evententity.go deleted file mode 100644 index 2202b2deb..000000000 --- a/build/platformclientv2/evententity.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Evententity -type Evententity struct { - // EntityType - Type of entity the event pertains to. e.g. integration - EntityType *string `json:"entityType,omitempty"` - - - // Id - ID of the entity the event pertains to. - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Evententity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/eventlog.go b/build/platformclientv2/eventlog.go deleted file mode 100644 index 68b176704..000000000 --- a/build/platformclientv2/eventlog.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Eventlog -type Eventlog struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ErrorEntity - ErrorEntity *Domainentityref `json:"errorEntity,omitempty"` - - - // RelatedEntity - RelatedEntity *Domainentityref `json:"relatedEntity,omitempty"` - - - // Timestamp - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // Level - Level *string `json:"level,omitempty"` - - - // Category - Category *string `json:"category,omitempty"` - - - // CorrelationId - CorrelationId *string `json:"correlationId,omitempty"` - - - // EventMessage - EventMessage *Eventmessage `json:"eventMessage,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Eventlog) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/eventmessage.go b/build/platformclientv2/eventmessage.go deleted file mode 100644 index c3cb48bbd..000000000 --- a/build/platformclientv2/eventmessage.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Eventmessage -type Eventmessage struct { - // Code - Code *string `json:"code,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]interface{} `json:"messageParams,omitempty"` - - - // DocumentationUri - DocumentationUri *string `json:"documentationUri,omitempty"` - - - // ResourceURIs - ResourceURIs *[]string `json:"resourceURIs,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Eventmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/executerecordingjobsquery.go b/build/platformclientv2/executerecordingjobsquery.go deleted file mode 100644 index 0d7335703..000000000 --- a/build/platformclientv2/executerecordingjobsquery.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Executerecordingjobsquery -type Executerecordingjobsquery struct { - // State - The desired state for the job to be set to. - State *string `json:"state,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Executerecordingjobsquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/expansioncriterium.go b/build/platformclientv2/expansioncriterium.go deleted file mode 100644 index 43b6e5182..000000000 --- a/build/platformclientv2/expansioncriterium.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Expansioncriterium -type Expansioncriterium struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Threshold - Threshold *float64 `json:"threshold,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Expansioncriterium) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/exportscriptrequest.go b/build/platformclientv2/exportscriptrequest.go deleted file mode 100644 index a2ac473de..000000000 --- a/build/platformclientv2/exportscriptrequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Exportscriptrequest - Creating an exported script via Download Service -type Exportscriptrequest struct { - // FileName - The final file name (no extension) of the script download: .script - FileName *string `json:"fileName,omitempty"` - - - // VersionId - The UUID version of the script to be exported. Defaults to the current editable version. - VersionId *string `json:"versionId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Exportscriptrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/exportscriptresponse.go b/build/platformclientv2/exportscriptresponse.go deleted file mode 100644 index bd43e0bd5..000000000 --- a/build/platformclientv2/exportscriptresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Exportscriptresponse -type Exportscriptresponse struct { - // Url - Url *string `json:"url,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Exportscriptresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/exporturi.go b/build/platformclientv2/exporturi.go deleted file mode 100644 index 1e4f34a80..000000000 --- a/build/platformclientv2/exporturi.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Exporturi -type Exporturi struct { - // Uri - Uri *string `json:"uri,omitempty"` - - - // ExportTimestamp - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExportTimestamp *time.Time `json:"exportTimestamp,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Exporturi) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/extension.go b/build/platformclientv2/extension.go deleted file mode 100644 index e80689fcc..000000000 --- a/build/platformclientv2/extension.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Extension -type Extension struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Number - Number *string `json:"number,omitempty"` - - - // Owner - A Uri reference to the owner of this extension, which is either a User or an IVR - Owner *Domainentityref `json:"owner,omitempty"` - - - // ExtensionPool - ExtensionPool *Domainentityref `json:"extensionPool,omitempty"` - - - // OwnerType - OwnerType *string `json:"ownerType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Extension) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/extensionentitylisting.go b/build/platformclientv2/extensionentitylisting.go deleted file mode 100644 index 26ae9aa1d..000000000 --- a/build/platformclientv2/extensionentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Extensionentitylisting -type Extensionentitylisting struct { - // Entities - Entities *[]Extension `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Extensionentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/extensionpool.go b/build/platformclientv2/extensionpool.go deleted file mode 100644 index 2783548bc..000000000 --- a/build/platformclientv2/extensionpool.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Extensionpool -type Extensionpool struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // StartNumber - The starting phone number for the range of this Extension pool. Must be in E.164 format - StartNumber *string `json:"startNumber,omitempty"` - - - // EndNumber - The ending phone number for the range of this Extension pool. Must be in E.164 format - EndNumber *string `json:"endNumber,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Extensionpool) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/extensionpoolentitylisting.go b/build/platformclientv2/extensionpoolentitylisting.go deleted file mode 100644 index be10420c4..000000000 --- a/build/platformclientv2/extensionpoolentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Extensionpoolentitylisting -type Extensionpoolentitylisting struct { - // Entities - Entities *[]Extensionpool `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Extensionpoolentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/externalcontact.go b/build/platformclientv2/externalcontact.go deleted file mode 100644 index 2eef8f155..000000000 --- a/build/platformclientv2/externalcontact.go +++ /dev/null @@ -1,114 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Externalcontact -type Externalcontact struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // FirstName - The first name of the contact. - FirstName *string `json:"firstName,omitempty"` - - - // MiddleName - MiddleName *string `json:"middleName,omitempty"` - - - // LastName - The last name of the contact. - LastName *string `json:"lastName,omitempty"` - - - // Salutation - Salutation *string `json:"salutation,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // WorkPhone - WorkPhone *Phonenumber `json:"workPhone,omitempty"` - - - // CellPhone - CellPhone *Phonenumber `json:"cellPhone,omitempty"` - - - // HomePhone - HomePhone *Phonenumber `json:"homePhone,omitempty"` - - - // OtherPhone - OtherPhone *Phonenumber `json:"otherPhone,omitempty"` - - - // WorkEmail - WorkEmail *string `json:"workEmail,omitempty"` - - - // PersonalEmail - PersonalEmail *string `json:"personalEmail,omitempty"` - - - // OtherEmail - OtherEmail *string `json:"otherEmail,omitempty"` - - - // Address - Address *Contactaddress `json:"address,omitempty"` - - - // TwitterId - TwitterId *Twitterid `json:"twitterId,omitempty"` - - - // LineId - LineId *Lineid `json:"lineId,omitempty"` - - - // WhatsAppId - WhatsAppId *Whatsappid `json:"whatsAppId,omitempty"` - - - // FacebookId - FacebookId *Facebookid `json:"facebookId,omitempty"` - - - // ModifyDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifyDate *time.Time `json:"modifyDate,omitempty"` - - - // CreateDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreateDate *time.Time `json:"createDate,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Externalorganization `json:"externalOrganization,omitempty"` - - - // SurveyOptOut - SurveyOptOut *bool `json:"surveyOptOut,omitempty"` - - - // ExternalSystemUrl - A string that identifies an external system-of-record resource that may have more detailed information on the contact. It should be a valid URL (including the http/https protocol, port, and path [if any]). The value is automatically trimmed of any leading and trailing whitespace. - ExternalSystemUrl *string `json:"externalSystemUrl,omitempty"` - - - // ExternalDataSources - Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param. - ExternalDataSources *[]Externaldatasource `json:"externalDataSources,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Externalcontact) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/externalcontactsapi.go b/build/platformclientv2/externalcontactsapi.go deleted file mode 100644 index 25b7f8d2e..000000000 --- a/build/platformclientv2/externalcontactsapi.go +++ /dev/null @@ -1,2486 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ExternalContactsApi provides functions for API endpoints -type ExternalContactsApi struct { - Configuration *Configuration -} - -// NewExternalContactsApi creates an API instance using the default configuration -func NewExternalContactsApi() *ExternalContactsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ExternalContactsApi with base path: %s", strings.ToLower(config.BasePath))) - return &ExternalContactsApi{ - Configuration: config, - } -} - -// NewExternalContactsApiWithConfig creates an API instance using the provided configuration -func NewExternalContactsApiWithConfig(config *Configuration) *ExternalContactsApi { - config.Debugf("Creating ExternalContactsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ExternalContactsApi{ - Configuration: config, - } -} - -// DeleteExternalcontactsContact invokes DELETE /api/v2/externalcontacts/contacts/{contactId} -// -// Delete an external contact -// -// -func (a ExternalContactsApi) DeleteExternalcontactsContact(contactId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->DeleteExternalcontactsContact") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteExternalcontactsContactNote invokes DELETE /api/v2/externalcontacts/contacts/{contactId}/notes/{noteId} -// -// Delete a note for an external contact -// -// -func (a ExternalContactsApi) DeleteExternalcontactsContactNote(contactId string, noteId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->DeleteExternalcontactsContactNote") - } - // verify the required parameter 'noteId' is set - if ¬eId == nil { - // - return nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->DeleteExternalcontactsContactNote") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteExternalcontactsOrganization invokes DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId} -// -// Delete an external organization -// -// -func (a ExternalContactsApi) DeleteExternalcontactsOrganization(externalOrganizationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteExternalcontactsOrganizationNote invokes DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId} -// -// Delete a note for an external organization -// -// -func (a ExternalContactsApi) DeleteExternalcontactsOrganizationNote(externalOrganizationId string, noteId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationNote") - } - // verify the required parameter 'noteId' is set - if ¬eId == nil { - // - return nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationNote") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteExternalcontactsOrganizationTrustor invokes DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor -// -// Unlink the Trustor for this External Organization -// -// -func (a ExternalContactsApi) DeleteExternalcontactsOrganizationTrustor(externalOrganizationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationTrustor") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteExternalcontactsRelationship invokes DELETE /api/v2/externalcontacts/relationships/{relationshipId} -// -// Delete a relationship -// -// -func (a ExternalContactsApi) DeleteExternalcontactsRelationship(relationshipId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/relationships/{relationshipId}" - path = strings.Replace(path, "{relationshipId}", fmt.Sprintf("%v", relationshipId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'relationshipId' is set - if &relationshipId == nil { - // - return nil, errors.New("Missing required parameter 'relationshipId' when calling ExternalContactsApi->DeleteExternalcontactsRelationship") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetExternalcontactsContact invokes GET /api/v2/externalcontacts/contacts/{contactId} -// -// Fetch an external contact -// -// -func (a ExternalContactsApi) GetExternalcontactsContact(contactId string, expand []string) (*Externalcontact, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - defaultReturn := new(Externalcontact) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->GetExternalcontactsContact") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Externalcontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsContactNote invokes GET /api/v2/externalcontacts/contacts/{contactId}/notes/{noteId} -// -// Fetch a note for an external contact -// -// -func (a ExternalContactsApi) GetExternalcontactsContactNote(contactId string, noteId string, expand []string) (*Note, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1) - defaultReturn := new(Note) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->GetExternalcontactsContactNote") - } - // verify the required parameter 'noteId' is set - if ¬eId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->GetExternalcontactsContactNote") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Note - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsContactNotes invokes GET /api/v2/externalcontacts/contacts/{contactId}/notes -// -// List notes for an external contact -// -// -func (a ExternalContactsApi) GetExternalcontactsContactNotes(contactId string, pageSize int32, pageNumber int32, sortOrder string, expand []string) (*Notelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}/notes" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - defaultReturn := new(Notelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->GetExternalcontactsContactNotes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Notelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsContacts invokes GET /api/v2/externalcontacts/contacts -// -// Search for external contacts -// -// -func (a ExternalContactsApi) GetExternalcontactsContacts(pageSize int32, pageNumber int32, q string, sortOrder string, expand []string) (*Contactlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts" - defaultReturn := new(Contactlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["q"] = a.Configuration.APIClient.ParameterToString(q, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsOrganization invokes GET /api/v2/externalcontacts/organizations/{externalOrganizationId} -// -// Fetch an external organization -// -// -func (a ExternalContactsApi) GetExternalcontactsOrganization(externalOrganizationId string, expand string, includeTrustors bool) (*Externalorganization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - defaultReturn := new(Externalorganization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->GetExternalcontactsOrganization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeTrustors"] = a.Configuration.APIClient.ParameterToString(includeTrustors, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Externalorganization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsOrganizationContacts invokes GET /api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts -// -// Search for external contacts in an external organization -// -// -func (a ExternalContactsApi) GetExternalcontactsOrganizationContacts(externalOrganizationId string, pageSize int32, pageNumber int32, q string, sortOrder string, expand []string) (*Contactlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - defaultReturn := new(Contactlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->GetExternalcontactsOrganizationContacts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["q"] = a.Configuration.APIClient.ParameterToString(q, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsOrganizationNote invokes GET /api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId} -// -// Fetch a note for an external organization -// -// -func (a ExternalContactsApi) GetExternalcontactsOrganizationNote(externalOrganizationId string, noteId string, expand []string) (*Note, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1) - defaultReturn := new(Note) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->GetExternalcontactsOrganizationNote") - } - // verify the required parameter 'noteId' is set - if ¬eId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->GetExternalcontactsOrganizationNote") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Note - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsOrganizationNotes invokes GET /api/v2/externalcontacts/organizations/{externalOrganizationId}/notes -// -// List notes for an external organization -// -// -func (a ExternalContactsApi) GetExternalcontactsOrganizationNotes(externalOrganizationId string, pageSize int32, pageNumber int32, sortOrder string, expand []string) (*Notelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - defaultReturn := new(Notelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->GetExternalcontactsOrganizationNotes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Notelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsOrganizationRelationships invokes GET /api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships -// -// Fetch a relationship for an external organization -// -// -func (a ExternalContactsApi) GetExternalcontactsOrganizationRelationships(externalOrganizationId string, pageSize int32, pageNumber int32, expand string, sortOrder string) (*Relationshiplisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - defaultReturn := new(Relationshiplisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->GetExternalcontactsOrganizationRelationships") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Relationshiplisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsOrganizations invokes GET /api/v2/externalcontacts/organizations -// -// Search for external organizations -// -// -func (a ExternalContactsApi) GetExternalcontactsOrganizations(pageSize int32, pageNumber int32, q string, trustorId []string, sortOrder string, expand []string, includeTrustors bool) (*Externalorganizationlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations" - defaultReturn := new(Externalorganizationlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["q"] = a.Configuration.APIClient.ParameterToString(q, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range trustorId { - queryParams["trustorId"] = value - } - } else { - queryParams["trustorId"] = a.Configuration.APIClient.ParameterToString(trustorId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["includeTrustors"] = a.Configuration.APIClient.ParameterToString(includeTrustors, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Externalorganizationlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsRelationship invokes GET /api/v2/externalcontacts/relationships/{relationshipId} -// -// Fetch a relationship -// -// -func (a ExternalContactsApi) GetExternalcontactsRelationship(relationshipId string, expand string) (*Relationship, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/relationships/{relationshipId}" - path = strings.Replace(path, "{relationshipId}", fmt.Sprintf("%v", relationshipId), -1) - defaultReturn := new(Relationship) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'relationshipId' is set - if &relationshipId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'relationshipId' when calling ExternalContactsApi->GetExternalcontactsRelationship") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Relationship - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetExternalcontactsReversewhitepageslookup invokes GET /api/v2/externalcontacts/reversewhitepageslookup -// -// Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned. -// -// -func (a ExternalContactsApi) GetExternalcontactsReversewhitepageslookup(lookupVal string, expand []string) (*Reversewhitepageslookupresult, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/reversewhitepageslookup" - defaultReturn := new(Reversewhitepageslookupresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'lookupVal' is set - if &lookupVal == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'lookupVal' when calling ExternalContactsApi->GetExternalcontactsReversewhitepageslookup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["lookupVal"] = a.Configuration.APIClient.ParameterToString(lookupVal, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Reversewhitepageslookupresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostExternalcontactsContactNotes invokes POST /api/v2/externalcontacts/contacts/{contactId}/notes -// -// Create a note for an external contact -// -// -func (a ExternalContactsApi) PostExternalcontactsContactNotes(contactId string, body Note) (*Note, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}/notes" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - defaultReturn := new(Note) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->PostExternalcontactsContactNotes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PostExternalcontactsContactNotes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Note - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostExternalcontactsContacts invokes POST /api/v2/externalcontacts/contacts -// -// Create an external contact -// -// -func (a ExternalContactsApi) PostExternalcontactsContacts(body Externalcontact) (*Externalcontact, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts" - defaultReturn := new(Externalcontact) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PostExternalcontactsContacts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Externalcontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostExternalcontactsOrganizationNotes invokes POST /api/v2/externalcontacts/organizations/{externalOrganizationId}/notes -// -// Create a note for an external organization -// -// -func (a ExternalContactsApi) PostExternalcontactsOrganizationNotes(externalOrganizationId string, body Note) (*Note, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - defaultReturn := new(Note) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->PostExternalcontactsOrganizationNotes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PostExternalcontactsOrganizationNotes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Note - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostExternalcontactsOrganizations invokes POST /api/v2/externalcontacts/organizations -// -// Create an external organization -// -// -func (a ExternalContactsApi) PostExternalcontactsOrganizations(body Externalorganization) (*Externalorganization, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations" - defaultReturn := new(Externalorganization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PostExternalcontactsOrganizations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Externalorganization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostExternalcontactsRelationships invokes POST /api/v2/externalcontacts/relationships -// -// Create a relationship -// -// -func (a ExternalContactsApi) PostExternalcontactsRelationships(body Relationship) (*Relationship, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/relationships" - defaultReturn := new(Relationship) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PostExternalcontactsRelationships") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Relationship - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutExternalcontactsContact invokes PUT /api/v2/externalcontacts/contacts/{contactId} -// -// Update an external contact -// -// -func (a ExternalContactsApi) PutExternalcontactsContact(contactId string, body Externalcontact) (*Externalcontact, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - defaultReturn := new(Externalcontact) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->PutExternalcontactsContact") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PutExternalcontactsContact") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Externalcontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutExternalcontactsContactNote invokes PUT /api/v2/externalcontacts/contacts/{contactId}/notes/{noteId} -// -// Update a note for an external contact -// -// -func (a ExternalContactsApi) PutExternalcontactsContactNote(contactId string, noteId string, body Note) (*Note, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}" - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1) - defaultReturn := new(Note) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->PutExternalcontactsContactNote") - } - // verify the required parameter 'noteId' is set - if ¬eId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->PutExternalcontactsContactNote") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PutExternalcontactsContactNote") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Note - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutExternalcontactsConversation invokes PUT /api/v2/externalcontacts/conversations/{conversationId} -// -// Associate an external contact with a conversation -// -// -func (a ExternalContactsApi) PutExternalcontactsConversation(conversationId string, body Conversationassociation) (*APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/conversations/{conversationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling ExternalContactsApi->PutExternalcontactsConversation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PutExternalcontactsConversation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PutExternalcontactsOrganization invokes PUT /api/v2/externalcontacts/organizations/{externalOrganizationId} -// -// Update an external organization -// -// -func (a ExternalContactsApi) PutExternalcontactsOrganization(externalOrganizationId string, body Externalorganization) (*Externalorganization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - defaultReturn := new(Externalorganization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->PutExternalcontactsOrganization") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PutExternalcontactsOrganization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Externalorganization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutExternalcontactsOrganizationNote invokes PUT /api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId} -// -// Update a note for an external organization -// -// -func (a ExternalContactsApi) PutExternalcontactsOrganizationNote(externalOrganizationId string, noteId string, body Note) (*Note, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1) - defaultReturn := new(Note) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->PutExternalcontactsOrganizationNote") - } - // verify the required parameter 'noteId' is set - if ¬eId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->PutExternalcontactsOrganizationNote") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PutExternalcontactsOrganizationNote") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Note - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutExternalcontactsOrganizationTrustorTrustorId invokes PUT /api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId} -// -// Links a Trustor with an External Organization -// -// -func (a ExternalContactsApi) PutExternalcontactsOrganizationTrustorTrustorId(externalOrganizationId string, trustorId string) (*Externalorganization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}" - path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1) - path = strings.Replace(path, "{trustorId}", fmt.Sprintf("%v", trustorId), -1) - defaultReturn := new(Externalorganization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'externalOrganizationId' is set - if &externalOrganizationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->PutExternalcontactsOrganizationTrustorTrustorId") - } - // verify the required parameter 'trustorId' is set - if &trustorId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trustorId' when calling ExternalContactsApi->PutExternalcontactsOrganizationTrustorTrustorId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Externalorganization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutExternalcontactsRelationship invokes PUT /api/v2/externalcontacts/relationships/{relationshipId} -// -// Update a relationship -// -// -func (a ExternalContactsApi) PutExternalcontactsRelationship(relationshipId string, body Relationship) (*Relationship, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/externalcontacts/relationships/{relationshipId}" - path = strings.Replace(path, "{relationshipId}", fmt.Sprintf("%v", relationshipId), -1) - defaultReturn := new(Relationship) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'relationshipId' is set - if &relationshipId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'relationshipId' when calling ExternalContactsApi->PutExternalcontactsRelationship") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ExternalContactsApi->PutExternalcontactsRelationship") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Relationship - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/externaldatasource.go b/build/platformclientv2/externaldatasource.go deleted file mode 100644 index fe5c9e555..000000000 --- a/build/platformclientv2/externaldatasource.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Externaldatasource - Describes a link to a record in an external system that contributed data to a Relate record -type Externaldatasource struct { - // Platform - The platform that was the source of the data. Example: a CRM like SALESFORCE. - Platform *string `json:"platform,omitempty"` - - - // Url - An URL that links to the source record that contributed data to the associated entity. - Url *string `json:"url,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Externaldatasource) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/externalorganization.go b/build/platformclientv2/externalorganization.go deleted file mode 100644 index 65a6474e3..000000000 --- a/build/platformclientv2/externalorganization.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Externalorganization -type Externalorganization struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the company. - Name *string `json:"name,omitempty"` - - - // CompanyType - CompanyType *string `json:"companyType,omitempty"` - - - // Industry - Industry *string `json:"industry,omitempty"` - - - // PrimaryContactId - PrimaryContactId *string `json:"primaryContactId,omitempty"` - - - // Address - Address *Contactaddress `json:"address,omitempty"` - - - // PhoneNumber - PhoneNumber *Phonenumber `json:"phoneNumber,omitempty"` - - - // FaxNumber - FaxNumber *Phonenumber `json:"faxNumber,omitempty"` - - - // EmployeeCount - EmployeeCount *int64 `json:"employeeCount,omitempty"` - - - // Revenue - Revenue *int64 `json:"revenue,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // Websites - Websites *[]string `json:"websites,omitempty"` - - - // Tickers - Tickers *[]Ticker `json:"tickers,omitempty"` - - - // TwitterId - TwitterId *Twitterid `json:"twitterId,omitempty"` - - - // ExternalSystemUrl - A string that identifies an external system-of-record resource that may have more detailed information on the organization. It should be a valid URL (including the http/https protocol, port, and path [if any]). The value is automatically trimmed of any leading and trailing whitespace. - ExternalSystemUrl *string `json:"externalSystemUrl,omitempty"` - - - // ModifyDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifyDate *time.Time `json:"modifyDate,omitempty"` - - - // CreateDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreateDate *time.Time `json:"createDate,omitempty"` - - - // Trustor - Trustor *Trustor `json:"trustor,omitempty"` - - - // ExternalDataSources - Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param. - ExternalDataSources *[]Externaldatasource `json:"externalDataSources,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Externalorganization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/externalorganizationlisting.go b/build/platformclientv2/externalorganizationlisting.go deleted file mode 100644 index 11a7c29d2..000000000 --- a/build/platformclientv2/externalorganizationlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Externalorganizationlisting -type Externalorganizationlisting struct { - // Entities - Entities *[]Externalorganization `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Externalorganizationlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facebookid.go b/build/platformclientv2/facebookid.go deleted file mode 100644 index b9a768433..000000000 --- a/build/platformclientv2/facebookid.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facebookid - User information for a Facebook user interacting with a page or app -type Facebookid struct { - // Ids - The set of scopedIds that this person has. Each scopedId is specific to a page or app that the user interacts with. - Ids *[]Facebookscopedid `json:"ids,omitempty"` - - - // DisplayName - The displayName of this person's Facebook account. Roughly translates to user.first_name + ' ' + user.last_name in the Facebook API. - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facebookid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facebookintegration.go b/build/platformclientv2/facebookintegration.go deleted file mode 100644 index 7fae9a831..000000000 --- a/build/platformclientv2/facebookintegration.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Facebookintegration -type Facebookintegration struct { - // Id - A unique Integration Id. - Id *string `json:"id,omitempty"` - - - // Name - The name of the Facebook Integration - Name *string `json:"name,omitempty"` - - - // AppId - The App Id from Facebook messenger - AppId *string `json:"appId,omitempty"` - - - // PageId - The Page Id from Facebook messenger - PageId *string `json:"pageId,omitempty"` - - - // Status - The status of the Facebook Integration - Status *string `json:"status,omitempty"` - - - // Recipient - The recipient reference associated to the Facebook Integration. This recipient is used to associate a flow to an integration - Recipient *Domainentityref `json:"recipient,omitempty"` - - - // DateCreated - Date this Integration was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this Integration was modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User reference that created this Integration - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User reference that last modified this Integration - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facebookintegration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facebookintegrationentitylisting.go b/build/platformclientv2/facebookintegrationentitylisting.go deleted file mode 100644 index 6438641e1..000000000 --- a/build/platformclientv2/facebookintegrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facebookintegrationentitylisting -type Facebookintegrationentitylisting struct { - // Entities - Entities *[]Facebookintegration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facebookintegrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facebookintegrationrequest.go b/build/platformclientv2/facebookintegrationrequest.go deleted file mode 100644 index 7759b2352..000000000 --- a/build/platformclientv2/facebookintegrationrequest.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facebookintegrationrequest -type Facebookintegrationrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the Facebook Integration - Name *string `json:"name,omitempty"` - - - // PageAccessToken - The long-lived Page Access Token of a facebook page. See https://developers.facebook.com/docs/facebook-login/access-tokens. When a pageAccessToken is provided, pageId and userAccessToken are not required. - PageAccessToken *string `json:"pageAccessToken,omitempty"` - - - // UserAccessToken - The short-lived User Access Token of the facebook user logged into the facebook app. See https://developers.facebook.com/docs/facebook-login/access-tokens. When userAccessToken is provided, pageId is mandatory. When userAccessToken/pageId combination is provided, pageAccessToken is not required. - UserAccessToken *string `json:"userAccessToken,omitempty"` - - - // PageId - The page Id of a facebook page. The pageId is required when userAccessToken is provided. - PageId *string `json:"pageId,omitempty"` - - - // AppId - The app Id of a facebook app. The appId is required when a customer wants to use their own approved facebook app. - AppId *string `json:"appId,omitempty"` - - - // AppSecret - The app Secret of a facebook app. The appSecret is required when appId is provided. - AppSecret *string `json:"appSecret,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facebookintegrationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facebookscopedid.go b/build/platformclientv2/facebookscopedid.go deleted file mode 100644 index 9bc624ccd..000000000 --- a/build/platformclientv2/facebookscopedid.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facebookscopedid - Scoped ID for a Facebook user interacting with a page or app -type Facebookscopedid struct { - // ScopedId - The unique page/app-specific scopedId for the user - ScopedId *string `json:"scopedId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facebookscopedid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facet.go b/build/platformclientv2/facet.go deleted file mode 100644 index feae9f078..000000000 --- a/build/platformclientv2/facet.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facet -type Facet struct { - // Name - The name of the field on which to facet. - Name *string `json:"name,omitempty"` - - - // VarType - The type of the facet, DATE or STRING. - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facet) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facetentry.go b/build/platformclientv2/facetentry.go deleted file mode 100644 index 0c2703486..000000000 --- a/build/platformclientv2/facetentry.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facetentry -type Facetentry struct { - // Attribute - Attribute *Termattribute `json:"attribute,omitempty"` - - - // Statistics - Statistics *Facetstatistics `json:"statistics,omitempty"` - - - // Other - Other *int64 `json:"other,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // Missing - Missing *int64 `json:"missing,omitempty"` - - - // TermCount - TermCount *int32 `json:"termCount,omitempty"` - - - // TermType - TermType *string `json:"termType,omitempty"` - - - // Terms - Terms *[]Facetterm `json:"terms,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facetentry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facetinfo.go b/build/platformclientv2/facetinfo.go deleted file mode 100644 index 1ca76be70..000000000 --- a/build/platformclientv2/facetinfo.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facetinfo -type Facetinfo struct { - // Name - The name of the field that was faceted on. - Name *string `json:"name,omitempty"` - - - // Entries - The entries resulting from this facet. - Entries *[]Entry `json:"entries,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facetinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facetkeyattribute.go b/build/platformclientv2/facetkeyattribute.go deleted file mode 100644 index db9b45051..000000000 --- a/build/platformclientv2/facetkeyattribute.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Facetkeyattribute -type Facetkeyattribute struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Count - Count *int32 `json:"count,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facetkeyattribute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facetstatistics.go b/build/platformclientv2/facetstatistics.go deleted file mode 100644 index beed2bf3a..000000000 --- a/build/platformclientv2/facetstatistics.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Facetstatistics -type Facetstatistics struct { - // Count - Count *int64 `json:"count,omitempty"` - - - // Min - Min *float64 `json:"min,omitempty"` - - - // Max - Max *float64 `json:"max,omitempty"` - - - // Mean - Mean *float64 `json:"mean,omitempty"` - - - // StdDeviation - StdDeviation *float64 `json:"stdDeviation,omitempty"` - - - // DateMin - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateMin *time.Time `json:"dateMin,omitempty"` - - - // DateMax - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateMax *time.Time `json:"dateMax,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facetstatistics) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/facetterm.go b/build/platformclientv2/facetterm.go deleted file mode 100644 index 372dda407..000000000 --- a/build/platformclientv2/facetterm.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Facetterm -type Facetterm struct { - // Term - Term *string `json:"term,omitempty"` - - - // Key - Key *int64 `json:"key,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Count - Count *int64 `json:"count,omitempty"` - - - // Time - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Time *time.Time `json:"time,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Facetterm) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/failedobject.go b/build/platformclientv2/failedobject.go deleted file mode 100644 index 80ae9bad3..000000000 --- a/build/platformclientv2/failedobject.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Failedobject -type Failedobject struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Failedobject) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxapi.go b/build/platformclientv2/faxapi.go deleted file mode 100644 index 12ee3e17e..000000000 --- a/build/platformclientv2/faxapi.go +++ /dev/null @@ -1,453 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// FaxApi provides functions for API endpoints -type FaxApi struct { - Configuration *Configuration -} - -// NewFaxApi creates an API instance using the default configuration -func NewFaxApi() *FaxApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating FaxApi with base path: %s", strings.ToLower(config.BasePath))) - return &FaxApi{ - Configuration: config, - } -} - -// NewFaxApiWithConfig creates an API instance using the provided configuration -func NewFaxApiWithConfig(config *Configuration) *FaxApi { - config.Debugf("Creating FaxApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &FaxApi{ - Configuration: config, - } -} - -// DeleteFaxDocument invokes DELETE /api/v2/fax/documents/{documentId} -// -// Delete a fax document. -// -// -func (a FaxApi) DeleteFaxDocument(documentId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fax/documents/{documentId}" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return nil, errors.New("Missing required parameter 'documentId' when calling FaxApi->DeleteFaxDocument") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetFaxDocument invokes GET /api/v2/fax/documents/{documentId} -// -// Get a document. -// -// -func (a FaxApi) GetFaxDocument(documentId string) (*Faxdocument, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fax/documents/{documentId}" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Faxdocument) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling FaxApi->GetFaxDocument") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Faxdocument - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFaxDocumentContent invokes GET /api/v2/fax/documents/{documentId}/content -// -// Download a fax document. -// -// -func (a FaxApi) GetFaxDocumentContent(documentId string) (*Downloadresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fax/documents/{documentId}/content" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Downloadresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling FaxApi->GetFaxDocumentContent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Downloadresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFaxDocuments invokes GET /api/v2/fax/documents -// -// Get a list of fax documents. -// -// -func (a FaxApi) GetFaxDocuments(pageSize int32, pageNumber int32) (*Faxdocumententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fax/documents" - defaultReturn := new(Faxdocumententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Faxdocumententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFaxSummary invokes GET /api/v2/fax/summary -// -// Get fax summary -// -// -func (a FaxApi) GetFaxSummary() (*Faxsummary, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fax/summary" - defaultReturn := new(Faxsummary) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Faxsummary - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutFaxDocument invokes PUT /api/v2/fax/documents/{documentId} -// -// Update a fax document. -// -// -func (a FaxApi) PutFaxDocument(documentId string, body Faxdocument) (*Faxdocument, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fax/documents/{documentId}" - path = strings.Replace(path, "{documentId}", fmt.Sprintf("%v", documentId), -1) - defaultReturn := new(Faxdocument) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'documentId' is set - if &documentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'documentId' when calling FaxApi->PutFaxDocument") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling FaxApi->PutFaxDocument") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Faxdocument - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/faxdocument.go b/build/platformclientv2/faxdocument.go deleted file mode 100644 index c635450b1..000000000 --- a/build/platformclientv2/faxdocument.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Faxdocument -type Faxdocument struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int64 `json:"contentLength,omitempty"` - - - // Filename - Filename *string `json:"filename,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - - - // PageCount - PageCount *int64 `json:"pageCount,omitempty"` - - - // CallerAddress - CallerAddress *string `json:"callerAddress,omitempty"` - - - // ReceiverAddress - ReceiverAddress *string `json:"receiverAddress,omitempty"` - - - // Thumbnails - Thumbnails *[]Documentthumbnail `json:"thumbnails,omitempty"` - - - // SharingUri - SharingUri *string `json:"sharingUri,omitempty"` - - - // DownloadSharingUri - DownloadSharingUri *string `json:"downloadSharingUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxdocument) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxdocumententitylisting.go b/build/platformclientv2/faxdocumententitylisting.go deleted file mode 100644 index 2a965f9a2..000000000 --- a/build/platformclientv2/faxdocumententitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxdocumententitylisting -type Faxdocumententitylisting struct { - // Entities - Entities *[]Faxdocument `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxdocumententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxsendrequest.go b/build/platformclientv2/faxsendrequest.go deleted file mode 100644 index a8b8e54c6..000000000 --- a/build/platformclientv2/faxsendrequest.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxsendrequest -type Faxsendrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Addresses - A list of outbound fax dialing addresses. E.g. +13175555555 or 3175555555 - Addresses *[]string `json:"addresses,omitempty"` - - - // DocumentId - DocumentId of Content Management artifact. If Content Management document is not used for faxing, documentId should be null - DocumentId *string `json:"documentId,omitempty"` - - - // ContentType - The content type that is going to be uploaded. If Content Management document is used for faxing, contentType will be ignored - ContentType *string `json:"contentType,omitempty"` - - - // Workspace - Workspace in which the document should be stored. If Content Management document is used for faxing, workspace will be ignored - Workspace *Workspace `json:"workspace,omitempty"` - - - // CoverSheet - Data for coversheet generation. - CoverSheet *Coversheet `json:"coverSheet,omitempty"` - - - // TimeZoneOffsetMinutes - Time zone offset minutes from GMT - TimeZoneOffsetMinutes *int32 `json:"timeZoneOffsetMinutes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxsendrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxsendresponse.go b/build/platformclientv2/faxsendresponse.go deleted file mode 100644 index dbc111833..000000000 --- a/build/platformclientv2/faxsendresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxsendresponse -type Faxsendresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // UploadDestinationUri - UploadDestinationUri *string `json:"uploadDestinationUri,omitempty"` - - - // UploadMethodType - UploadMethodType *string `json:"uploadMethodType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxsendresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxstatus.go b/build/platformclientv2/faxstatus.go deleted file mode 100644 index ee76257f0..000000000 --- a/build/platformclientv2/faxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxstatus -type Faxstatus struct { - // Direction - The fax direction, either \"send\" or \"receive\". - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - Total number of expected pages, if known. - ExpectedPages *int64 `json:"expectedPages,omitempty"` - - - // ActivePage - Active page of the transmission. - ActivePage *int64 `json:"activePage,omitempty"` - - - // LinesTransmitted - Number of lines that have completed transmission. - LinesTransmitted *int64 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - Number of bytes that have competed transmission. - BytesTransmitted *int64 `json:"bytesTransmitted,omitempty"` - - - // BaudRate - Current signaling rate of transmission, baud rate. - BaudRate *int64 `json:"baudRate,omitempty"` - - - // PageErrors - Number of page errors. - PageErrors *int64 `json:"pageErrors,omitempty"` - - - // LineErrors - Number of line errors. - LineErrors *int64 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxsummary.go b/build/platformclientv2/faxsummary.go deleted file mode 100644 index fdafccb6e..000000000 --- a/build/platformclientv2/faxsummary.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxsummary -type Faxsummary struct { - // ReadCount - ReadCount *int32 `json:"readCount,omitempty"` - - - // UnreadCount - UnreadCount *int32 `json:"unreadCount,omitempty"` - - - // TotalCount - TotalCount *int32 `json:"totalCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxsummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxtopicfaxdatav2.go b/build/platformclientv2/faxtopicfaxdatav2.go deleted file mode 100644 index bb7ebca70..000000000 --- a/build/platformclientv2/faxtopicfaxdatav2.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Faxtopicfaxdatav2 -type Faxtopicfaxdatav2 struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Workspace - Workspace *Faxtopicworkspacedata `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Faxtopicuserdata `json:"createdBy,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // Filename - Filename *string `json:"filename,omitempty"` - - - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // DateUploaded - DateUploaded *time.Time `json:"dateUploaded,omitempty"` - - - // UploadedBy - UploadedBy *Faxtopicuserdata `json:"uploadedBy,omitempty"` - - - // LockInfo - LockInfo *Faxtopiclockdata `json:"lockInfo,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // CallerAddress - CallerAddress *string `json:"callerAddress,omitempty"` - - - // ReceiverAddress - ReceiverAddress *string `json:"receiverAddress,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxtopicfaxdatav2) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxtopiclockdata.go b/build/platformclientv2/faxtopiclockdata.go deleted file mode 100644 index 3393ba150..000000000 --- a/build/platformclientv2/faxtopiclockdata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Faxtopiclockdata -type Faxtopiclockdata struct { - // LockedBy - LockedBy *Faxtopicuserdata `json:"lockedBy,omitempty"` - - - // DateCreated - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateExpires - DateExpires *time.Time `json:"dateExpires,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxtopiclockdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxtopicuserdata.go b/build/platformclientv2/faxtopicuserdata.go deleted file mode 100644 index 2af74a3d5..000000000 --- a/build/platformclientv2/faxtopicuserdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxtopicuserdata -type Faxtopicuserdata struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxtopicuserdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/faxtopicworkspacedata.go b/build/platformclientv2/faxtopicworkspacedata.go deleted file mode 100644 index c33289127..000000000 --- a/build/platformclientv2/faxtopicworkspacedata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Faxtopicworkspacedata -type Faxtopicworkspacedata struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Faxtopicworkspacedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/featurestate.go b/build/platformclientv2/featurestate.go deleted file mode 100644 index 749e60299..000000000 --- a/build/platformclientv2/featurestate.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Featurestate -type Featurestate struct { - // Enabled - Enabled *bool `json:"enabled,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Featurestate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/fieldconfig.go b/build/platformclientv2/fieldconfig.go deleted file mode 100644 index ca9863d5e..000000000 --- a/build/platformclientv2/fieldconfig.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Fieldconfig -type Fieldconfig struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // EntityType - EntityType *string `json:"entityType,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Sections - Sections *[]Section `json:"sections,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - - - // SchemaVersion - SchemaVersion *string `json:"schemaVersion,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Fieldconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/fieldconfigs.go b/build/platformclientv2/fieldconfigs.go deleted file mode 100644 index 3761868e9..000000000 --- a/build/platformclientv2/fieldconfigs.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Fieldconfigs -type Fieldconfigs struct { - // Org - Org *Fieldconfig `json:"org,omitempty"` - - - // Person - Person *Fieldconfig `json:"person,omitempty"` - - - // Group - Group *Fieldconfig `json:"group,omitempty"` - - - // ExternalContact - ExternalContact *Fieldconfig `json:"externalContact,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Fieldconfigs) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/fieldlist.go b/build/platformclientv2/fieldlist.go deleted file mode 100644 index 359b9fbad..000000000 --- a/build/platformclientv2/fieldlist.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Fieldlist -type Fieldlist struct { - // CustomLabels - CustomLabels *bool `json:"customLabels,omitempty"` - - - // InstructionText - InstructionText *string `json:"instructionText,omitempty"` - - - // Key - Key *string `json:"key,omitempty"` - - - // LabelKeys - LabelKeys *[]string `json:"labelKeys,omitempty"` - - - // Params - Params *map[string]interface{} `json:"params,omitempty"` - - - // Repeatable - Repeatable *bool `json:"repeatable,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Required - Required *bool `json:"required,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Fieldlist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/filter.go b/build/platformclientv2/filter.go deleted file mode 100644 index 3f469af7c..000000000 --- a/build/platformclientv2/filter.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Filter -type Filter struct { - // Name - The name of the field by which to filter. - Name *string `json:"name,omitempty"` - - - // VarType - The type of the filter, DATE or STRING. - VarType *string `json:"type,omitempty"` - - - // Operator - The operation that the filter performs. - Operator *string `json:"operator,omitempty"` - - - // Values - The values to make the filter comparison against. - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Filter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/filterpreviewresponse.go b/build/platformclientv2/filterpreviewresponse.go deleted file mode 100644 index 2dc61c508..000000000 --- a/build/platformclientv2/filterpreviewresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Filterpreviewresponse -type Filterpreviewresponse struct { - // FilteredContacts - FilteredContacts *int64 `json:"filteredContacts,omitempty"` - - - // TotalContacts - TotalContacts *int64 `json:"totalContacts,omitempty"` - - - // Preview - Preview *[]Dialercontact `json:"preview,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Filterpreviewresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flow.go b/build/platformclientv2/flow.go deleted file mode 100644 index f607fe8d6..000000000 --- a/build/platformclientv2/flow.go +++ /dev/null @@ -1,89 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flow -type Flow struct { - // Id - The flow identifier - Id *string `json:"id,omitempty"` - - - // Name - The flow name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Writabledivision `json:"division,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // LockedUser - User that has the flow locked. - LockedUser *User `json:"lockedUser,omitempty"` - - - // LockedClient - OAuth client that has the flow locked. - LockedClient *Domainentityref `json:"lockedClient,omitempty"` - - - // Active - Active *bool `json:"active,omitempty"` - - - // System - System *bool `json:"system,omitempty"` - - - // Deleted - Deleted *bool `json:"deleted,omitempty"` - - - // PublishedVersion - PublishedVersion *Flowversion `json:"publishedVersion,omitempty"` - - - // SavedVersion - SavedVersion *Flowversion `json:"savedVersion,omitempty"` - - - // InputSchema - json schema describing the inputs for the flow - InputSchema *map[string]interface{} `json:"inputSchema,omitempty"` - - - // OutputSchema - json schema describing the outputs for the flow - OutputSchema *map[string]interface{} `json:"outputSchema,omitempty"` - - - // CheckedInVersion - CheckedInVersion *Flowversion `json:"checkedInVersion,omitempty"` - - - // DebugVersion - DebugVersion *Flowversion `json:"debugVersion,omitempty"` - - - // PublishedBy - PublishedBy *User `json:"publishedBy,omitempty"` - - - // CurrentOperation - CurrentOperation *Operation `json:"currentOperation,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flow) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregatedatacontainer.go b/build/platformclientv2/flowaggregatedatacontainer.go deleted file mode 100644 index 24266a858..000000000 --- a/build/platformclientv2/flowaggregatedatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregatedatacontainer -type Flowaggregatedatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Statisticalresponse `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregatedatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregatequeryclause.go b/build/platformclientv2/flowaggregatequeryclause.go deleted file mode 100644 index 4e3058661..000000000 --- a/build/platformclientv2/flowaggregatequeryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregatequeryclause -type Flowaggregatequeryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Flowaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregatequeryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregatequeryfilter.go b/build/platformclientv2/flowaggregatequeryfilter.go deleted file mode 100644 index cd356d614..000000000 --- a/build/platformclientv2/flowaggregatequeryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregatequeryfilter -type Flowaggregatequeryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Flowaggregatequeryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Flowaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregatequeryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregatequerypredicate.go b/build/platformclientv2/flowaggregatequerypredicate.go deleted file mode 100644 index 041ca3776..000000000 --- a/build/platformclientv2/flowaggregatequerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregatequerypredicate -type Flowaggregatequerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregatequerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregatequeryresponse.go b/build/platformclientv2/flowaggregatequeryresponse.go deleted file mode 100644 index c293c84e2..000000000 --- a/build/platformclientv2/flowaggregatequeryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregatequeryresponse -type Flowaggregatequeryresponse struct { - // Results - Results *[]Flowaggregatedatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregatequeryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregationquery.go b/build/platformclientv2/flowaggregationquery.go deleted file mode 100644 index 8e3854c51..000000000 --- a/build/platformclientv2/flowaggregationquery.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregationquery -type Flowaggregationquery struct { - // Interval - Behaves like one clause in a SQL WHERE. Specifies the date and time range of data being queried. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // Granularity - Granularity aggregates metrics into subpartitions within the time interval specified. The default granularity is the same duration as the interval. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Granularity *string `json:"granularity,omitempty"` - - - // TimeZone - Sets the time zone for the query interval, defaults to UTC. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // GroupBy - Behaves like a SQL GROUPBY. Allows for multiple levels of grouping as a list of dimensions. Partitions resulting aggregate computations into distinct named subgroups rather than across the entire result set as if it were one group. - GroupBy *[]string `json:"groupBy,omitempty"` - - - // Filter - Behaves like a SQL WHERE clause. This is ANDed with the interval parameter. Expresses boolean logical predicates as well as dimensional filters - Filter *Flowaggregatequeryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // FlattenMultivaluedDimensions - Flattens any multivalued dimensions used in response groups (e.g. ['a','b','c']->'a,b,c') - FlattenMultivaluedDimensions *bool `json:"flattenMultivaluedDimensions,omitempty"` - - - // Views - Custom derived metric views - Views *[]Flowaggregationview `json:"views,omitempty"` - - - // AlternateTimeDimension - Dimension to use as the alternative timestamp for data in the aggregate. Choosing \"eventTime\" uses the actual time of the data event. - AlternateTimeDimension *string `json:"alternateTimeDimension,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowaggregationview.go b/build/platformclientv2/flowaggregationview.go deleted file mode 100644 index 018a4db0a..000000000 --- a/build/platformclientv2/flowaggregationview.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowaggregationview -type Flowaggregationview struct { - // Target - Target metric name - Target *string `json:"target,omitempty"` - - - // Name - A unique name for this view. Must be distinct from other views and built-in metric names. - Name *string `json:"name,omitempty"` - - - // Function - Type of view you wish to create - Function *string `json:"function,omitempty"` - - - // VarRange - Range of numbers for slicing up data - VarRange *Aggregationrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowaggregationview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowdiagnosticinfo.go b/build/platformclientv2/flowdiagnosticinfo.go deleted file mode 100644 index 2e6eec091..000000000 --- a/build/platformclientv2/flowdiagnosticinfo.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowdiagnosticinfo -type Flowdiagnosticinfo struct { - // LastActionId - The step number of the survey invite flow where the error occurred. - LastActionId *int32 `json:"lastActionId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowdiagnosticinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowdivisionview.go b/build/platformclientv2/flowdivisionview.go deleted file mode 100644 index 4138d48b8..000000000 --- a/build/platformclientv2/flowdivisionview.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowdivisionview -type Flowdivisionview struct { - // Id - The flow identifier - Id *string `json:"id,omitempty"` - - - // Name - The flow name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Writabledivision `json:"division,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // InputSchema - json schema describing the inputs for the flow - InputSchema *Jsonschemadocument `json:"inputSchema,omitempty"` - - - // OutputSchema - json schema describing the outputs for the flow - OutputSchema *Jsonschemadocument `json:"outputSchema,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowdivisionview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowdivisionviewentitylisting.go b/build/platformclientv2/flowdivisionviewentitylisting.go deleted file mode 100644 index 8b3463524..000000000 --- a/build/platformclientv2/flowdivisionviewentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowdivisionviewentitylisting -type Flowdivisionviewentitylisting struct { - // Entities - Entities *[]Flowdivisionview `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowdivisionviewentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowentitylisting.go b/build/platformclientv2/flowentitylisting.go deleted file mode 100644 index 79e36db79..000000000 --- a/build/platformclientv2/flowentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowentitylisting -type Flowentitylisting struct { - // Entities - Entities *[]Flow `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowobservationdatacontainer.go b/build/platformclientv2/flowobservationdatacontainer.go deleted file mode 100644 index 5ee054e4d..000000000 --- a/build/platformclientv2/flowobservationdatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowobservationdatacontainer -type Flowobservationdatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Observationmetricdata `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowobservationdatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowobservationquery.go b/build/platformclientv2/flowobservationquery.go deleted file mode 100644 index f32486363..000000000 --- a/build/platformclientv2/flowobservationquery.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowobservationquery -type Flowobservationquery struct { - // Filter - Filter to return a subset of observations. Expresses boolean logical predicates as well as dimensional filters - Filter *Flowobservationqueryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // DetailMetrics - Metrics for which to include additional detailed observations - DetailMetrics *[]string `json:"detailMetrics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowobservationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowobservationqueryclause.go b/build/platformclientv2/flowobservationqueryclause.go deleted file mode 100644 index c9901ec58..000000000 --- a/build/platformclientv2/flowobservationqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowobservationqueryclause -type Flowobservationqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Flowobservationquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowobservationqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowobservationqueryfilter.go b/build/platformclientv2/flowobservationqueryfilter.go deleted file mode 100644 index 25b5d9316..000000000 --- a/build/platformclientv2/flowobservationqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowobservationqueryfilter -type Flowobservationqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Flowobservationqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Flowobservationquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowobservationqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowobservationquerypredicate.go b/build/platformclientv2/flowobservationquerypredicate.go deleted file mode 100644 index a90e71ede..000000000 --- a/build/platformclientv2/flowobservationquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowobservationquerypredicate -type Flowobservationquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowobservationquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowobservationqueryresponse.go b/build/platformclientv2/flowobservationqueryresponse.go deleted file mode 100644 index b11c1a7a2..000000000 --- a/build/platformclientv2/flowobservationqueryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowobservationqueryresponse -type Flowobservationqueryresponse struct { - // Results - Results *[]Flowobservationdatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowobservationqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowoutcome.go b/build/platformclientv2/flowoutcome.go deleted file mode 100644 index 79c31f0dc..000000000 --- a/build/platformclientv2/flowoutcome.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowoutcome -type Flowoutcome struct { - // Id - The flow outcome identifier - Id *string `json:"id,omitempty"` - - - // Name - The flow outcome name. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // CurrentOperation - CurrentOperation *Operation `json:"currentOperation,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowoutcome) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowoutcomelisting.go b/build/platformclientv2/flowoutcomelisting.go deleted file mode 100644 index 46d118ac5..000000000 --- a/build/platformclientv2/flowoutcomelisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowoutcomelisting -type Flowoutcomelisting struct { - // Entities - Entities *[]Flowoutcome `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowoutcomelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowsapi.go b/build/platformclientv2/flowsapi.go deleted file mode 100644 index e4143e634..000000000 --- a/build/platformclientv2/flowsapi.go +++ /dev/null @@ -1,174 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// FlowsApi provides functions for API endpoints -type FlowsApi struct { - Configuration *Configuration -} - -// NewFlowsApi creates an API instance using the default configuration -func NewFlowsApi() *FlowsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating FlowsApi with base path: %s", strings.ToLower(config.BasePath))) - return &FlowsApi{ - Configuration: config, - } -} - -// NewFlowsApiWithConfig creates an API instance using the provided configuration -func NewFlowsApiWithConfig(config *Configuration) *FlowsApi { - config.Debugf("Creating FlowsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &FlowsApi{ - Configuration: config, - } -} - -// PostAnalyticsFlowsAggregatesQuery invokes POST /api/v2/analytics/flows/aggregates/query -// -// Query for flow aggregates -// -// -func (a FlowsApi) PostAnalyticsFlowsAggregatesQuery(body Flowaggregationquery) (*Flowaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/flows/aggregates/query" - defaultReturn := new(Flowaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling FlowsApi->PostAnalyticsFlowsAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flowaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsFlowsObservationsQuery invokes POST /api/v2/analytics/flows/observations/query -// -// Query for flow observations -// -// -func (a FlowsApi) PostAnalyticsFlowsObservationsQuery(body Flowobservationquery) (*Flowobservationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/flows/observations/query" - defaultReturn := new(Flowobservationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling FlowsApi->PostAnalyticsFlowsObservationsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Flowobservationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/flowversion.go b/build/platformclientv2/flowversion.go deleted file mode 100644 index 9703b2aac..000000000 --- a/build/platformclientv2/flowversion.go +++ /dev/null @@ -1,77 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowversion -type Flowversion struct { - // Id - The flow version identifier - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // CommitVersion - CommitVersion *string `json:"commitVersion,omitempty"` - - - // ConfigurationVersion - ConfigurationVersion *string `json:"configurationVersion,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Secure - Secure *bool `json:"secure,omitempty"` - - - // Debug - Debug *bool `json:"debug,omitempty"` - - - // CreatedBy - CreatedBy *User `json:"createdBy,omitempty"` - - - // CreatedByClient - CreatedByClient *Domainentityref `json:"createdByClient,omitempty"` - - - // ConfigurationUri - ConfigurationUri *string `json:"configurationUri,omitempty"` - - - // DateCreated - DateCreated *int64 `json:"dateCreated,omitempty"` - - - // GenerationId - GenerationId *string `json:"generationId,omitempty"` - - - // PublishResultUri - PublishResultUri *string `json:"publishResultUri,omitempty"` - - - // InputSchema - InputSchema *Jsonschemadocument `json:"inputSchema,omitempty"` - - - // OutputSchema - OutputSchema *Jsonschemadocument `json:"outputSchema,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowversion) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/flowversionentitylisting.go b/build/platformclientv2/flowversionentitylisting.go deleted file mode 100644 index 7d65cdbbf..000000000 --- a/build/platformclientv2/flowversionentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Flowversionentitylisting -type Flowversionentitylisting struct { - // Entities - Entities *[]Flowversion `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Flowversionentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/forecastgenerationresult.go b/build/platformclientv2/forecastgenerationresult.go deleted file mode 100644 index f2d165832..000000000 --- a/build/platformclientv2/forecastgenerationresult.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Forecastgenerationresult -type Forecastgenerationresult struct { - // RouteGroupResults - Generation results, broken down by route group - RouteGroupResults *[]Forecastgenerationroutegroupresult `json:"routeGroupResults,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Forecastgenerationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/forecastgenerationroutegroupresult.go b/build/platformclientv2/forecastgenerationroutegroupresult.go deleted file mode 100644 index b17a03e34..000000000 --- a/build/platformclientv2/forecastgenerationroutegroupresult.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Forecastgenerationroutegroupresult -type Forecastgenerationroutegroupresult struct { - // RouteGroup - The route group this result represents - RouteGroup *Routegroupattributes `json:"routeGroup,omitempty"` - - - // MetricResults - The generation results for the associated route group - MetricResults *[]Forecasttimeseriesresult `json:"metricResults,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Forecastgenerationroutegroupresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/forecastresultresponse.go b/build/platformclientv2/forecastresultresponse.go deleted file mode 100644 index ca7e1e6ed..000000000 --- a/build/platformclientv2/forecastresultresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Forecastresultresponse -type Forecastresultresponse struct { - // Result - The forecast result. If null, fetch the result from the url in downloadUrl - Result *Routegrouplist `json:"result,omitempty"` - - - // DownloadUrl - The downloadUrl to fetch the result if it is too large to be sent directly - DownloadUrl *string `json:"downloadUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Forecastresultresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/forecastsourcedaypointer.go b/build/platformclientv2/forecastsourcedaypointer.go deleted file mode 100644 index 52ba1d4dd..000000000 --- a/build/platformclientv2/forecastsourcedaypointer.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Forecastsourcedaypointer - Pointer to look up source data for a short term forecast -type Forecastsourcedaypointer struct { - // DayOfWeek - The forecast day of week for this source data - DayOfWeek *string `json:"dayOfWeek,omitempty"` - - - // Weight - The relative weight to apply to this source data item for weighted averages - Weight *int32 `json:"weight,omitempty"` - - - // Date - The date this source data represents, in yyyy-MM-dd format - Date *string `json:"date,omitempty"` - - - // FileName - The name of the source file this data came from if it originated from a data import - FileName *string `json:"fileName,omitempty"` - - - // DataKey - The key to look up the forecast source data for this source day - DataKey *string `json:"dataKey,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Forecastsourcedaypointer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/forecasttimeseriesresult.go b/build/platformclientv2/forecasttimeseriesresult.go deleted file mode 100644 index 078b13272..000000000 --- a/build/platformclientv2/forecasttimeseriesresult.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Forecasttimeseriesresult -type Forecasttimeseriesresult struct { - // Metric - The metric this result applies to - Metric *string `json:"metric,omitempty"` - - - // ForecastingMethod - The forecasting method that was used for this metric - ForecastingMethod *string `json:"forecastingMethod,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Forecasttimeseriesresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/freeseatingconfiguration.go b/build/platformclientv2/freeseatingconfiguration.go deleted file mode 100644 index bc55536a3..000000000 --- a/build/platformclientv2/freeseatingconfiguration.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Freeseatingconfiguration -type Freeseatingconfiguration struct { - // FreeSeatingState - The FreeSeatingState for FreeSeatingConfiguration. Can be ON, OFF, or PARTIAL. ON meaning disassociate the user after the ttl expires, OFF meaning never disassociate the user, and PARTIAL meaning only disassociate when a user explicitly clicks log out. - FreeSeatingState *string `json:"freeSeatingState,omitempty"` - - - // TtlMinutes - The amount of time in minutes until an offline user is disassociated from their station - TtlMinutes *int32 `json:"ttlMinutes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Freeseatingconfiguration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gdprjourneycustomer.go b/build/platformclientv2/gdprjourneycustomer.go deleted file mode 100644 index bc16f14bd..000000000 --- a/build/platformclientv2/gdprjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gdprjourneycustomer -type Gdprjourneycustomer struct { - // VarType - The type of the customerId within the Journey System (e.g. cookie). Required if `id` is defined. - VarType *string `json:"type,omitempty"` - - - // Id - An ID of a customer within the Journey System at a point-in-time. Required if `type` is defined. - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gdprjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gdprrequest.go b/build/platformclientv2/gdprrequest.go deleted file mode 100644 index e55ca16a9..000000000 --- a/build/platformclientv2/gdprrequest.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Gdprrequest -type Gdprrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // CreatedBy - The user that created this request - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ReplacementTerms - The replacement terms for the provided search terms, in the case of a GDPR_UPDATE request - ReplacementTerms *[]Replacementterm `json:"replacementTerms,omitempty"` - - - // RequestType - The type of GDPR request - RequestType *string `json:"requestType,omitempty"` - - - // CreatedDate - When the request was submitted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // Status - The status of the request - Status *string `json:"status,omitempty"` - - - // Subject - The subject of the GDPR request - Subject *Gdprsubject `json:"subject,omitempty"` - - - // ResultsUrl - The location where the results of the request can be retrieved - ResultsUrl *string `json:"resultsUrl,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gdprrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gdprrequestentitylisting.go b/build/platformclientv2/gdprrequestentitylisting.go deleted file mode 100644 index 184606ba5..000000000 --- a/build/platformclientv2/gdprrequestentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gdprrequestentitylisting -type Gdprrequestentitylisting struct { - // Entities - Entities *[]Gdprrequest `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gdprrequestentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gdprsubject.go b/build/platformclientv2/gdprsubject.go deleted file mode 100644 index 1aef10f3b..000000000 --- a/build/platformclientv2/gdprsubject.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gdprsubject -type Gdprsubject struct { - // Name - Name *string `json:"name,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // DialerContactId - DialerContactId *Dialercontactid `json:"dialerContactId,omitempty"` - - - // JourneyCustomer - JourneyCustomer *Gdprjourneycustomer `json:"journeyCustomer,omitempty"` - - - // SocialHandle - SocialHandle *Socialhandle `json:"socialHandle,omitempty"` - - - // Addresses - Addresses *[]string `json:"addresses,omitempty"` - - - // PhoneNumbers - PhoneNumbers *[]string `json:"phoneNumbers,omitempty"` - - - // EmailAddresses - EmailAddresses *[]string `json:"emailAddresses,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gdprsubject) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gdprsubjectentitylisting.go b/build/platformclientv2/gdprsubjectentitylisting.go deleted file mode 100644 index 446b30fb7..000000000 --- a/build/platformclientv2/gdprsubjectentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gdprsubjectentitylisting -type Gdprsubjectentitylisting struct { - // Entities - Entities *[]Gdprsubject `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gdprsubjectentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/generaldataprotectionregulationapi.go b/build/platformclientv2/generaldataprotectionregulationapi.go deleted file mode 100644 index e90824fbd..000000000 --- a/build/platformclientv2/generaldataprotectionregulationapi.go +++ /dev/null @@ -1,344 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// GeneralDataProtectionRegulationApi provides functions for API endpoints -type GeneralDataProtectionRegulationApi struct { - Configuration *Configuration -} - -// NewGeneralDataProtectionRegulationApi creates an API instance using the default configuration -func NewGeneralDataProtectionRegulationApi() *GeneralDataProtectionRegulationApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating GeneralDataProtectionRegulationApi with base path: %s", strings.ToLower(config.BasePath))) - return &GeneralDataProtectionRegulationApi{ - Configuration: config, - } -} - -// NewGeneralDataProtectionRegulationApiWithConfig creates an API instance using the provided configuration -func NewGeneralDataProtectionRegulationApiWithConfig(config *Configuration) *GeneralDataProtectionRegulationApi { - config.Debugf("Creating GeneralDataProtectionRegulationApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &GeneralDataProtectionRegulationApi{ - Configuration: config, - } -} - -// GetGdprRequest invokes GET /api/v2/gdpr/requests/{requestId} -// -// Get an existing GDPR request -// -// -func (a GeneralDataProtectionRegulationApi) GetGdprRequest(requestId string) (*Gdprrequest, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/gdpr/requests/{requestId}" - path = strings.Replace(path, "{requestId}", fmt.Sprintf("%v", requestId), -1) - defaultReturn := new(Gdprrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'requestId' is set - if &requestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'requestId' when calling GeneralDataProtectionRegulationApi->GetGdprRequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Gdprrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGdprRequests invokes GET /api/v2/gdpr/requests -// -// Get all GDPR requests -// -// -func (a GeneralDataProtectionRegulationApi) GetGdprRequests(pageSize int32, pageNumber int32) (*Gdprrequestentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/gdpr/requests" - defaultReturn := new(Gdprrequestentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Gdprrequestentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGdprSubjects invokes GET /api/v2/gdpr/subjects -// -// Get GDPR subjects -// -// -func (a GeneralDataProtectionRegulationApi) GetGdprSubjects(searchType string, searchValue string) (*Gdprsubjectentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/gdpr/subjects" - defaultReturn := new(Gdprsubjectentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'searchType' is set - if &searchType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'searchType' when calling GeneralDataProtectionRegulationApi->GetGdprSubjects") - } - // verify the required parameter 'searchValue' is set - if &searchValue == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'searchValue' when calling GeneralDataProtectionRegulationApi->GetGdprSubjects") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["searchType"] = a.Configuration.APIClient.ParameterToString(searchType, collectionFormat) - - - - - collectionFormat = "" - queryParams["searchValue"] = a.Configuration.APIClient.ParameterToString(searchValue, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Gdprsubjectentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGdprRequests invokes POST /api/v2/gdpr/requests -// -// Submit a new GDPR request -// -// -func (a GeneralDataProtectionRegulationApi) PostGdprRequests(body Gdprrequest, deleteConfirmed bool) (*Gdprrequest, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/gdpr/requests" - defaultReturn := new(Gdprrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GeneralDataProtectionRegulationApi->PostGdprRequests") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["deleteConfirmed"] = a.Configuration.APIClient.ParameterToString(deleteConfirmed, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Gdprrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/generateshorttermforecastrequest.go b/build/platformclientv2/generateshorttermforecastrequest.go deleted file mode 100644 index a7d18bd41..000000000 --- a/build/platformclientv2/generateshorttermforecastrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Generateshorttermforecastrequest -type Generateshorttermforecastrequest struct { - // Description - Description for the generated forecast. Pass an empty string for no description - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Generateshorttermforecastrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/generateshorttermforecastresponse.go b/build/platformclientv2/generateshorttermforecastresponse.go deleted file mode 100644 index 8cc992f2a..000000000 --- a/build/platformclientv2/generateshorttermforecastresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Generateshorttermforecastresponse -type Generateshorttermforecastresponse struct { - // Status - The status of the request - Status *string `json:"status,omitempty"` - - - // Result - The resulting forecast. May be sent asynchronously via notification depending on the complexity of the forecast - Result *Shorttermforecast `json:"result,omitempty"` - - - // OperationId - The operation id to watch for on the notification topic - OperationId *string `json:"operationId,omitempty"` - - - // Progress - Percent progress. Subscribe to the corresponding notification to view progress and await the result - Progress *int32 `json:"progress,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Generateshorttermforecastresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/generateweekschedulerequest.go b/build/platformclientv2/generateweekschedulerequest.go deleted file mode 100644 index 21f2d6183..000000000 --- a/build/platformclientv2/generateweekschedulerequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Generateweekschedulerequest - Request to generate a week schedule -type Generateweekschedulerequest struct { - // Description - Description for the generated week schedule - Description *string `json:"description,omitempty"` - - - // ShortTermForecastId - ID of short term forecast used for schedule generation - ShortTermForecastId *string `json:"shortTermForecastId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Generateweekschedulerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/generateweekscheduleresponse.go b/build/platformclientv2/generateweekscheduleresponse.go deleted file mode 100644 index 386d11f1a..000000000 --- a/build/platformclientv2/generateweekscheduleresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Generateweekscheduleresponse - Response for query for week schedule for a given week in management unit -type Generateweekscheduleresponse struct { - // DownloadUrl - The url to fetch the result for large responses. The value is null if result contains the data - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // Status - The status of the request - Status *string `json:"status,omitempty"` - - - // OperationId - The operation id to watch for on the notification topic if status == Processing - OperationId *string `json:"operationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Generateweekscheduleresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/geolocation.go b/build/platformclientv2/geolocation.go deleted file mode 100644 index 33fdc182f..000000000 --- a/build/platformclientv2/geolocation.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Geolocation -type Geolocation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - A string used to describe the type of client the geolocation is being updated from e.g. ios, android, web, etc. - VarType *string `json:"type,omitempty"` - - - // Primary - A boolean used to tell whether or not to set this geolocation client as the primary on a PATCH - Primary *bool `json:"primary,omitempty"` - - - // Latitude - Latitude *float64 `json:"latitude,omitempty"` - - - // Longitude - Longitude *float64 `json:"longitude,omitempty"` - - - // Country - Country *string `json:"country,omitempty"` - - - // Region - Region *string `json:"region,omitempty"` - - - // City - City *string `json:"city,omitempty"` - - - // Locations - Locations *[]Locationdefinition `json:"locations,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Geolocation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/geolocationapi.go b/build/platformclientv2/geolocationapi.go deleted file mode 100644 index 4e2d2ecfb..000000000 --- a/build/platformclientv2/geolocationapi.go +++ /dev/null @@ -1,324 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// GeolocationApi provides functions for API endpoints -type GeolocationApi struct { - Configuration *Configuration -} - -// NewGeolocationApi creates an API instance using the default configuration -func NewGeolocationApi() *GeolocationApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating GeolocationApi with base path: %s", strings.ToLower(config.BasePath))) - return &GeolocationApi{ - Configuration: config, - } -} - -// NewGeolocationApiWithConfig creates an API instance using the provided configuration -func NewGeolocationApiWithConfig(config *Configuration) *GeolocationApi { - config.Debugf("Creating GeolocationApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &GeolocationApi{ - Configuration: config, - } -} - -// GetGeolocationsSettings invokes GET /api/v2/geolocations/settings -// -// Get a organization's GeolocationSettings -// -// -func (a GeolocationApi) GetGeolocationsSettings() (*Geolocationsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/geolocations/settings" - defaultReturn := new(Geolocationsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Geolocationsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserGeolocation invokes GET /api/v2/users/{userId}/geolocations/{clientId} -// -// Get a user's Geolocation -// -// -func (a GeolocationApi) GetUserGeolocation(userId string, clientId string) (*Geolocation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/geolocations/{clientId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Geolocation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling GeolocationApi->GetUserGeolocation") - } - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling GeolocationApi->GetUserGeolocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Geolocation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchGeolocationsSettings invokes PATCH /api/v2/geolocations/settings -// -// Patch a organization's GeolocationSettings -// -// -func (a GeolocationApi) PatchGeolocationsSettings(body Geolocationsettings) (*Geolocationsettings, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/geolocations/settings" - defaultReturn := new(Geolocationsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GeolocationApi->PatchGeolocationsSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Geolocationsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserGeolocation invokes PATCH /api/v2/users/{userId}/geolocations/{clientId} -// -// Patch a user's Geolocation -// -// The geolocation object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the client as the user's primary geolocation source. Option 2: Provide the 'latitude' and 'longitude' values. This will enqueue an asynchronous update of the 'city', 'region', and 'country', generating a notification. A subsequent GET operation will include the new values for 'city', 'region' and 'country'. Option 3: Provide the 'city', 'region', 'country' values. Option 1 can be combined with Option 2 or Option 3. For example, update the client as primary and provide latitude and longitude values. -func (a GeolocationApi) PatchUserGeolocation(userId string, clientId string, body Geolocation) (*Geolocation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/geolocations/{clientId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Geolocation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling GeolocationApi->PatchUserGeolocation") - } - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling GeolocationApi->PatchUserGeolocation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GeolocationApi->PatchUserGeolocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Geolocation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/geolocationeventgeolocation.go b/build/platformclientv2/geolocationeventgeolocation.go deleted file mode 100644 index f5d400b34..000000000 --- a/build/platformclientv2/geolocationeventgeolocation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Geolocationeventgeolocation -type Geolocationeventgeolocation struct { - // UserId - UserId *string `json:"userId,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Country - Country *string `json:"country,omitempty"` - - - // Region - Region *string `json:"region,omitempty"` - - - // City - City *string `json:"city,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Geolocationeventgeolocation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/geolocationsettings.go b/build/platformclientv2/geolocationsettings.go deleted file mode 100644 index eae61efa6..000000000 --- a/build/platformclientv2/geolocationsettings.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Geolocationsettings -type Geolocationsettings struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // MapboxKey - MapboxKey *string `json:"mapboxKey,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Geolocationsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gkndocumentationresult.go b/build/platformclientv2/gkndocumentationresult.go deleted file mode 100644 index 549143121..000000000 --- a/build/platformclientv2/gkndocumentationresult.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gkndocumentationresult -type Gkndocumentationresult struct { - // Content - The text or html content for the documentation entity. Will be returned in responses for certain entities. - Content *string `json:"content,omitempty"` - - - // Link - URL link for the documentation entity. Will be returned in responses for certain entities. - Link *string `json:"link,omitempty"` - - - // Title - The title of the documentation entity. Will be returned in responses for certain entities. - Title *string `json:"title,omitempty"` - - - // VarType - The search type. Will be returned in responses for certain entities. - VarType *string `json:"_type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gkndocumentationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gkndocumentationsearchcriteria.go b/build/platformclientv2/gkndocumentationsearchcriteria.go deleted file mode 100644 index 39f2d57d9..000000000 --- a/build/platformclientv2/gkndocumentationsearchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gkndocumentationsearchcriteria -type Gkndocumentationsearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Gkndocumentationsearchcriteria `json:"group,omitempty"` - - - // VarType - Search Type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gkndocumentationsearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gkndocumentationsearchrequest.go b/build/platformclientv2/gkndocumentationsearchrequest.go deleted file mode 100644 index a13a7d1e7..000000000 --- a/build/platformclientv2/gkndocumentationsearchrequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gkndocumentationsearchrequest -type Gkndocumentationsearchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // Query - Query *[]Gkndocumentationsearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gkndocumentationsearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gkndocumentationsearchresponse.go b/build/platformclientv2/gkndocumentationsearchresponse.go deleted file mode 100644 index 29f33dd9f..000000000 --- a/build/platformclientv2/gkndocumentationsearchresponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gkndocumentationsearchresponse -type Gkndocumentationsearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *[]Gkndocumentationresult `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gkndocumentationsearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/greeting.go b/build/platformclientv2/greeting.go deleted file mode 100644 index 98071f825..000000000 --- a/build/platformclientv2/greeting.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Greeting -type Greeting struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - Greeting type - VarType *string `json:"type,omitempty"` - - - // OwnerType - Greeting owner type - OwnerType *string `json:"ownerType,omitempty"` - - - // Owner - Greeting owner - Owner *Domainentity `json:"owner,omitempty"` - - - // AudioFile - AudioFile *Greetingaudiofile `json:"audioFile,omitempty"` - - - // AudioTTS - AudioTTS *string `json:"audioTTS,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // CreatedBy - CreatedBy *string `json:"createdBy,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // ModifiedBy - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Greeting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/greetingaudiofile.go b/build/platformclientv2/greetingaudiofile.go deleted file mode 100644 index 519f22f6d..000000000 --- a/build/platformclientv2/greetingaudiofile.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Greetingaudiofile -type Greetingaudiofile struct { - // DurationMilliseconds - DurationMilliseconds *int64 `json:"durationMilliseconds,omitempty"` - - - // SizeBytes - SizeBytes *int64 `json:"sizeBytes,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Greetingaudiofile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/greetinglisting.go b/build/platformclientv2/greetinglisting.go deleted file mode 100644 index 75a719339..000000000 --- a/build/platformclientv2/greetinglisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Greetinglisting -type Greetinglisting struct { - // Entities - Entities *[]Greeting `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Greetinglisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/greetingmediainfo.go b/build/platformclientv2/greetingmediainfo.go deleted file mode 100644 index d6b0ce2cd..000000000 --- a/build/platformclientv2/greetingmediainfo.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Greetingmediainfo -type Greetingmediainfo struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // MediaFileUri - MediaFileUri *string `json:"mediaFileUri,omitempty"` - - - // MediaImageUri - MediaImageUri *string `json:"mediaImageUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Greetingmediainfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/greetingowner.go b/build/platformclientv2/greetingowner.go deleted file mode 100644 index 81373c591..000000000 --- a/build/platformclientv2/greetingowner.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Greetingowner -type Greetingowner struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Greetingowner) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/greetingsapi.go b/build/platformclientv2/greetingsapi.go deleted file mode 100644 index 6c0b1f6b6..000000000 --- a/build/platformclientv2/greetingsapi.go +++ /dev/null @@ -1,1215 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// GreetingsApi provides functions for API endpoints -type GreetingsApi struct { - Configuration *Configuration -} - -// NewGreetingsApi creates an API instance using the default configuration -func NewGreetingsApi() *GreetingsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating GreetingsApi with base path: %s", strings.ToLower(config.BasePath))) - return &GreetingsApi{ - Configuration: config, - } -} - -// NewGreetingsApiWithConfig creates an API instance using the provided configuration -func NewGreetingsApiWithConfig(config *Configuration) *GreetingsApi { - config.Debugf("Creating GreetingsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &GreetingsApi{ - Configuration: config, - } -} - -// DeleteGreeting invokes DELETE /api/v2/greetings/{greetingId} -// -// Deletes a Greeting with the given GreetingId -// -// -func (a GreetingsApi) DeleteGreeting(greetingId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings/{greetingId}" - path = strings.Replace(path, "{greetingId}", fmt.Sprintf("%v", greetingId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'greetingId' is set - if &greetingId == nil { - // - return nil, errors.New("Missing required parameter 'greetingId' when calling GreetingsApi->DeleteGreeting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetGreeting invokes GET /api/v2/greetings/{greetingId} -// -// Get a Greeting with the given GreetingId -// -// -func (a GreetingsApi) GetGreeting(greetingId string) (*Greeting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings/{greetingId}" - path = strings.Replace(path, "{greetingId}", fmt.Sprintf("%v", greetingId), -1) - defaultReturn := new(Greeting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'greetingId' is set - if &greetingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'greetingId' when calling GreetingsApi->GetGreeting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Greeting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGreetingMedia invokes GET /api/v2/greetings/{greetingId}/media -// -// Get media playback URI for this greeting -// -// -func (a GreetingsApi) GetGreetingMedia(greetingId string, formatId string) (*Greetingmediainfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings/{greetingId}/media" - path = strings.Replace(path, "{greetingId}", fmt.Sprintf("%v", greetingId), -1) - defaultReturn := new(Greetingmediainfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'greetingId' is set - if &greetingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'greetingId' when calling GreetingsApi->GetGreetingMedia") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["formatId"] = a.Configuration.APIClient.ParameterToString(formatId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Greetingmediainfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGreetings invokes GET /api/v2/greetings -// -// Gets an Organization's Greetings -// -// -func (a GreetingsApi) GetGreetings(pageSize int32, pageNumber int32) (*Domainentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings" - defaultReturn := new(Domainentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGreetingsDefaults invokes GET /api/v2/greetings/defaults -// -// Get an Organization's DefaultGreetingList -// -// -func (a GreetingsApi) GetGreetingsDefaults() (*Defaultgreetinglist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings/defaults" - defaultReturn := new(Defaultgreetinglist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Defaultgreetinglist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupGreetings invokes GET /api/v2/groups/{groupId}/greetings -// -// Get a list of the Group's Greetings -// -// -func (a GreetingsApi) GetGroupGreetings(groupId string, pageSize int32, pageNumber int32) (*Greetinglisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/greetings" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Greetinglisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GreetingsApi->GetGroupGreetings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Greetinglisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupGreetingsDefaults invokes GET /api/v2/groups/{groupId}/greetings/defaults -// -// Grabs the list of Default Greetings given a Group's ID -// -// -func (a GreetingsApi) GetGroupGreetingsDefaults(groupId string) (*Defaultgreetinglist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/greetings/defaults" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Defaultgreetinglist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GreetingsApi->GetGroupGreetingsDefaults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Defaultgreetinglist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserGreetings invokes GET /api/v2/users/{userId}/greetings -// -// Get a list of the User's Greetings -// -// -func (a GreetingsApi) GetUserGreetings(userId string, pageSize int32, pageNumber int32) (*Domainentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/greetings" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Domainentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling GreetingsApi->GetUserGreetings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserGreetingsDefaults invokes GET /api/v2/users/{userId}/greetings/defaults -// -// Grabs the list of Default Greetings given a User's ID -// -// -func (a GreetingsApi) GetUserGreetingsDefaults(userId string) (*Defaultgreetinglist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/greetings/defaults" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Defaultgreetinglist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling GreetingsApi->GetUserGreetingsDefaults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Defaultgreetinglist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGreetings invokes POST /api/v2/greetings -// -// Create a Greeting for an Organization -// -// -func (a GreetingsApi) PostGreetings(body Greeting) (*Greeting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings" - defaultReturn := new(Greeting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PostGreetings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Greeting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGroupGreetings invokes POST /api/v2/groups/{groupId}/greetings -// -// Creates a Greeting for a Group -// -// -func (a GreetingsApi) PostGroupGreetings(groupId string, body Greeting) (*Greeting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/greetings" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Greeting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GreetingsApi->PostGroupGreetings") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PostGroupGreetings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Greeting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUserGreetings invokes POST /api/v2/users/{userId}/greetings -// -// Creates a Greeting for a User -// -// -func (a GreetingsApi) PostUserGreetings(userId string, body Greeting) (*Greeting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/greetings" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Greeting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling GreetingsApi->PostUserGreetings") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PostUserGreetings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Greeting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutGreeting invokes PUT /api/v2/greetings/{greetingId} -// -// Updates the Greeting with the given GreetingId -// -// -func (a GreetingsApi) PutGreeting(greetingId string, body Greeting) (*Greeting, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings/{greetingId}" - path = strings.Replace(path, "{greetingId}", fmt.Sprintf("%v", greetingId), -1) - defaultReturn := new(Greeting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'greetingId' is set - if &greetingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'greetingId' when calling GreetingsApi->PutGreeting") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PutGreeting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Greeting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutGreetingsDefaults invokes PUT /api/v2/greetings/defaults -// -// Update an Organization's DefaultGreetingList -// -// -func (a GreetingsApi) PutGreetingsDefaults(body Defaultgreetinglist) (*Defaultgreetinglist, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/greetings/defaults" - defaultReturn := new(Defaultgreetinglist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PutGreetingsDefaults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Defaultgreetinglist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutGroupGreetingsDefaults invokes PUT /api/v2/groups/{groupId}/greetings/defaults -// -// Updates the DefaultGreetingList of the specified Group -// -// -func (a GreetingsApi) PutGroupGreetingsDefaults(groupId string, body Defaultgreetinglist) (*Defaultgreetinglist, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/greetings/defaults" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Defaultgreetinglist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GreetingsApi->PutGroupGreetingsDefaults") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PutGroupGreetingsDefaults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Defaultgreetinglist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserGreetingsDefaults invokes PUT /api/v2/users/{userId}/greetings/defaults -// -// Updates the DefaultGreetingList of the specified User -// -// -func (a GreetingsApi) PutUserGreetingsDefaults(userId string, body Defaultgreetinglist) (*Defaultgreetinglist, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/greetings/defaults" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Defaultgreetinglist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling GreetingsApi->PutUserGreetingsDefaults") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GreetingsApi->PutUserGreetingsDefaults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Defaultgreetinglist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/group.go b/build/platformclientv2/group.go deleted file mode 100644 index 69ed92dcc..000000000 --- a/build/platformclientv2/group.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Group -type Group struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The group name. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // DateModified - Last modified date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // MemberCount - Number of members. - MemberCount *int64 `json:"memberCount,omitempty"` - - - // State - Active, inactive, or deleted state. - State *string `json:"state,omitempty"` - - - // Version - Current version for this resource. - Version *int32 `json:"version,omitempty"` - - - // VarType - Type of group. - VarType *string `json:"type,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Addresses - Addresses *[]Groupcontact `json:"addresses,omitempty"` - - - // RulesVisible - Are membership rules visible to the person requesting to view the group - RulesVisible *bool `json:"rulesVisible,omitempty"` - - - // Visibility - Who can view this group - Visibility *string `json:"visibility,omitempty"` - - - // Owners - Owners of the group - Owners *[]User `json:"owners,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Group) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupcontact.go b/build/platformclientv2/groupcontact.go deleted file mode 100644 index 78c04c609..000000000 --- a/build/platformclientv2/groupcontact.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupcontact -type Groupcontact struct { - // Address - Phone number for this contact type - Address *string `json:"address,omitempty"` - - - // Extension - Extension is set if the number is e164 valid - Extension *string `json:"extension,omitempty"` - - - // Display - Formatted version of the address property - Display *string `json:"display,omitempty"` - - - // VarType - Contact type of the address - VarType *string `json:"type,omitempty"` - - - // MediaType - Media type of the address - MediaType *string `json:"mediaType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupcontact) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupcreate.go b/build/platformclientv2/groupcreate.go deleted file mode 100644 index 2a7e11475..000000000 --- a/build/platformclientv2/groupcreate.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Groupcreate -type Groupcreate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The group name. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // DateModified - Last modified date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // MemberCount - Number of members. - MemberCount *int64 `json:"memberCount,omitempty"` - - - // State - Active, inactive, or deleted state. - State *string `json:"state,omitempty"` - - - // Version - Current version for this resource. - Version *int32 `json:"version,omitempty"` - - - // VarType - Type of group. - VarType *string `json:"type,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Addresses - Addresses *[]Groupcontact `json:"addresses,omitempty"` - - - // RulesVisible - Are membership rules visible to the person requesting to view the group - RulesVisible *bool `json:"rulesVisible,omitempty"` - - - // Visibility - Who can view this group - Visibility *string `json:"visibility,omitempty"` - - - // OwnerIds - Owners of the group - OwnerIds *[]string `json:"ownerIds,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupcreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupentitylisting.go b/build/platformclientv2/groupentitylisting.go deleted file mode 100644 index bd2280db1..000000000 --- a/build/platformclientv2/groupentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupentitylisting -type Groupentitylisting struct { - // Entities - Entities *[]Group `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupgreetingeventgreeting.go b/build/platformclientv2/groupgreetingeventgreeting.go deleted file mode 100644 index 81bb7f50e..000000000 --- a/build/platformclientv2/groupgreetingeventgreeting.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupgreetingeventgreeting -type Groupgreetingeventgreeting struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // OwnerType - OwnerType *string `json:"ownerType,omitempty"` - - - // Owner - Owner *Groupgreetingeventgreetingowner `json:"owner,omitempty"` - - - // GreetingAudioFile - GreetingAudioFile *Groupgreetingeventgreetingaudiofile `json:"greetingAudioFile,omitempty"` - - - // AudioTTS - AudioTTS *string `json:"audioTTS,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupgreetingeventgreeting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupgreetingeventgreetingaudiofile.go b/build/platformclientv2/groupgreetingeventgreetingaudiofile.go deleted file mode 100644 index 6c54fe644..000000000 --- a/build/platformclientv2/groupgreetingeventgreetingaudiofile.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupgreetingeventgreetingaudiofile -type Groupgreetingeventgreetingaudiofile struct { - // DurationMilliseconds - DurationMilliseconds *int32 `json:"durationMilliseconds,omitempty"` - - - // SizeBytes - SizeBytes *int32 `json:"sizeBytes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupgreetingeventgreetingaudiofile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupgreetingeventgreetingowner.go b/build/platformclientv2/groupgreetingeventgreetingowner.go deleted file mode 100644 index 2c7df691e..000000000 --- a/build/platformclientv2/groupgreetingeventgreetingowner.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupgreetingeventgreetingowner -type Groupgreetingeventgreetingowner struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupgreetingeventgreetingowner) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupmembersupdate.go b/build/platformclientv2/groupmembersupdate.go deleted file mode 100644 index 08260ac1d..000000000 --- a/build/platformclientv2/groupmembersupdate.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupmembersupdate -type Groupmembersupdate struct { - // MemberIds - A list of the ids of the members to add. - MemberIds *[]string `json:"memberIds,omitempty"` - - - // Version - The current group version. - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupmembersupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupprofile.go b/build/platformclientv2/groupprofile.go deleted file mode 100644 index 27e8e1a3d..000000000 --- a/build/platformclientv2/groupprofile.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Groupprofile -type Groupprofile struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // State - The state of the user resource - State *string `json:"state,omitempty"` - - - // DateModified - Datetime of the last modification. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - The version of the group resource - Version *int64 `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupprofile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupprofileentitylisting.go b/build/platformclientv2/groupprofileentitylisting.go deleted file mode 100644 index 65cfb53c1..000000000 --- a/build/platformclientv2/groupprofileentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupprofileentitylisting -type Groupprofileentitylisting struct { - // Entities - Entities *[]Groupprofile `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupprofileentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupsapi.go b/build/platformclientv2/groupsapi.go deleted file mode 100644 index 6271d3dd0..000000000 --- a/build/platformclientv2/groupsapi.go +++ /dev/null @@ -1,1153 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// GroupsApi provides functions for API endpoints -type GroupsApi struct { - Configuration *Configuration -} - -// NewGroupsApi creates an API instance using the default configuration -func NewGroupsApi() *GroupsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating GroupsApi with base path: %s", strings.ToLower(config.BasePath))) - return &GroupsApi{ - Configuration: config, - } -} - -// NewGroupsApiWithConfig creates an API instance using the provided configuration -func NewGroupsApiWithConfig(config *Configuration) *GroupsApi { - config.Debugf("Creating GroupsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &GroupsApi{ - Configuration: config, - } -} - -// DeleteGroup invokes DELETE /api/v2/groups/{groupId} -// -// Delete group -// -// -func (a GroupsApi) DeleteGroup(groupId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->DeleteGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteGroupMembers invokes DELETE /api/v2/groups/{groupId}/members -// -// Remove members -// -// -func (a GroupsApi) DeleteGroupMembers(groupId string, ids string) (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/members" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->DeleteGroupMembers") - } - // verify the required parameter 'ids' is set - if &ids == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ids' when calling GroupsApi->DeleteGroupMembers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["ids"] = a.Configuration.APIClient.ParameterToString(ids, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFieldconfig invokes GET /api/v2/fieldconfig -// -// Fetch field config for an entity type -// -// -func (a GroupsApi) GetFieldconfig(varType string) (*Fieldconfig, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fieldconfig" - defaultReturn := new(Fieldconfig) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'varType' is set - if &varType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'varType' when calling GroupsApi->GetFieldconfig") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Fieldconfig - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroup invokes GET /api/v2/groups/{groupId} -// -// Get group -// -// -func (a GroupsApi) GetGroup(groupId string) (*Group, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->GetGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupIndividuals invokes GET /api/v2/groups/{groupId}/individuals -// -// Get all individuals associated with the group -// -// -func (a GroupsApi) GetGroupIndividuals(groupId string) (*Userentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/individuals" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Userentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->GetGroupIndividuals") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupMembers invokes GET /api/v2/groups/{groupId}/members -// -// Get group members, includes individuals, owners, and dynamically included people -// -// -func (a GroupsApi) GetGroupMembers(groupId string, pageSize int32, pageNumber int32, sortOrder string, expand []string) (*Userentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/members" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Userentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->GetGroupMembers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupProfile invokes GET /api/v2/groups/{groupId}/profile -// -// Get group profile -// -// -func (a GroupsApi) GetGroupProfile(groupId string, fields string) (*Groupprofile, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/profile" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Groupprofile) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->GetGroupProfile") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["fields"] = a.Configuration.APIClient.ParameterToString(fields, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Groupprofile - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroups invokes GET /api/v2/groups -// -// Get a group list -// -// -func (a GroupsApi) GetGroups(pageSize int32, pageNumber int32, id []string, jabberId []string, sortOrder string) (*Groupentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups" - defaultReturn := new(Groupentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range jabberId { - queryParams["jabberId"] = value - } - } else { - queryParams["jabberId"] = a.Configuration.APIClient.ParameterToString(jabberId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Groupentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupsSearch invokes GET /api/v2/groups/search -// -// Search groups using the q64 value returned from a previous search -// -// -func (a GroupsApi) GetGroupsSearch(q64 string, expand []string) (*Groupssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/search" - defaultReturn := new(Groupssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling GroupsApi->GetGroupsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Groupssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetProfilesGroups invokes GET /api/v2/profiles/groups -// -// Get group profile listing -// -// -func (a GroupsApi) GetProfilesGroups(pageSize int32, pageNumber int32, id []string, sortOrder string) (*Groupprofileentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/profiles/groups" - defaultReturn := new(Groupprofileentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Groupprofileentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGroupMembers invokes POST /api/v2/groups/{groupId}/members -// -// Add members -// -// -func (a GroupsApi) PostGroupMembers(groupId string, body Groupmembersupdate) (*Empty, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}/members" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->PostGroupMembers") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GroupsApi->PostGroupMembers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGroups invokes POST /api/v2/groups -// -// Create a group -// -// -func (a GroupsApi) PostGroups(body Groupcreate) (*Group, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups" - defaultReturn := new(Group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GroupsApi->PostGroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGroupsSearch invokes POST /api/v2/groups/search -// -// Search groups -// -// -func (a GroupsApi) PostGroupsSearch(body Groupsearchrequest) (*Groupssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/search" - defaultReturn := new(Groupssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling GroupsApi->PostGroupsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Groupssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutGroup invokes PUT /api/v2/groups/{groupId} -// -// Update group -// -// -func (a GroupsApi) PutGroup(groupId string, body Groupupdate) (*Group, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling GroupsApi->PutGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/groupsearchcriteria.go b/build/platformclientv2/groupsearchcriteria.go deleted file mode 100644 index 3f6da16cc..000000000 --- a/build/platformclientv2/groupsearchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupsearchcriteria -type Groupsearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Groupsearchcriteria `json:"group,omitempty"` - - - // VarType - Search Type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupsearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupsearchrequest.go b/build/platformclientv2/groupsearchrequest.go deleted file mode 100644 index 5c441d97e..000000000 --- a/build/platformclientv2/groupsearchrequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupsearchrequest -type Groupsearchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // Query - Query *[]Groupsearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupsearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupssearchresponse.go b/build/platformclientv2/groupssearchresponse.go deleted file mode 100644 index 33d7bde4b..000000000 --- a/build/platformclientv2/groupssearchresponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupssearchresponse -type Groupssearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *[]Group `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupssearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/groupupdate.go b/build/platformclientv2/groupupdate.go deleted file mode 100644 index 3d108ac95..000000000 --- a/build/platformclientv2/groupupdate.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Groupupdate -type Groupupdate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The group name. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // State - State of the group. - State *string `json:"state,omitempty"` - - - // Version - Current version for this resource. - Version *int32 `json:"version,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Addresses - Addresses *[]Groupcontact `json:"addresses,omitempty"` - - - // RulesVisible - Are membership rules visible to the person requesting to view the group - RulesVisible *bool `json:"rulesVisible,omitempty"` - - - // Visibility - Who can view this group - Visibility *string `json:"visibility,omitempty"` - - - // OwnerIds - Owners of the group - OwnerIds *[]string `json:"ownerIds,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Groupupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/gsuite.go b/build/platformclientv2/gsuite.go deleted file mode 100644 index 34b58b4db..000000000 --- a/build/platformclientv2/gsuite.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Gsuite -type Gsuite struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // RelyingPartyIdentifier - RelyingPartyIdentifier *string `json:"relyingPartyIdentifier,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Gsuite) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/guestmemberinfo.go b/build/platformclientv2/guestmemberinfo.go deleted file mode 100644 index 5a6ec8deb..000000000 --- a/build/platformclientv2/guestmemberinfo.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Guestmemberinfo -type Guestmemberinfo struct { - // DisplayName - The display name to use for the guest member in the conversation. - DisplayName *string `json:"displayName,omitempty"` - - - // AvatarImageUrl - The URL to the avatar image to use for the guest member in the conversation, if any. - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // CustomFields - Any custom fields of information, in key-value format, to attach to the guest member in the conversation. - CustomFields *map[string]string `json:"customFields,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Guestmemberinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/headcountforecast.go b/build/platformclientv2/headcountforecast.go deleted file mode 100644 index 548865ec0..000000000 --- a/build/platformclientv2/headcountforecast.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Headcountforecast - Headcount interval information for schedule -type Headcountforecast struct { - // Required - Headcount information with shrinkage - Required *[]Headcountinterval `json:"required,omitempty"` - - - // RequiredWithoutShrinkage - Headcount information without shrinkage - RequiredWithoutShrinkage *[]Headcountinterval `json:"requiredWithoutShrinkage,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Headcountforecast) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/headcountinterval.go b/build/platformclientv2/headcountinterval.go deleted file mode 100644 index 51b854dd8..000000000 --- a/build/platformclientv2/headcountinterval.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Headcountinterval - Headcount interval information for schedule -type Headcountinterval struct { - // Interval - The start date-time for this headcount interval in ISO-8601 format, must be within the 8 day schedule - Interval *time.Time `json:"interval,omitempty"` - - - // Value - Headcount value for this interval - Value *float64 `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Headcountinterval) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/helplink.go b/build/platformclientv2/helplink.go deleted file mode 100644 index 0cfe69085..000000000 --- a/build/platformclientv2/helplink.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Helplink - Link to a help or support resource -type Helplink struct { - // Uri - URI of the help resource - Uri *string `json:"uri,omitempty"` - - - // Title - Link text of the resource - Title *string `json:"title,omitempty"` - - - // Description - Description of the document or resource - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Helplink) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/historyentry.go b/build/platformclientv2/historyentry.go deleted file mode 100644 index 8d5355be6..000000000 --- a/build/platformclientv2/historyentry.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Historyentry -type Historyentry struct { - // Action - The action performed - Action *string `json:"action,omitempty"` - - - // Resource - For actions performed not on the item itself, but on a sub-item, this field identifies the sub-item by name. For example, for actions performed on prompt resources, this will be the prompt resource name. - Resource *string `json:"resource,omitempty"` - - - // Timestamp - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // User - User associated with this entry. - User *User `json:"user,omitempty"` - - - // Client - OAuth client associated with this entry. - Client *Domainentityref `json:"client,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - - - // Secure - Secure *bool `json:"secure,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Historyentry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/historylisting.go b/build/platformclientv2/historylisting.go deleted file mode 100644 index 606d95905..000000000 --- a/build/platformclientv2/historylisting.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Historylisting -type Historylisting struct { - // Id - Id *string `json:"id,omitempty"` - - - // Complete - Complete *bool `json:"complete,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // Client - Client *Domainentityref `json:"client,omitempty"` - - - // ErrorMessage - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // ErrorDetails - ErrorDetails *[]Detail `json:"errorDetails,omitempty"` - - - // ErrorMessageParams - ErrorMessageParams *map[string]string `json:"errorMessageParams,omitempty"` - - - // ActionName - Action name - ActionName *string `json:"actionName,omitempty"` - - - // ActionStatus - Action status - ActionStatus *string `json:"actionStatus,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // System - System *bool `json:"system,omitempty"` - - - // Started - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Started *time.Time `json:"started,omitempty"` - - - // Completed - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Completed *time.Time `json:"completed,omitempty"` - - - // Entities - Entities *[]Historyentry `json:"entities,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Historylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/homerrecord.go b/build/platformclientv2/homerrecord.go deleted file mode 100644 index 3881f0304..000000000 --- a/build/platformclientv2/homerrecord.go +++ /dev/null @@ -1,218 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Homerrecord -type Homerrecord struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Date - metadata associated to the SIP calls. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Date *time.Time `json:"date,omitempty"` - - - // MilliTs - metadata associated to the SIP calls - MilliTs *string `json:"milliTs,omitempty"` - - - // MicroTs - metadata associated to the SIP calls - MicroTs *string `json:"microTs,omitempty"` - - - // Method - metadata associated to the SIP calls - Method *string `json:"method,omitempty"` - - - // ReplyReason - metadata associated to the SIP calls - ReplyReason *string `json:"replyReason,omitempty"` - - - // Ruri - metadata associated to the SIP calls - Ruri *string `json:"ruri,omitempty"` - - - // RuriUser - metadata associated to the SIP calls - RuriUser *string `json:"ruriUser,omitempty"` - - - // RuriDomain - metadata associated to the SIP calls - RuriDomain *string `json:"ruriDomain,omitempty"` - - - // FromUser - metadata associated to the SIP calls - FromUser *string `json:"fromUser,omitempty"` - - - // FromDomain - metadata associated to the SIP calls - FromDomain *string `json:"fromDomain,omitempty"` - - - // FromTag - metadata associated to the SIP calls - FromTag *string `json:"fromTag,omitempty"` - - - // ToUser - metadata associated to the SIP calls - ToUser *string `json:"toUser,omitempty"` - - - // ToDomain - metadata associated to the SIP calls - ToDomain *string `json:"toDomain,omitempty"` - - - // ToTag - metadata associated to the SIP calls - ToTag *string `json:"toTag,omitempty"` - - - // PidUser - metadata associated to the SIP calls - PidUser *string `json:"pidUser,omitempty"` - - - // ContactUser - metadata associated to the SIP calls - ContactUser *string `json:"contactUser,omitempty"` - - - // AuthUser - metadata associated to the SIP calls - AuthUser *string `json:"authUser,omitempty"` - - - // Callid - metadata associated to the SIP calls - Callid *string `json:"callid,omitempty"` - - - // CallidAleg - metadata associated to the SIP calls - CallidAleg *string `json:"callidAleg,omitempty"` - - - // Via1 - metadata associated to the SIP calls - Via1 *string `json:"via1,omitempty"` - - - // Via1Branch - metadata associated to the SIP calls - Via1Branch *string `json:"via1Branch,omitempty"` - - - // Cseq - metadata associated to the SIP calls - Cseq *string `json:"cseq,omitempty"` - - - // Diversion - metadata associated to the SIP calls - Diversion *string `json:"diversion,omitempty"` - - - // Reason - metadata associated to the SIP calls - Reason *string `json:"reason,omitempty"` - - - // ContentType - metadata associated to the SIP calls - ContentType *string `json:"contentType,omitempty"` - - - // Auth - metadata associated to the SIP calls - Auth *string `json:"auth,omitempty"` - - - // UserAgent - metadata associated to the SIP calls - UserAgent *string `json:"userAgent,omitempty"` - - - // SourceIp - metadata associated to the SIP calls - SourceIp *string `json:"sourceIp,omitempty"` - - - // SourcePort - metadata associated to the SIP calls - SourcePort *string `json:"sourcePort,omitempty"` - - - // DestinationIp - metadata associated to the SIP calls - DestinationIp *string `json:"destinationIp,omitempty"` - - - // DestinationPort - metadata associated to the SIP calls - DestinationPort *string `json:"destinationPort,omitempty"` - - - // ContactIp - metadata associated to the SIP calls - ContactIp *string `json:"contactIp,omitempty"` - - - // ContactPort - metadata associated to the SIP calls - ContactPort *string `json:"contactPort,omitempty"` - - - // OriginatorIp - metadata associated to the SIP calls - OriginatorIp *string `json:"originatorIp,omitempty"` - - - // OriginatorPort - metadata associated to the SIP calls - OriginatorPort *string `json:"originatorPort,omitempty"` - - - // CorrelationId - metadata associated to the SIP calls - CorrelationId *string `json:"correlationId,omitempty"` - - - // Proto - metadata associated to the SIP calls - Proto *string `json:"proto,omitempty"` - - - // Family - metadata associated to the SIP calls - Family *string `json:"family,omitempty"` - - - // RtpStat - metadata associated to the SIP calls - RtpStat *string `json:"rtpStat,omitempty"` - - - // VarType - metadata associated to the SIP calls - VarType *string `json:"type,omitempty"` - - - // Node - metadata associated to the SIP calls - Node *string `json:"node,omitempty"` - - - // Trans - metadata associated to the SIP calls - Trans *string `json:"trans,omitempty"` - - - // Dbnode - metadata associated to the SIP calls - Dbnode *string `json:"dbnode,omitempty"` - - - // Msg - metadata associated to the SIP calls - Msg *string `json:"msg,omitempty"` - - - // SourceAlias - metadata associated to the SIP calls - SourceAlias *string `json:"sourceAlias,omitempty"` - - - // DestinationAlias - metadata associated to the SIP calls - DestinationAlias *string `json:"destinationAlias,omitempty"` - - - // ConversationId - metadata associated to the SIP calls - ConversationId *string `json:"conversationId,omitempty"` - - - // ParticipantId - metadata associated to the SIP calls - ParticipantId *string `json:"participantId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Homerrecord) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/identitynow.go b/build/platformclientv2/identitynow.go deleted file mode 100644 index a19623cf8..000000000 --- a/build/platformclientv2/identitynow.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Identitynow -type Identitynow struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // RelyingPartyIdentifier - RelyingPartyIdentifier *string `json:"relyingPartyIdentifier,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Identitynow) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/identityproviderapi.go b/build/platformclientv2/identityproviderapi.go deleted file mode 100644 index b89ae1e6b..000000000 --- a/build/platformclientv2/identityproviderapi.go +++ /dev/null @@ -1,2065 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// IdentityProviderApi provides functions for API endpoints -type IdentityProviderApi struct { - Configuration *Configuration -} - -// NewIdentityProviderApi creates an API instance using the default configuration -func NewIdentityProviderApi() *IdentityProviderApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating IdentityProviderApi with base path: %s", strings.ToLower(config.BasePath))) - return &IdentityProviderApi{ - Configuration: config, - } -} - -// NewIdentityProviderApiWithConfig creates an API instance using the provided configuration -func NewIdentityProviderApiWithConfig(config *Configuration) *IdentityProviderApi { - config.Debugf("Creating IdentityProviderApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &IdentityProviderApi{ - Configuration: config, - } -} - -// DeleteIdentityprovidersAdfs invokes DELETE /api/v2/identityproviders/adfs -// -// Delete ADFS Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersAdfs() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/adfs" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersCic invokes DELETE /api/v2/identityproviders/cic -// -// Delete Customer Interaction Center (CIC) Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersCic() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/cic" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersGsuite invokes DELETE /api/v2/identityproviders/gsuite -// -// Delete G Suite Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersGsuite() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/gsuite" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersIdentitynow invokes DELETE /api/v2/identityproviders/identitynow -// -// Delete IdentityNow Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersIdentitynow() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/identitynow" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersOkta invokes DELETE /api/v2/identityproviders/okta -// -// Delete Okta Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersOkta() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/okta" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersOnelogin invokes DELETE /api/v2/identityproviders/onelogin -// -// Delete OneLogin Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersOnelogin() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/onelogin" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersPing invokes DELETE /api/v2/identityproviders/ping -// -// Delete Ping Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersPing() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/ping" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersPurecloud invokes DELETE /api/v2/identityproviders/purecloud -// -// Delete PureCloud Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersPurecloud() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/purecloud" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersPureengage invokes DELETE /api/v2/identityproviders/pureengage -// -// Delete PureEngage Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersPureengage() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/pureengage" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIdentityprovidersSalesforce invokes DELETE /api/v2/identityproviders/salesforce -// -// Delete Salesforce Identity Provider -// -// -func (a IdentityProviderApi) DeleteIdentityprovidersSalesforce() (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/salesforce" - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityproviders invokes GET /api/v2/identityproviders -// -// The list of identity providers -// -// -func (a IdentityProviderApi) GetIdentityproviders() (*Oauthproviderentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders" - defaultReturn := new(Oauthproviderentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Oauthproviderentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersAdfs invokes GET /api/v2/identityproviders/adfs -// -// Get ADFS Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersAdfs() (*Adfs, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/adfs" - defaultReturn := new(Adfs) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Adfs - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersCic invokes GET /api/v2/identityproviders/cic -// -// Get Customer Interaction Center (CIC) Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersCic() (*Customerinteractioncenter, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/cic" - defaultReturn := new(Customerinteractioncenter) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Customerinteractioncenter - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersGsuite invokes GET /api/v2/identityproviders/gsuite -// -// Get G Suite Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersGsuite() (*Gsuite, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/gsuite" - defaultReturn := new(Gsuite) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Gsuite - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersIdentitynow invokes GET /api/v2/identityproviders/identitynow -// -// Get IdentityNow Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersIdentitynow() (*Identitynow, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/identitynow" - defaultReturn := new(Identitynow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Identitynow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersOkta invokes GET /api/v2/identityproviders/okta -// -// Get Okta Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersOkta() (*Okta, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/okta" - defaultReturn := new(Okta) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Okta - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersOnelogin invokes GET /api/v2/identityproviders/onelogin -// -// Get OneLogin Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersOnelogin() (*Onelogin, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/onelogin" - defaultReturn := new(Onelogin) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Onelogin - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersPing invokes GET /api/v2/identityproviders/ping -// -// Get Ping Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersPing() (*Pingidentity, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/ping" - defaultReturn := new(Pingidentity) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Pingidentity - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersPurecloud invokes GET /api/v2/identityproviders/purecloud -// -// Get PureCloud Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersPurecloud() (*Purecloud, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/purecloud" - defaultReturn := new(Purecloud) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Purecloud - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersPureengage invokes GET /api/v2/identityproviders/pureengage -// -// Get PureEngage Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersPureengage() (*Pureengage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/pureengage" - defaultReturn := new(Pureengage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Pureengage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIdentityprovidersSalesforce invokes GET /api/v2/identityproviders/salesforce -// -// Get Salesforce Identity Provider -// -// -func (a IdentityProviderApi) GetIdentityprovidersSalesforce() (*Salesforce, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/salesforce" - defaultReturn := new(Salesforce) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Salesforce - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersAdfs invokes PUT /api/v2/identityproviders/adfs -// -// Update/Create ADFS Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersAdfs(body Adfs) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/adfs" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersAdfs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersCic invokes PUT /api/v2/identityproviders/cic -// -// Update/Create Customer Interaction Center (CIC) Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersCic(body Customerinteractioncenter) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/cic" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersCic") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersGsuite invokes PUT /api/v2/identityproviders/gsuite -// -// Update/Create G Suite Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersGsuite(body Gsuite) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/gsuite" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersGsuite") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersIdentitynow invokes PUT /api/v2/identityproviders/identitynow -// -// Update/Create IdentityNow Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersIdentitynow(body Identitynow) (*Identitynow, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/identitynow" - defaultReturn := new(Identitynow) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersIdentitynow") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Identitynow - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersOkta invokes PUT /api/v2/identityproviders/okta -// -// Update/Create Okta Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersOkta(body Okta) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/okta" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersOkta") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersOnelogin invokes PUT /api/v2/identityproviders/onelogin -// -// Update/Create OneLogin Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersOnelogin(body Onelogin) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/onelogin" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersOnelogin") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersPing invokes PUT /api/v2/identityproviders/ping -// -// Update/Create Ping Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersPing(body Pingidentity) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/ping" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersPing") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersPurecloud invokes PUT /api/v2/identityproviders/purecloud -// -// Update/Create PureCloud Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersPurecloud(body Purecloud) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/purecloud" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersPurecloud") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersPureengage invokes PUT /api/v2/identityproviders/pureengage -// -// Update/Create PureEngage Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersPureengage(body Pureengage) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/pureengage" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersPureengage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIdentityprovidersSalesforce invokes PUT /api/v2/identityproviders/salesforce -// -// Update/Create Salesforce Identity Provider -// -// -func (a IdentityProviderApi) PutIdentityprovidersSalesforce(body Salesforce) (*Oauthprovider, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/identityproviders/salesforce" - defaultReturn := new(Oauthprovider) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IdentityProviderApi->PutIdentityprovidersSalesforce") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthprovider - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/ignoredactivitycategories.go b/build/platformclientv2/ignoredactivitycategories.go deleted file mode 100644 index 330bb15ae..000000000 --- a/build/platformclientv2/ignoredactivitycategories.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ignoredactivitycategories -type Ignoredactivitycategories struct { - // Values - Activity categories list - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ignoredactivitycategories) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/importscriptstatusresponse.go b/build/platformclientv2/importscriptstatusresponse.go deleted file mode 100644 index 7c4a20b96..000000000 --- a/build/platformclientv2/importscriptstatusresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Importscriptstatusresponse -type Importscriptstatusresponse struct { - // Url - Url *string `json:"url,omitempty"` - - - // Succeeded - Succeeded *bool `json:"succeeded,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Importscriptstatusresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/importshorttermforecastrequest.go b/build/platformclientv2/importshorttermforecastrequest.go deleted file mode 100644 index 7cbe68fd7..000000000 --- a/build/platformclientv2/importshorttermforecastrequest.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Importshorttermforecastrequest - Request body for importing a short term forecast -type Importshorttermforecastrequest struct { - // FileName - The file name, if applicable, this data was extracted from (display purposes only) - FileName *string `json:"fileName,omitempty"` - - - // Description - Description for the imported forecast. Pass an empty string for no description - Description *string `json:"description,omitempty"` - - - // RouteGroupList - The raw data to import - RouteGroupList *Routegrouplist `json:"routeGroupList,omitempty"` - - - // PartialUploadIds - IDs of partial uploads to include in this imported forecast. Only relevant for large forecasts - PartialUploadIds *[]string `json:"partialUploadIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Importshorttermforecastrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/importstatus.go b/build/platformclientv2/importstatus.go deleted file mode 100644 index 56f15b647..000000000 --- a/build/platformclientv2/importstatus.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Importstatus -type Importstatus struct { - // State - current status of the import - State *string `json:"state,omitempty"` - - - // TotalRecords - total number of records to be imported - TotalRecords *int64 `json:"totalRecords,omitempty"` - - - // CompletedRecords - number of records finished importing - CompletedRecords *int64 `json:"completedRecords,omitempty"` - - - // PercentComplete - percentage of records finished importing - PercentComplete *int32 `json:"percentComplete,omitempty"` - - - // FailureReason - if the import has failed, the reason for the failure - FailureReason *string `json:"failureReason,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Importstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/importweekschedulerequest.go b/build/platformclientv2/importweekschedulerequest.go deleted file mode 100644 index 23d77daa7..000000000 --- a/build/platformclientv2/importweekschedulerequest.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Importweekschedulerequest - Information to create a schedule for a week in management unit using imported data -type Importweekschedulerequest struct { - // Description - Description for the schedule - Description *string `json:"description,omitempty"` - - - // UserSchedules - User schedules - UserSchedules *map[string]Userschedule `json:"userSchedules,omitempty"` - - - // Published - Whether the schedule is published - Published *bool `json:"published,omitempty"` - - - // ShortTermForecastId - Short term forecast that should be associated with this schedule - ShortTermForecastId *string `json:"shortTermForecastId,omitempty"` - - - // PartialUploadIds - IDs of partial uploads of user schedules to import week schedule. It is applicable only for large schedules where activity count in schedule is greater than 17500 - PartialUploadIds *[]string `json:"partialUploadIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Importweekschedulerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/inbounddomain.go b/build/platformclientv2/inbounddomain.go deleted file mode 100644 index a18d9ecf4..000000000 --- a/build/platformclientv2/inbounddomain.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Inbounddomain -type Inbounddomain struct { - // Id - Unique Id of the domain such as: example.com - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // MxRecordStatus - Mx Record Status - MxRecordStatus *string `json:"mxRecordStatus,omitempty"` - - - // SubDomain - Indicates if this a PureCloud sub-domain. If true, then the appropriate DNS records are created for sending/receiving email. - SubDomain *bool `json:"subDomain,omitempty"` - - - // MailFromSettings - The DNS settings if the inbound domain is using a custom Mail From. These settings can only be used on InboundDomains where subDomain is false. - MailFromSettings *Mailfromresult `json:"mailFromSettings,omitempty"` - - - // CustomSMTPServer - The custom SMTP server integration to use when sending outbound emails from this domain. - CustomSMTPServer *Domainentityref `json:"customSMTPServer,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Inbounddomain) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/inbounddomainentitylisting.go b/build/platformclientv2/inbounddomainentitylisting.go deleted file mode 100644 index 9973fe818..000000000 --- a/build/platformclientv2/inbounddomainentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Inbounddomainentitylisting -type Inbounddomainentitylisting struct { - // Entities - Entities *[]Inbounddomain `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Inbounddomainentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/inboundmessagerequest.go b/build/platformclientv2/inboundmessagerequest.go deleted file mode 100644 index 6e93ad2c5..000000000 --- a/build/platformclientv2/inboundmessagerequest.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Inboundmessagerequest -type Inboundmessagerequest struct { - // QueueId - The ID of the queue to use for routing the email conversation. This field is mutually exclusive with flowId - QueueId *string `json:"queueId,omitempty"` - - - // FlowId - The ID of the flow to use for routing email conversation. This field is mutually exclusive with queueId - FlowId *string `json:"flowId,omitempty"` - - - // Provider - The name of the provider that is sourcing the email such as Oracle, Salesforce, etc. - Provider *string `json:"provider,omitempty"` - - - // SkillIds - The list of skill ID's to use for routing. - SkillIds *[]string `json:"skillIds,omitempty"` - - - // LanguageId - The ID of the language to use for routing. - LanguageId *string `json:"languageId,omitempty"` - - - // Priority - The priority to assign to the conversation for routing. - Priority *int32 `json:"priority,omitempty"` - - - // Attributes - The list of attributes to associate with the customer participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ToAddress - The email address of the recipient of the email. - ToAddress *string `json:"toAddress,omitempty"` - - - // ToName - The name of the recipient of the email. - ToName *string `json:"toName,omitempty"` - - - // FromAddress - The email address of the sender of the email. - FromAddress *string `json:"fromAddress,omitempty"` - - - // FromName - The name of the sender of the email. - FromName *string `json:"fromName,omitempty"` - - - // Subject - The subject of the email - Subject *string `json:"subject,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Inboundmessagerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/inboundroute.go b/build/platformclientv2/inboundroute.go deleted file mode 100644 index 27f053709..000000000 --- a/build/platformclientv2/inboundroute.go +++ /dev/null @@ -1,69 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Inboundroute -type Inboundroute struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Pattern - The search pattern that the mailbox name should match. - Pattern *string `json:"pattern,omitempty"` - - - // Queue - The queue to route the emails to. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Priority - The priority to use for routing. - Priority *int32 `json:"priority,omitempty"` - - - // Skills - The skills to use for routing. - Skills *[]Domainentityref `json:"skills,omitempty"` - - - // Language - The language to use for routing. - Language *Domainentityref `json:"language,omitempty"` - - - // FromName - The sender name to use for outgoing replies. - FromName *string `json:"fromName,omitempty"` - - - // FromEmail - The sender email to use for outgoing replies. - FromEmail *string `json:"fromEmail,omitempty"` - - - // Flow - The flow to use for processing the email. - Flow *Domainentityref `json:"flow,omitempty"` - - - // ReplyEmailAddress - The route to use for email replies. - ReplyEmailAddress **Queueemailaddress `json:"replyEmailAddress,omitempty"` - - - // AutoBcc - The recipients that should be automatically blind copied on outbound emails associated with this InboundRoute. - AutoBcc *[]Emailaddress `json:"autoBcc,omitempty"` - - - // SpamFlow - The flow to use for processing inbound emails that have been marked as spam. - SpamFlow *Domainentityref `json:"spamFlow,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Inboundroute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/inboundrouteentitylisting.go b/build/platformclientv2/inboundrouteentitylisting.go deleted file mode 100644 index a41b1d596..000000000 --- a/build/platformclientv2/inboundrouteentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Inboundrouteentitylisting -type Inboundrouteentitylisting struct { - // Entities - Entities *[]Inboundroute `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Inboundrouteentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/initiatescreenrecording.go b/build/platformclientv2/initiatescreenrecording.go deleted file mode 100644 index b4bfc116a..000000000 --- a/build/platformclientv2/initiatescreenrecording.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Initiatescreenrecording -type Initiatescreenrecording struct { - // RecordACW - RecordACW *bool `json:"recordACW,omitempty"` - - - // ArchiveRetention - ArchiveRetention *Archiveretention `json:"archiveRetention,omitempty"` - - - // DeleteRetention - DeleteRetention *Deleteretention `json:"deleteRetention,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Initiatescreenrecording) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integration.go b/build/platformclientv2/integration.go deleted file mode 100644 index 6eeebf934..000000000 --- a/build/platformclientv2/integration.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integration - Details for an Integration -type Integration struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the integration, used to distinguish this integration from others of the same type. - Name *string `json:"name,omitempty"` - - - // IntegrationType - Type of the integration - IntegrationType *Integrationtype `json:"integrationType,omitempty"` - - - // Notes - Notes about the integration. - Notes *string `json:"notes,omitempty"` - - - // IntendedState - Configured state of the integration. - IntendedState *string `json:"intendedState,omitempty"` - - - // Config - Configuration information for the integration. - Config *Integrationconfigurationinfo `json:"config,omitempty"` - - - // ReportedState - Last reported status of the integration. - ReportedState *Integrationstatusinfo `json:"reportedState,omitempty"` - - - // Attributes - Read-only attributes for the integration. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationconfiguration.go b/build/platformclientv2/integrationconfiguration.go deleted file mode 100644 index e9fbbeac8..000000000 --- a/build/platformclientv2/integrationconfiguration.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationconfiguration - Configuration for an Integration -type Integrationconfiguration struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the integration, used to distinguish this integration from others of the same type. - Name *string `json:"name,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // Properties - Key-value configuration settings described by the schema in the propertiesSchemaUri field. - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // Advanced - Advanced configuration described by the schema in the advancedSchemaUri field. - Advanced *map[string]interface{} `json:"advanced,omitempty"` - - - // Notes - Notes about the integration. - Notes *string `json:"notes,omitempty"` - - - // Credentials - Credentials required by the integration. The required keys are indicated in the credentials property of the Integration Type - Credentials *map[string]Credentialinfo `json:"credentials,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationconfiguration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationconfigurationinfo.go b/build/platformclientv2/integrationconfigurationinfo.go deleted file mode 100644 index 73ee0e732..000000000 --- a/build/platformclientv2/integrationconfigurationinfo.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationconfigurationinfo - Configuration information for the integration -type Integrationconfigurationinfo struct { - // Current - The current, active configuration for the integration. - Current *Integrationconfiguration `json:"current,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationconfigurationinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationentitylisting.go b/build/platformclientv2/integrationentitylisting.go deleted file mode 100644 index 8608fb02f..000000000 --- a/build/platformclientv2/integrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationentitylisting -type Integrationentitylisting struct { - // Entities - Entities *[]Integration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationevent.go b/build/platformclientv2/integrationevent.go deleted file mode 100644 index 9a60c895e..000000000 --- a/build/platformclientv2/integrationevent.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Integrationevent - Describes an event that has happened related to an integration -type Integrationevent struct { - // Id - Unique ID for this event - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // CorrelationId - Correlation ID for the event - CorrelationId *string `json:"correlationId,omitempty"` - - - // Timestamp - Time the event occurred. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // Level - Indicates the severity of the event. - Level *string `json:"level,omitempty"` - - - // EventCode - A classification for the event. Suitable for programmatic searching, sorting, or filtering - EventCode *string `json:"eventCode,omitempty"` - - - // Message - Message indicating what happened - Message *Messageinfo `json:"message,omitempty"` - - - // Entities - Collection of entities affected by or pertaining to the event (e.g. a list of Integrations or Bridge connectors) - Entities *[]Evententity `json:"entities,omitempty"` - - - // ContextAttributes - Map of context attributes specific to this event. - ContextAttributes *map[string]string `json:"contextAttributes,omitempty"` - - - // DetailMessage - Message with additional details about the event. (e.g. an exception cause.) - DetailMessage *Messageinfo `json:"detailMessage,omitempty"` - - - // User - User that took an action that resulted in the event. - User *User `json:"user,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationevent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationevententitylisting.go b/build/platformclientv2/integrationevententitylisting.go deleted file mode 100644 index 4dcee2061..000000000 --- a/build/platformclientv2/integrationevententitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationevententitylisting -type Integrationevententitylisting struct { - // Entities - Entities *[]Integrationevent `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationevententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationexport.go b/build/platformclientv2/integrationexport.go deleted file mode 100644 index d1345f61b..000000000 --- a/build/platformclientv2/integrationexport.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationexport -type Integrationexport struct { - // Integration - The aws-s3-recording-bulk-actions-integration that the policy uses for exports. - Integration *Domainentityref `json:"integration,omitempty"` - - - // ShouldExportScreenRecordings - True if the policy should export screen recordings in addition to the other conversation media. Default = true - ShouldExportScreenRecordings *bool `json:"shouldExportScreenRecordings,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationexport) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationsapi.go b/build/platformclientv2/integrationsapi.go deleted file mode 100644 index 66bfa0f80..000000000 --- a/build/platformclientv2/integrationsapi.go +++ /dev/null @@ -1,4205 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// IntegrationsApi provides functions for API endpoints -type IntegrationsApi struct { - Configuration *Configuration -} - -// NewIntegrationsApi creates an API instance using the default configuration -func NewIntegrationsApi() *IntegrationsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating IntegrationsApi with base path: %s", strings.ToLower(config.BasePath))) - return &IntegrationsApi{ - Configuration: config, - } -} - -// NewIntegrationsApiWithConfig creates an API instance using the provided configuration -func NewIntegrationsApiWithConfig(config *Configuration) *IntegrationsApi { - config.Debugf("Creating IntegrationsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &IntegrationsApi{ - Configuration: config, - } -} - -// DeleteIntegration invokes DELETE /api/v2/integrations/{integrationId} -// -// Delete integration. -// -// -func (a IntegrationsApi) DeleteIntegration(integrationId string) (*Integration, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Integration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling IntegrationsApi->DeleteIntegration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteIntegrationsAction invokes DELETE /api/v2/integrations/actions/{actionId} -// -// Delete an Action -// -// -func (a IntegrationsApi) DeleteIntegrationsAction(actionId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->DeleteIntegrationsAction") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteIntegrationsActionDraft invokes DELETE /api/v2/integrations/actions/{actionId}/draft -// -// Delete a Draft -// -// -func (a IntegrationsApi) DeleteIntegrationsActionDraft(actionId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->DeleteIntegrationsActionDraft") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteIntegrationsCredential invokes DELETE /api/v2/integrations/credentials/{credentialId} -// -// Delete a set of credentials -// -// -func (a IntegrationsApi) DeleteIntegrationsCredential(credentialId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/credentials/{credentialId}" - path = strings.Replace(path, "{credentialId}", fmt.Sprintf("%v", credentialId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'credentialId' is set - if &credentialId == nil { - // - return nil, errors.New("Missing required parameter 'credentialId' when calling IntegrationsApi->DeleteIntegrationsCredential") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetIntegration invokes GET /api/v2/integrations/{integrationId} -// -// Get integration. -// -// -func (a IntegrationsApi) GetIntegration(integrationId string, pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string) (*Integration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Integration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling IntegrationsApi->GetIntegration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationConfigCurrent invokes GET /api/v2/integrations/{integrationId}/config/current -// -// Get integration configuration. -// -// -func (a IntegrationsApi) GetIntegrationConfigCurrent(integrationId string) (*Integrationconfiguration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/{integrationId}/config/current" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Integrationconfiguration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling IntegrationsApi->GetIntegrationConfigCurrent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integrationconfiguration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrations invokes GET /api/v2/integrations -// -// List integrations -// -// -func (a IntegrationsApi) GetIntegrations(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string) (*Integrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations" - defaultReturn := new(Integrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsAction invokes GET /api/v2/integrations/actions/{actionId} -// -// Retrieves a single Action matching id. -// -// -func (a IntegrationsApi) GetIntegrationsAction(actionId string, expand string, includeConfig bool) (*Action, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsAction") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeConfig"] = a.Configuration.APIClient.ParameterToString(includeConfig, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionDraft invokes GET /api/v2/integrations/actions/{actionId}/draft -// -// Retrieve a Draft -// -// -func (a IntegrationsApi) GetIntegrationsActionDraft(actionId string, expand string, includeConfig bool) (*Action, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsActionDraft") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeConfig"] = a.Configuration.APIClient.ParameterToString(includeConfig, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionDraftSchema invokes GET /api/v2/integrations/actions/{actionId}/draft/schemas/{fileName} -// -// Retrieve schema for a Draft based on filename. -// -// -func (a IntegrationsApi) GetIntegrationsActionDraftSchema(actionId string, fileName string) (*Jsonschemadocument, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - path = strings.Replace(path, "{fileName}", fmt.Sprintf("%v", fileName), -1) - defaultReturn := new(Jsonschemadocument) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsActionDraftSchema") - } - // verify the required parameter 'fileName' is set - if &fileName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'fileName' when calling IntegrationsApi->GetIntegrationsActionDraftSchema") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonschemadocument - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionDraftTemplate invokes GET /api/v2/integrations/actions/{actionId}/draft/templates/{fileName} -// -// Retrieve templates for a Draft based on filename. -// -// -func (a IntegrationsApi) GetIntegrationsActionDraftTemplate(actionId string, fileName string) (*string, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft/templates/{fileName}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - path = strings.Replace(path, "{fileName}", fmt.Sprintf("%v", fileName), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsActionDraftTemplate") - } - // verify the required parameter 'fileName' is set - if &fileName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'fileName' when calling IntegrationsApi->GetIntegrationsActionDraftTemplate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "text/plain", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionDraftValidation invokes GET /api/v2/integrations/actions/{actionId}/draft/validation -// -// Validate current Draft configuration. -// -// -func (a IntegrationsApi) GetIntegrationsActionDraftValidation(actionId string) (*Draftvalidationresult, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft/validation" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Draftvalidationresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsActionDraftValidation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Draftvalidationresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionSchema invokes GET /api/v2/integrations/actions/{actionId}/schemas/{fileName} -// -// Retrieve schema for an action based on filename. -// -// -func (a IntegrationsApi) GetIntegrationsActionSchema(actionId string, fileName string) (*Jsonschemadocument, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/schemas/{fileName}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - path = strings.Replace(path, "{fileName}", fmt.Sprintf("%v", fileName), -1) - defaultReturn := new(Jsonschemadocument) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsActionSchema") - } - // verify the required parameter 'fileName' is set - if &fileName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'fileName' when calling IntegrationsApi->GetIntegrationsActionSchema") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonschemadocument - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionTemplate invokes GET /api/v2/integrations/actions/{actionId}/templates/{fileName} -// -// Retrieve text of templates for an action based on filename. -// -// -func (a IntegrationsApi) GetIntegrationsActionTemplate(actionId string, fileName string) (*string, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/templates/{fileName}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - path = strings.Replace(path, "{fileName}", fmt.Sprintf("%v", fileName), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->GetIntegrationsActionTemplate") - } - // verify the required parameter 'fileName' is set - if &fileName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'fileName' when calling IntegrationsApi->GetIntegrationsActionTemplate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "text/plain", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActions invokes GET /api/v2/integrations/actions -// -// Retrieves all actions associated with filters passed in via query param. -// -// -func (a IntegrationsApi) GetIntegrationsActions(pageSize int32, pageNumber int32, nextPage string, previousPage string, sortBy string, sortOrder string, category string, name string, secure string, includeAuthActions string) (*Actionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions" - defaultReturn := new(Actionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["category"] = a.Configuration.APIClient.ParameterToString(category, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["secure"] = a.Configuration.APIClient.ParameterToString(secure, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeAuthActions"] = a.Configuration.APIClient.ParameterToString(includeAuthActions, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Actionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionsCategories invokes GET /api/v2/integrations/actions/categories -// -// Retrieves all categories of available Actions -// -// -func (a IntegrationsApi) GetIntegrationsActionsCategories(pageSize int32, pageNumber int32, nextPage string, previousPage string, sortBy string, sortOrder string, secure string) (*Categoryentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/categories" - defaultReturn := new(Categoryentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["secure"] = a.Configuration.APIClient.ParameterToString(secure, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Categoryentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsActionsDrafts invokes GET /api/v2/integrations/actions/drafts -// -// Retrieves all action drafts associated with the filters passed in via query param. -// -// -func (a IntegrationsApi) GetIntegrationsActionsDrafts(pageSize int32, pageNumber int32, nextPage string, previousPage string, sortBy string, sortOrder string, category string, name string, secure string, includeAuthActions string) (*Actionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/drafts" - defaultReturn := new(Actionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["category"] = a.Configuration.APIClient.ParameterToString(category, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["secure"] = a.Configuration.APIClient.ParameterToString(secure, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeAuthActions"] = a.Configuration.APIClient.ParameterToString(includeAuthActions, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Actionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsClientapps invokes GET /api/v2/integrations/clientapps -// -// List permitted client app integrations for the logged in user -// -// -func (a IntegrationsApi) GetIntegrationsClientapps(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string) (*Clientappentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/clientapps" - defaultReturn := new(Clientappentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Clientappentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsCredential invokes GET /api/v2/integrations/credentials/{credentialId} -// -// Get a single credential with sensitive fields redacted -// -// -func (a IntegrationsApi) GetIntegrationsCredential(credentialId string) (*Credential, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/credentials/{credentialId}" - path = strings.Replace(path, "{credentialId}", fmt.Sprintf("%v", credentialId), -1) - defaultReturn := new(Credential) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'credentialId' is set - if &credentialId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'credentialId' when calling IntegrationsApi->GetIntegrationsCredential") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Credential - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsCredentials invokes GET /api/v2/integrations/credentials -// -// List multiple sets of credentials -// -// -func (a IntegrationsApi) GetIntegrationsCredentials(pageNumber int32, pageSize int32) (*Credentialinfolisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/credentials" - defaultReturn := new(Credentialinfolisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Credentialinfolisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsCredentialsTypes invokes GET /api/v2/integrations/credentials/types -// -// List all credential types -// -// -func (a IntegrationsApi) GetIntegrationsCredentialsTypes() (*Credentialtypelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/credentials/types" - defaultReturn := new(Credentialtypelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Credentialtypelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsEventlog invokes GET /api/v2/integrations/eventlog -// -// List all events -// -// -func (a IntegrationsApi) GetIntegrationsEventlog(pageSize int32, pageNumber int32, sortBy string, sortOrder string, entityId string) (*Integrationevententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/eventlog" - defaultReturn := new(Integrationevententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["entityId"] = a.Configuration.APIClient.ParameterToString(entityId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integrationevententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsEventlogEventId invokes GET /api/v2/integrations/eventlog/{eventId} -// -// Get a single event -// -// -func (a IntegrationsApi) GetIntegrationsEventlogEventId(eventId string) (*Integrationevent, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/eventlog/{eventId}" - path = strings.Replace(path, "{eventId}", fmt.Sprintf("%v", eventId), -1) - defaultReturn := new(Integrationevent) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'eventId' is set - if &eventId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'eventId' when calling IntegrationsApi->GetIntegrationsEventlogEventId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integrationevent - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechDialogflowAgent invokes GET /api/v2/integrations/speech/dialogflow/agents/{agentId} -// -// Get details about a Dialogflow agent -// -// -func (a IntegrationsApi) GetIntegrationsSpeechDialogflowAgent(agentId string) (*Dialogflowagent, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/dialogflow/agents/{agentId}" - path = strings.Replace(path, "{agentId}", fmt.Sprintf("%v", agentId), -1) - defaultReturn := new(Dialogflowagent) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'agentId' is set - if &agentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'agentId' when calling IntegrationsApi->GetIntegrationsSpeechDialogflowAgent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dialogflowagent - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechDialogflowAgents invokes GET /api/v2/integrations/speech/dialogflow/agents -// -// Get a list of Dialogflow agents in the customers' Google accounts -// -// -func (a IntegrationsApi) GetIntegrationsSpeechDialogflowAgents(pageNumber int32, pageSize int32, name string) (*Dialogflowagentsummaryentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/dialogflow/agents" - defaultReturn := new(Dialogflowagentsummaryentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dialogflowagentsummaryentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechLexBotAlias invokes GET /api/v2/integrations/speech/lex/bot/alias/{aliasId} -// -// Get details about a Lex bot alias -// -// -func (a IntegrationsApi) GetIntegrationsSpeechLexBotAlias(aliasId string) (*Lexbotalias, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/lex/bot/alias/{aliasId}" - path = strings.Replace(path, "{aliasId}", fmt.Sprintf("%v", aliasId), -1) - defaultReturn := new(Lexbotalias) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'aliasId' is set - if &aliasId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'aliasId' when calling IntegrationsApi->GetIntegrationsSpeechLexBotAlias") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Lexbotalias - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechLexBotBotIdAliases invokes GET /api/v2/integrations/speech/lex/bot/{botId}/aliases -// -// Get a list of aliases for a bot in the customer's AWS accounts -// -// -func (a IntegrationsApi) GetIntegrationsSpeechLexBotBotIdAliases(botId string, pageNumber int32, pageSize int32, status string, name string) (*Lexbotaliasentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/lex/bot/{botId}/aliases" - path = strings.Replace(path, "{botId}", fmt.Sprintf("%v", botId), -1) - defaultReturn := new(Lexbotaliasentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'botId' is set - if &botId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'botId' when calling IntegrationsApi->GetIntegrationsSpeechLexBotBotIdAliases") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["status"] = a.Configuration.APIClient.ParameterToString(status, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Lexbotaliasentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechLexBots invokes GET /api/v2/integrations/speech/lex/bots -// -// Get a list of Lex bots in the customers' AWS accounts -// -// -func (a IntegrationsApi) GetIntegrationsSpeechLexBots(pageNumber int32, pageSize int32, name string) (*Lexbotentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/lex/bots" - defaultReturn := new(Lexbotentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Lexbotentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechTtsEngine invokes GET /api/v2/integrations/speech/tts/engines/{engineId} -// -// Get details about a TTS engine -// -// -func (a IntegrationsApi) GetIntegrationsSpeechTtsEngine(engineId string, includeVoices bool) (*Ttsengineentity, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/tts/engines/{engineId}" - path = strings.Replace(path, "{engineId}", fmt.Sprintf("%v", engineId), -1) - defaultReturn := new(Ttsengineentity) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'engineId' is set - if &engineId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'engineId' when calling IntegrationsApi->GetIntegrationsSpeechTtsEngine") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeVoices"] = a.Configuration.APIClient.ParameterToString(includeVoices, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ttsengineentity - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechTtsEngineVoice invokes GET /api/v2/integrations/speech/tts/engines/{engineId}/voices/{voiceId} -// -// Get details about a specific voice for a TTS engine -// -// -func (a IntegrationsApi) GetIntegrationsSpeechTtsEngineVoice(engineId string, voiceId string) (*Ttsvoiceentity, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/tts/engines/{engineId}/voices/{voiceId}" - path = strings.Replace(path, "{engineId}", fmt.Sprintf("%v", engineId), -1) - path = strings.Replace(path, "{voiceId}", fmt.Sprintf("%v", voiceId), -1) - defaultReturn := new(Ttsvoiceentity) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'engineId' is set - if &engineId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'engineId' when calling IntegrationsApi->GetIntegrationsSpeechTtsEngineVoice") - } - // verify the required parameter 'voiceId' is set - if &voiceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'voiceId' when calling IntegrationsApi->GetIntegrationsSpeechTtsEngineVoice") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ttsvoiceentity - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechTtsEngineVoices invokes GET /api/v2/integrations/speech/tts/engines/{engineId}/voices -// -// Get a list of voices for a TTS engine -// -// -func (a IntegrationsApi) GetIntegrationsSpeechTtsEngineVoices(engineId string, pageNumber int32, pageSize int32) (*Ttsvoiceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/tts/engines/{engineId}/voices" - path = strings.Replace(path, "{engineId}", fmt.Sprintf("%v", engineId), -1) - defaultReturn := new(Ttsvoiceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'engineId' is set - if &engineId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'engineId' when calling IntegrationsApi->GetIntegrationsSpeechTtsEngineVoices") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ttsvoiceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechTtsEngines invokes GET /api/v2/integrations/speech/tts/engines -// -// Get a list of TTS engines enabled for org -// -// -func (a IntegrationsApi) GetIntegrationsSpeechTtsEngines(pageNumber int32, pageSize int32, includeVoices bool, name string, language string) (*Ttsengineentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/tts/engines" - defaultReturn := new(Ttsengineentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeVoices"] = a.Configuration.APIClient.ParameterToString(includeVoices, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["language"] = a.Configuration.APIClient.ParameterToString(language, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ttsengineentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsSpeechTtsSettings invokes GET /api/v2/integrations/speech/tts/settings -// -// Get TTS settings for an org -// -// -func (a IntegrationsApi) GetIntegrationsSpeechTtsSettings() (*Ttssettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/tts/settings" - defaultReturn := new(Ttssettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ttssettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsType invokes GET /api/v2/integrations/types/{typeId} -// -// Get integration type. -// -// -func (a IntegrationsApi) GetIntegrationsType(typeId string) (*Integrationtype, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/types/{typeId}" - path = strings.Replace(path, "{typeId}", fmt.Sprintf("%v", typeId), -1) - defaultReturn := new(Integrationtype) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'typeId' is set - if &typeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'typeId' when calling IntegrationsApi->GetIntegrationsType") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integrationtype - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsTypeConfigschema invokes GET /api/v2/integrations/types/{typeId}/configschemas/{configType} -// -// Get properties config schema for an integration type. -// -// -func (a IntegrationsApi) GetIntegrationsTypeConfigschema(typeId string, configType string) (*Jsonschemadocument, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/types/{typeId}/configschemas/{configType}" - path = strings.Replace(path, "{typeId}", fmt.Sprintf("%v", typeId), -1) - path = strings.Replace(path, "{configType}", fmt.Sprintf("%v", configType), -1) - defaultReturn := new(Jsonschemadocument) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'typeId' is set - if &typeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'typeId' when calling IntegrationsApi->GetIntegrationsTypeConfigschema") - } - // verify the required parameter 'configType' is set - if &configType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'configType' when calling IntegrationsApi->GetIntegrationsTypeConfigschema") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonschemadocument - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIntegrationsTypes invokes GET /api/v2/integrations/types -// -// List integration types -// -// -func (a IntegrationsApi) GetIntegrationsTypes(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string) (*Integrationtypeentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/types" - defaultReturn := new(Integrationtypeentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Integrationtypeentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchIntegration invokes PATCH /api/v2/integrations/{integrationId} -// -// Update an integration. -// -// -func (a IntegrationsApi) PatchIntegration(integrationId string, body Integration, pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string) (*Integration, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/{integrationId}" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Integration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling IntegrationsApi->PatchIntegration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Integration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchIntegrationsAction invokes PATCH /api/v2/integrations/actions/{actionId} -// -// Patch an Action -// -// -func (a IntegrationsApi) PatchIntegrationsAction(actionId string, body Updateactioninput) (*Action, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PatchIntegrationsAction") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PatchIntegrationsAction") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchIntegrationsActionDraft invokes PATCH /api/v2/integrations/actions/{actionId}/draft -// -// Update an existing Draft -// -// -func (a IntegrationsApi) PatchIntegrationsActionDraft(actionId string, body Updatedraftinput) (*Action, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PatchIntegrationsActionDraft") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PatchIntegrationsActionDraft") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrations invokes POST /api/v2/integrations -// -// Create an integration. -// -// -func (a IntegrationsApi) PostIntegrations(body Createintegrationrequest) (*Integration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations" - defaultReturn := new(Integration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Integration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActionDraft invokes POST /api/v2/integrations/actions/{actionId}/draft -// -// Create a new Draft from existing Action -// -// -func (a IntegrationsApi) PostIntegrationsActionDraft(actionId string) (*Action, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PostIntegrationsActionDraft") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActionDraftPublish invokes POST /api/v2/integrations/actions/{actionId}/draft/publish -// -// Publish a Draft and make it the active Action configuration -// -// -func (a IntegrationsApi) PostIntegrationsActionDraftPublish(actionId string, body Publishdraftinput) (*Action, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft/publish" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PostIntegrationsActionDraftPublish") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PostIntegrationsActionDraftPublish") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActionDraftTest invokes POST /api/v2/integrations/actions/{actionId}/draft/test -// -// Test the execution of a draft. Responses will show execution steps broken out with intermediate results to help in debugging. -// -// -func (a IntegrationsApi) PostIntegrationsActionDraftTest(actionId string, body map[string]interface{}) (*Testexecutionresult, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/draft/test" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Testexecutionresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PostIntegrationsActionDraftTest") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PostIntegrationsActionDraftTest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Testexecutionresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActionExecute invokes POST /api/v2/integrations/actions/{actionId}/execute -// -// Execute Action and return response from 3rd party. Responses will follow the schemas defined on the Action for success and error. -// -// -func (a IntegrationsApi) PostIntegrationsActionExecute(actionId string, body map[string]interface{}) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/execute" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PostIntegrationsActionExecute") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PostIntegrationsActionExecute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActionTest invokes POST /api/v2/integrations/actions/{actionId}/test -// -// Test the execution of an action. Responses will show execution steps broken out with intermediate results to help in debugging. -// -// -func (a IntegrationsApi) PostIntegrationsActionTest(actionId string, body map[string]interface{}) (*Testexecutionresult, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/{actionId}/test" - path = strings.Replace(path, "{actionId}", fmt.Sprintf("%v", actionId), -1) - defaultReturn := new(Testexecutionresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'actionId' is set - if &actionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'actionId' when calling IntegrationsApi->PostIntegrationsActionTest") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PostIntegrationsActionTest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Testexecutionresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActions invokes POST /api/v2/integrations/actions -// -// Create a new Action -// -// -func (a IntegrationsApi) PostIntegrationsActions(body Postactioninput) (*Action, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions" - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PostIntegrationsActions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsActionsDrafts invokes POST /api/v2/integrations/actions/drafts -// -// Create a new Draft -// -// -func (a IntegrationsApi) PostIntegrationsActionsDrafts(body Postactioninput) (*Action, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/actions/drafts" - defaultReturn := new(Action) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PostIntegrationsActionsDrafts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Action - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsCredentials invokes POST /api/v2/integrations/credentials -// -// Create a set of credentials -// -// -func (a IntegrationsApi) PostIntegrationsCredentials(body Credential) (*Credentialinfo, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/credentials" - defaultReturn := new(Credentialinfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Credentialinfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostIntegrationsWorkforcemanagementVendorconnection invokes POST /api/v2/integrations/workforcemanagement/vendorconnection -// -// Add a vendor connection -// -// -func (a IntegrationsApi) PostIntegrationsWorkforcemanagementVendorconnection(body Vendorconnectionrequest) (*Useractioncategoryentitylisting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/workforcemanagement/vendorconnection" - defaultReturn := new(Useractioncategoryentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Useractioncategoryentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIntegrationConfigCurrent invokes PUT /api/v2/integrations/{integrationId}/config/current -// -// Update integration configuration. -// -// -func (a IntegrationsApi) PutIntegrationConfigCurrent(integrationId string, body Integrationconfiguration) (*Integrationconfiguration, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/{integrationId}/config/current" - path = strings.Replace(path, "{integrationId}", fmt.Sprintf("%v", integrationId), -1) - defaultReturn := new(Integrationconfiguration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'integrationId' is set - if &integrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'integrationId' when calling IntegrationsApi->PutIntegrationConfigCurrent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Integrationconfiguration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIntegrationsCredential invokes PUT /api/v2/integrations/credentials/{credentialId} -// -// Update a set of credentials -// -// -func (a IntegrationsApi) PutIntegrationsCredential(credentialId string, body Credential) (*Credentialinfo, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/credentials/{credentialId}" - path = strings.Replace(path, "{credentialId}", fmt.Sprintf("%v", credentialId), -1) - defaultReturn := new(Credentialinfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'credentialId' is set - if &credentialId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'credentialId' when calling IntegrationsApi->PutIntegrationsCredential") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Credentialinfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutIntegrationsSpeechTtsSettings invokes PUT /api/v2/integrations/speech/tts/settings -// -// Update TTS settings for an org -// -// -func (a IntegrationsApi) PutIntegrationsSpeechTtsSettings(body Ttssettings) (*Ttssettings, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/integrations/speech/tts/settings" - defaultReturn := new(Ttssettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling IntegrationsApi->PutIntegrationsSpeechTtsSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Ttssettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/integrationstatusinfo.go b/build/platformclientv2/integrationstatusinfo.go deleted file mode 100644 index b79960fdf..000000000 --- a/build/platformclientv2/integrationstatusinfo.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Integrationstatusinfo - Status information for an Integration. -type Integrationstatusinfo struct { - // Code - Machine-readable status as reported by the integration. - Code *string `json:"code,omitempty"` - - - // Effective - Localized, human-readable, effective status of the integration. - Effective *string `json:"effective,omitempty"` - - - // Detail - Localizable status details for the integration. - Detail *Messageinfo `json:"detail,omitempty"` - - - // LastUpdated - Date and time (in UTC) when the integration status (i.e. the code field) was last updated. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - LastUpdated *time.Time `json:"lastUpdated,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationstatusinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationtype.go b/build/platformclientv2/integrationtype.go deleted file mode 100644 index 251dbbc62..000000000 --- a/build/platformclientv2/integrationtype.go +++ /dev/null @@ -1,109 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationtype - Descriptor for a type of Integration. -type Integrationtype struct { - // Id - The ID of the integration type. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description of the integration type. - Description *string `json:"description,omitempty"` - - - // Provider - PureCloud provider of the integration type. - Provider *string `json:"provider,omitempty"` - - - // Category - Category describing the integration type. - Category *string `json:"category,omitempty"` - - - // Images - Collection of logos. - Images *[]Userimage `json:"images,omitempty"` - - - // ConfigPropertiesSchemaUri - URI of the schema describing the key-value properties needed to configure an integration of this type. - ConfigPropertiesSchemaUri *string `json:"configPropertiesSchemaUri,omitempty"` - - - // ConfigAdvancedSchemaUri - URI of the schema describing the advanced JSON document needed to configure an integration of this type. - ConfigAdvancedSchemaUri *string `json:"configAdvancedSchemaUri,omitempty"` - - - // HelpUri - URI of a page with more information about the integration type - HelpUri *string `json:"helpUri,omitempty"` - - - // TermsOfServiceUri - URI of a page with terms and conditions for the integration type - TermsOfServiceUri *string `json:"termsOfServiceUri,omitempty"` - - - // VendorName - Name of the vendor of this integration type - VendorName *string `json:"vendorName,omitempty"` - - - // VendorWebsiteUri - URI of the vendor's website - VendorWebsiteUri *string `json:"vendorWebsiteUri,omitempty"` - - - // MarketplaceUri - URI of the marketplace listing for this integration type - MarketplaceUri *string `json:"marketplaceUri,omitempty"` - - - // FaqUri - URI of frequently asked questions about the integration type - FaqUri *string `json:"faqUri,omitempty"` - - - // PrivacyPolicyUri - URI of a privacy policy for users of the integration type - PrivacyPolicyUri *string `json:"privacyPolicyUri,omitempty"` - - - // SupportContactUri - URI for vendor support - SupportContactUri *string `json:"supportContactUri,omitempty"` - - - // SalesContactUri - URI for vendor sales information - SalesContactUri *string `json:"salesContactUri,omitempty"` - - - // HelpLinks - List of links to additional help resources - HelpLinks *[]Helplink `json:"helpLinks,omitempty"` - - - // Credentials - Map of credentials for integrations of this type. The key is the name of a credential that can be provided in the credentials property of the integration configuration. - Credentials *map[string]Credentialspecification `json:"credentials,omitempty"` - - - // NonInstallable - Indicates if the integration type is installable or not. - NonInstallable *bool `json:"nonInstallable,omitempty"` - - - // MaxInstances - The maximum number of integration instances allowable for this integration type - MaxInstances *int32 `json:"maxInstances,omitempty"` - - - // UserPermissions - List of permissions required to permit user access to the integration type. - UserPermissions *[]string `json:"userPermissions,omitempty"` - - - // VendorOAuthClientIds - List of OAuth Client IDs that must be authorized when the integration is created. - VendorOAuthClientIds *[]string `json:"vendorOAuthClientIds,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationtype) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/integrationtypeentitylisting.go b/build/platformclientv2/integrationtypeentitylisting.go deleted file mode 100644 index 0e8c8b23b..000000000 --- a/build/platformclientv2/integrationtypeentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Integrationtypeentitylisting -type Integrationtypeentitylisting struct { - // Entities - Entities *[]Integrationtype `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Integrationtypeentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/interactionstatsalert.go b/build/platformclientv2/interactionstatsalert.go deleted file mode 100644 index fed70d34c..000000000 --- a/build/platformclientv2/interactionstatsalert.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Interactionstatsalert -type Interactionstatsalert struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name of the rule that generated the alert - Name *string `json:"name,omitempty"` - - - // Dimension - The dimension of concern. - Dimension *string `json:"dimension,omitempty"` - - - // DimensionValue - The value of the dimension. - DimensionValue *string `json:"dimensionValue,omitempty"` - - - // Metric - The metric to be assessed. - Metric *string `json:"metric,omitempty"` - - - // MediaType - The media type. - MediaType *string `json:"mediaType,omitempty"` - - - // NumericRange - The comparison descriptor used against the metric's value. - NumericRange *string `json:"numericRange,omitempty"` - - - // Statistic - The statistic of concern for the metric. - Statistic *string `json:"statistic,omitempty"` - - - // Value - The threshold value. - Value *float64 `json:"value,omitempty"` - - - // RuleId - The id of the rule. - RuleId *string `json:"ruleId,omitempty"` - - - // Unread - Indicates if the alert has been read. - Unread *bool `json:"unread,omitempty"` - - - // StartDate - The date/time the alert was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - The date/time the owning rule exiting in alarm status. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndDate *time.Time `json:"endDate,omitempty"` - - - // NotificationUsers - The ids of users who were notified of alarm state change. - NotificationUsers *[]User `json:"notificationUsers,omitempty"` - - - // AlertTypes - A collection of notification methods. - AlertTypes *[]string `json:"alertTypes,omitempty"` - - - // RuleUri - RuleUri *string `json:"ruleUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Interactionstatsalert) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/interactionstatsalertcontainer.go b/build/platformclientv2/interactionstatsalertcontainer.go deleted file mode 100644 index 26ca3ed79..000000000 --- a/build/platformclientv2/interactionstatsalertcontainer.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Interactionstatsalertcontainer -type Interactionstatsalertcontainer struct { - // Entities - Entities *[]Interactionstatsalert `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Interactionstatsalertcontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/interactionstatsrule.go b/build/platformclientv2/interactionstatsrule.go deleted file mode 100644 index 930900f70..000000000 --- a/build/platformclientv2/interactionstatsrule.go +++ /dev/null @@ -1,69 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Interactionstatsrule -type Interactionstatsrule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name of the rule - Name *string `json:"name,omitempty"` - - - // Dimension - The dimension of concern. - Dimension *string `json:"dimension,omitempty"` - - - // DimensionValue - The value of the dimension. - DimensionValue *string `json:"dimensionValue,omitempty"` - - - // Metric - The metric to be assessed. - Metric *string `json:"metric,omitempty"` - - - // MediaType - The media type. - MediaType *string `json:"mediaType,omitempty"` - - - // NumericRange - The comparison descriptor used against the metric's value. - NumericRange *string `json:"numericRange,omitempty"` - - - // Statistic - The statistic of concern for the metric. - Statistic *string `json:"statistic,omitempty"` - - - // Value - The threshold value. - Value *float64 `json:"value,omitempty"` - - - // Enabled - Indicates if the rule is enabled. - Enabled *bool `json:"enabled,omitempty"` - - - // InAlarm - Indicates if the rule is in alarm state. - InAlarm *bool `json:"inAlarm,omitempty"` - - - // NotificationUsers - The ids of users who will be notified of alarm state change. - NotificationUsers *[]User `json:"notificationUsers,omitempty"` - - - // AlertTypes - A collection of notification methods. - AlertTypes *[]string `json:"alertTypes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Interactionstatsrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/interactionstatsrulecontainer.go b/build/platformclientv2/interactionstatsrulecontainer.go deleted file mode 100644 index 88ce62926..000000000 --- a/build/platformclientv2/interactionstatsrulecontainer.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Interactionstatsrulecontainer -type Interactionstatsrulecontainer struct { - // Entities - Entities *[]Interactionstatsrule `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Interactionstatsrulecontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradaydatagroup.go b/build/platformclientv2/intradaydatagroup.go deleted file mode 100644 index c980055a5..000000000 --- a/build/platformclientv2/intradaydatagroup.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradaydatagroup -type Intradaydatagroup struct { - // MediaType - The media type associated with this intraday group - MediaType *string `json:"mediaType,omitempty"` - - - // ForecastDataPerInterval - Forecast data for this date range - ForecastDataPerInterval *[]Intradayforecastdata `json:"forecastDataPerInterval,omitempty"` - - - // ScheduleDataPerInterval - Schedule data for this date range - ScheduleDataPerInterval *[]Intradayscheduledata `json:"scheduleDataPerInterval,omitempty"` - - - // HistoricalAgentDataPerInterval - Historical agent data for this date range - HistoricalAgentDataPerInterval *[]Intradayhistoricalagentdata `json:"historicalAgentDataPerInterval,omitempty"` - - - // HistoricalQueueDataPerInterval - Historical queue data for this date range - HistoricalQueueDataPerInterval *[]Intradayhistoricalqueuedata `json:"historicalQueueDataPerInterval,omitempty"` - - - // PerformancePredictionAgentDataPerInterval - Performance prediction data for this date range - PerformancePredictionAgentDataPerInterval *[]Intradayperformancepredictionagentdata `json:"performancePredictionAgentDataPerInterval,omitempty"` - - - // PerformancePredictionQueueDataPerInterval - Performance prediction data for this date range - PerformancePredictionQueueDataPerInterval *[]Intradayperformancepredictionqueuedata `json:"performancePredictionQueueDataPerInterval,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradaydatagroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayforecastdata.go b/build/platformclientv2/intradayforecastdata.go deleted file mode 100644 index 170b4c4c1..000000000 --- a/build/platformclientv2/intradayforecastdata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayforecastdata -type Intradayforecastdata struct { - // Offered - The number of interactions routed into the queue for the given media type(s) for an agent to answer - Offered *float64 `json:"offered,omitempty"` - - - // AverageTalkTimeSeconds - The average time in seconds an agent spends interacting with a customer - AverageTalkTimeSeconds *float64 `json:"averageTalkTimeSeconds,omitempty"` - - - // AverageAfterCallWorkSeconds - The average time in seconds spent in after-call work. After-call work is the work that an agent performs immediately following an interaction - AverageAfterCallWorkSeconds *float64 `json:"averageAfterCallWorkSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayforecastdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayhistoricalagentdata.go b/build/platformclientv2/intradayhistoricalagentdata.go deleted file mode 100644 index 5ff86623f..000000000 --- a/build/platformclientv2/intradayhistoricalagentdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayhistoricalagentdata -type Intradayhistoricalagentdata struct { - // OnQueueTimeSeconds - The total on-queue time in seconds for all agents in this group - OnQueueTimeSeconds *float64 `json:"onQueueTimeSeconds,omitempty"` - - - // InteractingTimeSeconds - The total time spent interacting in seconds for all agents in this group - InteractingTimeSeconds *float64 `json:"interactingTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayhistoricalagentdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayhistoricalqueuedata.go b/build/platformclientv2/intradayhistoricalqueuedata.go deleted file mode 100644 index f7cc07172..000000000 --- a/build/platformclientv2/intradayhistoricalqueuedata.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayhistoricalqueuedata -type Intradayhistoricalqueuedata struct { - // Offered - The number of interactions routed into the queue for the given media type(s) for an agent to answer - Offered *int32 `json:"offered,omitempty"` - - - // Completed - The number of interactions completed - Completed *int32 `json:"completed,omitempty"` - - - // Answered - The number of interactions answered by an agent in a given period - Answered *int32 `json:"answered,omitempty"` - - - // Abandoned - The number of customers who disconnect before connecting with an agent - Abandoned *int32 `json:"abandoned,omitempty"` - - - // AverageTalkTimeSeconds - The average time in seconds an agent spends interacting with a customer per talk segment for a defined period of time - AverageTalkTimeSeconds *float64 `json:"averageTalkTimeSeconds,omitempty"` - - - // AverageAfterCallWorkSeconds - The average time in seconds spent in after-call work. After-call work is the work that an agent performs immediately following an interaction - AverageAfterCallWorkSeconds *float64 `json:"averageAfterCallWorkSeconds,omitempty"` - - - // ServiceLevelPercent - Percent of interactions answered in X seconds, where X is the service level objective configured in the service goal group matching this intraday group - ServiceLevelPercent *float64 `json:"serviceLevelPercent,omitempty"` - - - // AverageSpeedOfAnswerSeconds - The average time in seconds it takes to answer an interaction once the interaction becomes available to be routed - AverageSpeedOfAnswerSeconds *float64 `json:"averageSpeedOfAnswerSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayhistoricalqueuedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradaymetric.go b/build/platformclientv2/intradaymetric.go deleted file mode 100644 index 91798b47c..000000000 --- a/build/platformclientv2/intradaymetric.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradaymetric -type Intradaymetric struct { - // Category - The metric category - Category *string `json:"category,omitempty"` - - - // Version - The current version id for this metric category - Version *string `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradaymetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayperformancepredictionagentdata.go b/build/platformclientv2/intradayperformancepredictionagentdata.go deleted file mode 100644 index 756a63cc6..000000000 --- a/build/platformclientv2/intradayperformancepredictionagentdata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayperformancepredictionagentdata -type Intradayperformancepredictionagentdata struct { - // InteractingTimeSeconds - The total time spent interacting in seconds for all agents in this group - InteractingTimeSeconds *float64 `json:"interactingTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayperformancepredictionagentdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayperformancepredictionqueuedata.go b/build/platformclientv2/intradayperformancepredictionqueuedata.go deleted file mode 100644 index b7d10239d..000000000 --- a/build/platformclientv2/intradayperformancepredictionqueuedata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayperformancepredictionqueuedata -type Intradayperformancepredictionqueuedata struct { - // ServiceLevelPercent - Predicted percent of interactions answered in X seconds, where X is the service level objective configured in the service goal group matching this intraday group - ServiceLevelPercent *float64 `json:"serviceLevelPercent,omitempty"` - - - // AverageSpeedOfAnswerSeconds - Predicted average time in seconds it takes to answer an interaction once the interaction becomes available to be routed - AverageSpeedOfAnswerSeconds *float64 `json:"averageSpeedOfAnswerSeconds,omitempty"` - - - // NumberOfInteractions - Predicted number of interactions - NumberOfInteractions *float64 `json:"numberOfInteractions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayperformancepredictionqueuedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayquerydatacommand.go b/build/platformclientv2/intradayquerydatacommand.go deleted file mode 100644 index 15dac1673..000000000 --- a/build/platformclientv2/intradayquerydatacommand.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Intradayquerydatacommand -type Intradayquerydatacommand struct { - // StartDate - Start date of the requested date range in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - End date of the requested date range in ISO-8601 format. Must be within the same 7 day schedule week as defined by the management unit's start day of week - EndDate *time.Time `json:"endDate,omitempty"` - - - // Metrics - The metrics to validate - Metrics *[]Intradaymetric `json:"metrics,omitempty"` - - - // QueueIds - The queue IDs for which to fetch data. Omitting or passing an empty list will return all available queues - QueueIds *[]string `json:"queueIds,omitempty"` - - - // IntervalLengthMinutes - The period/interval for which to aggregate the data. Optional, defaults to 15 - IntervalLengthMinutes *int32 `json:"intervalLengthMinutes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayquerydatacommand) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayqueue.go b/build/platformclientv2/intradayqueue.go deleted file mode 100644 index eabc2da58..000000000 --- a/build/platformclientv2/intradayqueue.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayqueue -type Intradayqueue struct { - // Id - Queue ID - Id *string `json:"id,omitempty"` - - - // Name - Queue name - Name *string `json:"name,omitempty"` - - - // MediaTypes - The media types valid for this queue as defined by the service goal groups in this management unit - MediaTypes *[]string `json:"mediaTypes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayqueue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayresponse.go b/build/platformclientv2/intradayresponse.go deleted file mode 100644 index 5924445eb..000000000 --- a/build/platformclientv2/intradayresponse.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Intradayresponse -type Intradayresponse struct { - // StartDate - The start of the date range for which this data applies. This is also the start reference point for the intervals represented in the various arrays. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - The end of the date range for which this data applies. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndDate *time.Time `json:"endDate,omitempty"` - - - // IntervalLengthMinutes - The aggregation period in minutes, which determines the interval duration of the returned data - IntervalLengthMinutes *int32 `json:"intervalLengthMinutes,omitempty"` - - - // NumberOfIntervals - The total number of time intervals represented by this data - NumberOfIntervals *int32 `json:"numberOfIntervals,omitempty"` - - - // Metrics - The metrics to which this data corresponds - Metrics *[]Intradaymetric `json:"metrics,omitempty"` - - - // NoDataReason - If not null, the reason there was no data for the request - NoDataReason *string `json:"noDataReason,omitempty"` - - - // QueueIds - The IDs of the queues this data corresponds to - QueueIds *[]string `json:"queueIds,omitempty"` - - - // IntradayDataGroupings - Intraday data grouped by a single media type and set of queue IDs - IntradayDataGroupings *[]Intradaydatagroup `json:"intradayDataGroupings,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/intradayscheduledata.go b/build/platformclientv2/intradayscheduledata.go deleted file mode 100644 index cd132cb97..000000000 --- a/build/platformclientv2/intradayscheduledata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Intradayscheduledata -type Intradayscheduledata struct { - // OnQueueTimeSeconds - The total scheduled on-queue time in seconds for all agents in this group - OnQueueTimeSeconds *int32 `json:"onQueueTimeSeconds,omitempty"` - - - // ScheduledTimeSeconds - The total scheduled time in seconds for all agents in this group - ScheduledTimeSeconds *int32 `json:"scheduledTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Intradayscheduledata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ipaddressrange.go b/build/platformclientv2/ipaddressrange.go deleted file mode 100644 index 10f408584..000000000 --- a/build/platformclientv2/ipaddressrange.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ipaddressrange -type Ipaddressrange struct { - // Cidr - Cidr *string `json:"cidr,omitempty"` - - - // Service - Service *string `json:"service,omitempty"` - - - // Region - Region *string `json:"region,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ipaddressrange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ipaddressrangelisting.go b/build/platformclientv2/ipaddressrangelisting.go deleted file mode 100644 index 3fb73113b..000000000 --- a/build/platformclientv2/ipaddressrangelisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ipaddressrangelisting -type Ipaddressrangelisting struct { - // Entities - Entities *[]Ipaddressrange `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ipaddressrangelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ivr.go b/build/platformclientv2/ivr.go deleted file mode 100644 index 60f1f99f5..000000000 --- a/build/platformclientv2/ivr.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Ivr - Defines the phone numbers, operating hours, and the Architect flows to execute for an IVR. -type Ivr struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Dnis - The phone number(s) to contact the IVR by. Each phone number must be unique and not in use by another resource. For example, a user and an iVR cannot have the same phone number. - Dnis *[]string `json:"dnis,omitempty"` - - - // OpenHoursFlow - The Architect flow to execute during the hours an organization is open. - OpenHoursFlow *Domainentityref `json:"openHoursFlow,omitempty"` - - - // ClosedHoursFlow - The Architect flow to execute during the hours an organization is closed. - ClosedHoursFlow *Domainentityref `json:"closedHoursFlow,omitempty"` - - - // HolidayHoursFlow - The Architect flow to execute during an organization's holiday hours. - HolidayHoursFlow *Domainentityref `json:"holidayHoursFlow,omitempty"` - - - // ScheduleGroup - The schedule group defining the open and closed hours for an organization. If this is provided, an open flow and a closed flow must be specified as well. - ScheduleGroup *Domainentityref `json:"scheduleGroup,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ivr) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ivrentitylisting.go b/build/platformclientv2/ivrentitylisting.go deleted file mode 100644 index 5b401a894..000000000 --- a/build/platformclientv2/ivrentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ivrentitylisting -type Ivrentitylisting struct { - // Entities - Entities *[]Ivr `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ivrentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/journeyaction.go b/build/platformclientv2/journeyaction.go deleted file mode 100644 index cc598b5b8..000000000 --- a/build/platformclientv2/journeyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Journeyaction -type Journeyaction struct { - // Id - The ID of an action from the Journey System (an action is spawned from an actionMap) - Id *string `json:"id,omitempty"` - - - // ActionMap - Details about the action map from the Journey System which triggered this action - ActionMap *Journeyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Journeyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/journeyactionmap.go b/build/platformclientv2/journeyactionmap.go deleted file mode 100644 index 96d420571..000000000 --- a/build/platformclientv2/journeyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Journeyactionmap -type Journeyactionmap struct { - // Id - The ID of the actionMap in the Journey System which triggered this action - Id *string `json:"id,omitempty"` - - - // Version - The version number of the actionMap in the Journey System at the time this action was triggered - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Journeyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/journeycontext.go b/build/platformclientv2/journeycontext.go deleted file mode 100644 index f6d7f3dd8..000000000 --- a/build/platformclientv2/journeycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Journeycontext -type Journeycontext struct { - // Customer - A subset of the Journey System's customer data at a point-in-time (for external linkage and internal usage/context) - Customer *Journeycustomer `json:"customer,omitempty"` - - - // CustomerSession - A subset of the Journey System's tracked customer session data at a point-in-time (for external linkage and internal usage/context) - CustomerSession *Journeycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - A subset of the Journey System's action data relevant to a part of a conversation (for external linkage and internal usage/context) - TriggeringAction *Journeyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Journeycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/journeycustomer.go b/build/platformclientv2/journeycustomer.go deleted file mode 100644 index 0f53127db..000000000 --- a/build/platformclientv2/journeycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Journeycustomer -type Journeycustomer struct { - // Id - An ID of a customer within the Journey System at a point-in-time. Note that a customer entity can have multiple customerIds based on the stitching process. Depending on the context within the PureCloud conversation, this may or may not be mutable. - Id *string `json:"id,omitempty"` - - - // IdType - The type of the customerId within the Journey System (e.g. cookie). - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Journeycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/journeycustomersession.go b/build/platformclientv2/journeycustomersession.go deleted file mode 100644 index c5c320e27..000000000 --- a/build/platformclientv2/journeycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Journeycustomersession -type Journeycustomersession struct { - // Id - An ID of a Customer/User's session within the Journey System at a point-in-time - Id *string `json:"id,omitempty"` - - - // VarType - The type of the Customer/User's session within the Journey System (e.g. web, app) - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Journeycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/jsonnode.go b/build/platformclientv2/jsonnode.go deleted file mode 100644 index 6080ae78a..000000000 --- a/build/platformclientv2/jsonnode.go +++ /dev/null @@ -1,97 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Jsonnode -type Jsonnode struct { - // NodeType - NodeType *string `json:"nodeType,omitempty"` - - - // Float - Float *bool `json:"float,omitempty"` - - - // Number - Number *bool `json:"number,omitempty"` - - - // Boolean - Boolean *bool `json:"boolean,omitempty"` - - - // Object - Object *bool `json:"object,omitempty"` - - - // ValueNode - ValueNode *bool `json:"valueNode,omitempty"` - - - // ContainerNode - ContainerNode *bool `json:"containerNode,omitempty"` - - - // MissingNode - MissingNode *bool `json:"missingNode,omitempty"` - - - // IntegralNumber - IntegralNumber *bool `json:"integralNumber,omitempty"` - - - // FloatingPointNumber - FloatingPointNumber *bool `json:"floatingPointNumber,omitempty"` - - - // Short - Short *bool `json:"short,omitempty"` - - - // Int - Int *bool `json:"int,omitempty"` - - - // Long - Long *bool `json:"long,omitempty"` - - - // Double - Double *bool `json:"double,omitempty"` - - - // BigDecimal - BigDecimal *bool `json:"bigDecimal,omitempty"` - - - // BigInteger - BigInteger *bool `json:"bigInteger,omitempty"` - - - // Textual - Textual *bool `json:"textual,omitempty"` - - - // Binary - Binary *bool `json:"binary,omitempty"` - - - // Pojo - Pojo *bool `json:"pojo,omitempty"` - - - // Array - Array *bool `json:"array,omitempty"` - - - // Null - Null *bool `json:"null,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Jsonnode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/jsonnodesearchresponse.go b/build/platformclientv2/jsonnodesearchresponse.go deleted file mode 100644 index 633410731..000000000 --- a/build/platformclientv2/jsonnodesearchresponse.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Jsonnodesearchresponse -type Jsonnodesearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *Arraynode `json:"results,omitempty"` - - - // Aggregations - Aggregations *Arraynode `json:"aggregations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Jsonnodesearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/jsonschemadocument.go b/build/platformclientv2/jsonschemadocument.go deleted file mode 100644 index 229bfbf8f..000000000 --- a/build/platformclientv2/jsonschemadocument.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Jsonschemadocument - A JSON Schema document. -type Jsonschemadocument struct { - // Id - Id *string `json:"id,omitempty"` - - - // Schema - Schema *string `json:"$schema,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Required - Required *[]string `json:"required,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Jsonschemadocument) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/keyrotationschedule.go b/build/platformclientv2/keyrotationschedule.go deleted file mode 100644 index 7e27a1b1d..000000000 --- a/build/platformclientv2/keyrotationschedule.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Keyrotationschedule -type Keyrotationschedule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Period - Value to set schedule to - Period *string `json:"period,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Keyrotationschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/keyword.go b/build/platformclientv2/keyword.go deleted file mode 100644 index 881ac81f5..000000000 --- a/build/platformclientv2/keyword.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Keyword -type Keyword struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Phrase - The word or phrase which is being looked for with speech recognition. - Phrase *string `json:"phrase,omitempty"` - - - // Confidence - A sensitivity threshold that can be increased to lower false positives or decreased to reduce false negatives. - Confidence *int32 `json:"confidence,omitempty"` - - - // AgentScoreModifier - A modifier to the evaluation score when the phrase is spotted in the agent channel - AgentScoreModifier *int32 `json:"agentScoreModifier,omitempty"` - - - // CustomerScoreModifier - A modifier to the evaluation score when the phrase is spotted in the customer channel - CustomerScoreModifier *int32 `json:"customerScoreModifier,omitempty"` - - - // AlternateSpellings - Other spellings of the phrase that can be added to reduce missed spots (false negatives). - AlternateSpellings *[]string `json:"alternateSpellings,omitempty"` - - - // Pronunciations - The phonetic spellings for the phrase and alternate spellings. - Pronunciations *[]string `json:"pronunciations,omitempty"` - - - // AntiWords - Words that are similar to the phrase but not desired. Added to reduce incorrect spots (false positives). - AntiWords *[]string `json:"antiWords,omitempty"` - - - // AntiPronunciations - The phonetic spellings for the antiWords. - AntiPronunciations *[]string `json:"antiPronunciations,omitempty"` - - - // SpotabilityIndex - A prediction of how easy it is to unambiguously spot the keyword within its language based on spelling. - SpotabilityIndex *float64 `json:"spotabilityIndex,omitempty"` - - - // MarginOfError - MarginOfError *float64 `json:"marginOfError,omitempty"` - - - // Pronunciation - Pronunciation *string `json:"pronunciation,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Keyword) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/keywordset.go b/build/platformclientv2/keywordset.go deleted file mode 100644 index bbc8bcac8..000000000 --- a/build/platformclientv2/keywordset.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Keywordset -type Keywordset struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Queues - Queues *[]Queue `json:"queues,omitempty"` - - - // Language - Language code, such as 'en-US' - Language *string `json:"language,omitempty"` - - - // Agents - Agents *[]User `json:"agents,omitempty"` - - - // Keywords - The list of keywords to be used for keyword spotting. - Keywords *[]Keyword `json:"keywords,omitempty"` - - - // ParticipantPurposes - The types of participants to use keyword spotting on. - ParticipantPurposes *[]string `json:"participantPurposes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Keywordset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/keywordsetentitylisting.go b/build/platformclientv2/keywordsetentitylisting.go deleted file mode 100644 index 7635a5685..000000000 --- a/build/platformclientv2/keywordsetentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Keywordsetentitylisting -type Keywordsetentitylisting struct { - // Entities - Entities *[]Keywordset `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Keywordsetentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxonheartbeatalertstopicheartbeatalert.go b/build/platformclientv2/klaxonheartbeatalertstopicheartbeatalert.go deleted file mode 100644 index ed1584c36..000000000 --- a/build/platformclientv2/klaxonheartbeatalertstopicheartbeatalert.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Klaxonheartbeatalertstopicheartbeatalert -type Klaxonheartbeatalertstopicheartbeatalert struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SenderId - SenderId *string `json:"senderId,omitempty"` - - - // HeartBeatTimeoutInMinutes - HeartBeatTimeoutInMinutes *float32 `json:"heartBeatTimeoutInMinutes,omitempty"` - - - // RuleId - RuleId *string `json:"ruleId,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - - - // NotificationUsers - NotificationUsers *[]Klaxonheartbeatalertstopicnotificationuser `json:"notificationUsers,omitempty"` - - - // AlertTypes - AlertTypes *[]string `json:"alertTypes,omitempty"` - - - // RuleType - RuleType *string `json:"ruleType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxonheartbeatalertstopicheartbeatalert) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxonheartbeatalertstopicnotificationuser.go b/build/platformclientv2/klaxonheartbeatalertstopicnotificationuser.go deleted file mode 100644 index ab5ff127f..000000000 --- a/build/platformclientv2/klaxonheartbeatalertstopicnotificationuser.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Klaxonheartbeatalertstopicnotificationuser -type Klaxonheartbeatalertstopicnotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // DisplayName - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxonheartbeatalertstopicnotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxonheartbeatrulestopicheartbeatrule.go b/build/platformclientv2/klaxonheartbeatrulestopicheartbeatrule.go deleted file mode 100644 index 655b68355..000000000 --- a/build/platformclientv2/klaxonheartbeatrulestopicheartbeatrule.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Klaxonheartbeatrulestopicheartbeatrule -type Klaxonheartbeatrulestopicheartbeatrule struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SenderId - SenderId *string `json:"senderId,omitempty"` - - - // HeartBeatTimeoutInMinutes - HeartBeatTimeoutInMinutes *float32 `json:"heartBeatTimeoutInMinutes,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // InAlarm - InAlarm *bool `json:"inAlarm,omitempty"` - - - // NotificationUsers - NotificationUsers *[]Klaxonheartbeatrulestopicnotificationuser `json:"notificationUsers,omitempty"` - - - // AlertTypes - AlertTypes *[]string `json:"alertTypes,omitempty"` - - - // RuleType - RuleType *string `json:"ruleType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxonheartbeatrulestopicheartbeatrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxonheartbeatrulestopicnotificationuser.go b/build/platformclientv2/klaxonheartbeatrulestopicnotificationuser.go deleted file mode 100644 index 6a36a373c..000000000 --- a/build/platformclientv2/klaxonheartbeatrulestopicnotificationuser.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Klaxonheartbeatrulestopicnotificationuser -type Klaxonheartbeatrulestopicnotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // DisplayName - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxonheartbeatrulestopicnotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxoninteractionstatsalertstopicinteractionstatalert.go b/build/platformclientv2/klaxoninteractionstatsalertstopicinteractionstatalert.go deleted file mode 100644 index 3c1312188..000000000 --- a/build/platformclientv2/klaxoninteractionstatsalertstopicinteractionstatalert.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Klaxoninteractionstatsalertstopicinteractionstatalert -type Klaxoninteractionstatsalertstopicinteractionstatalert struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // RuleId - RuleId *string `json:"ruleId,omitempty"` - - - // Dimension - Dimension *string `json:"dimension,omitempty"` - - - // DimensionValue - DimensionValue *string `json:"dimensionValue,omitempty"` - - - // DimensionValueName - DimensionValueName *string `json:"dimensionValueName,omitempty"` - - - // Metric - Metric *string `json:"metric,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // NumericRange - NumericRange *string `json:"numericRange,omitempty"` - - - // Statistic - Statistic *string `json:"statistic,omitempty"` - - - // Value - Value *float32 `json:"value,omitempty"` - - - // Unread - Unread *bool `json:"unread,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - - - // NotificationUsers - NotificationUsers *[]Klaxoninteractionstatsalertstopicnotificationuser `json:"notificationUsers,omitempty"` - - - // AlertTypes - AlertTypes *[]string `json:"alertTypes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxoninteractionstatsalertstopicinteractionstatalert) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxoninteractionstatsalertstopicnotificationuser.go b/build/platformclientv2/klaxoninteractionstatsalertstopicnotificationuser.go deleted file mode 100644 index b644d6eff..000000000 --- a/build/platformclientv2/klaxoninteractionstatsalertstopicnotificationuser.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Klaxoninteractionstatsalertstopicnotificationuser -type Klaxoninteractionstatsalertstopicnotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // DisplayName - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxoninteractionstatsalertstopicnotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxoninteractionstatsrulestopicinteractionstatrule.go b/build/platformclientv2/klaxoninteractionstatsrulestopicinteractionstatrule.go deleted file mode 100644 index 84b9a11f4..000000000 --- a/build/platformclientv2/klaxoninteractionstatsrulestopicinteractionstatrule.go +++ /dev/null @@ -1,69 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Klaxoninteractionstatsrulestopicinteractionstatrule -type Klaxoninteractionstatsrulestopicinteractionstatrule struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Dimension - Dimension *string `json:"dimension,omitempty"` - - - // DimensionValue - DimensionValue *string `json:"dimensionValue,omitempty"` - - - // DimensionValueName - DimensionValueName *string `json:"dimensionValueName,omitempty"` - - - // Metric - Metric *string `json:"metric,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // NumericRange - NumericRange *string `json:"numericRange,omitempty"` - - - // Statistic - Statistic *string `json:"statistic,omitempty"` - - - // Value - Value *float32 `json:"value,omitempty"` - - - // InAlarm - InAlarm *bool `json:"inAlarm,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // NotificationUsers - NotificationUsers *[]Klaxoninteractionstatsrulestopicnotificationuser `json:"notificationUsers,omitempty"` - - - // AlertTypes - AlertTypes *[]string `json:"alertTypes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxoninteractionstatsrulestopicinteractionstatrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/klaxoninteractionstatsrulestopicnotificationuser.go b/build/platformclientv2/klaxoninteractionstatsrulestopicnotificationuser.go deleted file mode 100644 index 02f51735e..000000000 --- a/build/platformclientv2/klaxoninteractionstatsrulestopicnotificationuser.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Klaxoninteractionstatsrulestopicnotificationuser -type Klaxoninteractionstatsrulestopicnotificationuser struct { - // Id - Id *string `json:"id,omitempty"` - - - // DisplayName - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Klaxoninteractionstatsrulestopicnotificationuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/language.go b/build/platformclientv2/language.go deleted file mode 100644 index c6af7e478..000000000 --- a/build/platformclientv2/language.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Language -type Language struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The language name. - Name *string `json:"name,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Language) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/languageentitylisting.go b/build/platformclientv2/languageentitylisting.go deleted file mode 100644 index 5b0eda7b5..000000000 --- a/build/platformclientv2/languageentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Languageentitylisting -type Languageentitylisting struct { - // Entities - Entities *[]Language `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Languageentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/languageoverride.go b/build/platformclientv2/languageoverride.go deleted file mode 100644 index ac150a838..000000000 --- a/build/platformclientv2/languageoverride.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Languageoverride -type Languageoverride struct { - // Language - The language code of the language being overridden - Language *string `json:"language,omitempty"` - - - // Engine - The ID of the TTS engine to use for this language override - Engine *string `json:"engine,omitempty"` - - - // Voice - The ID of the voice to use for this language override. The voice must be supported by the chosen engine. - Voice *string `json:"voice,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Languageoverride) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/languagereference.go b/build/platformclientv2/languagereference.go deleted file mode 100644 index abebd60dc..000000000 --- a/build/platformclientv2/languagereference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Languagereference -type Languagereference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Languagereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/languagesapi.go b/build/platformclientv2/languagesapi.go deleted file mode 100644 index 48fb59443..000000000 --- a/build/platformclientv2/languagesapi.go +++ /dev/null @@ -1,746 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// LanguagesApi provides functions for API endpoints -type LanguagesApi struct { - Configuration *Configuration -} - -// NewLanguagesApi creates an API instance using the default configuration -func NewLanguagesApi() *LanguagesApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating LanguagesApi with base path: %s", strings.ToLower(config.BasePath))) - return &LanguagesApi{ - Configuration: config, - } -} - -// NewLanguagesApiWithConfig creates an API instance using the provided configuration -func NewLanguagesApiWithConfig(config *Configuration) *LanguagesApi { - config.Debugf("Creating LanguagesApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &LanguagesApi{ - Configuration: config, - } -} - -// DeleteLanguage invokes DELETE /api/v2/languages/{languageId} -// -// Delete Language (Deprecated) -// -// This endpoint is deprecated. It has been moved to /routing/languages/{languageId} -func (a LanguagesApi) DeleteLanguage(languageId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages/{languageId}" - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return nil, errors.New("Missing required parameter 'languageId' when calling LanguagesApi->DeleteLanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingLanguage invokes DELETE /api/v2/routing/languages/{languageId} -// -// Delete Language -// -// -func (a LanguagesApi) DeleteRoutingLanguage(languageId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/languages/{languageId}" - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return nil, errors.New("Missing required parameter 'languageId' when calling LanguagesApi->DeleteRoutingLanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetLanguage invokes GET /api/v2/languages/{languageId} -// -// Get language (Deprecated) -// -// This endpoint is deprecated. It has been moved to /routing/languages/{languageId} -func (a LanguagesApi) GetLanguage(languageId string) (*Language, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages/{languageId}" - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - defaultReturn := new(Language) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageId' when calling LanguagesApi->GetLanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Language - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLanguages invokes GET /api/v2/languages -// -// Get the list of supported languages. (Deprecated) -// -// This endpoint is deprecated. It has been moved to /routing/languages -func (a LanguagesApi) GetLanguages(pageSize int32, pageNumber int32, sortOrder string, name string) (*Languageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages" - defaultReturn := new(Languageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Languageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLanguagesTranslations invokes GET /api/v2/languages/translations -// -// Get all available languages for translation -// -// -func (a LanguagesApi) GetLanguagesTranslations() (*Availabletranslations, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages/translations" - defaultReturn := new(Availabletranslations) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Availabletranslations - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLanguagesTranslationsBuiltin invokes GET /api/v2/languages/translations/builtin -// -// Get the builtin translation for a language -// -// -func (a LanguagesApi) GetLanguagesTranslationsBuiltin(language string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages/translations/builtin" - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'language' is set - if &language == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'language' when calling LanguagesApi->GetLanguagesTranslationsBuiltin") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["language"] = a.Configuration.APIClient.ParameterToString(language, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLanguagesTranslationsOrganization invokes GET /api/v2/languages/translations/organization -// -// Get effective translation for an organization by language -// -// -func (a LanguagesApi) GetLanguagesTranslationsOrganization(language string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages/translations/organization" - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'language' is set - if &language == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'language' when calling LanguagesApi->GetLanguagesTranslationsOrganization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["language"] = a.Configuration.APIClient.ParameterToString(language, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLanguagesTranslationsUser invokes GET /api/v2/languages/translations/users/{userId} -// -// Get effective language translation for a user -// -// -func (a LanguagesApi) GetLanguagesTranslationsUser(userId string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages/translations/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling LanguagesApi->GetLanguagesTranslationsUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingLanguage invokes GET /api/v2/routing/languages/{languageId} -// -// Get language -// -// -func (a LanguagesApi) GetRoutingLanguage(languageId string) (*Language, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/languages/{languageId}" - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - defaultReturn := new(Language) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageId' when calling LanguagesApi->GetRoutingLanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Language - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLanguages invokes POST /api/v2/languages -// -// Create Language (Deprecated) -// -// This endpoint is deprecated. It has been moved to /routing/languages -func (a LanguagesApi) PostLanguages(body Language) (*Language, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/languages" - defaultReturn := new(Language) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling LanguagesApi->PostLanguages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Language - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/lexbot.go b/build/platformclientv2/lexbot.go deleted file mode 100644 index eeee3d8c2..000000000 --- a/build/platformclientv2/lexbot.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lexbot -type Lexbot struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - A description of the Lex bot - Description *string `json:"description,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lexbot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lexbotalias.go b/build/platformclientv2/lexbotalias.go deleted file mode 100644 index d04a8ce34..000000000 --- a/build/platformclientv2/lexbotalias.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lexbotalias -type Lexbotalias struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Bot - The Lex bot this is an alias for - Bot *Lexbot `json:"bot,omitempty"` - - - // BotVersion - The version of the Lex bot this alias points at - BotVersion *string `json:"botVersion,omitempty"` - - - // Status - The status of the Lex bot alias - Status *string `json:"status,omitempty"` - - - // FailureReason - If the status is FAILED, Amazon Lex explains why it failed to build the bot - FailureReason *string `json:"failureReason,omitempty"` - - - // Language - The target language of the Lex bot - Language *string `json:"language,omitempty"` - - - // Intents - An array of Intents associated with this bot alias - Intents *[]Lexintent `json:"intents,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lexbotalias) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lexbotaliasentitylisting.go b/build/platformclientv2/lexbotaliasentitylisting.go deleted file mode 100644 index 91aee79a7..000000000 --- a/build/platformclientv2/lexbotaliasentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lexbotaliasentitylisting -type Lexbotaliasentitylisting struct { - // Entities - Entities *[]Lexbotalias `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lexbotaliasentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lexbotentitylisting.go b/build/platformclientv2/lexbotentitylisting.go deleted file mode 100644 index 91b6b88ce..000000000 --- a/build/platformclientv2/lexbotentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lexbotentitylisting -type Lexbotentitylisting struct { - // Entities - Entities *[]Lexbot `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lexbotentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lexintent.go b/build/platformclientv2/lexintent.go deleted file mode 100644 index 50490cf30..000000000 --- a/build/platformclientv2/lexintent.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lexintent -type Lexintent struct { - // Name - The intent name - Name *string `json:"name,omitempty"` - - - // Description - A description of the intent - Description *string `json:"description,omitempty"` - - - // Slots - An object mapping slot names to Slot objects - Slots *map[string]Lexslot `json:"slots,omitempty"` - - - // Version - The intent version - Version *string `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lexintent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lexslot.go b/build/platformclientv2/lexslot.go deleted file mode 100644 index fab1e8089..000000000 --- a/build/platformclientv2/lexslot.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lexslot -type Lexslot struct { - // Name - The slot name - Name *string `json:"name,omitempty"` - - - // Description - The slot description - Description *string `json:"description,omitempty"` - - - // VarType - The slot type - VarType *string `json:"type,omitempty"` - - - // Priority - The priority of the slot - Priority *int32 `json:"priority,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lexslot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/library.go b/build/platformclientv2/library.go deleted file mode 100644 index d84156de4..000000000 --- a/build/platformclientv2/library.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Library -type Library struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The library name. - Name *string `json:"name,omitempty"` - - - // Version - Current version for this resource. - Version *int32 `json:"version,omitempty"` - - - // CreatedBy - User that created the library. - CreatedBy *User `json:"createdBy,omitempty"` - - - // DateCreated - The date and time the response was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // ResponseType - The response type for the library. If set, only response's of this type may be added to this library. - ResponseType *string `json:"responseType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Library) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/libraryentitylisting.go b/build/platformclientv2/libraryentitylisting.go deleted file mode 100644 index b8e69ab67..000000000 --- a/build/platformclientv2/libraryentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Libraryentitylisting -type Libraryentitylisting struct { - // Entities - Entities *[]Library `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Libraryentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/licenseapi.go b/build/platformclientv2/licenseapi.go deleted file mode 100644 index 97b48216d..000000000 --- a/build/platformclientv2/licenseapi.go +++ /dev/null @@ -1,646 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// LicenseApi provides functions for API endpoints -type LicenseApi struct { - Configuration *Configuration -} - -// NewLicenseApi creates an API instance using the default configuration -func NewLicenseApi() *LicenseApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating LicenseApi with base path: %s", strings.ToLower(config.BasePath))) - return &LicenseApi{ - Configuration: config, - } -} - -// NewLicenseApiWithConfig creates an API instance using the provided configuration -func NewLicenseApiWithConfig(config *Configuration) *LicenseApi { - config.Debugf("Creating LicenseApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &LicenseApi{ - Configuration: config, - } -} - -// GetLicenseDefinition invokes GET /api/v2/license/definitions/{licenseId} -// -// Get PureCloud license definition. -// -// -func (a LicenseApi) GetLicenseDefinition(licenseId string) (*Licensedefinition, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/definitions/{licenseId}" - path = strings.Replace(path, "{licenseId}", fmt.Sprintf("%v", licenseId), -1) - defaultReturn := new(Licensedefinition) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'licenseId' is set - if &licenseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'licenseId' when calling LicenseApi->GetLicenseDefinition") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Licensedefinition - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLicenseDefinitions invokes GET /api/v2/license/definitions -// -// Get all PureCloud license definitions available for the organization. -// -// -func (a LicenseApi) GetLicenseDefinitions() ([]Licensedefinition, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/definitions" - defaultReturn := make([]Licensedefinition, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Licensedefinition - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLicenseToggle invokes GET /api/v2/license/toggles/{featureName} -// -// Get PureCloud license feature toggle value. -// -// -func (a LicenseApi) GetLicenseToggle(featureName string) (*Licenseorgtoggle, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/toggles/{featureName}" - path = strings.Replace(path, "{featureName}", fmt.Sprintf("%v", featureName), -1) - defaultReturn := new(Licenseorgtoggle) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'featureName' is set - if &featureName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'featureName' when calling LicenseApi->GetLicenseToggle") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Licenseorgtoggle - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLicenseUser invokes GET /api/v2/license/users/{userId} -// -// Get licenses for specified user. -// -// -func (a LicenseApi) GetLicenseUser(userId string) (*Licenseuser, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Licenseuser) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling LicenseApi->GetLicenseUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Licenseuser - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLicenseUsers invokes GET /api/v2/license/users -// -// Get a page of users and their licenses -// -// Retrieve a page of users in an organization along with the licenses they possess. -func (a LicenseApi) GetLicenseUsers(pageSize int32, pageNumber int32) (*Userlicensesentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/users" - defaultReturn := new(Userlicensesentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userlicensesentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLicenseInfer invokes POST /api/v2/license/infer -// -// Get a list of licenses inferred based on a list of roleIds -// -// -func (a LicenseApi) PostLicenseInfer(body []string) ([]string, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/infer" - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLicenseOrganization invokes POST /api/v2/license/organization -// -// Update the organization's license assignments in a batch. -// -// -func (a LicenseApi) PostLicenseOrganization(body Licensebatchassignmentrequest) ([]Licenseupdatestatus, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/organization" - defaultReturn := make([]Licenseupdatestatus, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Licenseupdatestatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLicenseToggle invokes POST /api/v2/license/toggles/{featureName} -// -// Switch PureCloud license feature toggle value. -// -// -func (a LicenseApi) PostLicenseToggle(featureName string) (*Licenseorgtoggle, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/toggles/{featureName}" - path = strings.Replace(path, "{featureName}", fmt.Sprintf("%v", featureName), -1) - defaultReturn := new(Licenseorgtoggle) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'featureName' is set - if &featureName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'featureName' when calling LicenseApi->PostLicenseToggle") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Licenseorgtoggle - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLicenseUsers invokes POST /api/v2/license/users -// -// Fetch user licenses in a batch. -// -// -func (a LicenseApi) PostLicenseUsers(body []string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/license/users" - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/licenseassignmentrequest.go b/build/platformclientv2/licenseassignmentrequest.go deleted file mode 100644 index 83efdabec..000000000 --- a/build/platformclientv2/licenseassignmentrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Licenseassignmentrequest -type Licenseassignmentrequest struct { - // LicenseId - The id of the license to assign/unassign. - LicenseId *string `json:"licenseId,omitempty"` - - - // UserIdsAdd - The ids of users to assign this license to. - UserIdsAdd *[]string `json:"userIdsAdd,omitempty"` - - - // UserIdsRemove - The ids of users to unassign this license from. - UserIdsRemove *[]string `json:"userIdsRemove,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Licenseassignmentrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/licensebatchassignmentrequest.go b/build/platformclientv2/licensebatchassignmentrequest.go deleted file mode 100644 index 6beeffe26..000000000 --- a/build/platformclientv2/licensebatchassignmentrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Licensebatchassignmentrequest -type Licensebatchassignmentrequest struct { - // Assignments - The list of license assignment updates to make. - Assignments *[]Licenseassignmentrequest `json:"assignments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Licensebatchassignmentrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/licensedefinition.go b/build/platformclientv2/licensedefinition.go deleted file mode 100644 index a20dc7c61..000000000 --- a/build/platformclientv2/licensedefinition.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Licensedefinition -type Licensedefinition struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Permissions - Permissions *Permissions `json:"permissions,omitempty"` - - - // Prerequisites - Prerequisites *[]Addressablelicensedefinition `json:"prerequisites,omitempty"` - - - // Comprises - Comprises *[]Licensedefinition `json:"comprises,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Licensedefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/licenseorgtoggle.go b/build/platformclientv2/licenseorgtoggle.go deleted file mode 100644 index 74af53c5d..000000000 --- a/build/platformclientv2/licenseorgtoggle.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Licenseorgtoggle -type Licenseorgtoggle struct { - // FeatureName - FeatureName *string `json:"featureName,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Licenseorgtoggle) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/licenseupdatestatus.go b/build/platformclientv2/licenseupdatestatus.go deleted file mode 100644 index 729fe06d5..000000000 --- a/build/platformclientv2/licenseupdatestatus.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Licenseupdatestatus -type Licenseupdatestatus struct { - // UserId - UserId *string `json:"userId,omitempty"` - - - // LicenseId - LicenseId *string `json:"licenseId,omitempty"` - - - // Result - Result *string `json:"result,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Licenseupdatestatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/licenseuser.go b/build/platformclientv2/licenseuser.go deleted file mode 100644 index 7e94d5f0a..000000000 --- a/build/platformclientv2/licenseuser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Licenseuser -type Licenseuser struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Licenses - Licenses *[]Licensedefinition `json:"licenses,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Licenseuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/line.go b/build/platformclientv2/line.go deleted file mode 100644 index f57833592..000000000 --- a/build/platformclientv2/line.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Line -type Line struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // EdgeGroup - EdgeGroup *Domainentityref `json:"edgeGroup,omitempty"` - - - // Template - Template *Domainentityref `json:"template,omitempty"` - - - // Site - Site *Domainentityref `json:"site,omitempty"` - - - // LineBaseSettings - LineBaseSettings *Domainentityref `json:"lineBaseSettings,omitempty"` - - - // PrimaryEdge - The primary edge associated to the line. (Deprecated) - PrimaryEdge *Edge `json:"primaryEdge,omitempty"` - - - // SecondaryEdge - The secondary edge associated to the line. (Deprecated) - SecondaryEdge *Edge `json:"secondaryEdge,omitempty"` - - - // LoggedInUser - LoggedInUser *Domainentityref `json:"loggedInUser,omitempty"` - - - // DefaultForUser - DefaultForUser *Domainentityref `json:"defaultForUser,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Line) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/linebase.go b/build/platformclientv2/linebase.go deleted file mode 100644 index ddadb5032..000000000 --- a/build/platformclientv2/linebase.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Linebase -type Linebase struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // LineMetaBase - LineMetaBase *Domainentityref `json:"lineMetaBase,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Linebase) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/linebaseentitylisting.go b/build/platformclientv2/linebaseentitylisting.go deleted file mode 100644 index f0c18c911..000000000 --- a/build/platformclientv2/linebaseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Linebaseentitylisting -type Linebaseentitylisting struct { - // Entities - Entities *[]Linebase `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Linebaseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lineentitylisting.go b/build/platformclientv2/lineentitylisting.go deleted file mode 100644 index 9f349665f..000000000 --- a/build/platformclientv2/lineentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lineentitylisting -type Lineentitylisting struct { - // Entities - Entities *[]Line `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lineentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lineid.go b/build/platformclientv2/lineid.go deleted file mode 100644 index 9bca050fc..000000000 --- a/build/platformclientv2/lineid.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lineid - User information for a Line account -type Lineid struct { - // Ids - The set of Line userIds that this person has. Each userId is specific to the Line channel that the user interacts with. - Ids *[]Lineuserid `json:"ids,omitempty"` - - - // DisplayName - The displayName of this person's account in Line - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lineid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lineintegration.go b/build/platformclientv2/lineintegration.go deleted file mode 100644 index 2273b295b..000000000 --- a/build/platformclientv2/lineintegration.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Lineintegration -type Lineintegration struct { - // Id - A unique Integration Id - Id *string `json:"id,omitempty"` - - - // Name - The name of the LINE Integration - Name *string `json:"name,omitempty"` - - - // ChannelId - The Channel Id from LINE messenger - ChannelId *string `json:"channelId,omitempty"` - - - // WebhookUri - The Webhook URI to be updated in LINE platform - WebhookUri *string `json:"webhookUri,omitempty"` - - - // Status - The status of the LINE Integration - Status *string `json:"status,omitempty"` - - - // Recipient - The recipient associated to the Line Integration. This recipient is used to associate a flow to an integration - Recipient *Domainentityref `json:"recipient,omitempty"` - - - // DateCreated - Date this Integration was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this Integration was modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User reference that created this Integration - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User reference that last modified this Integration - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lineintegration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lineintegrationentitylisting.go b/build/platformclientv2/lineintegrationentitylisting.go deleted file mode 100644 index 458c0479e..000000000 --- a/build/platformclientv2/lineintegrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lineintegrationentitylisting -type Lineintegrationentitylisting struct { - // Entities - Entities *[]Lineintegration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lineintegrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lineintegrationrequest.go b/build/platformclientv2/lineintegrationrequest.go deleted file mode 100644 index cd4fd39c2..000000000 --- a/build/platformclientv2/lineintegrationrequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lineintegrationrequest -type Lineintegrationrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the LINE Integration - Name *string `json:"name,omitempty"` - - - // ChannelId - The Channel Id from LINE messenger. New Official LINE account: To create a new official account, LINE requires a Webhook URL. It can be created without specifying Channel Id & Channel Secret. Once the Official account is created by LINE, use the update LINE Integration API to update Channel Id and Channel Secret. All other accounts: Channel Id is mandatory. (NOTE: ChannelId can only be updated if the integration is set to inactive) - ChannelId *string `json:"channelId,omitempty"` - - - // ChannelSecret - The Channel Secret from LINE messenger. New Official LINE account: To create a new official account, LINE requires a Webhook URL. It can be created without specifying Channel Id & Channel Secret. Once the Official account is created by LINE, use the update LINE Integration API to update Channel Id and Channel Secret. All other accounts: Channel Secret is mandatory. (NOTE: ChannelSecret can only be updated if the integration is set to inactive) - ChannelSecret *string `json:"channelSecret,omitempty"` - - - // SwitcherSecret - The Switcher Secret from LINE messenger. Some line official accounts are switcher functionality enabled. If the LINE account used for this integration is switcher enabled, then switcher secret is a required field. This secret can be found in your create documentation provided by LINE - SwitcherSecret *string `json:"switcherSecret,omitempty"` - - - // ServiceCode - The Service Code from LINE messenger. Only applicable to LINE Enterprise accounts. This service code can be found in your create documentation provided by LINE - ServiceCode *string `json:"serviceCode,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lineintegrationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/linestatus.go b/build/platformclientv2/linestatus.go deleted file mode 100644 index 3bdb70d5a..000000000 --- a/build/platformclientv2/linestatus.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Linestatus -type Linestatus struct { - // Id - The id of this line - Id *string `json:"id,omitempty"` - - - // Reachable - Indicates whether the edge can reach the line. - Reachable *bool `json:"reachable,omitempty"` - - - // AddressOfRecord - The line's address of record. - AddressOfRecord *string `json:"addressOfRecord,omitempty"` - - - // ContactAddresses - The addresses used to contact the line. - ContactAddresses *[]string `json:"contactAddresses,omitempty"` - - - // ReachableStateTime - The time the line entered its current reachable state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReachableStateTime *time.Time `json:"reachableStateTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Linestatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lineuserid.go b/build/platformclientv2/lineuserid.go deleted file mode 100644 index 2e2445a7d..000000000 --- a/build/platformclientv2/lineuserid.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Lineuserid - Channel-specific User ID for Line accounts -type Lineuserid struct { - // UserId - The unique channel-specific userId for the user - UserId *string `json:"userId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lineuserid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/listwrapperforecastsourcedaypointer.go b/build/platformclientv2/listwrapperforecastsourcedaypointer.go deleted file mode 100644 index 93a26cf0d..000000000 --- a/build/platformclientv2/listwrapperforecastsourcedaypointer.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Listwrapperforecastsourcedaypointer -type Listwrapperforecastsourcedaypointer struct { - // Values - Values *[]Forecastsourcedaypointer `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Listwrapperforecastsourcedaypointer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/listwrappershiftstartvariance.go b/build/platformclientv2/listwrappershiftstartvariance.go deleted file mode 100644 index a0b33be18..000000000 --- a/build/platformclientv2/listwrappershiftstartvariance.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Listwrappershiftstartvariance -type Listwrappershiftstartvariance struct { - // Values - Values *[]Shiftstartvariance `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Listwrappershiftstartvariance) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/listwrapperwfmforecastmodification.go b/build/platformclientv2/listwrapperwfmforecastmodification.go deleted file mode 100644 index 27991d8c3..000000000 --- a/build/platformclientv2/listwrapperwfmforecastmodification.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Listwrapperwfmforecastmodification -type Listwrapperwfmforecastmodification struct { - // Values - Values *[]Wfmforecastmodification `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Listwrapperwfmforecastmodification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/localencryptionconfiguration.go b/build/platformclientv2/localencryptionconfiguration.go deleted file mode 100644 index 73a922d55..000000000 --- a/build/platformclientv2/localencryptionconfiguration.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Localencryptionconfiguration -type Localencryptionconfiguration struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Url - The url for decryption. This must specify the path to where Purecloud can requests decryption - Url *string `json:"url,omitempty"` - - - // ApiId - The api id for Hawk Authentication. - ApiId *string `json:"apiId,omitempty"` - - - // ApiKey - The api shared symmetric key used for hawk authentication - ApiKey *string `json:"apiKey,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Localencryptionconfiguration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/localencryptionconfigurationlisting.go b/build/platformclientv2/localencryptionconfigurationlisting.go deleted file mode 100644 index 1f579a3dc..000000000 --- a/build/platformclientv2/localencryptionconfigurationlisting.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Localencryptionconfigurationlisting -type Localencryptionconfigurationlisting struct { - // Total - Total *int64 `json:"total,omitempty"` - - - // Entities - Entities *[]Localencryptionconfiguration `json:"entities,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Localencryptionconfigurationlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/localencryptionkeyrequest.go b/build/platformclientv2/localencryptionkeyrequest.go deleted file mode 100644 index 2c55854e4..000000000 --- a/build/platformclientv2/localencryptionkeyrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Localencryptionkeyrequest -type Localencryptionkeyrequest struct { - // ConfigId - The local configuration id that contains metadata on private local service - ConfigId *string `json:"configId,omitempty"` - - - // PublicKey - Base 64 encoded public key, generated by the local service. - PublicKey *string `json:"publicKey,omitempty"` - - - // KeypairId - The key pair id from the local service. - KeypairId *string `json:"keypairId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Localencryptionkeyrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/location.go b/build/platformclientv2/location.go deleted file mode 100644 index 629565f34..000000000 --- a/build/platformclientv2/location.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Location -type Location struct { - // Id - Unique identifier for the location - Id *string `json:"id,omitempty"` - - - // FloorplanId - Unique identifier for the location floorplan image - FloorplanId *string `json:"floorplanId,omitempty"` - - - // Coordinates - Users coordinates on the floorplan. Only used when floorplanImage is set - Coordinates *map[string]float64 `json:"coordinates,omitempty"` - - - // Notes - Optional description on the users location - Notes *string `json:"notes,omitempty"` - - - // LocationDefinition - LocationDefinition *Locationdefinition `json:"locationDefinition,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Location) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationaddress.go b/build/platformclientv2/locationaddress.go deleted file mode 100644 index 848573d60..000000000 --- a/build/platformclientv2/locationaddress.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationaddress -type Locationaddress struct { - // City - City *string `json:"city,omitempty"` - - - // Country - Country *string `json:"country,omitempty"` - - - // CountryName - CountryName *string `json:"countryName,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Street1 - Street1 *string `json:"street1,omitempty"` - - - // Street2 - Street2 *string `json:"street2,omitempty"` - - - // Zipcode - Zipcode *string `json:"zipcode,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationaddressverificationdetails.go b/build/platformclientv2/locationaddressverificationdetails.go deleted file mode 100644 index bc737a931..000000000 --- a/build/platformclientv2/locationaddressverificationdetails.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Locationaddressverificationdetails -type Locationaddressverificationdetails struct { - // Status - Status of address verification process - Status *string `json:"status,omitempty"` - - - // DateFinished - Finished time of address verification process. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateFinished *time.Time `json:"dateFinished,omitempty"` - - - // DateStarted - Time started of address verification process. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateStarted *time.Time `json:"dateStarted,omitempty"` - - - // Service - Third party service used for address verification - Service *string `json:"service,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationaddressverificationdetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationcreatedefinition.go b/build/platformclientv2/locationcreatedefinition.go deleted file mode 100644 index ed2fefa83..000000000 --- a/build/platformclientv2/locationcreatedefinition.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationcreatedefinition -type Locationcreatedefinition struct { - // Name - The name of the Location. Required for creates, not required for updates - Name *string `json:"name,omitempty"` - - - // Version - Current version of the location - Version *int32 `json:"version,omitempty"` - - - // State - Current activity status of the location. - State *string `json:"state,omitempty"` - - - // Path - A list of ancestor ids - Path *[]string `json:"path,omitempty"` - - - // Notes - Notes for the location - Notes *string `json:"notes,omitempty"` - - - // ContactUser - The user id of the location contact - ContactUser *string `json:"contactUser,omitempty"` - - - // EmergencyNumber - Emergency number for the location - EmergencyNumber *Locationemergencynumber `json:"emergencyNumber,omitempty"` - - - // Address - Address of the location - Address *Locationaddress `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationcreatedefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationdefinition.go b/build/platformclientv2/locationdefinition.go deleted file mode 100644 index 79eef8ce8..000000000 --- a/build/platformclientv2/locationdefinition.go +++ /dev/null @@ -1,77 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationdefinition -type Locationdefinition struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContactUser - Site contact for the location entity - ContactUser *Addressableentityref `json:"contactUser,omitempty"` - - - // EmergencyNumber - Emergency number for the location entity - EmergencyNumber *Locationemergencynumber `json:"emergencyNumber,omitempty"` - - - // Address - Address *Locationaddress `json:"address,omitempty"` - - - // State - Current state of the location entity - State *string `json:"state,omitempty"` - - - // Notes - Notes for the location entity - Notes *string `json:"notes,omitempty"` - - - // Version - Current version of the location entity, value to be supplied should be retrieved by a GET or on create/update response - Version *int32 `json:"version,omitempty"` - - - // Path - A list of ancestor IDs in order - Path *[]string `json:"path,omitempty"` - - - // ProfileImage - Profile image of the location entity, retrieved with ?expand=images query parameter - ProfileImage *[]Locationimage `json:"profileImage,omitempty"` - - - // FloorplanImage - Floorplan images of the location entity, retrieved with ?expand=images query parameter - FloorplanImage *[]Locationimage `json:"floorplanImage,omitempty"` - - - // AddressVerificationDetails - Address verification information, retrieve dwith the ?expand=addressVerificationDetails query parameter - AddressVerificationDetails *Locationaddressverificationdetails `json:"addressVerificationDetails,omitempty"` - - - // AddressVerified - Boolean field which states if the address has been verified as an actual address - AddressVerified *bool `json:"addressVerified,omitempty"` - - - // AddressStored - Boolean field which states if the address has been stored for E911 - AddressStored *bool `json:"addressStored,omitempty"` - - - // Images - Images *string `json:"images,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationdefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationemergencynumber.go b/build/platformclientv2/locationemergencynumber.go deleted file mode 100644 index 47a462deb..000000000 --- a/build/platformclientv2/locationemergencynumber.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationemergencynumber -type Locationemergencynumber struct { - // E164 - E164 *string `json:"e164,omitempty"` - - - // Number - Number *string `json:"number,omitempty"` - - - // VarType - The type of emergency number. - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationemergencynumber) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationentitylisting.go b/build/platformclientv2/locationentitylisting.go deleted file mode 100644 index 20b6202cf..000000000 --- a/build/platformclientv2/locationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationentitylisting -type Locationentitylisting struct { - // Entities - Entities *[]Locationdefinition `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationimage.go b/build/platformclientv2/locationimage.go deleted file mode 100644 index a6ee13636..000000000 --- a/build/platformclientv2/locationimage.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationimage -type Locationimage struct { - // Resolution - Height and/or width of image. ex: 640x480 or x128 - Resolution *string `json:"resolution,omitempty"` - - - // ImageUri - ImageUri *string `json:"imageUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationimage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationsapi.go b/build/platformclientv2/locationsapi.go deleted file mode 100644 index 4f6fd7501..000000000 --- a/build/platformclientv2/locationsapi.go +++ /dev/null @@ -1,652 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// LocationsApi provides functions for API endpoints -type LocationsApi struct { - Configuration *Configuration -} - -// NewLocationsApi creates an API instance using the default configuration -func NewLocationsApi() *LocationsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating LocationsApi with base path: %s", strings.ToLower(config.BasePath))) - return &LocationsApi{ - Configuration: config, - } -} - -// NewLocationsApiWithConfig creates an API instance using the provided configuration -func NewLocationsApiWithConfig(config *Configuration) *LocationsApi { - config.Debugf("Creating LocationsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &LocationsApi{ - Configuration: config, - } -} - -// DeleteLocation invokes DELETE /api/v2/locations/{locationId} -// -// Delete a location -// -// -func (a LocationsApi) DeleteLocation(locationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/{locationId}" - path = strings.Replace(path, "{locationId}", fmt.Sprintf("%v", locationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'locationId' is set - if &locationId == nil { - // - return nil, errors.New("Missing required parameter 'locationId' when calling LocationsApi->DeleteLocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetLocation invokes GET /api/v2/locations/{locationId} -// -// Get Location by ID. -// -// -func (a LocationsApi) GetLocation(locationId string, expand []string) (*Locationdefinition, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/{locationId}" - path = strings.Replace(path, "{locationId}", fmt.Sprintf("%v", locationId), -1) - defaultReturn := new(Locationdefinition) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'locationId' is set - if &locationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'locationId' when calling LocationsApi->GetLocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Locationdefinition - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLocationSublocations invokes GET /api/v2/locations/{locationId}/sublocations -// -// Get sublocations for location ID. -// -// -func (a LocationsApi) GetLocationSublocations(locationId string) (*Locationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/{locationId}/sublocations" - path = strings.Replace(path, "{locationId}", fmt.Sprintf("%v", locationId), -1) - defaultReturn := new(Locationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'locationId' is set - if &locationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'locationId' when calling LocationsApi->GetLocationSublocations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Locationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLocations invokes GET /api/v2/locations -// -// Get a list of all locations. -// -// -func (a LocationsApi) GetLocations(pageSize int32, pageNumber int32, id []string, sortOrder string) (*Locationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations" - defaultReturn := new(Locationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Locationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLocationsSearch invokes GET /api/v2/locations/search -// -// Search locations using the q64 value returned from a previous search -// -// -func (a LocationsApi) GetLocationsSearch(q64 string, expand []string) (*Locationssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/search" - defaultReturn := new(Locationssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling LocationsApi->GetLocationsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Locationssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchLocation invokes PATCH /api/v2/locations/{locationId} -// -// Update a location -// -// -func (a LocationsApi) PatchLocation(locationId string, body Locationupdatedefinition) (*Locationdefinition, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/{locationId}" - path = strings.Replace(path, "{locationId}", fmt.Sprintf("%v", locationId), -1) - defaultReturn := new(Locationdefinition) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'locationId' is set - if &locationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'locationId' when calling LocationsApi->PatchLocation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling LocationsApi->PatchLocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Locationdefinition - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLocations invokes POST /api/v2/locations -// -// Create a location -// -// -func (a LocationsApi) PostLocations(body Locationcreatedefinition) (*Locationdefinition, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations" - defaultReturn := new(Locationdefinition) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling LocationsApi->PostLocations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Locationdefinition - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLocationsSearch invokes POST /api/v2/locations/search -// -// Search locations -// -// -func (a LocationsApi) PostLocationsSearch(body Locationsearchrequest) (*Locationssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/search" - defaultReturn := new(Locationssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling LocationsApi->PostLocationsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Locationssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/locationsearchcriteria.go b/build/platformclientv2/locationsearchcriteria.go deleted file mode 100644 index 53e37364f..000000000 --- a/build/platformclientv2/locationsearchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationsearchcriteria -type Locationsearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Locationsearchcriteria `json:"group,omitempty"` - - - // VarType - Search Type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationsearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationsearchrequest.go b/build/platformclientv2/locationsearchrequest.go deleted file mode 100644 index c92858336..000000000 --- a/build/platformclientv2/locationsearchrequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationsearchrequest -type Locationsearchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // Expand - Provides more details about a specified resource - Expand *[]string `json:"expand,omitempty"` - - - // Query - Query *[]Locationsearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationsearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationssearchresponse.go b/build/platformclientv2/locationssearchresponse.go deleted file mode 100644 index dbfdb9625..000000000 --- a/build/platformclientv2/locationssearchresponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationssearchresponse -type Locationssearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *[]Locationdefinition `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationssearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/locationupdatedefinition.go b/build/platformclientv2/locationupdatedefinition.go deleted file mode 100644 index 633896f3c..000000000 --- a/build/platformclientv2/locationupdatedefinition.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Locationupdatedefinition -type Locationupdatedefinition struct { - // Name - The name of the Location. Required for creates, not required for updates - Name *string `json:"name,omitempty"` - - - // Version - Current version of the location - Version *int32 `json:"version,omitempty"` - - - // State - Current activity status of the location. - State *string `json:"state,omitempty"` - - - // Path - A list of ancestor ids - Path *[]string `json:"path,omitempty"` - - - // Notes - Notes for the location - Notes *string `json:"notes,omitempty"` - - - // ContactUser - The user id of the location contact - ContactUser *string `json:"contactUser,omitempty"` - - - // EmergencyNumber - Emergency number for the location - EmergencyNumber *Locationemergencynumber `json:"emergencyNumber,omitempty"` - - - // Address - Address of the location - Address *Locationaddress `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Locationupdatedefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/lockinfo.go b/build/platformclientv2/lockinfo.go deleted file mode 100644 index dd8f4971e..000000000 --- a/build/platformclientv2/lockinfo.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Lockinfo -type Lockinfo struct { - // LockedBy - LockedBy *Domainentityref `json:"lockedBy,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateExpires - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateExpires *time.Time `json:"dateExpires,omitempty"` - - - // Action - Action *string `json:"action,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Lockinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/logicalinterfaceentitylisting.go b/build/platformclientv2/logicalinterfaceentitylisting.go deleted file mode 100644 index ef8b8bc9e..000000000 --- a/build/platformclientv2/logicalinterfaceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Logicalinterfaceentitylisting -type Logicalinterfaceentitylisting struct { - // Entities - Entities *[]Domainlogicalinterface `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Logicalinterfaceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mailfromresult.go b/build/platformclientv2/mailfromresult.go deleted file mode 100644 index 7c00c5e9a..000000000 --- a/build/platformclientv2/mailfromresult.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mailfromresult -type Mailfromresult struct { - // Status - The verification status. - Status *string `json:"status,omitempty"` - - - // Records - The list of DNS records that pertain that need to exist for verification. - Records *[]Record `json:"records,omitempty"` - - - // MailFromDomain - The custom MAIL FROM domain. - MailFromDomain *string `json:"mailFromDomain,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mailfromresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/managementunit.go b/build/platformclientv2/managementunit.go deleted file mode 100644 index 49b4af60a..000000000 --- a/build/platformclientv2/managementunit.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Managementunit - Management Unit object for Workforce Management -type Managementunit struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // StartDayOfWeek - Start day of week for scheduling and forecasting purposes. Moving to Business Unit - StartDayOfWeek *string `json:"startDayOfWeek,omitempty"` - - - // TimeZone - The time zone for the management unit in standard Olson format. Moving to Business Unit - TimeZone *string `json:"timeZone,omitempty"` - - - // Settings - The configuration settings for this management unit - Settings *Managementunitsettingsresponse `json:"settings,omitempty"` - - - // Metadata - Version info metadata for this management unit. Deprecated, use settings.metadata - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // Version - The version of the underlying entity. Deprecated, use field from settings.metadata instead - Version *int32 `json:"version,omitempty"` - - - // DateModified - The date and time at which this entity was last modified. Deprecated, use field from settings.metadata instead. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The user who last modified this entity. Deprecated, use field from settings.metadata instead - ModifiedBy *Userreference `json:"modifiedBy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Managementunit) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/managementunitlisting.go b/build/platformclientv2/managementunitlisting.go deleted file mode 100644 index 55d16205a..000000000 --- a/build/platformclientv2/managementunitlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Managementunitlisting -type Managementunitlisting struct { - // Entities - Entities *[]Managementunit `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Managementunitlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/managementunitreference.go b/build/platformclientv2/managementunitreference.go deleted file mode 100644 index 85268083f..000000000 --- a/build/platformclientv2/managementunitreference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Managementunitreference - Management unit reference object for Workforce Management (ID/selfUri only) -type Managementunitreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Managementunitreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/managementunitsettingsrequest.go b/build/platformclientv2/managementunitsettingsrequest.go deleted file mode 100644 index 158aaf8d1..000000000 --- a/build/platformclientv2/managementunitsettingsrequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Managementunitsettingsrequest - Management Unit Settings -type Managementunitsettingsrequest struct { - // Adherence - Adherence settings for this management unit - Adherence *Adherencesettings `json:"adherence,omitempty"` - - - // ShortTermForecasting - Short term forecasting settings for this management unit. Moving to Business Unit - ShortTermForecasting *Shorttermforecastingsettings `json:"shortTermForecasting,omitempty"` - - - // TimeOff - Time off request settings for this management unit - TimeOff *Timeoffrequestsettings `json:"timeOff,omitempty"` - - - // Scheduling - Scheduling settings for this management unit - Scheduling *Schedulingsettingsrequest `json:"scheduling,omitempty"` - - - // ShiftTrading - Shift trade settings for this management unit - ShiftTrading *Shifttradesettings `json:"shiftTrading,omitempty"` - - - // Metadata - Version info metadata for the associated management unit - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Managementunitsettingsrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/managementunitsettingsresponse.go b/build/platformclientv2/managementunitsettingsresponse.go deleted file mode 100644 index c3cd74962..000000000 --- a/build/platformclientv2/managementunitsettingsresponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Managementunitsettingsresponse -type Managementunitsettingsresponse struct { - // Adherence - Adherence settings for this management unit - Adherence *Adherencesettings `json:"adherence,omitempty"` - - - // ShortTermForecasting - Short term forecasting settings for this management unit - ShortTermForecasting *Shorttermforecastingsettings `json:"shortTermForecasting,omitempty"` - - - // TimeOff - Time off request settings for this management unit - TimeOff *Timeoffrequestsettings `json:"timeOff,omitempty"` - - - // Scheduling - Scheduling settings for this management unit - Scheduling *Schedulingsettingsresponse `json:"scheduling,omitempty"` - - - // ShiftTrading - Shift trade settings for this management unit - ShiftTrading *Shifttradesettings `json:"shiftTrading,omitempty"` - - - // Metadata - Version info metadata for the associated management unit - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Managementunitsettingsresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/manager.go b/build/platformclientv2/manager.go deleted file mode 100644 index d99cde7a8..000000000 --- a/build/platformclientv2/manager.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Manager - Defines a SCIM manager. -type Manager struct { - // Value - The ID of the manager. - Value *string `json:"value,omitempty"` - - - // Ref - The reference URI of the manager's user record. - Ref *string `json:"$ref,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Manager) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/maxparticipants.go b/build/platformclientv2/maxparticipants.go deleted file mode 100644 index 3010a521e..000000000 --- a/build/platformclientv2/maxparticipants.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Maxparticipants -type Maxparticipants struct { - // MaxParticipants - The maximum number of participants that are allowed on a conversation. - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Maxparticipants) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediaendpointstatdetailqueryclause.go b/build/platformclientv2/mediaendpointstatdetailqueryclause.go deleted file mode 100644 index 07d1a9445..000000000 --- a/build/platformclientv2/mediaendpointstatdetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediaendpointstatdetailqueryclause -type Mediaendpointstatdetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Mediaendpointstatdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediaendpointstatdetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediaendpointstatdetailqueryfilter.go b/build/platformclientv2/mediaendpointstatdetailqueryfilter.go deleted file mode 100644 index 2438ebe75..000000000 --- a/build/platformclientv2/mediaendpointstatdetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediaendpointstatdetailqueryfilter -type Mediaendpointstatdetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Mediaendpointstatdetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Mediaendpointstatdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediaendpointstatdetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediaendpointstatdetailquerypredicate.go b/build/platformclientv2/mediaendpointstatdetailquerypredicate.go deleted file mode 100644 index fa5acb2ce..000000000 --- a/build/platformclientv2/mediaendpointstatdetailquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediaendpointstatdetailquerypredicate -type Mediaendpointstatdetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediaendpointstatdetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediaparticipantrequest.go b/build/platformclientv2/mediaparticipantrequest.go deleted file mode 100644 index 1d003aa9d..000000000 --- a/build/platformclientv2/mediaparticipantrequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediaparticipantrequest -type Mediaparticipantrequest struct { - // Wrapup - Wrap-up to assign to this participant. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // State - The state to update to set for this participant's communications. Possible values are: 'connected' and 'disconnected'. - State *string `json:"state,omitempty"` - - - // Recording - True to enable recording of this participant, otherwise false to disable recording. - Recording *bool `json:"recording,omitempty"` - - - // Muted - True to mute this conversation participant. - Muted *bool `json:"muted,omitempty"` - - - // Confined - True to confine this conversation participant. Should only be used for ad-hoc conferences - Confined *bool `json:"confined,omitempty"` - - - // Held - True to hold this conversation participant. - Held *bool `json:"held,omitempty"` - - - // WrapupSkipped - True to skip wrap-up for this participant. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediaparticipantrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediapolicies.go b/build/platformclientv2/mediapolicies.go deleted file mode 100644 index afd2a370a..000000000 --- a/build/platformclientv2/mediapolicies.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediapolicies -type Mediapolicies struct { - // CallPolicy - Conditions and actions for calls - CallPolicy *Callmediapolicy `json:"callPolicy,omitempty"` - - - // ChatPolicy - Conditions and actions for chats - ChatPolicy *Chatmediapolicy `json:"chatPolicy,omitempty"` - - - // EmailPolicy - Conditions and actions for emails - EmailPolicy *Emailmediapolicy `json:"emailPolicy,omitempty"` - - - // MessagePolicy - Conditions and actions for messages - MessagePolicy *Messagemediapolicy `json:"messagePolicy,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediapolicies) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediaresult.go b/build/platformclientv2/mediaresult.go deleted file mode 100644 index b483b87a6..000000000 --- a/build/platformclientv2/mediaresult.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediaresult -type Mediaresult struct { - // MediaUri - MediaUri *string `json:"mediaUri,omitempty"` - - - // WaveformData - WaveformData *[]float32 `json:"waveformData,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediaresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediasetting.go b/build/platformclientv2/mediasetting.go deleted file mode 100644 index 2bb426d48..000000000 --- a/build/platformclientv2/mediasetting.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediasetting -type Mediasetting struct { - // AlertingTimeoutSeconds - AlertingTimeoutSeconds *int32 `json:"alertingTimeoutSeconds,omitempty"` - - - // ServiceLevel - ServiceLevel *Servicelevel `json:"serviceLevel,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediasetting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediasummary.go b/build/platformclientv2/mediasummary.go deleted file mode 100644 index fbc30e1ad..000000000 --- a/build/platformclientv2/mediasummary.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediasummary -type Mediasummary struct { - // ContactCenter - ContactCenter *Mediasummarydetail `json:"contactCenter,omitempty"` - - - // Enterprise - Enterprise *Mediasummarydetail `json:"enterprise,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediasummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediasummarydetail.go b/build/platformclientv2/mediasummarydetail.go deleted file mode 100644 index 2cc512ecb..000000000 --- a/build/platformclientv2/mediasummarydetail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediasummarydetail -type Mediasummarydetail struct { - // Active - Active *int32 `json:"active,omitempty"` - - - // Acw - Acw *int32 `json:"acw,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediasummarydetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediatranscription.go b/build/platformclientv2/mediatranscription.go deleted file mode 100644 index e0814c619..000000000 --- a/build/platformclientv2/mediatranscription.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediatranscription -type Mediatranscription struct { - // DisplayName - DisplayName *string `json:"displayName,omitempty"` - - - // TranscriptionProvider - TranscriptionProvider *string `json:"transcriptionProvider,omitempty"` - - - // IntegrationId - IntegrationId *string `json:"integrationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediatranscription) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mediautilization.go b/build/platformclientv2/mediautilization.go deleted file mode 100644 index 4fa55ef26..000000000 --- a/build/platformclientv2/mediautilization.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Mediautilization -type Mediautilization struct { - // MaximumCapacity - Defines the maximum number of conversations of this type that an agent can handle at one time. - MaximumCapacity *int32 `json:"maximumCapacity,omitempty"` - - - // InterruptableMediaTypes - Defines the list of other media types that can interrupt a conversation of this media type. Values include call, chat, email, callback, and message. - InterruptableMediaTypes *[]string `json:"interruptableMediaTypes,omitempty"` - - - // IncludeNonAcd - If true, then track non-ACD conversations against utilization - IncludeNonAcd *bool `json:"includeNonAcd,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Mediautilization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/memberentity.go b/build/platformclientv2/memberentity.go deleted file mode 100644 index 051d3cae7..000000000 --- a/build/platformclientv2/memberentity.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Memberentity -type Memberentity struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Memberentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/message.go b/build/platformclientv2/message.go deleted file mode 100644 index 704b5cecb..000000000 --- a/build/platformclientv2/message.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Message -type Message struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // Segments - The time line of the participant's message, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // Direction - The direction of the message. - Direction *string `json:"direction,omitempty"` - - - // RecordingId - A globally unique identifier for the recording associated with this message. - RecordingId *string `json:"recordingId,omitempty"` - - - // ErrorInfo - ErrorInfo *Errorbody `json:"errorInfo,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the message was placed on hold in the cloud clock if the message is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Provider - The source provider for the message. - Provider *string `json:"provider,omitempty"` - - - // VarType - Indicates the type of message platform from which the message originated. - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - Indicates the country where the recipient is associated in ISO 3166-1 alpha-2 format. - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - The type of the recipient. Eg: Provisioned phoneNumber is the recipient for sms message type. - RecipientType *string `json:"recipientType,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // ToAddress - Address and name data for a call endpoint. - ToAddress *Address `json:"toAddress,omitempty"` - - - // FromAddress - Address and name data for a call endpoint. - FromAddress *Address `json:"fromAddress,omitempty"` - - - // Messages - The messages sent on this communication channel. - Messages *[]Messagedetails `json:"messages,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Message) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messageconversation.go b/build/platformclientv2/messageconversation.go deleted file mode 100644 index 12ebf1a81..000000000 --- a/build/platformclientv2/messageconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messageconversation -type Messageconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - The list of participants involved in the conversation. - Participants *[]Messagemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - The list of other media channels involved in the conversation. - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messageconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messageconversationentitylisting.go b/build/platformclientv2/messageconversationentitylisting.go deleted file mode 100644 index 3b6c0f6e0..000000000 --- a/build/platformclientv2/messageconversationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messageconversationentitylisting -type Messageconversationentitylisting struct { - // Entities - Entities *[]Emailconversation `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messageconversationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagedata.go b/build/platformclientv2/messagedata.go deleted file mode 100644 index 8d02c6f15..000000000 --- a/build/platformclientv2/messagedata.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Messagedata -type Messagedata struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ProviderMessageId - The unique identifier of the message from provider - ProviderMessageId *string `json:"providerMessageId,omitempty"` - - - // Timestamp - The time when the message was received or sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // FromAddress - The sender of the text message. - FromAddress *string `json:"fromAddress,omitempty"` - - - // ToAddress - The recipient of the text message. - ToAddress *string `json:"toAddress,omitempty"` - - - // Direction - The direction of the message. - Direction *string `json:"direction,omitempty"` - - - // MessengerType - Type of text messenger. - MessengerType *string `json:"messengerType,omitempty"` - - - // TextBody - The body of the text message. - TextBody *string `json:"textBody,omitempty"` - - - // Status - The status of the message. - Status *string `json:"status,omitempty"` - - - // Media - The media details associated to a message. - Media *[]Messagemedia `json:"media,omitempty"` - - - // Stickers - The sticker details associated to a message. - Stickers *[]Messagesticker `json:"stickers,omitempty"` - - - // CreatedBy - User who sent this message. - CreatedBy *User `json:"createdBy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagedetails.go b/build/platformclientv2/messagedetails.go deleted file mode 100644 index 9f430bc12..000000000 --- a/build/platformclientv2/messagedetails.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Messagedetails -type Messagedetails struct { - // MessageId - UUID identifying the message media. - MessageId *string `json:"messageId,omitempty"` - - - // MessageURI - A URI for this message entity. - MessageURI *string `json:"messageURI,omitempty"` - - - // MessageStatus - Indicates the delivery status of the message. - MessageStatus *string `json:"messageStatus,omitempty"` - - - // MessageSegmentCount - The message segment count, greater than 1 if the message content was split into multiple parts for this message type, e.g. SMS character limits. - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // MessageTime - The time when the message was sent or received. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // Media - The media (images, files, etc) associated with this message, if any - Media *[]Messagemedia `json:"media,omitempty"` - - - // Stickers - One or more stickers associated with this message, if any - Stickers *[]Messagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messageevaluation.go b/build/platformclientv2/messageevaluation.go deleted file mode 100644 index 5a58827c1..000000000 --- a/build/platformclientv2/messageevaluation.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Messageevaluation -type Messageevaluation struct { - // ContactColumn - ContactColumn *string `json:"contactColumn,omitempty"` - - - // ContactAddress - ContactAddress *string `json:"contactAddress,omitempty"` - - - // WrapupCodeId - WrapupCodeId *string `json:"wrapupCodeId,omitempty"` - - - // Timestamp - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messageevaluation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messageinfo.go b/build/platformclientv2/messageinfo.go deleted file mode 100644 index 6413b7d9e..000000000 --- a/build/platformclientv2/messageinfo.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messageinfo -type Messageinfo struct { - // LocalizableMessageCode - Key that can be used to localize the message. - LocalizableMessageCode *string `json:"localizableMessageCode,omitempty"` - - - // Message - Description of the message. - Message *string `json:"message,omitempty"` - - - // MessageWithParams - Message with template fields for variable replacement. - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - Map with fields for variable replacement. - MessageParams *map[string]string `json:"messageParams,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messageinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagemedia.go b/build/platformclientv2/messagemedia.go deleted file mode 100644 index ed48b28b7..000000000 --- a/build/platformclientv2/messagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagemedia -type Messagemedia struct { - // Url - The location of the media, useful for retrieving it - Url *string `json:"url,omitempty"` - - - // MediaType - The optional internet media type of the the media object. If null then the media type should be dictated by the url - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - The optional content length of the the media object, in bytes. - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - The optional name of the the media object. - Name *string `json:"name,omitempty"` - - - // Id - The optional id of the the media object. - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagemediaattachment.go b/build/platformclientv2/messagemediaattachment.go deleted file mode 100644 index b67e0c43d..000000000 --- a/build/platformclientv2/messagemediaattachment.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagemediaattachment -type Messagemediaattachment struct { - // Url - The location of the media, useful for retrieving it - Url *string `json:"url,omitempty"` - - - // MediaType - The optional internet media type of the the media object.If null then the media type should be dictated by the url. - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLength - The optional content length of the the media object, in bytes. - ContentLength *int64 `json:"contentLength,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagemediaattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagemediadata.go b/build/platformclientv2/messagemediadata.go deleted file mode 100644 index 5c113703d..000000000 --- a/build/platformclientv2/messagemediadata.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagemediadata -type Messagemediadata struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Url - The location of the media, useful for retrieving it - Url *string `json:"url,omitempty"` - - - // MediaType - The optional internet media type of the the media object. If null then the media type should be dictated by the url. - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - The optional content length of the the media object, in bytes. - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // UploadUrl - The URL returned to upload an attachment - UploadUrl *string `json:"uploadUrl,omitempty"` - - - // Status - The status of the media, indicates if the media is in the process of uploading. If the upload fails, the media becomes invalid - Status *string `json:"status,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagemediadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagemediaparticipant.go b/build/platformclientv2/messagemediaparticipant.go deleted file mode 100644 index 9929ec6f1..000000000 --- a/build/platformclientv2/messagemediaparticipant.go +++ /dev/null @@ -1,166 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Messagemediaparticipant -type Messagemediaparticipant struct { - // Id - The unique participant ID. - Id *string `json:"id,omitempty"` - - - // Name - The display friendly name of the participant. - Name *string `json:"name,omitempty"` - - - // Address - The participant address. - Address *string `json:"address,omitempty"` - - - // StartTime - The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr - Purpose *string `json:"purpose,omitempty"` - - - // State - The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting - State *string `json:"state,omitempty"` - - - // Direction - The participant's direction. Values can be: 'inbound' or 'outbound' - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - The reason the participant was disconnected from the conversation. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Value is true when the participant is on hold. - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - Value is true when the participant requires wrap-up. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - The wrap-up prompt indicating the type of wrap-up to be performed. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - The PureCloud user for this participant. - User *Domainentityref `json:"user,omitempty"` - - - // Queue - The PureCloud queue for this participant. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Attributes - A list of ad-hoc attributes for the participant. - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - If the conversation ends in error, contains additional error details. - ErrorInfo *Errorinfo `json:"errorInfo,omitempty"` - - - // Script - The Engage script that should be used by this participant. - Script *Domainentityref `json:"script,omitempty"` - - - // WrapupTimeoutMs - The amount of time the participant has to complete wrap-up. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - Value is true when the participant has skipped wrap-up. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - The source provider for the communication. - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - If this participant represents an external contact, then this will be the reference for the external contact. - ExternalContact *Domainentityref `json:"externalContact,omitempty"` - - - // ExternalOrganization - If this participant represents an external org, then this will be the reference for the external org. - ExternalOrganization *Domainentityref `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup for this participant, if it has been applied. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // Peer - The peer communication corresponding to a matching leg for this communication. - Peer *string `json:"peer,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context. - JourneyContext *Journeycontext `json:"journeyContext,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // ToAddress - Address for the participant on receiving side of the message conversation. If the address is a phone number, E.164 format is recommended. - ToAddress *Address `json:"toAddress,omitempty"` - - - // FromAddress - Address for the participant on the sending side of the message conversation. If the address is a phone number, E.164 format is recommended. - FromAddress *Address `json:"fromAddress,omitempty"` - - - // Messages - Message instance details on the communication. - Messages *[]Messagedetails `json:"messages,omitempty"` - - - // VarType - Indicates the type of message platform from which the message originated. - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - Indicates the country where the recipient is associated in ISO 3166-1 alpha-2 format. - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - The type of the recipient. Eg: Provisioned phoneNumber is the recipient for sms message type. - RecipientType *string `json:"recipientType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagemediapolicy.go b/build/platformclientv2/messagemediapolicy.go deleted file mode 100644 index 936467fab..000000000 --- a/build/platformclientv2/messagemediapolicy.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagemediapolicy -type Messagemediapolicy struct { - // Actions - Actions applied when specified conditions are met - Actions *Policyactions `json:"actions,omitempty"` - - - // Conditions - Conditions for when actions should be applied - Conditions *Messagemediapolicyconditions `json:"conditions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagemediapolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagemediapolicyconditions.go b/build/platformclientv2/messagemediapolicyconditions.go deleted file mode 100644 index 1e8b21c09..000000000 --- a/build/platformclientv2/messagemediapolicyconditions.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagemediapolicyconditions -type Messagemediapolicyconditions struct { - // ForUsers - ForUsers *[]User `json:"forUsers,omitempty"` - - - // DateRanges - DateRanges *[]string `json:"dateRanges,omitempty"` - - - // ForQueues - ForQueues *[]Queue `json:"forQueues,omitempty"` - - - // WrapupCodes - WrapupCodes *[]Wrapupcode `json:"wrapupCodes,omitempty"` - - - // Languages - Languages *[]Language `json:"languages,omitempty"` - - - // TimeAllowed - TimeAllowed *Timeallowed `json:"timeAllowed,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagemediapolicyconditions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagesticker.go b/build/platformclientv2/messagesticker.go deleted file mode 100644 index 42e49111a..000000000 --- a/build/platformclientv2/messagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagesticker -type Messagesticker struct { - // Url - The location of the sticker, useful for retrieving it - Url *string `json:"url,omitempty"` - - - // Id - The unique id of the the sticker object. - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagestickerattachment.go b/build/platformclientv2/messagestickerattachment.go deleted file mode 100644 index 2e8808998..000000000 --- a/build/platformclientv2/messagestickerattachment.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagestickerattachment -type Messagestickerattachment struct { - // Url - The location of the media, useful for retrieving it - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagestickerattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagingapi.go b/build/platformclientv2/messagingapi.go deleted file mode 100644 index 029705889..000000000 --- a/build/platformclientv2/messagingapi.go +++ /dev/null @@ -1,115 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// MessagingApi provides functions for API endpoints -type MessagingApi struct { - Configuration *Configuration -} - -// NewMessagingApi creates an API instance using the default configuration -func NewMessagingApi() *MessagingApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating MessagingApi with base path: %s", strings.ToLower(config.BasePath))) - return &MessagingApi{ - Configuration: config, - } -} - -// NewMessagingApiWithConfig creates an API instance using the provided configuration -func NewMessagingApiWithConfig(config *Configuration) *MessagingApi { - config.Debugf("Creating MessagingApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &MessagingApi{ - Configuration: config, - } -} - -// GetMessagingSticker invokes GET /api/v2/messaging/stickers/{messengerType} -// -// Get a list of Messaging Stickers -// -// -func (a MessagingApi) GetMessagingSticker(messengerType string, pageSize int32, pageNumber int32) (*Messagingstickerentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/messaging/stickers/{messengerType}" - path = strings.Replace(path, "{messengerType}", fmt.Sprintf("%v", messengerType), -1) - defaultReturn := new(Messagingstickerentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messengerType' is set - if &messengerType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messengerType' when calling MessagingApi->GetMessagingSticker") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Messagingstickerentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/messagingintegration.go b/build/platformclientv2/messagingintegration.go deleted file mode 100644 index ccbb9db91..000000000 --- a/build/platformclientv2/messagingintegration.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Messagingintegration -type Messagingintegration struct { - // Id - A unique Integration Id - Id *string `json:"id,omitempty"` - - - // Name - The name of the Integration - Name *string `json:"name,omitempty"` - - - // Status - The status of the Integration - Status *string `json:"status,omitempty"` - - - // MessengerType - The type of Messaging Integration - MessengerType *string `json:"messengerType,omitempty"` - - - // Recipient - The recipient associated to the Integration. This recipient is used to associate a flow to an integration - Recipient *Domainentityref `json:"recipient,omitempty"` - - - // DateCreated - Date this Integration was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this Integration was modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User reference that created this Integration - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User reference that last modified this Integration - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagingintegration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagingintegrationentitylisting.go b/build/platformclientv2/messagingintegrationentitylisting.go deleted file mode 100644 index d3ec5448c..000000000 --- a/build/platformclientv2/messagingintegrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagingintegrationentitylisting -type Messagingintegrationentitylisting struct { - // Entities - Entities *[]Messagingintegration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagingintegrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagingsticker.go b/build/platformclientv2/messagingsticker.go deleted file mode 100644 index 1f0a18d63..000000000 --- a/build/platformclientv2/messagingsticker.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagingsticker -type Messagingsticker struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ProviderStickerId - The sticker Id of the sticker, assigned by the sticker provider. - ProviderStickerId *int32 `json:"providerStickerId,omitempty"` - - - // ProviderPackageId - The package Id of the sticker, assigned by the sticker provider. - ProviderPackageId *int32 `json:"providerPackageId,omitempty"` - - - // PackageName - The package name of the sticker, assigned by the sticker provider. - PackageName *string `json:"packageName,omitempty"` - - - // MessengerType - The type of the messenger provider. - MessengerType *string `json:"messengerType,omitempty"` - - - // StickerType - The type of the sticker. - StickerType *string `json:"stickerType,omitempty"` - - - // ProviderVersion - The version of the sticker, assigned by the provider. - ProviderVersion *int64 `json:"providerVersion,omitempty"` - - - // UriLocation - UriLocation *string `json:"uriLocation,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagingsticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagingstickerentitylisting.go b/build/platformclientv2/messagingstickerentitylisting.go deleted file mode 100644 index 6cdeb29ef..000000000 --- a/build/platformclientv2/messagingstickerentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagingstickerentitylisting -type Messagingstickerentitylisting struct { - // Entities - Entities *[]Messagingsticker `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagingstickerentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/messagingtemplate.go b/build/platformclientv2/messagingtemplate.go deleted file mode 100644 index 8f7eb01a9..000000000 --- a/build/platformclientv2/messagingtemplate.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Messagingtemplate - The messaging template identifies a structured message templates supported by a messaging channel. For example, WhatsApp -type Messagingtemplate struct { - // Name - The messaging template name. - Name *string `json:"name,omitempty"` - - - // Namespace - The messaging template namespace. - Namespace *string `json:"namespace,omitempty"` - - - // Language - The messaging template language. For example, 'en-US' - Language *string `json:"language,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Messagingtemplate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/metabase.go b/build/platformclientv2/metabase.go deleted file mode 100644 index f408e23ad..000000000 --- a/build/platformclientv2/metabase.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Metabase -type Metabase struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Metabase) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/metadata.go b/build/platformclientv2/metadata.go deleted file mode 100644 index 4ae07708e..000000000 --- a/build/platformclientv2/metadata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Metadata -type Metadata struct { - // PairingToken - PairingToken *string `json:"pairing-token,omitempty"` - - - // PairingTrust - PairingTrust *[]string `json:"pairing-trust,omitempty"` - - - // PairingUrl - PairingUrl *string `json:"pairing-url,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Metadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/meteredassignmentbyagent.go b/build/platformclientv2/meteredassignmentbyagent.go deleted file mode 100644 index fc3948dda..000000000 --- a/build/platformclientv2/meteredassignmentbyagent.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Meteredassignmentbyagent -type Meteredassignmentbyagent struct { - // EvaluationContextId - EvaluationContextId *string `json:"evaluationContextId,omitempty"` - - - // Evaluators - Evaluators *[]User `json:"evaluators,omitempty"` - - - // MaxNumberEvaluations - MaxNumberEvaluations *int32 `json:"maxNumberEvaluations,omitempty"` - - - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // TimeInterval - TimeInterval *Timeinterval `json:"timeInterval,omitempty"` - - - // TimeZone - TimeZone *string `json:"timeZone,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Meteredassignmentbyagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/meteredevaluationassignment.go b/build/platformclientv2/meteredevaluationassignment.go deleted file mode 100644 index 301d56c12..000000000 --- a/build/platformclientv2/meteredevaluationassignment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Meteredevaluationassignment -type Meteredevaluationassignment struct { - // EvaluationContextId - EvaluationContextId *string `json:"evaluationContextId,omitempty"` - - - // Evaluators - Evaluators *[]User `json:"evaluators,omitempty"` - - - // MaxNumberEvaluations - MaxNumberEvaluations *int32 `json:"maxNumberEvaluations,omitempty"` - - - // EvaluationForm - EvaluationForm *Evaluationform `json:"evaluationForm,omitempty"` - - - // AssignToActiveUser - AssignToActiveUser *bool `json:"assignToActiveUser,omitempty"` - - - // TimeInterval - TimeInterval *Timeinterval `json:"timeInterval,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Meteredevaluationassignment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/mobiledevicesapi.go b/build/platformclientv2/mobiledevicesapi.go deleted file mode 100644 index fd6251e79..000000000 --- a/build/platformclientv2/mobiledevicesapi.go +++ /dev/null @@ -1,393 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// MobileDevicesApi provides functions for API endpoints -type MobileDevicesApi struct { - Configuration *Configuration -} - -// NewMobileDevicesApi creates an API instance using the default configuration -func NewMobileDevicesApi() *MobileDevicesApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating MobileDevicesApi with base path: %s", strings.ToLower(config.BasePath))) - return &MobileDevicesApi{ - Configuration: config, - } -} - -// NewMobileDevicesApiWithConfig creates an API instance using the provided configuration -func NewMobileDevicesApiWithConfig(config *Configuration) *MobileDevicesApi { - config.Debugf("Creating MobileDevicesApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &MobileDevicesApi{ - Configuration: config, - } -} - -// DeleteMobiledevice invokes DELETE /api/v2/mobiledevices/{deviceId} -// -// Delete device -// -// -func (a MobileDevicesApi) DeleteMobiledevice(deviceId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/mobiledevices/{deviceId}" - path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deviceId' is set - if &deviceId == nil { - // - return nil, errors.New("Missing required parameter 'deviceId' when calling MobileDevicesApi->DeleteMobiledevice") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetMobiledevice invokes GET /api/v2/mobiledevices/{deviceId} -// -// Get device -// -// -func (a MobileDevicesApi) GetMobiledevice(deviceId string) (*Userdevice, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/mobiledevices/{deviceId}" - path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceId), -1) - defaultReturn := new(Userdevice) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deviceId' is set - if &deviceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'deviceId' when calling MobileDevicesApi->GetMobiledevice") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userdevice - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetMobiledevices invokes GET /api/v2/mobiledevices -// -// Get a list of all devices. -// -// -func (a MobileDevicesApi) GetMobiledevices(pageSize int32, pageNumber int32, sortOrder string) (*Directoryuserdeviceslisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/mobiledevices" - defaultReturn := new(Directoryuserdeviceslisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Directoryuserdeviceslisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostMobiledevices invokes POST /api/v2/mobiledevices -// -// Create User device -// -// -func (a MobileDevicesApi) PostMobiledevices(body Userdevice) (*Userdevice, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/mobiledevices" - defaultReturn := new(Userdevice) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling MobileDevicesApi->PostMobiledevices") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userdevice - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutMobiledevice invokes PUT /api/v2/mobiledevices/{deviceId} -// -// Update device -// -// -func (a MobileDevicesApi) PutMobiledevice(deviceId string, body Userdevice) (*Userdevice, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/mobiledevices/{deviceId}" - path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceId), -1) - defaultReturn := new(Userdevice) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deviceId' is set - if &deviceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'deviceId' when calling MobileDevicesApi->PutMobiledevice") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userdevice - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/modelingprocessingerror.go b/build/platformclientv2/modelingprocessingerror.go deleted file mode 100644 index 431e5def4..000000000 --- a/build/platformclientv2/modelingprocessingerror.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Modelingprocessingerror -type Modelingprocessingerror struct { - // InternalErrorCode - An internal code representing the type of error. ModelInputMissing for 'Model Builder inputs not found.' ModelInputInvalid for 'Model Builder inputs are invalid. Ensure the input data format is correct.' ModelFailed for 'An error occured while building the model with the given input.' - InternalErrorCode *string `json:"internalErrorCode,omitempty"` - - - // Description - A text description of the error - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Modelingprocessingerror) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/modelingstatusresponse.go b/build/platformclientv2/modelingstatusresponse.go deleted file mode 100644 index 31af8bd79..000000000 --- a/build/platformclientv2/modelingstatusresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Modelingstatusresponse -type Modelingstatusresponse struct { - // Id - The ID generated for the modeling job. Use to GET result when job is completed. - Id *string `json:"id,omitempty"` - - - // Status - The status of the modeling job. - Status *string `json:"status,omitempty"` - - - // ErrorDetails - If the request could not be properly processed, error details will be given here. - ErrorDetails *[]Modelingprocessingerror `json:"errorDetails,omitempty"` - - - // ModelingResultUri - The uri of the modeling result. It has a value if the status is either 'Success', 'PartialFailure', or 'Failed'. - ModelingResultUri *string `json:"modelingResultUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Modelingstatusresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/movemanagementunitrequest.go b/build/platformclientv2/movemanagementunitrequest.go deleted file mode 100644 index 043033fc0..000000000 --- a/build/platformclientv2/movemanagementunitrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Movemanagementunitrequest -type Movemanagementunitrequest struct { - // BusinessUnitId - The ID of the business unit to which to move the management unit - BusinessUnitId *string `json:"businessUnitId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Movemanagementunitrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/movemanagementunitresponse.go b/build/platformclientv2/movemanagementunitresponse.go deleted file mode 100644 index 76e33e23c..000000000 --- a/build/platformclientv2/movemanagementunitresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Movemanagementunitresponse -type Movemanagementunitresponse struct { - // BusinessUnit - The new business unit - BusinessUnit *Businessunitreference `json:"businessUnit,omitempty"` - - - // Status - The status of the move. Will always be 'Processing' unless the Management Unit is already in the requested Business Unit in which case it will be 'Complete' - Status *string `json:"status,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Movemanagementunitresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/namedentity.go b/build/platformclientv2/namedentity.go deleted file mode 100644 index a057c19a3..000000000 --- a/build/platformclientv2/namedentity.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Namedentity -type Namedentity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the object. - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Namedentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/note.go b/build/platformclientv2/note.go deleted file mode 100644 index 51559fbd3..000000000 --- a/build/platformclientv2/note.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Note -type Note struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // NoteText - NoteText *string `json:"noteText,omitempty"` - - - // ModifyDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifyDate *time.Time `json:"modifyDate,omitempty"` - - - // CreateDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreateDate *time.Time `json:"createDate,omitempty"` - - - // CreatedBy - The author of this note - CreatedBy *User `json:"createdBy,omitempty"` - - - // ExternalDataSources - Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param. - ExternalDataSources *[]Externaldatasource `json:"externalDataSources,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Note) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/notelisting.go b/build/platformclientv2/notelisting.go deleted file mode 100644 index 72a70282b..000000000 --- a/build/platformclientv2/notelisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Notelisting -type Notelisting struct { - // Entities - Entities *[]Note `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Notelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/notificationsapi.go b/build/platformclientv2/notificationsapi.go deleted file mode 100644 index 27940cb66..000000000 --- a/build/platformclientv2/notificationsapi.go +++ /dev/null @@ -1,532 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// NotificationsApi provides functions for API endpoints -type NotificationsApi struct { - Configuration *Configuration -} - -// NewNotificationsApi creates an API instance using the default configuration -func NewNotificationsApi() *NotificationsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating NotificationsApi with base path: %s", strings.ToLower(config.BasePath))) - return &NotificationsApi{ - Configuration: config, - } -} - -// NewNotificationsApiWithConfig creates an API instance using the provided configuration -func NewNotificationsApiWithConfig(config *Configuration) *NotificationsApi { - config.Debugf("Creating NotificationsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &NotificationsApi{ - Configuration: config, - } -} - -// DeleteNotificationsChannelSubscriptions invokes DELETE /api/v2/notifications/channels/{channelId}/subscriptions -// -// Remove all subscriptions -// -// -func (a NotificationsApi) DeleteNotificationsChannelSubscriptions(channelId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/channels/{channelId}/subscriptions" - path = strings.Replace(path, "{channelId}", fmt.Sprintf("%v", channelId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'channelId' is set - if &channelId == nil { - // - return nil, errors.New("Missing required parameter 'channelId' when calling NotificationsApi->DeleteNotificationsChannelSubscriptions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetNotificationsAvailabletopics invokes GET /api/v2/notifications/availabletopics -// -// Get available notification topics. -// -// -func (a NotificationsApi) GetNotificationsAvailabletopics(expand []string) (*Availabletopicentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/availabletopics" - defaultReturn := new(Availabletopicentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Availabletopicentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetNotificationsChannelSubscriptions invokes GET /api/v2/notifications/channels/{channelId}/subscriptions -// -// The list of all subscriptions for this channel -// -// -func (a NotificationsApi) GetNotificationsChannelSubscriptions(channelId string) (*Channeltopicentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/channels/{channelId}/subscriptions" - path = strings.Replace(path, "{channelId}", fmt.Sprintf("%v", channelId), -1) - defaultReturn := new(Channeltopicentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'channelId' is set - if &channelId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'channelId' when calling NotificationsApi->GetNotificationsChannelSubscriptions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Channeltopicentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetNotificationsChannels invokes GET /api/v2/notifications/channels -// -// The list of existing channels -// -// -func (a NotificationsApi) GetNotificationsChannels(includechannels string) (*Channelentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/channels" - defaultReturn := new(Channelentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includechannels"] = a.Configuration.APIClient.ParameterToString(includechannels, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Channelentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostNotificationsChannelSubscriptions invokes POST /api/v2/notifications/channels/{channelId}/subscriptions -// -// Add a list of subscriptions to the existing list of subscriptions -// -// -func (a NotificationsApi) PostNotificationsChannelSubscriptions(channelId string, body []Channeltopic) (*Channeltopicentitylisting, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/channels/{channelId}/subscriptions" - path = strings.Replace(path, "{channelId}", fmt.Sprintf("%v", channelId), -1) - defaultReturn := new(Channeltopicentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'channelId' is set - if &channelId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'channelId' when calling NotificationsApi->PostNotificationsChannelSubscriptions") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling NotificationsApi->PostNotificationsChannelSubscriptions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Channeltopicentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostNotificationsChannels invokes POST /api/v2/notifications/channels -// -// Create a new channel -// -// There is a limit of 20 channels per user/app combination. Creating a 21st channel will remove the channel with oldest last used date. Channels without an active connection will be removed first. -func (a NotificationsApi) PostNotificationsChannels() (*Channel, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/channels" - defaultReturn := new(Channel) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Channel - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutNotificationsChannelSubscriptions invokes PUT /api/v2/notifications/channels/{channelId}/subscriptions -// -// Replace the current list of subscriptions with a new list. -// -// -func (a NotificationsApi) PutNotificationsChannelSubscriptions(channelId string, body []Channeltopic) (*Channeltopicentitylisting, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/notifications/channels/{channelId}/subscriptions" - path = strings.Replace(path, "{channelId}", fmt.Sprintf("%v", channelId), -1) - defaultReturn := new(Channeltopicentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'channelId' is set - if &channelId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'channelId' when calling NotificationsApi->PutNotificationsChannelSubscriptions") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling NotificationsApi->PutNotificationsChannelSubscriptions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Channeltopicentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/notificationsresponse.go b/build/platformclientv2/notificationsresponse.go deleted file mode 100644 index 46c10802a..000000000 --- a/build/platformclientv2/notificationsresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Notificationsresponse -type Notificationsresponse struct { - // Entities - Entities *[]Wfmusernotification `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Notificationsresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ntpsettings.go b/build/platformclientv2/ntpsettings.go deleted file mode 100644 index b0cb7fe61..000000000 --- a/build/platformclientv2/ntpsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ntpsettings -type Ntpsettings struct { - // Servers - List of NTP servers, in priority order - Servers *[]string `json:"servers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ntpsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/number.go b/build/platformclientv2/number.go deleted file mode 100644 index bb4c5c552..000000000 --- a/build/platformclientv2/number.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Number -type Number struct { - // Start - Start *string `json:"start,omitempty"` - - - // End - End *string `json:"end,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Number) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/numberplan.go b/build/platformclientv2/numberplan.go deleted file mode 100644 index ae1c7a42e..000000000 --- a/build/platformclientv2/numberplan.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Numberplan -type Numberplan struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Match - Match *string `json:"match,omitempty"` - - - // NormalizedFormat - NormalizedFormat *string `json:"normalizedFormat,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Numbers - Numbers *[]Number `json:"numbers,omitempty"` - - - // DigitLength - DigitLength *Digitlength `json:"digitLength,omitempty"` - - - // Classification - Classification *string `json:"classification,omitempty"` - - - // MatchType - MatchType *string `json:"matchType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Numberplan) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/numericrange.go b/build/platformclientv2/numericrange.go deleted file mode 100644 index e3a80ac01..000000000 --- a/build/platformclientv2/numericrange.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Numericrange -type Numericrange struct { - // Gt - Greater than - Gt *float32 `json:"gt,omitempty"` - - - // Gte - Greater than or equal to - Gte *float32 `json:"gte,omitempty"` - - - // Lt - Less than - Lt *float32 `json:"lt,omitempty"` - - - // Lte - Less than or equal to - Lte *float32 `json:"lte,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Numericrange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthapi.go b/build/platformclientv2/oauthapi.go deleted file mode 100644 index e976035de..000000000 --- a/build/platformclientv2/oauthapi.go +++ /dev/null @@ -1,719 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// OAuthApi provides functions for API endpoints -type OAuthApi struct { - Configuration *Configuration -} - -// NewOAuthApi creates an API instance using the default configuration -func NewOAuthApi() *OAuthApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating OAuthApi with base path: %s", strings.ToLower(config.BasePath))) - return &OAuthApi{ - Configuration: config, - } -} - -// NewOAuthApiWithConfig creates an API instance using the provided configuration -func NewOAuthApiWithConfig(config *Configuration) *OAuthApi { - config.Debugf("Creating OAuthApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &OAuthApi{ - Configuration: config, - } -} - -// DeleteOauthClient invokes DELETE /api/v2/oauth/clients/{clientId} -// -// Delete OAuth Client -// -// -func (a OAuthApi) DeleteOauthClient(clientId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/clients/{clientId}" - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return nil, errors.New("Missing required parameter 'clientId' when calling OAuthApi->DeleteOauthClient") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetOauthAuthorization invokes GET /api/v2/oauth/authorizations/{clientId} -// -// Get a client that is authorized by the resource owner -// -// -func (a OAuthApi) GetOauthAuthorization(clientId string) (*Oauthauthorization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/authorizations/{clientId}" - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Oauthauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling OAuthApi->GetOauthAuthorization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Oauthauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOauthAuthorizations invokes GET /api/v2/oauth/authorizations -// -// List clients that are authorized by the resource owner -// -// -func (a OAuthApi) GetOauthAuthorizations() (*Oauthauthorizationlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/authorizations" - defaultReturn := new(Oauthauthorizationlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Oauthauthorizationlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOauthClient invokes GET /api/v2/oauth/clients/{clientId} -// -// Get OAuth Client -// -// -func (a OAuthApi) GetOauthClient(clientId string) (*Oauthclient, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/clients/{clientId}" - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Oauthclient) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling OAuthApi->GetOauthClient") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Oauthclient - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOauthClients invokes GET /api/v2/oauth/clients -// -// The list of OAuth clients -// -// -func (a OAuthApi) GetOauthClients() (*Oauthcliententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/clients" - defaultReturn := new(Oauthcliententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Oauthcliententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOauthScope invokes GET /api/v2/oauth/scopes/{scopeId} -// -// An OAuth scope -// -// -func (a OAuthApi) GetOauthScope(scopeId string, acceptLanguage string) (*Oauthscope, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/scopes/{scopeId}" - path = strings.Replace(path, "{scopeId}", fmt.Sprintf("%v", scopeId), -1) - defaultReturn := new(Oauthscope) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scopeId' is set - if &scopeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scopeId' when calling OAuthApi->GetOauthScope") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "Accept-Language" - headerParams["Accept-Language"] = acceptLanguage - - var successPayload *Oauthscope - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOauthScopes invokes GET /api/v2/oauth/scopes -// -// The list of OAuth scopes -// -// -func (a OAuthApi) GetOauthScopes(acceptLanguage string) (*Oauthscopelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/scopes" - defaultReturn := new(Oauthscopelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "Accept-Language" - headerParams["Accept-Language"] = acceptLanguage - - var successPayload *Oauthscopelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOauthClientSecret invokes POST /api/v2/oauth/clients/{clientId}/secret -// -// Regenerate Client Secret -// -// This operation will set the client secret to a randomly generated cryptographically random value. All clients must be updated with the new secret. This operation should be used with caution. -func (a OAuthApi) PostOauthClientSecret(clientId string) (*Oauthclient, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/clients/{clientId}/secret" - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Oauthclient) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling OAuthApi->PostOauthClientSecret") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Oauthclient - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOauthClients invokes POST /api/v2/oauth/clients -// -// Create OAuth client -// -// The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud. The preferred authorizedGrantTypes is 'CODE' which requires applications to send a client ID and client secret. This is typically a web server. If the client is unable to secure the client secret then the 'TOKEN' grant type aka IMPLICIT should be used. This is would be for browser or mobile apps. If a client is to be used outside of the context of a user then the 'CLIENT-CREDENTIALS' grant may be used. In this case the client must be granted roles via the 'roleIds' field. -func (a OAuthApi) PostOauthClients(body Oauthclientrequest) (*Oauthclient, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/clients" - defaultReturn := new(Oauthclient) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OAuthApi->PostOauthClients") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthclient - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOauthClient invokes PUT /api/v2/oauth/clients/{clientId} -// -// Update OAuth Client -// -// -func (a OAuthApi) PutOauthClient(clientId string, body Oauthclientrequest) (*Oauthclient, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/oauth/clients/{clientId}" - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Oauthclient) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling OAuthApi->PutOauthClient") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OAuthApi->PutOauthClient") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Oauthclient - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/oauthauthorization.go b/build/platformclientv2/oauthauthorization.go deleted file mode 100644 index 161f0b469..000000000 --- a/build/platformclientv2/oauthauthorization.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Oauthauthorization -type Oauthauthorization struct { - // Client - Client *Oauthclient `json:"client,omitempty"` - - - // Scope - Scope *[]string `json:"scope,omitempty"` - - - // ResourceOwner - ResourceOwner *Domainentityref `json:"resourceOwner,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthauthorization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthauthorizationlisting.go b/build/platformclientv2/oauthauthorizationlisting.go deleted file mode 100644 index 02a2d9261..000000000 --- a/build/platformclientv2/oauthauthorizationlisting.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthauthorizationlisting -type Oauthauthorizationlisting struct { - // Entities - Entities *[]Oauthauthorization `json:"entities,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthauthorizationlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthclient.go b/build/platformclientv2/oauthclient.go deleted file mode 100644 index 37dfb32f4..000000000 --- a/build/platformclientv2/oauthclient.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Oauthclient -type Oauthclient struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the OAuth client. - Name *string `json:"name,omitempty"` - - - // AccessTokenValiditySeconds - The number of seconds, between 5mins and 48hrs, until tokens created with this client expire. If this field is omitted, a default of 24 hours will be applied. - AccessTokenValiditySeconds *int64 `json:"accessTokenValiditySeconds,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // RegisteredRedirectUri - List of allowed callbacks for this client. For example: https://myap.example.com/auth/callback - RegisteredRedirectUri *[]string `json:"registeredRedirectUri,omitempty"` - - - // Secret - System created secret assigned to this client. Secrets are required for code authorization and client credential grants. - Secret *string `json:"secret,omitempty"` - - - // RoleIds - Deprecated. Use roleDivisions instead. - RoleIds *[]string `json:"roleIds,omitempty"` - - - // DateCreated - Date this client was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this client was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User that created this client - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User that last modified this client - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // AuthorizedGrantType - The OAuth Grant/Client type supported by this client. Code Authorization Grant/Client type - Preferred client type where the Client ID and Secret are required to create tokens. Used where the secret can be secured. Implicit grant type - Client ID only is required to create tokens. Used in browser and mobile apps where the secret can not be secured. SAML2-Bearer extension grant type - SAML2 assertion provider for user authentication at the token endpoint. Client Credential grant type - Used to created access tokens that are tied only to the client. - AuthorizedGrantType *string `json:"authorizedGrantType,omitempty"` - - - // Scope - The scope requested by this client. Scopes only apply to clients not using the client_credential grant - Scope *[]string `json:"scope,omitempty"` - - - // RoleDivisions - Set of roles and their corresponding divisions associated with this client. Roles and divisions only apply to clients using the client_credential grant - RoleDivisions *[]Roledivision `json:"roleDivisions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthclient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthcliententitylisting.go b/build/platformclientv2/oauthcliententitylisting.go deleted file mode 100644 index e2ab77aed..000000000 --- a/build/platformclientv2/oauthcliententitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthcliententitylisting -type Oauthcliententitylisting struct { - // Entities - Entities *[]Oauthclientlisting `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthcliententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthclientlisting.go b/build/platformclientv2/oauthclientlisting.go deleted file mode 100644 index c53dc6510..000000000 --- a/build/platformclientv2/oauthclientlisting.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Oauthclientlisting -type Oauthclientlisting struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the OAuth client. - Name *string `json:"name,omitempty"` - - - // AccessTokenValiditySeconds - The number of seconds, between 5mins and 48hrs, until tokens created with this client expire. If this field is omitted, a default of 24 hours will be applied. - AccessTokenValiditySeconds *int64 `json:"accessTokenValiditySeconds,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // RegisteredRedirectUri - List of allowed callbacks for this client. For example: https://myap.example.com/auth/callback - RegisteredRedirectUri *[]string `json:"registeredRedirectUri,omitempty"` - - - // Secret - System created secret assigned to this client. Secrets are required for code authorization and client credential grants. - Secret *string `json:"secret,omitempty"` - - - // RoleIds - Deprecated. Use roleDivisions instead. - RoleIds *[]string `json:"roleIds,omitempty"` - - - // DateCreated - Date this client was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this client was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User that created this client - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User that last modified this client - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // Scope - The scope requested by this client. Scopes only apply to clients not using the client_credential grant - Scope *[]string `json:"scope,omitempty"` - - - // RoleDivisions - Set of roles and their corresponding divisions associated with this client. Roles and divisions only apply to clients using the client_credential grant - RoleDivisions *[]Roledivision `json:"roleDivisions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthclientlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthclientrequest.go b/build/platformclientv2/oauthclientrequest.go deleted file mode 100644 index 3dba01332..000000000 --- a/build/platformclientv2/oauthclientrequest.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthclientrequest -type Oauthclientrequest struct { - // Name - The name of the OAuth client. - Name *string `json:"name,omitempty"` - - - // AccessTokenValiditySeconds - The number of seconds, between 5mins and 48hrs, until tokens created with this client expire. If this field is omitted, a default of 24 hours will be applied. - AccessTokenValiditySeconds *int64 `json:"accessTokenValiditySeconds,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // RegisteredRedirectUri - List of allowed callbacks for this client. For example: https://myap.example.com/auth/callback - RegisteredRedirectUri *[]string `json:"registeredRedirectUri,omitempty"` - - - // RoleIds - Deprecated. Use roleDivisions instead. - RoleIds *[]string `json:"roleIds,omitempty"` - - - // AuthorizedGrantType - The OAuth Grant/Client type supported by this client. Code Authorization Grant/Client type - Preferred client type where the Client ID and Secret are required to create tokens. Used where the secret can be secured. Implicit grant type - Client ID only is required to create tokens. Used in browser and mobile apps where the secret can not be secured. SAML2-Bearer extension grant type - SAML2 assertion provider for user authentication at the token endpoint. Client Credential grant type - Used to created access tokens that are tied only to the client. - AuthorizedGrantType *string `json:"authorizedGrantType,omitempty"` - - - // Scope - The scope requested by this client. Scopes only apply to clients not using the client_credential grant - Scope *[]string `json:"scope,omitempty"` - - - // RoleDivisions - Set of roles and their corresponding divisions associated with this client. Roles and divisions only apply to clients using the client_credential grant - RoleDivisions *[]Roledivision `json:"roleDivisions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthclientrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthlasttokenissued.go b/build/platformclientv2/oauthlasttokenissued.go deleted file mode 100644 index 606fadde9..000000000 --- a/build/platformclientv2/oauthlasttokenissued.go +++ /dev/null @@ -1,18 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Oauthlasttokenissued -type Oauthlasttokenissued struct { - // DateIssued - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateIssued *time.Time `json:"dateIssued,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthlasttokenissued) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthprovider.go b/build/platformclientv2/oauthprovider.go deleted file mode 100644 index d1ce70672..000000000 --- a/build/platformclientv2/oauthprovider.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthprovider -type Oauthprovider struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthprovider) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthproviderentitylisting.go b/build/platformclientv2/oauthproviderentitylisting.go deleted file mode 100644 index ccf067795..000000000 --- a/build/platformclientv2/oauthproviderentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthproviderentitylisting -type Oauthproviderentitylisting struct { - // Entities - Entities *[]Oauthprovider `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthproviderentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthscope.go b/build/platformclientv2/oauthscope.go deleted file mode 100644 index aa1fdd07f..000000000 --- a/build/platformclientv2/oauthscope.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthscope -type Oauthscope struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthscope) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/oauthscopelisting.go b/build/platformclientv2/oauthscopelisting.go deleted file mode 100644 index 59a3374f3..000000000 --- a/build/platformclientv2/oauthscopelisting.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Oauthscopelisting -type Oauthscopelisting struct { - // Entities - Entities *[]Oauthscope `json:"entities,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Oauthscopelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/objectsapi.go b/build/platformclientv2/objectsapi.go deleted file mode 100644 index 53f966714..000000000 --- a/build/platformclientv2/objectsapi.go +++ /dev/null @@ -1,668 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ObjectsApi provides functions for API endpoints -type ObjectsApi struct { - Configuration *Configuration -} - -// NewObjectsApi creates an API instance using the default configuration -func NewObjectsApi() *ObjectsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ObjectsApi with base path: %s", strings.ToLower(config.BasePath))) - return &ObjectsApi{ - Configuration: config, - } -} - -// NewObjectsApiWithConfig creates an API instance using the provided configuration -func NewObjectsApiWithConfig(config *Configuration) *ObjectsApi { - config.Debugf("Creating ObjectsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ObjectsApi{ - Configuration: config, - } -} - -// DeleteAuthorizationDivision invokes DELETE /api/v2/authorization/divisions/{divisionId} -// -// Delete a division. -// -// -func (a ObjectsApi) DeleteAuthorizationDivision(divisionId string, force bool) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling ObjectsApi->DeleteAuthorizationDivision") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["force"] = a.Configuration.APIClient.ParameterToString(force, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetAuthorizationDivision invokes GET /api/v2/authorization/divisions/{divisionId} -// -// Returns an authorization division. -// -// -func (a ObjectsApi) GetAuthorizationDivision(divisionId string, objectCount bool) (*Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'divisionId' when calling ObjectsApi->GetAuthorizationDivision") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["objectCount"] = a.Configuration.APIClient.ParameterToString(objectCount, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisions invokes GET /api/v2/authorization/divisions -// -// Retrieve a list of all divisions defined for the organization -// -// Request specific divisions by id using a query param \"id\", e.g. ?id=5f777167-63be-4c24-ad41-374155d9e28b&id=72e9fb25-c484-488d-9312-7acba82435b3 -func (a ObjectsApi) GetAuthorizationDivisions(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, objectCount bool, id []string, name string) (*Authzdivisionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions" - defaultReturn := new(Authzdivisionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["objectCount"] = a.Configuration.APIClient.ParameterToString(objectCount, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzdivisionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionsHome invokes GET /api/v2/authorization/divisions/home -// -// Retrieve the home division for the organization. -// -// Will not include object counts. -func (a ObjectsApi) GetAuthorizationDivisionsHome() (*Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/home" - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionsLimit invokes GET /api/v2/authorization/divisions/limit -// -// Returns the maximum allowed number of divisions. -// -// -func (a ObjectsApi) GetAuthorizationDivisionsLimit() (*int32, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/limit" - defaultReturn := new(int32) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *int32 - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationDivisionObject invokes POST /api/v2/authorization/divisions/{divisionId}/objects/{objectType} -// -// Assign a list of objects to a division -// -// Set the division of a specified list of objects. The objects must all be of the same type, one of: CAMPAIGN, MANAGEMENTUNIT, FLOW, QUEUE, or USER. The body of the request is a list of object IDs, which are expected to be GUIDs, e.g. [\"206ce31f-61ec-40ed-a8b1-be6f06303998\",\"250a754e-f5e4-4f51-800f-a92f09d3bf8c\"] -func (a ObjectsApi) PostAuthorizationDivisionObject(divisionId string, objectType string, body []string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}/objects/{objectType}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - path = strings.Replace(path, "{objectType}", fmt.Sprintf("%v", objectType), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling ObjectsApi->PostAuthorizationDivisionObject") - } - // verify the required parameter 'objectType' is set - if &objectType == nil { - // - return nil, errors.New("Missing required parameter 'objectType' when calling ObjectsApi->PostAuthorizationDivisionObject") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return nil, errors.New("Missing required parameter 'body' when calling ObjectsApi->PostAuthorizationDivisionObject") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationDivisions invokes POST /api/v2/authorization/divisions -// -// Create a division. -// -// -func (a ObjectsApi) PostAuthorizationDivisions(body Authzdivision) (*Authzdivision, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions" - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ObjectsApi->PostAuthorizationDivisions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutAuthorizationDivision invokes PUT /api/v2/authorization/divisions/{divisionId} -// -// Update a division. -// -// -func (a ObjectsApi) PutAuthorizationDivision(divisionId string, body Authzdivision) (*Authzdivision, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisions/{divisionId}" - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - defaultReturn := new(Authzdivision) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'divisionId' when calling ObjectsApi->PutAuthorizationDivision") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ObjectsApi->PutAuthorizationDivision") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/observationmetricdata.go b/build/platformclientv2/observationmetricdata.go deleted file mode 100644 index d6d36ffbf..000000000 --- a/build/platformclientv2/observationmetricdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Observationmetricdata -type Observationmetricdata struct { - // Metric - Metric *string `json:"metric,omitempty"` - - - // Qualifier - Qualifier *string `json:"qualifier,omitempty"` - - - // Stats - Stats *Statisticalsummary `json:"stats,omitempty"` - - - // Truncated - Flag for a truncated list of observations. If truncated, the first half of the list of observations will contain the oldest observations and the second half the newest observations. - Truncated *bool `json:"truncated,omitempty"` - - - // Observations - List of observations sorted by timestamp in ascending order. This list may be truncated. - Observations *[]Observationvalue `json:"observations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Observationmetricdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/observationvalue.go b/build/platformclientv2/observationvalue.go deleted file mode 100644 index fb1b1a4b4..000000000 --- a/build/platformclientv2/observationvalue.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Observationvalue -type Observationvalue struct { - // ObservationDate - The time at which the observation occurred. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ObservationDate *time.Time `json:"observationDate,omitempty"` - - - // ConversationId - Unique identifier for the conversation - ConversationId *string `json:"conversationId,omitempty"` - - - // SessionId - The unique identifier of this session - SessionId *string `json:"sessionId,omitempty"` - - - // RequestedRoutingSkillIds - Unique identifier for a skill requested for an interaction - RequestedRoutingSkillIds *[]string `json:"requestedRoutingSkillIds,omitempty"` - - - // RequestedLanguageId - Unique identifier for the language requested for an interaction - RequestedLanguageId *string `json:"requestedLanguageId,omitempty"` - - - // RoutingPriority - Routing priority for the current interaction - RoutingPriority *int64 `json:"routingPriority,omitempty"` - - - // ParticipantName - A human readable name identifying the participant - ParticipantName *string `json:"participantName,omitempty"` - - - // UserId - Unique identifier for the user - UserId *string `json:"userId,omitempty"` - - - // Direction - The direction of the communication - Direction *string `json:"direction,omitempty"` - - - // ConvertedFrom - Session media type that was converted from in case of a media type conversion - ConvertedFrom *string `json:"convertedFrom,omitempty"` - - - // ConvertedTo - Session media type that was converted to in case of a media type conversion - ConvertedTo *string `json:"convertedTo,omitempty"` - - - // AddressFrom - The address that initiated an action - AddressFrom *string `json:"addressFrom,omitempty"` - - - // AddressTo - The address receiving an action - AddressTo *string `json:"addressTo,omitempty"` - - - // Ani - Automatic Number Identification (caller's number) - Ani *string `json:"ani,omitempty"` - - - // Dnis - Dialed number identification service (number dialed by the calling party) - Dnis *string `json:"dnis,omitempty"` - - - // TeamId - The team Id the user is a member of - TeamId *string `json:"teamId,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Analyticsscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Observationvalue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/okta.go b/build/platformclientv2/okta.go deleted file mode 100644 index fca831a8a..000000000 --- a/build/platformclientv2/okta.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Okta -type Okta struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Okta) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/onelogin.go b/build/platformclientv2/onelogin.go deleted file mode 100644 index 84da63982..000000000 --- a/build/platformclientv2/onelogin.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Onelogin -type Onelogin struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Onelogin) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/operation.go b/build/platformclientv2/operation.go deleted file mode 100644 index 579094306..000000000 --- a/build/platformclientv2/operation.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Operation -type Operation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Complete - Complete *bool `json:"complete,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // Client - Client *Domainentityref `json:"client,omitempty"` - - - // ErrorMessage - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // ErrorDetails - ErrorDetails *[]Detail `json:"errorDetails,omitempty"` - - - // ErrorMessageParams - ErrorMessageParams *map[string]string `json:"errorMessageParams,omitempty"` - - - // ActionName - Action name - ActionName *string `json:"actionName,omitempty"` - - - // ActionStatus - Action status - ActionStatus *string `json:"actionStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Operation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/organization.go b/build/platformclientv2/organization.go deleted file mode 100644 index cb7cd8ca1..000000000 --- a/build/platformclientv2/organization.go +++ /dev/null @@ -1,73 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Organization -type Organization struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DefaultLanguage - The default language for this organization. Example: 'en' - DefaultLanguage *string `json:"defaultLanguage,omitempty"` - - - // DefaultCountryCode - The default country code for this organization. Example: 'US' - DefaultCountryCode *string `json:"defaultCountryCode,omitempty"` - - - // ThirdPartyOrgName - The short name for the organization. This field is globally unique and cannot be changed. - ThirdPartyOrgName *string `json:"thirdPartyOrgName,omitempty"` - - - // ThirdPartyURI - ThirdPartyURI *string `json:"thirdPartyURI,omitempty"` - - - // Domain - Domain *string `json:"domain,omitempty"` - - - // Version - The current version of the organization. - Version *int32 `json:"version,omitempty"` - - - // State - The current state. Examples are active, inactive, deleted. - State *string `json:"state,omitempty"` - - - // DefaultSiteId - DefaultSiteId *string `json:"defaultSiteId,omitempty"` - - - // SupportURI - Email address where support tickets are sent to. - SupportURI *string `json:"supportURI,omitempty"` - - - // VoicemailEnabled - VoicemailEnabled *bool `json:"voicemailEnabled,omitempty"` - - - // ProductPlatform - Organizations Originating Platform. - ProductPlatform *string `json:"productPlatform,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // Features - The state of features available for the organization. - Features *map[string]bool `json:"features,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Organization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/organizationapi.go b/build/platformclientv2/organizationapi.go deleted file mode 100644 index 380a3b968..000000000 --- a/build/platformclientv2/organizationapi.go +++ /dev/null @@ -1,582 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// OrganizationApi provides functions for API endpoints -type OrganizationApi struct { - Configuration *Configuration -} - -// NewOrganizationApi creates an API instance using the default configuration -func NewOrganizationApi() *OrganizationApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating OrganizationApi with base path: %s", strings.ToLower(config.BasePath))) - return &OrganizationApi{ - Configuration: config, - } -} - -// NewOrganizationApiWithConfig creates an API instance using the provided configuration -func NewOrganizationApiWithConfig(config *Configuration) *OrganizationApi { - config.Debugf("Creating OrganizationApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &OrganizationApi{ - Configuration: config, - } -} - -// GetFieldconfig invokes GET /api/v2/fieldconfig -// -// Fetch field config for an entity type -// -// -func (a OrganizationApi) GetFieldconfig(varType string) (*Fieldconfig, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fieldconfig" - defaultReturn := new(Fieldconfig) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'varType' is set - if &varType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'varType' when calling OrganizationApi->GetFieldconfig") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Fieldconfig - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrganizationsEmbeddedintegration invokes GET /api/v2/organizations/embeddedintegration -// -// Get the list of domains that will be allowed to embed PureCloud applications -// -// -func (a OrganizationApi) GetOrganizationsEmbeddedintegration() (*Embeddedintegration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/embeddedintegration" - defaultReturn := new(Embeddedintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Embeddedintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrganizationsMe invokes GET /api/v2/organizations/me -// -// Get organization. -// -// -func (a OrganizationApi) GetOrganizationsMe() (*Organization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/me" - defaultReturn := new(Organization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrganizationsWhitelist invokes GET /api/v2/organizations/whitelist -// -// Use PUT /api/v2/organizations/embeddedintegration instead -// -// -func (a OrganizationApi) GetOrganizationsWhitelist() (*Orgwhitelistsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/whitelist" - defaultReturn := new(Orgwhitelistsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Orgwhitelistsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchOrganizationsFeature invokes PATCH /api/v2/organizations/features/{featureName} -// -// Update organization -// -// -func (a OrganizationApi) PatchOrganizationsFeature(featureName string, enabled Featurestate) (*Organizationfeatures, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/features/{featureName}" - path = strings.Replace(path, "{featureName}", fmt.Sprintf("%v", featureName), -1) - defaultReturn := new(Organizationfeatures) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'featureName' is set - if &featureName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'featureName' when calling OrganizationApi->PatchOrganizationsFeature") - } - // verify the required parameter 'enabled' is set - if &enabled == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'enabled' when calling OrganizationApi->PatchOrganizationsFeature") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &enabled - - var successPayload *Organizationfeatures - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrganizationsEmbeddedintegration invokes PUT /api/v2/organizations/embeddedintegration -// -// Update the list of domains that will be allowed to embed PureCloud applications -// -// -func (a OrganizationApi) PutOrganizationsEmbeddedintegration(body Embeddedintegration) (*Embeddedintegration, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/embeddedintegration" - defaultReturn := new(Embeddedintegration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationApi->PutOrganizationsEmbeddedintegration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Embeddedintegration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrganizationsMe invokes PUT /api/v2/organizations/me -// -// Update organization. -// -// -func (a OrganizationApi) PutOrganizationsMe(body Organization) (*Organization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/me" - defaultReturn := new(Organization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Organization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrganizationsWhitelist invokes PUT /api/v2/organizations/whitelist -// -// Use PUT /api/v2/organizations/embeddedintegration instead -// -// -func (a OrganizationApi) PutOrganizationsWhitelist(body Orgwhitelistsettings) (*Orgwhitelistsettings, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/organizations/whitelist" - defaultReturn := new(Orgwhitelistsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationApi->PutOrganizationsWhitelist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Orgwhitelistsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/organizationauthorizationapi.go b/build/platformclientv2/organizationauthorizationapi.go deleted file mode 100644 index 06996af94..000000000 --- a/build/platformclientv2/organizationauthorizationapi.go +++ /dev/null @@ -1,1863 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// OrganizationAuthorizationApi provides functions for API endpoints -type OrganizationAuthorizationApi struct { - Configuration *Configuration -} - -// NewOrganizationAuthorizationApi creates an API instance using the default configuration -func NewOrganizationAuthorizationApi() *OrganizationAuthorizationApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating OrganizationAuthorizationApi with base path: %s", strings.ToLower(config.BasePath))) - return &OrganizationAuthorizationApi{ - Configuration: config, - } -} - -// NewOrganizationAuthorizationApiWithConfig creates an API instance using the provided configuration -func NewOrganizationAuthorizationApiWithConfig(config *Configuration) *OrganizationAuthorizationApi { - config.Debugf("Creating OrganizationAuthorizationApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &OrganizationAuthorizationApi{ - Configuration: config, - } -} - -// DeleteOrgauthorizationTrustee invokes DELETE /api/v2/orgauthorization/trustees/{trusteeOrgId} -// -// Delete Org Trust -// -// -func (a OrganizationAuthorizationApi) DeleteOrgauthorizationTrustee(trusteeOrgId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrustee") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOrgauthorizationTrusteeUser invokes DELETE /api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId} -// -// Delete Trustee User -// -// -func (a OrganizationAuthorizationApi) DeleteOrgauthorizationTrusteeUser(trusteeOrgId string, trusteeUserId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrusteeUser") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrusteeUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOrgauthorizationTrusteeUserRoles invokes DELETE /api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles -// -// Delete Trustee User Roles -// -// -func (a OrganizationAuthorizationApi) DeleteOrgauthorizationTrusteeUserRoles(trusteeOrgId string, trusteeUserId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrusteeUserRoles") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrusteeUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOrgauthorizationTrustor invokes DELETE /api/v2/orgauthorization/trustors/{trustorOrgId} -// -// Delete Org Trust -// -// -func (a OrganizationAuthorizationApi) DeleteOrgauthorizationTrustor(trustorOrgId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors/{trustorOrgId}" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return nil, errors.New("Missing required parameter 'trustorOrgId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrustor") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOrgauthorizationTrustorUser invokes DELETE /api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId} -// -// Delete Trustee User -// -// -func (a OrganizationAuthorizationApi) DeleteOrgauthorizationTrustorUser(trustorOrgId string, trusteeUserId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return nil, errors.New("Missing required parameter 'trustorOrgId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrustorUser") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->DeleteOrgauthorizationTrustorUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetOrgauthorizationPairing invokes GET /api/v2/orgauthorization/pairings/{pairingId} -// -// Get Pairing Info -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationPairing(pairingId string) (*Trustrequest, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/pairings/{pairingId}" - path = strings.Replace(path, "{pairingId}", fmt.Sprintf("%v", pairingId), -1) - defaultReturn := new(Trustrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'pairingId' is set - if &pairingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'pairingId' when calling OrganizationAuthorizationApi->GetOrgauthorizationPairing") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrustee invokes GET /api/v2/orgauthorization/trustees/{trusteeOrgId} -// -// Get Org Trust -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrustee(trusteeOrgId string) (*Trustee, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - defaultReturn := new(Trustee) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrustee") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustee - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrusteeUser invokes GET /api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId} -// -// Get Trustee User -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrusteeUser(trusteeOrgId string, trusteeUserId string) (*Trustuser, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - defaultReturn := new(Trustuser) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrusteeUser") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrusteeUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustuser - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrusteeUserRoles invokes GET /api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles -// -// Get Trustee User Roles -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrusteeUserRoles(trusteeOrgId string, trusteeUserId string) (*Userauthorization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrusteeUserRoles") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrusteeUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrusteeUsers invokes GET /api/v2/orgauthorization/trustees/{trusteeOrgId}/users -// -// The list of trustee users for this organization (i.e. users granted access to this organization). -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrusteeUsers(trusteeOrgId string, pageSize int32, pageNumber int32) (*Trustuserentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - defaultReturn := new(Trustuserentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrusteeUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustuserentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrustees invokes GET /api/v2/orgauthorization/trustees -// -// The list of trustees for this organization (i.e. organizations granted access to this organization). -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrustees(pageSize int32, pageNumber int32) (*Trustentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees" - defaultReturn := new(Trustentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrustor invokes GET /api/v2/orgauthorization/trustors/{trustorOrgId} -// -// Get Org Trust -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrustor(trustorOrgId string) (*Trustor, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors/{trustorOrgId}" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - defaultReturn := new(Trustor) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trustorOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrustor") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustor - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrustorUser invokes GET /api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId} -// -// Get Trustee User -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrustorUser(trustorOrgId string, trusteeUserId string) (*Trustuser, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - defaultReturn := new(Trustuser) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trustorOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrustorUser") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrustorUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustuser - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrustorUsers invokes GET /api/v2/orgauthorization/trustors/{trustorOrgId}/users -// -// The list of users in the trustor organization (i.e. users granted access). -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrustorUsers(trustorOrgId string, pageSize int32, pageNumber int32) (*Trustuserentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors/{trustorOrgId}/users" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - defaultReturn := new(Trustuserentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trustorOrgId' when calling OrganizationAuthorizationApi->GetOrgauthorizationTrustorUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustuserentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrgauthorizationTrustors invokes GET /api/v2/orgauthorization/trustors -// -// The list of organizations that have authorized/trusted your organization. -// -// -func (a OrganizationAuthorizationApi) GetOrgauthorizationTrustors(pageSize int32, pageNumber int32) (*Trustorentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors" - defaultReturn := new(Trustorentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustorentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOrgauthorizationPairings invokes POST /api/v2/orgauthorization/pairings -// -// A pairing id is created by the trustee and given to the trustor to create a trust. -// -// -func (a OrganizationAuthorizationApi) PostOrgauthorizationPairings(body Trustrequestcreate) (*Trustrequest, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/pairings" - defaultReturn := new(Trustrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PostOrgauthorizationPairings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Trustrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOrgauthorizationTrusteeUsers invokes POST /api/v2/orgauthorization/trustees/{trusteeOrgId}/users -// -// Add a user to the trust. -// -// -func (a OrganizationAuthorizationApi) PostOrgauthorizationTrusteeUsers(trusteeOrgId string, body Trustmembercreate) (*Trustuser, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - defaultReturn := new(Trustuser) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->PostOrgauthorizationTrusteeUsers") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PostOrgauthorizationTrusteeUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Trustuser - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOrgauthorizationTrustees invokes POST /api/v2/orgauthorization/trustees -// -// Create a new organization authorization trust. This is required to grant other organizations access to your organization. -// -// -func (a OrganizationAuthorizationApi) PostOrgauthorizationTrustees(body Trustcreate) (*Trustee, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees" - defaultReturn := new(Trustee) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PostOrgauthorizationTrustees") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Trustee - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOrgauthorizationTrusteesAudits invokes POST /api/v2/orgauthorization/trustees/audits -// -// Get Org Trustee Audits -// -// -func (a OrganizationAuthorizationApi) PostOrgauthorizationTrusteesAudits(body Trusteeauditqueryrequest, pageSize int32, pageNumber int32, sortBy string, sortOrder string) (*Auditqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/audits" - defaultReturn := new(Auditqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PostOrgauthorizationTrusteesAudits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Auditqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOrgauthorizationTrustorAudits invokes POST /api/v2/orgauthorization/trustor/audits -// -// Get Org Trustor Audits -// -// -func (a OrganizationAuthorizationApi) PostOrgauthorizationTrustorAudits(body Trustorauditqueryrequest, pageSize int32, pageNumber int32, sortBy string, sortOrder string) (*Auditqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustor/audits" - defaultReturn := new(Auditqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PostOrgauthorizationTrustorAudits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Auditqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrgauthorizationTrustee invokes PUT /api/v2/orgauthorization/trustees/{trusteeOrgId} -// -// Update Org Trust -// -// -func (a OrganizationAuthorizationApi) PutOrgauthorizationTrustee(trusteeOrgId string, body Trustee) (*Trustee, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - defaultReturn := new(Trustee) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrustee") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrustee") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Trustee - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrgauthorizationTrusteeUserRoledivisions invokes PUT /api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roledivisions -// -// Update Trustee User Roles -// -// -func (a OrganizationAuthorizationApi) PutOrgauthorizationTrusteeUserRoledivisions(trusteeOrgId string, trusteeUserId string, body Roledivisiongrants) (*Userauthorization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roledivisions" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrusteeUserRoledivisions") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrusteeUserRoledivisions") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrusteeUserRoledivisions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrgauthorizationTrusteeUserRoles invokes PUT /api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles -// -// Update Trustee User Roles -// -// -func (a OrganizationAuthorizationApi) PutOrgauthorizationTrusteeUserRoles(trusteeOrgId string, trusteeUserId string, body []string) (*Userauthorization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles" - path = strings.Replace(path, "{trusteeOrgId}", fmt.Sprintf("%v", trusteeOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trusteeOrgId' is set - if &trusteeOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeOrgId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrusteeUserRoles") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrusteeUserRoles") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrusteeUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrgauthorizationTrustorUser invokes PUT /api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId} -// -// Add a Trustee user to the trust. -// -// -func (a OrganizationAuthorizationApi) PutOrgauthorizationTrustorUser(trustorOrgId string, trusteeUserId string) (*Trustuser, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}" - path = strings.Replace(path, "{trustorOrgId}", fmt.Sprintf("%v", trustorOrgId), -1) - path = strings.Replace(path, "{trusteeUserId}", fmt.Sprintf("%v", trusteeUserId), -1) - defaultReturn := new(Trustuser) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trustorOrgId' is set - if &trustorOrgId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trustorOrgId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrustorUser") - } - // verify the required parameter 'trusteeUserId' is set - if &trusteeUserId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trusteeUserId' when calling OrganizationAuthorizationApi->PutOrgauthorizationTrustorUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustuser - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/organizationfeatures.go b/build/platformclientv2/organizationfeatures.go deleted file mode 100644 index 8bcd75c3b..000000000 --- a/build/platformclientv2/organizationfeatures.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Organizationfeatures -type Organizationfeatures struct { - // RealtimeCIC - RealtimeCIC *bool `json:"realtimeCIC,omitempty"` - - - // Purecloud - Purecloud *bool `json:"purecloud,omitempty"` - - - // Hipaa - Hipaa *bool `json:"hipaa,omitempty"` - - - // UcEnabled - UcEnabled *bool `json:"ucEnabled,omitempty"` - - - // Pci - Pci *bool `json:"pci,omitempty"` - - - // PurecloudVoice - PurecloudVoice *bool `json:"purecloudVoice,omitempty"` - - - // XmppFederation - XmppFederation *bool `json:"xmppFederation,omitempty"` - - - // Chat - Chat *bool `json:"chat,omitempty"` - - - // InformalPhotos - InformalPhotos *bool `json:"informalPhotos,omitempty"` - - - // Directory - Directory *bool `json:"directory,omitempty"` - - - // ContactCenter - ContactCenter *bool `json:"contactCenter,omitempty"` - - - // UnifiedCommunications - UnifiedCommunications *bool `json:"unifiedCommunications,omitempty"` - - - // Custserv - Custserv *bool `json:"custserv,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Organizationfeatures) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/organizationpresence.go b/build/platformclientv2/organizationpresence.go deleted file mode 100644 index 6719a9039..000000000 --- a/build/platformclientv2/organizationpresence.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Organizationpresence -type Organizationpresence struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // LanguageLabels - The label used for the system presence in each specified language - LanguageLabels *map[string]string `json:"languageLabels,omitempty"` - - - // SystemPresence - SystemPresence *string `json:"systemPresence,omitempty"` - - - // Deactivated - Deactivated *bool `json:"deactivated,omitempty"` - - - // Primary - Primary *bool `json:"primary,omitempty"` - - - // CreatedBy - CreatedBy *User `json:"createdBy,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedBy - ModifiedBy *User `json:"modifiedBy,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Organizationpresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/organizationpresenceentitylisting.go b/build/platformclientv2/organizationpresenceentitylisting.go deleted file mode 100644 index bfce79c7d..000000000 --- a/build/platformclientv2/organizationpresenceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Organizationpresenceentitylisting -type Organizationpresenceentitylisting struct { - // Entities - Entities *[]Organizationpresence `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Organizationpresenceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/organizationproductentitylisting.go b/build/platformclientv2/organizationproductentitylisting.go deleted file mode 100644 index bc241aec2..000000000 --- a/build/platformclientv2/organizationproductentitylisting.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Organizationproductentitylisting -type Organizationproductentitylisting struct { - // Entities - Entities *[]Domainorganizationproduct `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Organizationproductentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/organizationroleentitylisting.go b/build/platformclientv2/organizationroleentitylisting.go deleted file mode 100644 index 9434d9ee6..000000000 --- a/build/platformclientv2/organizationroleentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Organizationroleentitylisting -type Organizationroleentitylisting struct { - // Entities - Entities *[]Domainorganizationrole `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Organizationroleentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/orgoauthclient.go b/build/platformclientv2/orgoauthclient.go deleted file mode 100644 index 2642a4a4d..000000000 --- a/build/platformclientv2/orgoauthclient.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Orgoauthclient -type Orgoauthclient struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the OAuth client. - Name *string `json:"name,omitempty"` - - - // DateCreated - Date this client was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this client was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User that created this client - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User that last modified this client - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // AuthorizedGrantType - The OAuth Grant/Client type supported by this client. Code Authorization Grant/Client type - Preferred client type where the Client ID and Secret are required to create tokens. Used where the secret can be secured. Implicit grant type - Client ID only is required to create tokens. Used in browser and mobile apps where the secret can not be secured. SAML2-Bearer extension grant type - SAML2 assertion provider for user authentication at the token endpoint. Client Credential grant type - Used to created access tokens that are tied only to the client. - AuthorizedGrantType *string `json:"authorizedGrantType,omitempty"` - - - // Scope - The scope requested by this client. Scopes only apply to clients not using the client_credential grant - Scope *[]string `json:"scope,omitempty"` - - - // RoleDivisions - Set of roles and their corresponding divisions associated with this client. Roles and divisions only apply to clients using the client_credential grant - RoleDivisions *[]Roledivision `json:"roleDivisions,omitempty"` - - - // Organization - The oauth client's organization. - Organization *Namedentity `json:"organization,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Orgoauthclient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/orguser.go b/build/platformclientv2/orguser.go deleted file mode 100644 index 0dbc315b2..000000000 --- a/build/platformclientv2/orguser.go +++ /dev/null @@ -1,145 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Orguser -type Orguser struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // Chat - Chat *Chat `json:"chat,omitempty"` - - - // Department - Department *string `json:"department,omitempty"` - - - // Email - Email *string `json:"email,omitempty"` - - - // PrimaryContactInfo - Auto populated from addresses. - PrimaryContactInfo *[]Contact `json:"primaryContactInfo,omitempty"` - - - // Addresses - Email addresses and phone numbers for this user - Addresses *[]Contact `json:"addresses,omitempty"` - - - // State - The current state for this user. - State *string `json:"state,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Username - Username *string `json:"username,omitempty"` - - - // Manager - Manager **User `json:"manager,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Version - Required when updating a user, this value should be the current version of the user. The current version can be obtained with a GET on the user before doing a PATCH. - Version *int32 `json:"version,omitempty"` - - - // Certifications - Certifications *[]string `json:"certifications,omitempty"` - - - // Biography - Biography *Biography `json:"biography,omitempty"` - - - // EmployerInfo - EmployerInfo *Employerinfo `json:"employerInfo,omitempty"` - - - // RoutingStatus - ACD routing status - RoutingStatus *Routingstatus `json:"routingStatus,omitempty"` - - - // Presence - Active presence - Presence *Userpresence `json:"presence,omitempty"` - - - // ConversationSummary - Summary of conversion statistics for conversation types. - ConversationSummary *Userconversationsummary `json:"conversationSummary,omitempty"` - - - // OutOfOffice - Determine if out of office is enabled - OutOfOffice *Outofoffice `json:"outOfOffice,omitempty"` - - - // Geolocation - Current geolocation position - Geolocation *Geolocation `json:"geolocation,omitempty"` - - - // Station - Effective, default, and last station information - Station *Userstations `json:"station,omitempty"` - - - // Authorization - Roles and permissions assigned to the user - Authorization *Userauthorization `json:"authorization,omitempty"` - - - // ProfileSkills - Profile skills possessed by the user - ProfileSkills *[]string `json:"profileSkills,omitempty"` - - - // Locations - The user placement at each site location. - Locations *[]Location `json:"locations,omitempty"` - - - // Groups - The groups the user is a member of - Groups *[]Group `json:"groups,omitempty"` - - - // Skills - Routing (ACD) skills possessed by the user - Skills *[]Userroutingskill `json:"skills,omitempty"` - - - // Languages - Routing (ACD) languages possessed by the user - Languages *[]Userroutinglanguage `json:"languages,omitempty"` - - - // AcdAutoAnswer - acd auto answer - AcdAutoAnswer *bool `json:"acdAutoAnswer,omitempty"` - - - // LanguagePreference - preferred language by the user - LanguagePreference *string `json:"languagePreference,omitempty"` - - - // LastTokenIssued - LastTokenIssued *Oauthlasttokenissued `json:"lastTokenIssued,omitempty"` - - - // Organization - Organization *Organization `json:"organization,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Orguser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/orgwhitelistsettings.go b/build/platformclientv2/orgwhitelistsettings.go deleted file mode 100644 index 323ecb026..000000000 --- a/build/platformclientv2/orgwhitelistsettings.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Orgwhitelistsettings -type Orgwhitelistsettings struct { - // EnableWhitelist - EnableWhitelist *bool `json:"enableWhitelist,omitempty"` - - - // DomainWhitelist - DomainWhitelist *[]string `json:"domainWhitelist,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Orgwhitelistsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/orphanrecording.go b/build/platformclientv2/orphanrecording.go deleted file mode 100644 index 4c75682af..000000000 --- a/build/platformclientv2/orphanrecording.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Orphanrecording -type Orphanrecording struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // CreatedTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedTime *time.Time `json:"createdTime,omitempty"` - - - // RecoveredTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RecoveredTime *time.Time `json:"recoveredTime,omitempty"` - - - // ProviderType - ProviderType *string `json:"providerType,omitempty"` - - - // MediaSizeBytes - MediaSizeBytes *int64 `json:"mediaSizeBytes,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // FileState - FileState *string `json:"fileState,omitempty"` - - - // ProviderEndpoint - ProviderEndpoint *Endpoint `json:"providerEndpoint,omitempty"` - - - // Recording - Recording *Recording `json:"recording,omitempty"` - - - // OrphanStatus - The status of the orphaned recording's conversation. - OrphanStatus *string `json:"orphanStatus,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Orphanrecording) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/orphanrecordinglisting.go b/build/platformclientv2/orphanrecordinglisting.go deleted file mode 100644 index 6f615fc7e..000000000 --- a/build/platformclientv2/orphanrecordinglisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Orphanrecordinglisting -type Orphanrecordinglisting struct { - // Entities - Entities *[]Orphanrecording `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Orphanrecordinglisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/orphanupdaterequest.go b/build/platformclientv2/orphanupdaterequest.go deleted file mode 100644 index 5e5f2a39d..000000000 --- a/build/platformclientv2/orphanupdaterequest.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Orphanupdaterequest -type Orphanupdaterequest struct { - // ArchiveDate - The orphan recording's archive date. Must be greater than 1 day from now if set. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ArchiveDate *time.Time `json:"archiveDate,omitempty"` - - - // DeleteDate - The orphan recording's delete date. Must be greater than archiveDate if set, otherwise one day from now. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DeleteDate *time.Time `json:"deleteDate,omitempty"` - - - // ConversationId - A conversation Id that this orphan's recording is to be attached to. If not present, the conversationId will be deduced from the recording media. - ConversationId *string `json:"conversationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Orphanupdaterequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundapi.go b/build/platformclientv2/outboundapi.go deleted file mode 100644 index 955a8889d..000000000 --- a/build/platformclientv2/outboundapi.go +++ /dev/null @@ -1,7638 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// OutboundApi provides functions for API endpoints -type OutboundApi struct { - Configuration *Configuration -} - -// NewOutboundApi creates an API instance using the default configuration -func NewOutboundApi() *OutboundApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating OutboundApi with base path: %s", strings.ToLower(config.BasePath))) - return &OutboundApi{ - Configuration: config, - } -} - -// NewOutboundApiWithConfig creates an API instance using the provided configuration -func NewOutboundApiWithConfig(config *Configuration) *OutboundApi { - config.Debugf("Creating OutboundApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &OutboundApi{ - Configuration: config, - } -} - -// DeleteOutboundAttemptlimit invokes DELETE /api/v2/outbound/attemptlimits/{attemptLimitsId} -// -// Delete attempt limits -// -// -func (a OutboundApi) DeleteOutboundAttemptlimit(attemptLimitsId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/attemptlimits/{attemptLimitsId}" - path = strings.Replace(path, "{attemptLimitsId}", fmt.Sprintf("%v", attemptLimitsId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'attemptLimitsId' is set - if &attemptLimitsId == nil { - // - return nil, errors.New("Missing required parameter 'attemptLimitsId' when calling OutboundApi->DeleteOutboundAttemptlimit") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundCallabletimeset invokes DELETE /api/v2/outbound/callabletimesets/{callableTimeSetId} -// -// Delete callable time set -// -// -func (a OutboundApi) DeleteOutboundCallabletimeset(callableTimeSetId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callabletimesets/{callableTimeSetId}" - path = strings.Replace(path, "{callableTimeSetId}", fmt.Sprintf("%v", callableTimeSetId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'callableTimeSetId' is set - if &callableTimeSetId == nil { - // - return nil, errors.New("Missing required parameter 'callableTimeSetId' when calling OutboundApi->DeleteOutboundCallabletimeset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundCallanalysisresponseset invokes DELETE /api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId} -// -// Delete a dialer call analysis response set. -// -// -func (a OutboundApi) DeleteOutboundCallanalysisresponseset(callAnalysisSetId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}" - path = strings.Replace(path, "{callAnalysisSetId}", fmt.Sprintf("%v", callAnalysisSetId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'callAnalysisSetId' is set - if &callAnalysisSetId == nil { - // - return nil, errors.New("Missing required parameter 'callAnalysisSetId' when calling OutboundApi->DeleteOutboundCallanalysisresponseset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundCampaign invokes DELETE /api/v2/outbound/campaigns/{campaignId} -// -// Delete a campaign. -// -// -func (a OutboundApi) DeleteOutboundCampaign(campaignId string) (*Campaign, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaign) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->DeleteOutboundCampaign") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaign - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteOutboundCampaignProgress invokes DELETE /api/v2/outbound/campaigns/{campaignId}/progress -// -// Reset campaign progress and recycle the campaign -// -// -func (a OutboundApi) DeleteOutboundCampaignProgress(campaignId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/progress" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->DeleteOutboundCampaignProgress") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundCampaignrule invokes DELETE /api/v2/outbound/campaignrules/{campaignRuleId} -// -// Delete Campaign Rule -// -// -func (a OutboundApi) DeleteOutboundCampaignrule(campaignRuleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaignrules/{campaignRuleId}" - path = strings.Replace(path, "{campaignRuleId}", fmt.Sprintf("%v", campaignRuleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignRuleId' is set - if &campaignRuleId == nil { - // - return nil, errors.New("Missing required parameter 'campaignRuleId' when calling OutboundApi->DeleteOutboundCampaignrule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundContactlist invokes DELETE /api/v2/outbound/contactlists/{contactListId} -// -// Delete a contact list. -// -// -func (a OutboundApi) DeleteOutboundContactlist(contactListId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->DeleteOutboundContactlist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundContactlistContact invokes DELETE /api/v2/outbound/contactlists/{contactListId}/contacts/{contactId} -// -// Delete a contact. -// -// -func (a OutboundApi) DeleteOutboundContactlistContact(contactListId string, contactId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->DeleteOutboundContactlistContact") - } - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return nil, errors.New("Missing required parameter 'contactId' when calling OutboundApi->DeleteOutboundContactlistContact") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundContactlistContacts invokes DELETE /api/v2/outbound/contactlists/{contactListId}/contacts -// -// Delete contacts from a contact list. -// -// -func (a OutboundApi) DeleteOutboundContactlistContacts(contactListId string, contactIds []string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/contacts" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->DeleteOutboundContactlistContacts") - } - // verify the required parameter 'contactIds' is set - if &contactIds == nil { - // true - return nil, errors.New("Missing required parameter 'contactIds' when calling OutboundApi->DeleteOutboundContactlistContacts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range contactIds { - queryParams["contactIds"] = value - } - } else { - queryParams["contactIds"] = a.Configuration.APIClient.ParameterToString(contactIds, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundContactlistfilter invokes DELETE /api/v2/outbound/contactlistfilters/{contactListFilterId} -// -// Delete Contact List Filter -// -// -func (a OutboundApi) DeleteOutboundContactlistfilter(contactListFilterId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlistfilters/{contactListFilterId}" - path = strings.Replace(path, "{contactListFilterId}", fmt.Sprintf("%v", contactListFilterId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListFilterId' is set - if &contactListFilterId == nil { - // - return nil, errors.New("Missing required parameter 'contactListFilterId' when calling OutboundApi->DeleteOutboundContactlistfilter") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundContactlists invokes DELETE /api/v2/outbound/contactlists -// -// Delete multiple contact lists. -// -// -func (a OutboundApi) DeleteOutboundContactlists(id []string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // true - return nil, errors.New("Missing required parameter 'id' when calling OutboundApi->DeleteOutboundContactlists") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundDnclist invokes DELETE /api/v2/outbound/dnclists/{dncListId} -// -// Delete dialer DNC list -// -// -func (a OutboundApi) DeleteOutboundDnclist(dncListId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->DeleteOutboundDnclist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundRuleset invokes DELETE /api/v2/outbound/rulesets/{ruleSetId} -// -// Delete a Rule set. -// -// -func (a OutboundApi) DeleteOutboundRuleset(ruleSetId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/rulesets/{ruleSetId}" - path = strings.Replace(path, "{ruleSetId}", fmt.Sprintf("%v", ruleSetId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ruleSetId' is set - if &ruleSetId == nil { - // - return nil, errors.New("Missing required parameter 'ruleSetId' when calling OutboundApi->DeleteOutboundRuleset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundSchedulesCampaign invokes DELETE /api/v2/outbound/schedules/campaigns/{campaignId} -// -// Delete a dialer campaign schedule. -// -// -func (a OutboundApi) DeleteOutboundSchedulesCampaign(campaignId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/campaigns/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->DeleteOutboundSchedulesCampaign") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundSchedulesSequence invokes DELETE /api/v2/outbound/schedules/sequences/{sequenceId} -// -// Delete a dialer sequence schedule. -// -// -func (a OutboundApi) DeleteOutboundSchedulesSequence(sequenceId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/sequences/{sequenceId}" - path = strings.Replace(path, "{sequenceId}", fmt.Sprintf("%v", sequenceId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sequenceId' is set - if &sequenceId == nil { - // - return nil, errors.New("Missing required parameter 'sequenceId' when calling OutboundApi->DeleteOutboundSchedulesSequence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOutboundSequence invokes DELETE /api/v2/outbound/sequences/{sequenceId} -// -// Delete a dialer campaign sequence. -// -// -func (a OutboundApi) DeleteOutboundSequence(sequenceId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/sequences/{sequenceId}" - path = strings.Replace(path, "{sequenceId}", fmt.Sprintf("%v", sequenceId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sequenceId' is set - if &sequenceId == nil { - // - return nil, errors.New("Missing required parameter 'sequenceId' when calling OutboundApi->DeleteOutboundSequence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetOutboundAttemptlimit invokes GET /api/v2/outbound/attemptlimits/{attemptLimitsId} -// -// Get attempt limits -// -// -func (a OutboundApi) GetOutboundAttemptlimit(attemptLimitsId string) (*Attemptlimits, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/attemptlimits/{attemptLimitsId}" - path = strings.Replace(path, "{attemptLimitsId}", fmt.Sprintf("%v", attemptLimitsId), -1) - defaultReturn := new(Attemptlimits) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'attemptLimitsId' is set - if &attemptLimitsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'attemptLimitsId' when calling OutboundApi->GetOutboundAttemptlimit") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Attemptlimits - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundAttemptlimits invokes GET /api/v2/outbound/attemptlimits -// -// Query attempt limits list -// -// -func (a OutboundApi) GetOutboundAttemptlimits(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string) (*Attemptlimitsentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/attemptlimits" - defaultReturn := new(Attemptlimitsentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Attemptlimitsentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCallabletimeset invokes GET /api/v2/outbound/callabletimesets/{callableTimeSetId} -// -// Get callable time set -// -// -func (a OutboundApi) GetOutboundCallabletimeset(callableTimeSetId string) (*Callabletimeset, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callabletimesets/{callableTimeSetId}" - path = strings.Replace(path, "{callableTimeSetId}", fmt.Sprintf("%v", callableTimeSetId), -1) - defaultReturn := new(Callabletimeset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'callableTimeSetId' is set - if &callableTimeSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'callableTimeSetId' when calling OutboundApi->GetOutboundCallabletimeset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callabletimeset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCallabletimesets invokes GET /api/v2/outbound/callabletimesets -// -// Query callable time set list -// -// -func (a OutboundApi) GetOutboundCallabletimesets(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string) (*Callabletimesetentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callabletimesets" - defaultReturn := new(Callabletimesetentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callabletimesetentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCallanalysisresponseset invokes GET /api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId} -// -// Get a dialer call analysis response set. -// -// -func (a OutboundApi) GetOutboundCallanalysisresponseset(callAnalysisSetId string) (*Responseset, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}" - path = strings.Replace(path, "{callAnalysisSetId}", fmt.Sprintf("%v", callAnalysisSetId), -1) - defaultReturn := new(Responseset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'callAnalysisSetId' is set - if &callAnalysisSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'callAnalysisSetId' when calling OutboundApi->GetOutboundCallanalysisresponseset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Responseset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCallanalysisresponsesets invokes GET /api/v2/outbound/callanalysisresponsesets -// -// Query a list of dialer call analysis response sets. -// -// -func (a OutboundApi) GetOutboundCallanalysisresponsesets(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string) (*Responsesetentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callanalysisresponsesets" - defaultReturn := new(Responsesetentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Responsesetentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaign invokes GET /api/v2/outbound/campaigns/{campaignId} -// -// Get dialer campaign. -// -// -func (a OutboundApi) GetOutboundCampaign(campaignId string) (*Campaign, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaign) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundCampaign") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaign - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignDiagnostics invokes GET /api/v2/outbound/campaigns/{campaignId}/diagnostics -// -// Get campaign diagnostics -// -// -func (a OutboundApi) GetOutboundCampaignDiagnostics(campaignId string) (*Campaigndiagnostics, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/diagnostics" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaigndiagnostics) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundCampaignDiagnostics") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaigndiagnostics - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignInteractions invokes GET /api/v2/outbound/campaigns/{campaignId}/interactions -// -// Get dialer campaign interactions. -// -// -func (a OutboundApi) GetOutboundCampaignInteractions(campaignId string) (*Campaigninteractions, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/interactions" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaigninteractions) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundCampaignInteractions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaigninteractions - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignProgress invokes GET /api/v2/outbound/campaigns/{campaignId}/progress -// -// Get campaign progress -// -// -func (a OutboundApi) GetOutboundCampaignProgress(campaignId string) (*Campaignprogress, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/progress" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaignprogress) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundCampaignProgress") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignprogress - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignStats invokes GET /api/v2/outbound/campaigns/{campaignId}/stats -// -// Get statistics about a Dialer Campaign -// -// -func (a OutboundApi) GetOutboundCampaignStats(campaignId string) (*Campaignstats, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/stats" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaignstats) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundCampaignStats") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignstats - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignrule invokes GET /api/v2/outbound/campaignrules/{campaignRuleId} -// -// Get Campaign Rule -// -// -func (a OutboundApi) GetOutboundCampaignrule(campaignRuleId string) (*Campaignrule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaignrules/{campaignRuleId}" - path = strings.Replace(path, "{campaignRuleId}", fmt.Sprintf("%v", campaignRuleId), -1) - defaultReturn := new(Campaignrule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignRuleId' is set - if &campaignRuleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignRuleId' when calling OutboundApi->GetOutboundCampaignrule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignrule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignrules invokes GET /api/v2/outbound/campaignrules -// -// Query Campaign Rule list -// -// -func (a OutboundApi) GetOutboundCampaignrules(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string) (*Campaignruleentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaignrules" - defaultReturn := new(Campaignruleentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignruleentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaigns invokes GET /api/v2/outbound/campaigns -// -// Query a list of dialer campaigns. -// -// -func (a OutboundApi) GetOutboundCampaigns(pageSize int32, pageNumber int32, filterType string, name string, id []string, contactListId string, dncListIds string, distributionQueueId string, edgeGroupId string, callAnalysisResponseSetId string, divisionId []string, sortBy string, sortOrder string) (*Campaignentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns" - defaultReturn := new(Campaignentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["contactListId"] = a.Configuration.APIClient.ParameterToString(contactListId, collectionFormat) - - - - - collectionFormat = "" - queryParams["dncListIds"] = a.Configuration.APIClient.ParameterToString(dncListIds, collectionFormat) - - - - - collectionFormat = "" - queryParams["distributionQueueId"] = a.Configuration.APIClient.ParameterToString(distributionQueueId, collectionFormat) - - - - - collectionFormat = "" - queryParams["edgeGroupId"] = a.Configuration.APIClient.ParameterToString(edgeGroupId, collectionFormat) - - - - - collectionFormat = "" - queryParams["callAnalysisResponseSetId"] = a.Configuration.APIClient.ParameterToString(callAnalysisResponseSetId, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignsDivisionview invokes GET /api/v2/outbound/campaigns/divisionviews/{campaignId} -// -// Get a basic Campaign information object -// -// This returns a simplified version of a Campaign, consisting of name and division. -func (a OutboundApi) GetOutboundCampaignsDivisionview(campaignId string) (*Campaigndivisionview, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/divisionviews/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaigndivisionview) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundCampaignsDivisionview") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaigndivisionview - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundCampaignsDivisionviews invokes GET /api/v2/outbound/campaigns/divisionviews -// -// Query a list of basic Campaign information objects -// -// This returns a simplified version of a Campaign, consisting of name and division. -func (a OutboundApi) GetOutboundCampaignsDivisionviews(pageSize int32, pageNumber int32, filterType string, name string, id []string, sortBy string, sortOrder string) (*Campaigndivisionviewlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/divisionviews" - defaultReturn := new(Campaigndivisionviewlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaigndivisionviewlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlist invokes GET /api/v2/outbound/contactlists/{contactListId} -// -// Get a dialer contact list. -// -// -func (a OutboundApi) GetOutboundContactlist(contactListId string, includeImportStatus bool, includeSize bool) (*Contactlist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Contactlist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->GetOutboundContactlist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistContact invokes GET /api/v2/outbound/contactlists/{contactListId}/contacts/{contactId} -// -// Get a contact. -// -// -func (a OutboundApi) GetOutboundContactlistContact(contactListId string, contactId string) (*Dialercontact, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - defaultReturn := new(Dialercontact) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->GetOutboundContactlistContact") - } - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling OutboundApi->GetOutboundContactlistContact") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dialercontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistExport invokes GET /api/v2/outbound/contactlists/{contactListId}/export -// -// Get the URI of a contact list export. -// -// -func (a OutboundApi) GetOutboundContactlistExport(contactListId string, download string) (*Exporturi, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/export" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Exporturi) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->GetOutboundContactlistExport") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["download"] = a.Configuration.APIClient.ParameterToString(download, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Exporturi - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistImportstatus invokes GET /api/v2/outbound/contactlists/{contactListId}/importstatus -// -// Get dialer contactList import status. -// -// -func (a OutboundApi) GetOutboundContactlistImportstatus(contactListId string) (*Importstatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/importstatus" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Importstatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->GetOutboundContactlistImportstatus") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Importstatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistTimezonemappingpreview invokes GET /api/v2/outbound/contactlists/{contactListId}/timezonemappingpreview -// -// Preview the result of applying Automatic Time Zone Mapping to a contact list -// -// -func (a OutboundApi) GetOutboundContactlistTimezonemappingpreview(contactListId string) (*Timezonemappingpreview, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/timezonemappingpreview" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Timezonemappingpreview) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->GetOutboundContactlistTimezonemappingpreview") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timezonemappingpreview - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistfilter invokes GET /api/v2/outbound/contactlistfilters/{contactListFilterId} -// -// Get Contact list filter -// -// -func (a OutboundApi) GetOutboundContactlistfilter(contactListFilterId string) (*Contactlistfilter, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlistfilters/{contactListFilterId}" - path = strings.Replace(path, "{contactListFilterId}", fmt.Sprintf("%v", contactListFilterId), -1) - defaultReturn := new(Contactlistfilter) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListFilterId' is set - if &contactListFilterId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListFilterId' when calling OutboundApi->GetOutboundContactlistfilter") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlistfilter - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistfilters invokes GET /api/v2/outbound/contactlistfilters -// -// Query Contact list filters -// -// -func (a OutboundApi) GetOutboundContactlistfilters(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string, contactListId string) (*Contactlistfilterentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlistfilters" - defaultReturn := new(Contactlistfilterentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["contactListId"] = a.Configuration.APIClient.ParameterToString(contactListId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlistfilterentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlists invokes GET /api/v2/outbound/contactlists -// -// Query a list of contact lists. -// -// -func (a OutboundApi) GetOutboundContactlists(includeImportStatus bool, includeSize bool, pageSize int32, pageNumber int32, filterType string, name string, id []string, divisionId []string, sortBy string, sortOrder string) (*Contactlistentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists" - defaultReturn := new(Contactlistentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlistentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistsDivisionview invokes GET /api/v2/outbound/contactlists/divisionviews/{contactListId} -// -// Get a basic ContactList information object -// -// This returns a simplified version of a ContactList, consisting of the name, division, column names, phone columns, import status, and size. -func (a OutboundApi) GetOutboundContactlistsDivisionview(contactListId string, includeImportStatus bool, includeSize bool) (*Contactlistdivisionview, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/divisionviews/{contactListId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Contactlistdivisionview) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->GetOutboundContactlistsDivisionview") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlistdivisionview - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundContactlistsDivisionviews invokes GET /api/v2/outbound/contactlists/divisionviews -// -// Query a list of simplified contact list objects. -// -// This return a simplified version of contact lists, consisting of the name, division, column names, phone columns, import status, and size. -func (a OutboundApi) GetOutboundContactlistsDivisionviews(includeImportStatus bool, includeSize bool, pageSize int32, pageNumber int32, filterType string, name string, id []string, sortBy string, sortOrder string) (*Contactlistdivisionviewlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/divisionviews" - defaultReturn := new(Contactlistdivisionviewlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactlistdivisionviewlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundDnclist invokes GET /api/v2/outbound/dnclists/{dncListId} -// -// Get dialer DNC list -// -// -func (a OutboundApi) GetOutboundDnclist(dncListId string, includeImportStatus bool, includeSize bool) (*Dnclist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - defaultReturn := new(Dnclist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->GetOutboundDnclist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dnclist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundDnclistExport invokes GET /api/v2/outbound/dnclists/{dncListId}/export -// -// Get the URI of a DNC list export. -// -// -func (a OutboundApi) GetOutboundDnclistExport(dncListId string, download string) (*Exporturi, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}/export" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - defaultReturn := new(Exporturi) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->GetOutboundDnclistExport") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["download"] = a.Configuration.APIClient.ParameterToString(download, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Exporturi - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundDnclistImportstatus invokes GET /api/v2/outbound/dnclists/{dncListId}/importstatus -// -// Get dialer dncList import status. -// -// -func (a OutboundApi) GetOutboundDnclistImportstatus(dncListId string) (*Importstatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}/importstatus" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - defaultReturn := new(Importstatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->GetOutboundDnclistImportstatus") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Importstatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundDnclists invokes GET /api/v2/outbound/dnclists -// -// Query dialer DNC lists -// -// -func (a OutboundApi) GetOutboundDnclists(includeImportStatus bool, includeSize bool, pageSize int32, pageNumber int32, filterType string, name string, dncSourceType string, divisionId []string, sortBy string, sortOrder string) (*Dnclistentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists" - defaultReturn := new(Dnclistentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["dncSourceType"] = a.Configuration.APIClient.ParameterToString(dncSourceType, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dnclistentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundDnclistsDivisionview invokes GET /api/v2/outbound/dnclists/divisionviews/{dncListId} -// -// Get a basic DncList information object -// -// This returns a simplified version of a DncList, consisting of the name, division, import status, and size. -func (a OutboundApi) GetOutboundDnclistsDivisionview(dncListId string, includeImportStatus bool, includeSize bool) (*Dnclistdivisionview, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/divisionviews/{dncListId}" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - defaultReturn := new(Dnclistdivisionview) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->GetOutboundDnclistsDivisionview") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dnclistdivisionview - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundDnclistsDivisionviews invokes GET /api/v2/outbound/dnclists/divisionviews -// -// Query a list of simplified dnc list objects. -// -// This return a simplified version of dnc lists, consisting of the name, division, import status, and size. -func (a OutboundApi) GetOutboundDnclistsDivisionviews(includeImportStatus bool, includeSize bool, pageSize int32, pageNumber int32, filterType string, name string, id []string, sortBy string, sortOrder string) (*Dnclistdivisionviewlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/divisionviews" - defaultReturn := new(Dnclistdivisionviewlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeImportStatus"] = a.Configuration.APIClient.ParameterToString(includeImportStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["includeSize"] = a.Configuration.APIClient.ParameterToString(includeSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dnclistdivisionviewlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundEvent invokes GET /api/v2/outbound/events/{eventId} -// -// Get Dialer Event -// -// -func (a OutboundApi) GetOutboundEvent(eventId string) (*Eventlog, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/events/{eventId}" - path = strings.Replace(path, "{eventId}", fmt.Sprintf("%v", eventId), -1) - defaultReturn := new(Eventlog) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'eventId' is set - if &eventId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'eventId' when calling OutboundApi->GetOutboundEvent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Eventlog - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundEvents invokes GET /api/v2/outbound/events -// -// Query Event Logs -// -// -func (a OutboundApi) GetOutboundEvents(pageSize int32, pageNumber int32, filterType string, category string, level string, sortBy string, sortOrder string) (*Dialerevententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/events" - defaultReturn := new(Dialerevententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["category"] = a.Configuration.APIClient.ParameterToString(category, collectionFormat) - - - - - collectionFormat = "" - queryParams["level"] = a.Configuration.APIClient.ParameterToString(level, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Dialerevententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundRuleset invokes GET /api/v2/outbound/rulesets/{ruleSetId} -// -// Get a Rule Set by ID. -// -// -func (a OutboundApi) GetOutboundRuleset(ruleSetId string) (*Ruleset, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/rulesets/{ruleSetId}" - path = strings.Replace(path, "{ruleSetId}", fmt.Sprintf("%v", ruleSetId), -1) - defaultReturn := new(Ruleset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ruleSetId' is set - if &ruleSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ruleSetId' when calling OutboundApi->GetOutboundRuleset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ruleset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundRulesets invokes GET /api/v2/outbound/rulesets -// -// Query a list of Rule Sets. -// -// -func (a OutboundApi) GetOutboundRulesets(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string) (*Rulesetentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/rulesets" - defaultReturn := new(Rulesetentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Rulesetentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSchedulesCampaign invokes GET /api/v2/outbound/schedules/campaigns/{campaignId} -// -// Get a dialer campaign schedule. -// -// -func (a OutboundApi) GetOutboundSchedulesCampaign(campaignId string) (*Campaignschedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/campaigns/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaignschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->GetOutboundSchedulesCampaign") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSchedulesCampaigns invokes GET /api/v2/outbound/schedules/campaigns -// -// Query for a list of dialer campaign schedules. -// -// -func (a OutboundApi) GetOutboundSchedulesCampaigns() ([]Campaignschedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/campaigns" - defaultReturn := make([]Campaignschedule, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Campaignschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSchedulesSequence invokes GET /api/v2/outbound/schedules/sequences/{sequenceId} -// -// Get a dialer sequence schedule. -// -// -func (a OutboundApi) GetOutboundSchedulesSequence(sequenceId string) (*Sequenceschedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/sequences/{sequenceId}" - path = strings.Replace(path, "{sequenceId}", fmt.Sprintf("%v", sequenceId), -1) - defaultReturn := new(Sequenceschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sequenceId' is set - if &sequenceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sequenceId' when calling OutboundApi->GetOutboundSchedulesSequence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Sequenceschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSchedulesSequences invokes GET /api/v2/outbound/schedules/sequences -// -// Query for a list of dialer sequence schedules. -// -// -func (a OutboundApi) GetOutboundSchedulesSequences() ([]Sequenceschedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/sequences" - defaultReturn := make([]Sequenceschedule, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Sequenceschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSequence invokes GET /api/v2/outbound/sequences/{sequenceId} -// -// Get a dialer campaign sequence. -// -// -func (a OutboundApi) GetOutboundSequence(sequenceId string) (*Campaignsequence, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/sequences/{sequenceId}" - path = strings.Replace(path, "{sequenceId}", fmt.Sprintf("%v", sequenceId), -1) - defaultReturn := new(Campaignsequence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sequenceId' is set - if &sequenceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sequenceId' when calling OutboundApi->GetOutboundSequence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignsequence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSequences invokes GET /api/v2/outbound/sequences -// -// Query a list of dialer campaign sequences. -// -// -func (a OutboundApi) GetOutboundSequences(pageSize int32, pageNumber int32, filterType string, name string, sortBy string, sortOrder string) (*Campaignsequenceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/sequences" - defaultReturn := new(Campaignsequenceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["filterType"] = a.Configuration.APIClient.ParameterToString(filterType, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Campaignsequenceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundSettings invokes GET /api/v2/outbound/settings -// -// Get the outbound settings for this organization -// -// -func (a OutboundApi) GetOutboundSettings() (*Outboundsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/settings" - defaultReturn := new(Outboundsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Outboundsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOutboundWrapupcodemappings invokes GET /api/v2/outbound/wrapupcodemappings -// -// Get the Dialer wrap up code mapping. -// -// -func (a OutboundApi) GetOutboundWrapupcodemappings() (*Wrapupcodemapping, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/wrapupcodemappings" - defaultReturn := new(Wrapupcodemapping) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wrapupcodemapping - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchOutboundSettings invokes PATCH /api/v2/outbound/settings -// -// Update the outbound settings for this organization -// -// -func (a OutboundApi) PatchOutboundSettings(body Outboundsettings) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/settings" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PatchOutboundSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostOutboundAttemptlimits invokes POST /api/v2/outbound/attemptlimits -// -// Create attempt limits -// -// -func (a OutboundApi) PostOutboundAttemptlimits(body Attemptlimits) (*Attemptlimits, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/attemptlimits" - defaultReturn := new(Attemptlimits) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundAttemptlimits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Attemptlimits - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundAudits invokes POST /api/v2/outbound/audits -// -// Retrieves audits for dialer. -// -// -func (a OutboundApi) PostOutboundAudits(body Dialerauditrequest, pageSize int32, pageNumber int32, sortBy string, sortOrder string, facetsOnly bool) (*Auditsearchresult, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/audits" - defaultReturn := new(Auditsearchresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundAudits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["facetsOnly"] = a.Configuration.APIClient.ParameterToString(facetsOnly, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Auditsearchresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundCallabletimesets invokes POST /api/v2/outbound/callabletimesets -// -// Create callable time set -// -// -func (a OutboundApi) PostOutboundCallabletimesets(body Callabletimeset) (*Callabletimeset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callabletimesets" - defaultReturn := new(Callabletimeset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundCallabletimesets") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Callabletimeset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundCallanalysisresponsesets invokes POST /api/v2/outbound/callanalysisresponsesets -// -// Create a dialer call analysis response set. -// -// -func (a OutboundApi) PostOutboundCallanalysisresponsesets(body Responseset) (*Responseset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callanalysisresponsesets" - defaultReturn := new(Responseset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundCallanalysisresponsesets") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Responseset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundCampaignCallbackSchedule invokes POST /api/v2/outbound/campaigns/{campaignId}/callback/schedule -// -// Schedule a Callback for a Dialer Campaign (Deprecated) -// -// This endpoint is deprecated and may have unexpected results. Please use \"/conversations/{conversationId}/participants/{participantId}/callbacks instead.\" -func (a OutboundApi) PostOutboundCampaignCallbackSchedule(campaignId string, body Contactcallbackrequest) (*Contactcallbackrequest, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/callback/schedule" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Contactcallbackrequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->PostOutboundCampaignCallbackSchedule") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundCampaignCallbackSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Contactcallbackrequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundCampaignrules invokes POST /api/v2/outbound/campaignrules -// -// Create Campaign Rule -// -// -func (a OutboundApi) PostOutboundCampaignrules(body Campaignrule) (*Campaignrule, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaignrules" - defaultReturn := new(Campaignrule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundCampaignrules") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaignrule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundCampaigns invokes POST /api/v2/outbound/campaigns -// -// Create a campaign. -// -// -func (a OutboundApi) PostOutboundCampaigns(body Campaign) (*Campaign, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns" - defaultReturn := new(Campaign) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundCampaigns") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaign - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundCampaignsProgress invokes POST /api/v2/outbound/campaigns/progress -// -// Get progress for a list of campaigns -// -// -func (a OutboundApi) PostOutboundCampaignsProgress(body []string) ([]Campaignprogress, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/progress" - defaultReturn := make([]Campaignprogress, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundCampaignsProgress") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Campaignprogress - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundContactlistClear invokes POST /api/v2/outbound/contactlists/{contactListId}/clear -// -// Deletes all contacts out of a list. All outstanding recalls or rule-scheduled callbacks for non-preview campaigns configured with the contactlist will be cancelled. -// -// -func (a OutboundApi) PostOutboundContactlistClear(contactListId string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/clear" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->PostOutboundContactlistClear") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostOutboundContactlistContacts invokes POST /api/v2/outbound/contactlists/{contactListId}/contacts -// -// Add contacts to a contact list. -// -// -func (a OutboundApi) PostOutboundContactlistContacts(contactListId string, body []Writabledialercontact, priority bool, clearSystemData bool, doNotQueue bool) ([]Dialercontact, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/contacts" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := make([]Dialercontact, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->PostOutboundContactlistContacts") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundContactlistContacts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["priority"] = a.Configuration.APIClient.ParameterToString(priority, collectionFormat) - - - - - collectionFormat = "" - queryParams["clearSystemData"] = a.Configuration.APIClient.ParameterToString(clearSystemData, collectionFormat) - - - - - collectionFormat = "" - queryParams["doNotQueue"] = a.Configuration.APIClient.ParameterToString(doNotQueue, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Dialercontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundContactlistContactsBulk invokes POST /api/v2/outbound/contactlists/{contactListId}/contacts/bulk -// -// Get contacts from a contact list. -// -// -func (a OutboundApi) PostOutboundContactlistContactsBulk(contactListId string, body []string) ([]Dialercontact, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/contacts/bulk" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := make([]Dialercontact, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->PostOutboundContactlistContactsBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundContactlistContactsBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Dialercontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundContactlistExport invokes POST /api/v2/outbound/contactlists/{contactListId}/export -// -// Initiate the export of a contact list. -// -// Returns 200 if received OK. -func (a OutboundApi) PostOutboundContactlistExport(contactListId string) (*Domainentityref, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/export" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Domainentityref) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->PostOutboundContactlistExport") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainentityref - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundContactlistfilters invokes POST /api/v2/outbound/contactlistfilters -// -// Create Contact List Filter -// -// -func (a OutboundApi) PostOutboundContactlistfilters(body Contactlistfilter) (*Contactlistfilter, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlistfilters" - defaultReturn := new(Contactlistfilter) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundContactlistfilters") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Contactlistfilter - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundContactlistfiltersPreview invokes POST /api/v2/outbound/contactlistfilters/preview -// -// Get a preview of the output of a contact list filter -// -// -func (a OutboundApi) PostOutboundContactlistfiltersPreview(body Contactlistfilter) (*Filterpreviewresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlistfilters/preview" - defaultReturn := new(Filterpreviewresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundContactlistfiltersPreview") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Filterpreviewresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundContactlists invokes POST /api/v2/outbound/contactlists -// -// Create a contact List. -// -// -func (a OutboundApi) PostOutboundContactlists(body Contactlist) (*Contactlist, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists" - defaultReturn := new(Contactlist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundContactlists") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Contactlist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundConversationDnc invokes POST /api/v2/outbound/conversations/{conversationId}/dnc -// -// Add phone numbers to a Dialer DNC list. -// -// -func (a OutboundApi) PostOutboundConversationDnc(conversationId string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/conversations/{conversationId}/dnc" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling OutboundApi->PostOutboundConversationDnc") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostOutboundDnclistExport invokes POST /api/v2/outbound/dnclists/{dncListId}/export -// -// Initiate the export of a dnc list. -// -// Returns 200 if received OK. -func (a OutboundApi) PostOutboundDnclistExport(dncListId string) (*Domainentityref, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}/export" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - defaultReturn := new(Domainentityref) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->PostOutboundDnclistExport") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainentityref - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundDnclistPhonenumbers invokes POST /api/v2/outbound/dnclists/{dncListId}/phonenumbers -// -// Add phone numbers to a Dialer DNC list. -// -// Only Internal DNC lists may be appended to -func (a OutboundApi) PostOutboundDnclistPhonenumbers(dncListId string, body []string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}/phonenumbers" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->PostOutboundDnclistPhonenumbers") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundDnclistPhonenumbers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostOutboundDnclists invokes POST /api/v2/outbound/dnclists -// -// Create dialer DNC list -// -// -func (a OutboundApi) PostOutboundDnclists(body Dnclistcreate) (*Dnclist, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists" - defaultReturn := new(Dnclist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundDnclists") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Dnclist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundRulesets invokes POST /api/v2/outbound/rulesets -// -// Create a Dialer Call Analysis Response Set. -// -// -func (a OutboundApi) PostOutboundRulesets(body Ruleset) (*Ruleset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/rulesets" - defaultReturn := new(Ruleset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundRulesets") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Ruleset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostOutboundSequences invokes POST /api/v2/outbound/sequences -// -// Create a new campaign sequence. -// -// -func (a OutboundApi) PostOutboundSequences(body Campaignsequence) (*Campaignsequence, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/sequences" - defaultReturn := new(Campaignsequence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PostOutboundSequences") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaignsequence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundAttemptlimit invokes PUT /api/v2/outbound/attemptlimits/{attemptLimitsId} -// -// Update attempt limits -// -// -func (a OutboundApi) PutOutboundAttemptlimit(attemptLimitsId string, body Attemptlimits) (*Attemptlimits, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/attemptlimits/{attemptLimitsId}" - path = strings.Replace(path, "{attemptLimitsId}", fmt.Sprintf("%v", attemptLimitsId), -1) - defaultReturn := new(Attemptlimits) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'attemptLimitsId' is set - if &attemptLimitsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'attemptLimitsId' when calling OutboundApi->PutOutboundAttemptlimit") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundAttemptlimit") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Attemptlimits - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundCallabletimeset invokes PUT /api/v2/outbound/callabletimesets/{callableTimeSetId} -// -// Update callable time set -// -// -func (a OutboundApi) PutOutboundCallabletimeset(callableTimeSetId string, body Callabletimeset) (*Callabletimeset, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callabletimesets/{callableTimeSetId}" - path = strings.Replace(path, "{callableTimeSetId}", fmt.Sprintf("%v", callableTimeSetId), -1) - defaultReturn := new(Callabletimeset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'callableTimeSetId' is set - if &callableTimeSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'callableTimeSetId' when calling OutboundApi->PutOutboundCallabletimeset") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundCallabletimeset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Callabletimeset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundCallanalysisresponseset invokes PUT /api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId} -// -// Update a dialer call analysis response set. -// -// -func (a OutboundApi) PutOutboundCallanalysisresponseset(callAnalysisSetId string, body Responseset) (*Responseset, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}" - path = strings.Replace(path, "{callAnalysisSetId}", fmt.Sprintf("%v", callAnalysisSetId), -1) - defaultReturn := new(Responseset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'callAnalysisSetId' is set - if &callAnalysisSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'callAnalysisSetId' when calling OutboundApi->PutOutboundCallanalysisresponseset") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundCallanalysisresponseset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Responseset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundCampaign invokes PUT /api/v2/outbound/campaigns/{campaignId} -// -// Update a campaign. -// -// -func (a OutboundApi) PutOutboundCampaign(campaignId string, body Campaign) (*Campaign, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaign) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->PutOutboundCampaign") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundCampaign") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaign - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundCampaignAgent invokes PUT /api/v2/outbound/campaigns/{campaignId}/agents/{userId} -// -// Send notification that an agent's state changed -// -// New agent state. -func (a OutboundApi) PutOutboundCampaignAgent(campaignId string, userId string, body Agent) (*string, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaigns/{campaignId}/agents/{userId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->PutOutboundCampaignAgent") - } - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling OutboundApi->PutOutboundCampaignAgent") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundCampaignAgent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundCampaignrule invokes PUT /api/v2/outbound/campaignrules/{campaignRuleId} -// -// Update Campaign Rule -// -// -func (a OutboundApi) PutOutboundCampaignrule(campaignRuleId string, body Campaignrule) (*Campaignrule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/campaignrules/{campaignRuleId}" - path = strings.Replace(path, "{campaignRuleId}", fmt.Sprintf("%v", campaignRuleId), -1) - defaultReturn := new(Campaignrule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignRuleId' is set - if &campaignRuleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignRuleId' when calling OutboundApi->PutOutboundCampaignrule") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundCampaignrule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaignrule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundContactlist invokes PUT /api/v2/outbound/contactlists/{contactListId} -// -// Update a contact list. -// -// -func (a OutboundApi) PutOutboundContactlist(contactListId string, body Contactlist) (*Contactlist, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - defaultReturn := new(Contactlist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->PutOutboundContactlist") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundContactlist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Contactlist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundContactlistContact invokes PUT /api/v2/outbound/contactlists/{contactListId}/contacts/{contactId} -// -// Update a contact. -// -// -func (a OutboundApi) PutOutboundContactlistContact(contactListId string, contactId string, body Dialercontact) (*Dialercontact, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}" - path = strings.Replace(path, "{contactListId}", fmt.Sprintf("%v", contactListId), -1) - path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1) - defaultReturn := new(Dialercontact) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListId' is set - if &contactListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListId' when calling OutboundApi->PutOutboundContactlistContact") - } - // verify the required parameter 'contactId' is set - if &contactId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling OutboundApi->PutOutboundContactlistContact") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundContactlistContact") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Dialercontact - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundContactlistfilter invokes PUT /api/v2/outbound/contactlistfilters/{contactListFilterId} -// -// Update Contact List Filter -// -// -func (a OutboundApi) PutOutboundContactlistfilter(contactListFilterId string, body Contactlistfilter) (*Contactlistfilter, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/contactlistfilters/{contactListFilterId}" - path = strings.Replace(path, "{contactListFilterId}", fmt.Sprintf("%v", contactListFilterId), -1) - defaultReturn := new(Contactlistfilter) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contactListFilterId' is set - if &contactListFilterId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'contactListFilterId' when calling OutboundApi->PutOutboundContactlistfilter") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundContactlistfilter") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Contactlistfilter - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundDnclist invokes PUT /api/v2/outbound/dnclists/{dncListId} -// -// Update dialer DNC list -// -// -func (a OutboundApi) PutOutboundDnclist(dncListId string, body Dnclist) (*Dnclist, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/dnclists/{dncListId}" - path = strings.Replace(path, "{dncListId}", fmt.Sprintf("%v", dncListId), -1) - defaultReturn := new(Dnclist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dncListId' is set - if &dncListId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dncListId' when calling OutboundApi->PutOutboundDnclist") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundDnclist") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Dnclist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundRuleset invokes PUT /api/v2/outbound/rulesets/{ruleSetId} -// -// Update a RuleSet. -// -// -func (a OutboundApi) PutOutboundRuleset(ruleSetId string, body Ruleset) (*Ruleset, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/rulesets/{ruleSetId}" - path = strings.Replace(path, "{ruleSetId}", fmt.Sprintf("%v", ruleSetId), -1) - defaultReturn := new(Ruleset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ruleSetId' is set - if &ruleSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'ruleSetId' when calling OutboundApi->PutOutboundRuleset") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundRuleset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Ruleset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundSchedulesCampaign invokes PUT /api/v2/outbound/schedules/campaigns/{campaignId} -// -// Update a new campaign schedule. -// -// -func (a OutboundApi) PutOutboundSchedulesCampaign(campaignId string, body Campaignschedule) (*Campaignschedule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/campaigns/{campaignId}" - path = strings.Replace(path, "{campaignId}", fmt.Sprintf("%v", campaignId), -1) - defaultReturn := new(Campaignschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'campaignId' is set - if &campaignId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'campaignId' when calling OutboundApi->PutOutboundSchedulesCampaign") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundSchedulesCampaign") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaignschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundSchedulesSequence invokes PUT /api/v2/outbound/schedules/sequences/{sequenceId} -// -// Update a new sequence schedule. -// -// -func (a OutboundApi) PutOutboundSchedulesSequence(sequenceId string, body Sequenceschedule) (*Sequenceschedule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/schedules/sequences/{sequenceId}" - path = strings.Replace(path, "{sequenceId}", fmt.Sprintf("%v", sequenceId), -1) - defaultReturn := new(Sequenceschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sequenceId' is set - if &sequenceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sequenceId' when calling OutboundApi->PutOutboundSchedulesSequence") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundSchedulesSequence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Sequenceschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundSequence invokes PUT /api/v2/outbound/sequences/{sequenceId} -// -// Update a new campaign sequence. -// -// -func (a OutboundApi) PutOutboundSequence(sequenceId string, body Campaignsequence) (*Campaignsequence, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/sequences/{sequenceId}" - path = strings.Replace(path, "{sequenceId}", fmt.Sprintf("%v", sequenceId), -1) - defaultReturn := new(Campaignsequence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sequenceId' is set - if &sequenceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sequenceId' when calling OutboundApi->PutOutboundSequence") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundSequence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Campaignsequence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOutboundWrapupcodemappings invokes PUT /api/v2/outbound/wrapupcodemappings -// -// Update the Dialer wrap up code mapping. -// -// -func (a OutboundApi) PutOutboundWrapupcodemappings(body Wrapupcodemapping) (*Wrapupcodemapping, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/outbound/wrapupcodemappings" - defaultReturn := new(Wrapupcodemapping) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling OutboundApi->PutOutboundWrapupcodemappings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Wrapupcodemapping - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go b/build/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go deleted file mode 100644 index b2a6540f1..000000000 --- a/build/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Outboundmessagingmessagingcampaignprogresseventcampaignprogress -type Outboundmessagingmessagingcampaignprogresseventcampaignprogress struct { - // Campaign - Campaign *Outboundmessagingmessagingcampaignprogresseventurireference `json:"campaign,omitempty"` - - - // NumberOfContactsCalled - NumberOfContactsCalled *float32 `json:"numberOfContactsCalled,omitempty"` - - - // NumberOfContactsMessaged - NumberOfContactsMessaged *float32 `json:"numberOfContactsMessaged,omitempty"` - - - // TotalNumberOfContacts - TotalNumberOfContacts *float32 `json:"totalNumberOfContacts,omitempty"` - - - // Percentage - Percentage *int32 `json:"percentage,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundmessagingmessagingcampaignprogresseventcampaignprogress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundmessagingmessagingcampaignprogresseventurireference.go b/build/platformclientv2/outboundmessagingmessagingcampaignprogresseventurireference.go deleted file mode 100644 index 27d893485..000000000 --- a/build/platformclientv2/outboundmessagingmessagingcampaignprogresseventurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Outboundmessagingmessagingcampaignprogresseventurireference -type Outboundmessagingmessagingcampaignprogresseventurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundmessagingmessagingcampaignprogresseventurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundroute.go b/build/platformclientv2/outboundroute.go deleted file mode 100644 index 6dd87b466..000000000 --- a/build/platformclientv2/outboundroute.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Outboundroute -type Outboundroute struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // ClassificationTypes - The site associated to the outbound route. - ClassificationTypes *[]string `json:"classificationTypes,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // Distribution - Distribution *string `json:"distribution,omitempty"` - - - // ExternalTrunkBases - Trunk base settings of trunkType \"EXTERNAL\". This base must also be set on an edge logical interface for correct routing. - ExternalTrunkBases *[]Domainentityref `json:"externalTrunkBases,omitempty"` - - - // Site - The site associated to the outbound route. - Site *Site `json:"site,omitempty"` - - - // Managed - Is this outbound route being managed remotely. - Managed *bool `json:"managed,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundroute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundroutebase.go b/build/platformclientv2/outboundroutebase.go deleted file mode 100644 index 164f9a6a5..000000000 --- a/build/platformclientv2/outboundroutebase.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Outboundroutebase -type Outboundroutebase struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // ClassificationTypes - The site associated to the outbound route. - ClassificationTypes *[]string `json:"classificationTypes,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // Distribution - Distribution *string `json:"distribution,omitempty"` - - - // ExternalTrunkBases - Trunk base settings of trunkType \"EXTERNAL\". This base must also be set on an edge logical interface for correct routing. - ExternalTrunkBases *[]Domainentityref `json:"externalTrunkBases,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundroutebase) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundroutebaseentitylisting.go b/build/platformclientv2/outboundroutebaseentitylisting.go deleted file mode 100644 index 1ef36482c..000000000 --- a/build/platformclientv2/outboundroutebaseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Outboundroutebaseentitylisting -type Outboundroutebaseentitylisting struct { - // Entities - Entities *[]Outboundroutebase `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundroutebaseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundrouteentitylisting.go b/build/platformclientv2/outboundrouteentitylisting.go deleted file mode 100644 index c4eb4abd0..000000000 --- a/build/platformclientv2/outboundrouteentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Outboundrouteentitylisting -type Outboundrouteentitylisting struct { - // Entities - Entities *[]Outboundroute `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundrouteentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outboundsettings.go b/build/platformclientv2/outboundsettings.go deleted file mode 100644 index cc994ea91..000000000 --- a/build/platformclientv2/outboundsettings.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Outboundsettings -type Outboundsettings struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // MaxCallsPerAgent - The maximum number of calls that can be placed per agent on any campaign - MaxCallsPerAgent *int32 `json:"maxCallsPerAgent,omitempty"` - - - // MaxConfigurableCallsPerAgent - The maximum number of calls that can be configured to be placed per agent on any campaign - MaxConfigurableCallsPerAgent *int32 `json:"maxConfigurableCallsPerAgent,omitempty"` - - - // MaxLineUtilization - The maximum percentage of lines that should be used for Outbound, expressed as a decimal in the range [0.0, 1.0] - MaxLineUtilization *float64 `json:"maxLineUtilization,omitempty"` - - - // AbandonSeconds - The number of seconds used to determine if a call is abandoned - AbandonSeconds *float64 `json:"abandonSeconds,omitempty"` - - - // ComplianceAbandonRateDenominator - The denominator to be used in determining the compliance abandon rate - ComplianceAbandonRateDenominator *string `json:"complianceAbandonRateDenominator,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outboundsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outofoffice.go b/build/platformclientv2/outofoffice.go deleted file mode 100644 index c7478a238..000000000 --- a/build/platformclientv2/outofoffice.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Outofoffice -type Outofoffice struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User **User `json:"user,omitempty"` - - - // StartDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndDate *time.Time `json:"endDate,omitempty"` - - - // Active - Active *bool `json:"active,omitempty"` - - - // Indefinite - Indefinite *bool `json:"indefinite,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outofoffice) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outofofficeeventoutofoffice.go b/build/platformclientv2/outofofficeeventoutofoffice.go deleted file mode 100644 index 4b27c5d73..000000000 --- a/build/platformclientv2/outofofficeeventoutofoffice.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Outofofficeeventoutofoffice -type Outofofficeeventoutofoffice struct { - // User - User *Outofofficeeventuser `json:"user,omitempty"` - - - // Active - Active *bool `json:"active,omitempty"` - - - // Indefinite - Indefinite *bool `json:"indefinite,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outofofficeeventoutofoffice) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/outofofficeeventuser.go b/build/platformclientv2/outofofficeeventuser.go deleted file mode 100644 index 9d8769c0e..000000000 --- a/build/platformclientv2/outofofficeeventuser.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Outofofficeeventuser -type Outofofficeeventuser struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Outofofficeeventuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/page.go b/build/platformclientv2/page.go deleted file mode 100644 index a79ceb429..000000000 --- a/build/platformclientv2/page.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Page -type Page struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VersionId - VersionId *string `json:"versionId,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // RootContainer - RootContainer *map[string]interface{} `json:"rootContainer,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Page) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/pagingspec.go b/build/platformclientv2/pagingspec.go deleted file mode 100644 index 3ccec1375..000000000 --- a/build/platformclientv2/pagingspec.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Pagingspec -type Pagingspec struct { - // PageSize - How many results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - How many pages in - PageNumber *int32 `json:"pageNumber,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Pagingspec) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/parameter.go b/build/platformclientv2/parameter.go deleted file mode 100644 index 3a14260f6..000000000 --- a/build/platformclientv2/parameter.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Parameter -type Parameter struct { - // Name - Name *string `json:"name,omitempty"` - - - // ParameterType - ParameterType *string `json:"parameterType,omitempty"` - - - // Domain - Domain *string `json:"domain,omitempty"` - - - // Required - Required *bool `json:"required,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Parameter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/parsedcertificate.go b/build/platformclientv2/parsedcertificate.go deleted file mode 100644 index eca549588..000000000 --- a/build/platformclientv2/parsedcertificate.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Parsedcertificate - Represents the parsed certificate information. -type Parsedcertificate struct { - // CertificateDetails - The details of the certificates that were parsed correctly. - CertificateDetails *[]Certificatedetails `json:"certificateDetails,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Parsedcertificate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/partialuploadresponse.go b/build/platformclientv2/partialuploadresponse.go deleted file mode 100644 index 95814f0b3..000000000 --- a/build/platformclientv2/partialuploadresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Partialuploadresponse -type Partialuploadresponse struct { - // Id - The reference id for a partial import request - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Partialuploadresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/participant.go b/build/platformclientv2/participant.go deleted file mode 100644 index d57334600..000000000 --- a/build/platformclientv2/participant.go +++ /dev/null @@ -1,186 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Participant -type Participant struct { - // Id - A globally unique identifier for this conversation. - Id *string `json:"id,omitempty"` - - - // StartTime - The timestamp when this participant joined the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The timestamp when this participant disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // ConnectedTime - The timestamp when this participant was connected to the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // Name - A human readable name identifying the participant. - Name *string `json:"name,omitempty"` - - - // UserUri - If this participant represents a user, then this will be an URI that can be used to fetch the user. - UserUri *string `json:"userUri,omitempty"` - - - // UserId - If this participant represents a user, then this will be the globally unique identifier for the user. - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - If this participant represents an external contact, then this will be the globally unique identifier for the external contact. - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - If this participant represents an external org, then this will be the globally unique identifier for the external org. - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // QueueId - If present, the queue id that the communication channel came in on. - QueueId *string `json:"queueId,omitempty"` - - - // GroupId - If present, group of users the participant represents. - GroupId *string `json:"groupId,omitempty"` - - - // QueueName - If present, the queue name that the communication channel came in on. - QueueName *string `json:"queueName,omitempty"` - - - // Purpose - A well known string that specifies the purpose of this participant. - Purpose *string `json:"purpose,omitempty"` - - - // ParticipantType - A well known string that specifies the type of this participant. - ParticipantType *string `json:"participantType,omitempty"` - - - // ConsultParticipantId - If this participant is part of a consult transfer, then this will be the participant id of the participant being transferred. - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // Address - The address for the this participant. For a phone call this will be the ANI. - Address *string `json:"address,omitempty"` - - - // Ani - The address for the this participant. For a phone call this will be the ANI. - Ani *string `json:"ani,omitempty"` - - - // AniName - The ani-based name for this participant. - AniName *string `json:"aniName,omitempty"` - - - // Dnis - The address for the this participant. For a phone call this will be the ANI. - Dnis *string `json:"dnis,omitempty"` - - - // Locale - An ISO 639 language code specifying the locale for this participant - Locale *string `json:"locale,omitempty"` - - - // WrapupRequired - True iff this participant is required to enter wrapup for this conversation. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - This field controls how the UI prompts the agent for a wrapup. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // WrapupTimeoutMs - Specifies how long a timed ACW session will last. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - The UI sets this field when the agent chooses to skip entering a wrapup for this participant. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // Wrapup - Call wrap up or disposition data. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // MonitoredParticipantId - If this participant is a monitor, then this will be the id of the participant that is being monitored. - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // Attributes - Additional participant attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // Calls - Calls *[]Call `json:"calls,omitempty"` - - - // Callbacks - Callbacks *[]Callback `json:"callbacks,omitempty"` - - - // Chats - Chats *[]Conversationchat `json:"chats,omitempty"` - - - // Cobrowsesessions - Cobrowsesessions *[]Cobrowsesession `json:"cobrowsesessions,omitempty"` - - - // Emails - Emails *[]Email `json:"emails,omitempty"` - - - // Messages - Messages *[]Message `json:"messages,omitempty"` - - - // Screenshares - Screenshares *[]Screenshare `json:"screenshares,omitempty"` - - - // SocialExpressions - SocialExpressions *[]Socialexpression `json:"socialExpressions,omitempty"` - - - // Videos - Videos *[]Video `json:"videos,omitempty"` - - - // Evaluations - Evaluations *[]Evaluation `json:"evaluations,omitempty"` - - - // ScreenRecordingState - The current screen recording state for this participant. - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Participant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/participantattributes.go b/build/platformclientv2/participantattributes.go deleted file mode 100644 index 477a3ff9e..000000000 --- a/build/platformclientv2/participantattributes.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Participantattributes -type Participantattributes struct { - // Attributes - The map of attribute keys to values. - Attributes *map[string]string `json:"attributes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Participantattributes) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/participantbasic.go b/build/platformclientv2/participantbasic.go deleted file mode 100644 index 72643ca0f..000000000 --- a/build/platformclientv2/participantbasic.go +++ /dev/null @@ -1,186 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Participantbasic -type Participantbasic struct { - // Id - A globally unique identifier for this conversation. - Id *string `json:"id,omitempty"` - - - // StartTime - The timestamp when this participant joined the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The timestamp when this participant disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // ConnectedTime - The timestamp when this participant was connected to the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // Name - A human readable name identifying the participant. - Name *string `json:"name,omitempty"` - - - // UserUri - If this participant represents a user, then this will be an URI that can be used to fetch the user. - UserUri *string `json:"userUri,omitempty"` - - - // UserId - If this participant represents a user, then this will be the globally unique identifier for the user. - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - If this participant represents an external contact, then this will be the globally unique identifier for the external contact. - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - If this participant represents an external org, then this will be the globally unique identifier for the external org. - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // QueueId - If present, the queue id that the communication channel came in on. - QueueId *string `json:"queueId,omitempty"` - - - // GroupId - If present, group of users the participant represents. - GroupId *string `json:"groupId,omitempty"` - - - // QueueName - If present, the queue name that the communication channel came in on. - QueueName *string `json:"queueName,omitempty"` - - - // Purpose - A well known string that specifies the purpose of this participant. - Purpose *string `json:"purpose,omitempty"` - - - // ParticipantType - A well known string that specifies the type of this participant. - ParticipantType *string `json:"participantType,omitempty"` - - - // ConsultParticipantId - If this participant is part of a consult transfer, then this will be the participant id of the participant being transferred. - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // Address - The address for the this participant. For a phone call this will be the ANI. - Address *string `json:"address,omitempty"` - - - // Ani - The address for the this participant. For a phone call this will be the ANI. - Ani *string `json:"ani,omitempty"` - - - // AniName - The ani-based name for this participant. - AniName *string `json:"aniName,omitempty"` - - - // Dnis - The address for the this participant. For a phone call this will be the ANI. - Dnis *string `json:"dnis,omitempty"` - - - // Locale - An ISO 639 language code specifying the locale for this participant - Locale *string `json:"locale,omitempty"` - - - // WrapupRequired - True iff this participant is required to enter wrapup for this conversation. - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - This field controls how the UI prompts the agent for a wrapup. - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // WrapupTimeoutMs - Specifies how long a timed ACW session will last. - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - The UI sets this field when the agent chooses to skip entering a wrapup for this participant. - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // Wrapup - Call wrap up or disposition data. - Wrapup *Wrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - Information on how a communication should be routed to an agent. - ConversationRoutingData *Conversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // AlertingTimeoutMs - Specifies how long the agent has to answer an interaction before being marked as not responding. - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // MonitoredParticipantId - If this participant is a monitor, then this will be the id of the participant that is being monitored. - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // Attributes - Additional participant attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // Calls - Calls *[]Callbasic `json:"calls,omitempty"` - - - // Callbacks - Callbacks *[]Callbackbasic `json:"callbacks,omitempty"` - - - // Chats - Chats *[]Conversationchat `json:"chats,omitempty"` - - - // Cobrowsesessions - Cobrowsesessions *[]Cobrowsesession `json:"cobrowsesessions,omitempty"` - - - // Emails - Emails *[]Email `json:"emails,omitempty"` - - - // Messages - Messages *[]Message `json:"messages,omitempty"` - - - // Screenshares - Screenshares *[]Screenshare `json:"screenshares,omitempty"` - - - // SocialExpressions - SocialExpressions *[]Socialexpression `json:"socialExpressions,omitempty"` - - - // Videos - Videos *[]Video `json:"videos,omitempty"` - - - // Evaluations - Evaluations *[]Evaluation `json:"evaluations,omitempty"` - - - // ScreenRecordingState - The current screen recording state for this participant. - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - The reason specifying why participant flagged the conversation. - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // StartAcwTime - The timestamp when this participant started after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - The timestamp when this participant ended after-call work. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Participantbasic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/patchuser.go b/build/platformclientv2/patchuser.go deleted file mode 100644 index 0770264ad..000000000 --- a/build/platformclientv2/patchuser.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Patchuser -type Patchuser struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // AcdAutoAnswer - The value that denotes if acdAutoAnswer is set on the user - AcdAutoAnswer *bool `json:"acdAutoAnswer,omitempty"` - - - // Certifications - Certifications *[]string `json:"certifications,omitempty"` - - - // Biography - Biography *Biography `json:"biography,omitempty"` - - - // EmployerInfo - EmployerInfo *Employerinfo `json:"employerInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Patchuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/permissioncollectionentitylisting.go b/build/platformclientv2/permissioncollectionentitylisting.go deleted file mode 100644 index 1c7c37a9d..000000000 --- a/build/platformclientv2/permissioncollectionentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Permissioncollectionentitylisting -type Permissioncollectionentitylisting struct { - // Entities - Entities *[]Domainpermissioncollection `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Permissioncollectionentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/permissions.go b/build/platformclientv2/permissions.go deleted file mode 100644 index 731e72998..000000000 --- a/build/platformclientv2/permissions.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Permissions -type Permissions struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Ids - List of permission ids. - Ids *[]string `json:"ids,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Permissions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phone.go b/build/platformclientv2/phone.go deleted file mode 100644 index 184e456ee..000000000 --- a/build/platformclientv2/phone.go +++ /dev/null @@ -1,114 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Phone -type Phone struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Site - The site associated to the phone. - Site *Domainentityref `json:"site,omitempty"` - - - // PhoneBaseSettings - Phone Base Settings - PhoneBaseSettings *Domainentityref `json:"phoneBaseSettings,omitempty"` - - - // LineBaseSettings - LineBaseSettings *Domainentityref `json:"lineBaseSettings,omitempty"` - - - // PhoneMetaBase - PhoneMetaBase *Domainentityref `json:"phoneMetaBase,omitempty"` - - - // Lines - Lines - Lines *[]Line `json:"lines,omitempty"` - - - // Status - The status of the phone and lines from the primary Edge. - Status *Phonestatus `json:"status,omitempty"` - - - // SecondaryStatus - The status of the phone and lines from the secondary Edge. - SecondaryStatus *Phonestatus `json:"secondaryStatus,omitempty"` - - - // UserAgentInfo - User Agent Information for this phone. This includes model, firmware version, and manufacturer. - UserAgentInfo *Useragentinfo `json:"userAgentInfo,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // Capabilities - Capabilities *Phonecapabilities `json:"capabilities,omitempty"` - - - // WebRtcUser - This is the user associated with a WebRTC type phone. It is required for all WebRTC phones. - WebRtcUser *Domainentityref `json:"webRtcUser,omitempty"` - - - // PrimaryEdge - PrimaryEdge *Edge `json:"primaryEdge,omitempty"` - - - // SecondaryEdge - SecondaryEdge *Edge `json:"secondaryEdge,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phone) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonebase.go b/build/platformclientv2/phonebase.go deleted file mode 100644 index 555759f40..000000000 --- a/build/platformclientv2/phonebase.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Phonebase -type Phonebase struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // PhoneMetaBase - A phone metabase is essentially a database for storing phone configuration settings, which simplifies the configuration process. - PhoneMetaBase *Domainentityref `json:"phoneMetaBase,omitempty"` - - - // Lines - The list of linebases associated with the phone base. - Lines *[]Linebase `json:"lines,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // Capabilities - Capabilities *Phonecapabilities `json:"capabilities,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonebase) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonebaseentitylisting.go b/build/platformclientv2/phonebaseentitylisting.go deleted file mode 100644 index 27a4b6b69..000000000 --- a/build/platformclientv2/phonebaseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonebaseentitylisting -type Phonebaseentitylisting struct { - // Entities - Entities *[]Phonebase `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonebaseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonecapabilities.go b/build/platformclientv2/phonecapabilities.go deleted file mode 100644 index b50e9017f..000000000 --- a/build/platformclientv2/phonecapabilities.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonecapabilities -type Phonecapabilities struct { - // Provisions - Provisions *bool `json:"provisions,omitempty"` - - - // Registers - Registers *bool `json:"registers,omitempty"` - - - // DualRegisters - DualRegisters *bool `json:"dualRegisters,omitempty"` - - - // HardwareIdType - HardwareIdType *string `json:"hardwareIdType,omitempty"` - - - // AllowReboot - AllowReboot *bool `json:"allowReboot,omitempty"` - - - // NoRebalance - NoRebalance *bool `json:"noRebalance,omitempty"` - - - // NoCloudProvisioning - NoCloudProvisioning *bool `json:"noCloudProvisioning,omitempty"` - - - // MediaCodecs - MediaCodecs *[]string `json:"mediaCodecs,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonecapabilities) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonecolumn.go b/build/platformclientv2/phonecolumn.go deleted file mode 100644 index acdea1da1..000000000 --- a/build/platformclientv2/phonecolumn.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonecolumn -type Phonecolumn struct { - // ColumnName - The name of the phone column. - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - The type of the phone column. For example, 'cell' or 'home'. - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonecolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phoneentitylisting.go b/build/platformclientv2/phoneentitylisting.go deleted file mode 100644 index fbac75efe..000000000 --- a/build/platformclientv2/phoneentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phoneentitylisting -type Phoneentitylisting struct { - // Entities - Entities *[]Phone `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phoneentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonemetabaseentitylisting.go b/build/platformclientv2/phonemetabaseentitylisting.go deleted file mode 100644 index 2718cedab..000000000 --- a/build/platformclientv2/phonemetabaseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonemetabaseentitylisting -type Phonemetabaseentitylisting struct { - // Entities - Entities *[]Metabase `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonemetabaseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonenumber.go b/build/platformclientv2/phonenumber.go deleted file mode 100644 index 9cf8ea0a9..000000000 --- a/build/platformclientv2/phonenumber.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonenumber -type Phonenumber struct { - // Display - Display *string `json:"display,omitempty"` - - - // Extension - Extension *int64 `json:"extension,omitempty"` - - - // AcceptsSMS - AcceptsSMS *bool `json:"acceptsSMS,omitempty"` - - - // UserInput - UserInput *string `json:"userInput,omitempty"` - - - // E164 - E164 *string `json:"e164,omitempty"` - - - // CountryCode - CountryCode *string `json:"countryCode,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonenumber) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonenumbercolumn.go b/build/platformclientv2/phonenumbercolumn.go deleted file mode 100644 index 4fccf0530..000000000 --- a/build/platformclientv2/phonenumbercolumn.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonenumbercolumn -type Phonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonenumberstatus.go b/build/platformclientv2/phonenumberstatus.go deleted file mode 100644 index 56d39e5f1..000000000 --- a/build/platformclientv2/phonenumberstatus.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonenumberstatus -type Phonenumberstatus struct { - // Callable - Indicates whether or not a phone number is callable. - Callable *bool `json:"callable,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonenumberstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonesreboot.go b/build/platformclientv2/phonesreboot.go deleted file mode 100644 index 5c6fe724e..000000000 --- a/build/platformclientv2/phonesreboot.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonesreboot -type Phonesreboot struct { - // PhoneIds - The list of phone Ids to reboot. - PhoneIds *[]string `json:"phoneIds,omitempty"` - - - // SiteId - ID of the site for which to reboot all phones at that site. no.active.edge and phone.cannot.resolve errors are ignored. - SiteId *string `json:"siteId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonesreboot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/phonestatus.go b/build/platformclientv2/phonestatus.go deleted file mode 100644 index d489d9962..000000000 --- a/build/platformclientv2/phonestatus.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Phonestatus -type Phonestatus struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // OperationalStatus - The Operational Status of this phone - OperationalStatus *string `json:"operationalStatus,omitempty"` - - - // EdgesStatus - The status of the primary or secondary Edges assigned to the phone lines. - EdgesStatus *string `json:"edgesStatus,omitempty"` - - - // EventCreationTime - Event Creation Time represents an ISO-8601 string. For example: UTC, UTC+01:00, or Europe/London - EventCreationTime *string `json:"eventCreationTime,omitempty"` - - - // Provision - Provision information for this phone - Provision *Provisioninfo `json:"provision,omitempty"` - - - // LineStatuses - A list of LineStatus information for each of the lines of this phone - LineStatuses *[]Linestatus `json:"lineStatuses,omitempty"` - - - // PhoneAssignmentToEdgeType - The phone status's edge assignment type. - PhoneAssignmentToEdgeType *string `json:"phoneAssignmentToEdgeType,omitempty"` - - - // Edge - The URI of the edge that provided this status information. - Edge *Domainentityref `json:"edge,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Phonestatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/physicalinterfaceentitylisting.go b/build/platformclientv2/physicalinterfaceentitylisting.go deleted file mode 100644 index 6298082eb..000000000 --- a/build/platformclientv2/physicalinterfaceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Physicalinterfaceentitylisting -type Physicalinterfaceentitylisting struct { - // Entities - Entities *[]Domainphysicalinterface `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Physicalinterfaceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/pinconfiguration.go b/build/platformclientv2/pinconfiguration.go deleted file mode 100644 index 7dfa6a252..000000000 --- a/build/platformclientv2/pinconfiguration.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Pinconfiguration -type Pinconfiguration struct { - // MinimumLength - MinimumLength *int32 `json:"minimumLength,omitempty"` - - - // MaximumLength - MaximumLength *int32 `json:"maximumLength,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Pinconfiguration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/pingidentity.go b/build/platformclientv2/pingidentity.go deleted file mode 100644 index 942cc8f42..000000000 --- a/build/platformclientv2/pingidentity.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Pingidentity -type Pingidentity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // RelyingPartyIdentifier - RelyingPartyIdentifier *string `json:"relyingPartyIdentifier,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Pingidentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/planningperiodsettings.go b/build/platformclientv2/planningperiodsettings.go deleted file mode 100644 index bc028dc7f..000000000 --- a/build/platformclientv2/planningperiodsettings.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Planningperiodsettings -type Planningperiodsettings struct { - // WeekCount - Planning period length in weeks - WeekCount *int32 `json:"weekCount,omitempty"` - - - // StartDate - Start date of the planning period in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd - StartDate *time.Time `json:"startDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Planningperiodsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/platformclientv2_test.go b/build/platformclientv2/platformclientv2_test.go deleted file mode 100644 index c88ca57bc..000000000 --- a/build/platformclientv2/platformclientv2_test.go +++ /dev/null @@ -1,289 +0,0 @@ -package platformclientv2 - -import ( - "encoding/json" - "fmt" - "os" - "reflect" - "testing" - - "github.com/google/uuid" -) - -type testConfig struct { - environment string - clientID string - clientSecret string - debug bool - userEmail string - usersAPI *UsersApi - userID string - userName string - userDepartment string - userProfileSkill string - busyPresenceID string - availablePresenceID string -} - -type testSerializationStruct struct { - IntProp int32 `json:"int,omitempty"` - IntPropArr []int32 `json:"intArr,omitempty"` - IntPropPtr *int32 `json:"intPtr,omitempty"` - IntPropArrPtr *[]int32 `json:"intArrPtr,omitempty"` - StringProp string `json:"string,omitempty"` - StringPropArr []string `json:"stringArr,omitempty"` - StringPropPtr *string `json:"stringPtr,omitempty"` - StringPropArrPtr *[]string `json:"stringArrPtr,omitempty"` - BoolProp bool `json:"bool,omitempty"` - BoolPropArr []bool `json:"boolArr,omitempty"` - BoolPropPtr *bool `json:"boolPtr,omitempty"` - BoolPropArrPtr *[]bool `json:"boolArrPtr,omitempty"` -} - -var config testConfig - -func TestEnvVars(t *testing.T) { - // Get - config = testConfig{ - environment: "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT"), - clientID: os.Getenv("PURECLOUD_CLIENT_ID"), - clientSecret: os.Getenv("PURECLOUD_CLIENT_SECRET"), - userName: "GO SDK Tester", - userDepartment: "Ministry of Testing", - userProfileSkill: "Testmaster", - busyPresenceID: "31fe3bac-dea6-44b7-bed7-47f91660a1a0", - availablePresenceID: "6a3af858-942f-489d-9700-5f9bcdcdae9b", - debug: false, - } - config.userEmail = fmt.Sprintf("%v@%v", uuid.New().String(), config.environment[12:]) - - // Check - if config.environment == "" { - t.Error("Not set: PURECLOUD_ENVIRONMENT") - } - if config.clientID == "" { - t.Error("Not set: PURECLOUD_CLIENT_ID") - } - if config.clientSecret == "" { - t.Error("Not set: PURECLOUD_CLIENT_SECRET") - } - if config.userEmail == "@"+config.environment[12:] { - t.Error("Invalid user email") - } - - // Setup - GetDefaultConfiguration().BasePath = config.environment - GetDefaultConfiguration().SetDebug(config.debug) - config.usersAPI = NewUsersApi() - - // Log - t.Logf("Enviornment: %v", config.environment) - t.Logf("clientID: %v", config.clientID) - t.Logf("userEmail: %v", config.userEmail) -} - -func TestDefaultValueSerialization(t *testing.T) { - expected := `{"intPtr":0,"intArrPtr":[],"stringPtr":"","stringArrPtr":[],"boolPtr":false,"boolArrPtr":[]}` - intPropArrPtr := make([]int32, 0) - stringPropArrPtr := make([]string, 0) - boolPropArrPtr := make([]bool, 0) - v := testSerializationStruct{ - IntProp: 0, - IntPropArr: make([]int32, 0), - IntPropPtr: Int32(0), - IntPropArrPtr: &intPropArrPtr, - StringProp: "", - StringPropArr: make([]string, 0), - StringPropPtr: String(""), - StringPropArrPtr: &stringPropArrPtr, - BoolProp: false, - BoolPropArr: make([]bool, 0), - BoolPropPtr: Bool(false), - BoolPropArrPtr: &boolPropArrPtr, - } - j, _ := json.Marshal(v) - s := string(j) - if s != expected { - t.Log("testSerializationStruct did not serialize correctly") - t.Logf("Expected: %v", expected) - t.Logf("Actual: %v", s) - t.FailNow() - } -} - -func TestValueSerialization(t *testing.T) { - expected := `{"int":10,"intArr":[0,0],"intPtr":10,"intArrPtr":[0,0],"string":"asdf","stringArr":["",""],"stringPtr":"asdf","stringArrPtr":["",""],"bool":true,"boolArr":[false,false],"boolPtr":true,"boolArrPtr":[false,false]}` - intPropArrPtr := make([]int32, 2) - stringPropArrPtr := make([]string, 2) - boolPropArrPtr := make([]bool, 2) - v := testSerializationStruct{ - IntProp: 10, - IntPropArr: make([]int32, 2), - IntPropPtr: Int32(10), - IntPropArrPtr: &intPropArrPtr, - StringProp: "asdf", - StringPropArr: make([]string, 2), - StringPropPtr: String("asdf"), - StringPropArrPtr: &stringPropArrPtr, - BoolProp: true, - BoolPropArr: make([]bool, 2), - BoolPropPtr: Bool(true), - BoolPropArrPtr: &boolPropArrPtr, - } - j, _ := json.Marshal(v) - s := string(j) - if s != expected { - t.Log("testSerializationStruct did not serialize correctly") - t.Logf("Expected: %v", expected) - t.Logf("Actual: %v", s) - t.FailNow() - } -} - -func TestAuthentication(t *testing.T) { - err := GetDefaultConfiguration().AuthorizeClientCredentials(config.clientID, config.clientSecret) - if err != nil { - t.Error(err) - } -} - -func TestCreateUser(t *testing.T) { - // Create user - password := uuid.New().String() + "!@#$1234asdfASDF" - newUser := Createuser{Name: &config.userName, Email: &config.userEmail, Password: &password} - - user, response, err := config.usersAPI.PostUsers(newUser) - if err != nil { - t.Error(err) - } else if response != nil && response.Error != nil { - t.Error(response.Error) - } else { - // Validate response - if *user.Name != config.userName { - t.Error("Data mismatch: user.Name") - } - if *user.Email != config.userEmail { - t.Error("Data mismatch: user.Email") - } - - // Store user ID - config.userID = *user.Id - t.Logf("New user's ID: %v", *user.Id) - } -} - -func TestUpdateUser(t *testing.T) { - // Update user - updateUser := Updateuser{Department: &config.userDepartment, Version: Int32(1)} - - user, response, err := config.usersAPI.PatchUser(config.userID, updateUser) - if err != nil { - t.Error(err) - } else if response != nil && response.Error != nil { - t.Error(response.Error) - } else { - // Validate response - if *user.Name != config.userName { - t.Error("Data mismatch: user.Name") - } - if *user.Email != config.userEmail { - t.Error("Data mismatch: user.Email") - } - if *user.Department != config.userDepartment { - t.Error("Data mismatch: user.Department") - } - } -} - -func TestSetProfileSkills(t *testing.T) { - // Update user - skills, response, err := config.usersAPI.PutUserProfileskills(config.userID, []string{config.userProfileSkill}) - if err != nil { - t.Error(err) - } else if response != nil && response.Error != nil { - t.Error(response.Error) - } else { - // Validate response - if len(skills) != 1 { - t.Errorf("Skills array contained the wrong number of elements. Expected 1: %v", skills) - } else if skills[0] != config.userProfileSkill { - t.Errorf("Skill did not match. Expected %v, actual: %v", config.userProfileSkill, skills[0]) - } - } -} - -func TestGetUser(t *testing.T) { - // Get user - user, response, err := config.usersAPI.GetUser(config.userID, []string{"profileSkills"}, "") - if err != nil { - t.Error(err) - } else if response != nil && response.Error != nil { - t.Error(response.Error) - } else { - // Validate response - if *user.Name != config.userName { - t.Error("Data mismatch: user.Name") - } - if *user.Email != config.userEmail { - t.Error("Data mismatch: user.Email") - } - if *user.Department != config.userDepartment { - t.Error("Data mismatch: user.Department") - } - if user.ProfileSkills == nil || len(*user.ProfileSkills) != 1 || (*user.ProfileSkills)[0] != config.userProfileSkill { - t.Error("Data mismatch: user.ProfileSkills") - } - } -} - -func TestDeleteUser(t *testing.T) { - // Delete user - _, response, err := config.usersAPI.DeleteUser(config.userID) - if err != nil { - t.Error(err) - } else if response != nil && response.Error != nil { - t.Error(response.Error) - } -} - -func Example_authorizeDefaultConfiguration() { - // Use the default config instance and retrieve settings from env vars - config := GetDefaultConfiguration() - config.BasePath = "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT") // e.g. PURECLOUD_ENVIRONMENT=mypurecloud.com - clientID := os.Getenv("PURECLOUD_CLIENT_ID") - clientSecret := os.Getenv("PURECLOUD_CLIENT_SECRET") - - // Authorize the configuration - err := config.AuthorizeClientCredentials(clientID, clientSecret) - if err != nil { - panic(err) - } - - // Create an API instance using the default config - usersAPI := NewUsersApi() - fmt.Printf("Users API type: %v", reflect.TypeOf(usersAPI).String()) - // Output: Users API type: UsersAPI - - // Make requests using usersAPI -} - -func Example_authorizeNewConfiguration() { - // Create a new config instance and retrieve settings from env vars - config := NewConfiguration() - config.BasePath = "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT") // e.g. PURECLOUD_ENVIRONMENT=mypurecloud.com - clientID := os.Getenv("PURECLOUD_CLIENT_ID") - clientSecret := os.Getenv("PURECLOUD_CLIENT_SECRET") - - // Authorize the configuration - err := config.AuthorizeClientCredentials(clientID, clientSecret) - if err != nil { - panic(err) - } - - // Create an API instance using the config instance - usersAPI := NewUsersApiWithConfig(config) - fmt.Printf("Users API type: %v", reflect.TypeOf(usersAPI).String()) - // Output: Users API type: UsersAPI - - // Make requests using usersAPI -} diff --git a/build/platformclientv2/policy.go b/build/platformclientv2/policy.go deleted file mode 100644 index 1623ad28e..000000000 --- a/build/platformclientv2/policy.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Policy -type Policy struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // Order - Order *int32 `json:"order,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // MediaPolicies - Conditions and actions per media type - MediaPolicies *Mediapolicies `json:"mediaPolicies,omitempty"` - - - // Conditions - Conditions - Conditions *Policyconditions `json:"conditions,omitempty"` - - - // Actions - Actions - Actions *Policyactions `json:"actions,omitempty"` - - - // PolicyErrors - PolicyErrors *Policyerrors `json:"policyErrors,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/policyactions.go b/build/platformclientv2/policyactions.go deleted file mode 100644 index 242a6935f..000000000 --- a/build/platformclientv2/policyactions.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Policyactions -type Policyactions struct { - // RetainRecording - true to retain the recording associated with the conversation. Default = true - RetainRecording *bool `json:"retainRecording,omitempty"` - - - // DeleteRecording - true to delete the recording associated with the conversation. If retainRecording = true, this will be ignored. Default = false - DeleteRecording *bool `json:"deleteRecording,omitempty"` - - - // AlwaysDelete - true to delete the recording associated with the conversation regardless of the values of retainRecording or deleteRecording. Default = false - AlwaysDelete *bool `json:"alwaysDelete,omitempty"` - - - // AssignEvaluations - AssignEvaluations *[]Evaluationassignment `json:"assignEvaluations,omitempty"` - - - // AssignMeteredEvaluations - AssignMeteredEvaluations *[]Meteredevaluationassignment `json:"assignMeteredEvaluations,omitempty"` - - - // AssignMeteredAssignmentByAgent - AssignMeteredAssignmentByAgent *[]Meteredassignmentbyagent `json:"assignMeteredAssignmentByAgent,omitempty"` - - - // AssignCalibrations - AssignCalibrations *[]Calibrationassignment `json:"assignCalibrations,omitempty"` - - - // AssignSurveys - AssignSurveys *[]Surveyassignment `json:"assignSurveys,omitempty"` - - - // RetentionDuration - RetentionDuration *Retentionduration `json:"retentionDuration,omitempty"` - - - // InitiateScreenRecording - InitiateScreenRecording *Initiatescreenrecording `json:"initiateScreenRecording,omitempty"` - - - // MediaTranscriptions - MediaTranscriptions *[]Mediatranscription `json:"mediaTranscriptions,omitempty"` - - - // IntegrationExport - Policy action for exporting recordings using an integration to 3rd party s3. - IntegrationExport *Integrationexport `json:"integrationExport,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policyactions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/policyconditions.go b/build/platformclientv2/policyconditions.go deleted file mode 100644 index 3cb196601..000000000 --- a/build/platformclientv2/policyconditions.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Policyconditions -type Policyconditions struct { - // ForUsers - ForUsers *[]User `json:"forUsers,omitempty"` - - - // Directions - Directions *[]string `json:"directions,omitempty"` - - - // DateRanges - DateRanges *[]string `json:"dateRanges,omitempty"` - - - // MediaTypes - MediaTypes *[]string `json:"mediaTypes,omitempty"` - - - // ForQueues - ForQueues *[]Queue `json:"forQueues,omitempty"` - - - // Duration - Duration *Durationcondition `json:"duration,omitempty"` - - - // WrapupCodes - WrapupCodes *[]Wrapupcode `json:"wrapupCodes,omitempty"` - - - // TimeAllowed - TimeAllowed *Timeallowed `json:"timeAllowed,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policyconditions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/policycreate.go b/build/platformclientv2/policycreate.go deleted file mode 100644 index 8215ed3e1..000000000 --- a/build/platformclientv2/policycreate.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Policycreate -type Policycreate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The policy name. - Name *string `json:"name,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // Order - Order *int32 `json:"order,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // MediaPolicies - Conditions and actions per media type - MediaPolicies *Mediapolicies `json:"mediaPolicies,omitempty"` - - - // Conditions - Conditions - Conditions *Policyconditions `json:"conditions,omitempty"` - - - // Actions - Actions - Actions *Policyactions `json:"actions,omitempty"` - - - // PolicyErrors - PolicyErrors *Policyerrors `json:"policyErrors,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policycreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/policyentitylisting.go b/build/platformclientv2/policyentitylisting.go deleted file mode 100644 index 0c050d53e..000000000 --- a/build/platformclientv2/policyentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Policyentitylisting -type Policyentitylisting struct { - // Entities - Entities *[]Policy `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policyentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/policyerrormessage.go b/build/platformclientv2/policyerrormessage.go deleted file mode 100644 index 26d948d30..000000000 --- a/build/platformclientv2/policyerrormessage.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Policyerrormessage -type Policyerrormessage struct { - // StatusCode - StatusCode *int32 `json:"statusCode,omitempty"` - - - // UserMessage - UserMessage *map[string]interface{} `json:"userMessage,omitempty"` - - - // UserParamsMessage - UserParamsMessage *string `json:"userParamsMessage,omitempty"` - - - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // CorrelationId - CorrelationId *string `json:"correlationId,omitempty"` - - - // UserParams - UserParams *[]Userparam `json:"userParams,omitempty"` - - - // InsertDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - InsertDate *time.Time `json:"insertDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policyerrormessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/policyerrors.go b/build/platformclientv2/policyerrors.go deleted file mode 100644 index 87dfe57bb..000000000 --- a/build/platformclientv2/policyerrors.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Policyerrors -type Policyerrors struct { - // PolicyErrorMessages - PolicyErrorMessages *[]Policyerrormessage `json:"policyErrorMessages,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Policyerrors) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/postactioninput.go b/build/platformclientv2/postactioninput.go deleted file mode 100644 index 0e085bcbf..000000000 --- a/build/platformclientv2/postactioninput.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Postactioninput - Definition of an Action to be created or updated. -type Postactioninput struct { - // Category - Category of action - Category *string `json:"category,omitempty"` - - - // Name - Name of action - Name *string `json:"name,omitempty"` - - - // IntegrationId - The ID of the integration this action is associated to - IntegrationId *string `json:"integrationId,omitempty"` - - - // Config - Configuration to support request and response processing - Config *Actionconfig `json:"config,omitempty"` - - - // Contract - Action contract - Contract *Actioncontractinput `json:"contract,omitempty"` - - - // Secure - Indication of whether or not the action is designed to accept sensitive data - Secure *bool `json:"secure,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Postactioninput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/postinputcontract.go b/build/platformclientv2/postinputcontract.go deleted file mode 100644 index 2f743c7ed..000000000 --- a/build/platformclientv2/postinputcontract.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Postinputcontract - The schemas defining all of the expected requests/inputs. -type Postinputcontract struct { - // InputSchema - JSON Schema that defines the body of the request that the client (edge/architect/postman) is sending to the service, on the /execute path. - InputSchema *Jsonschemadocument `json:"inputSchema,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Postinputcontract) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/postoutputcontract.go b/build/platformclientv2/postoutputcontract.go deleted file mode 100644 index 4d471d594..000000000 --- a/build/platformclientv2/postoutputcontract.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Postoutputcontract - The schemas defining all of the expected responses/outputs. -type Postoutputcontract struct { - // SuccessSchema - JSON schema that defines the transformed, successful result that will be sent back to the caller. - SuccessSchema *Jsonschemadocument `json:"successSchema,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Postoutputcontract) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/predictionresults.go b/build/platformclientv2/predictionresults.go deleted file mode 100644 index f7458379f..000000000 --- a/build/platformclientv2/predictionresults.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Predictionresults -type Predictionresults struct { - // Intent - Indicates the media type scope of this estimated wait time - Intent *string `json:"intent,omitempty"` - - - // Formula - Indicates the estimated wait time Formula - Formula *string `json:"formula,omitempty"` - - - // EstimatedWaitTimeSeconds - Estimated wait time in seconds - EstimatedWaitTimeSeconds *int32 `json:"estimatedWaitTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Predictionresults) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/presenceapi.go b/build/platformclientv2/presenceapi.go deleted file mode 100644 index 71fb4c67c..000000000 --- a/build/platformclientv2/presenceapi.go +++ /dev/null @@ -1,704 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// PresenceApi provides functions for API endpoints -type PresenceApi struct { - Configuration *Configuration -} - -// NewPresenceApi creates an API instance using the default configuration -func NewPresenceApi() *PresenceApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating PresenceApi with base path: %s", strings.ToLower(config.BasePath))) - return &PresenceApi{ - Configuration: config, - } -} - -// NewPresenceApiWithConfig creates an API instance using the provided configuration -func NewPresenceApiWithConfig(config *Configuration) *PresenceApi { - config.Debugf("Creating PresenceApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &PresenceApi{ - Configuration: config, - } -} - -// DeletePresencedefinition invokes DELETE /api/v2/presencedefinitions/{presenceId} -// -// Delete a Presence Definition -// -// -func (a PresenceApi) DeletePresencedefinition(presenceId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/presencedefinitions/{presenceId}" - path = strings.Replace(path, "{presenceId}", fmt.Sprintf("%v", presenceId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'presenceId' is set - if &presenceId == nil { - // - return nil, errors.New("Missing required parameter 'presenceId' when calling PresenceApi->DeletePresencedefinition") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetPresencedefinition invokes GET /api/v2/presencedefinitions/{presenceId} -// -// Get a Presence Definition -// -// -func (a PresenceApi) GetPresencedefinition(presenceId string, localeCode string) (*Organizationpresence, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/presencedefinitions/{presenceId}" - path = strings.Replace(path, "{presenceId}", fmt.Sprintf("%v", presenceId), -1) - defaultReturn := new(Organizationpresence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'presenceId' is set - if &presenceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'presenceId' when calling PresenceApi->GetPresencedefinition") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["localeCode"] = a.Configuration.APIClient.ParameterToString(localeCode, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organizationpresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetPresencedefinitions invokes GET /api/v2/presencedefinitions -// -// Get an Organization's list of Presence Definitions -// -// -func (a PresenceApi) GetPresencedefinitions(pageNumber int32, pageSize int32, deleted string, localeCode string) (*Organizationpresenceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/presencedefinitions" - defaultReturn := new(Organizationpresenceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["deleted"] = a.Configuration.APIClient.ParameterToString(deleted, collectionFormat) - - - - - collectionFormat = "" - queryParams["localeCode"] = a.Configuration.APIClient.ParameterToString(localeCode, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organizationpresenceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetSystempresences invokes GET /api/v2/systempresences -// -// Get the list of SystemPresences -// -// -func (a PresenceApi) GetSystempresences() ([]Systempresence, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/systempresences" - defaultReturn := make([]Systempresence, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Systempresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserPresence invokes GET /api/v2/users/{userId}/presences/{sourceId} -// -// Get a user's Presence -// -// -func (a PresenceApi) GetUserPresence(userId string, sourceId string) (*Userpresence, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/presences/{sourceId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{sourceId}", fmt.Sprintf("%v", sourceId), -1) - defaultReturn := new(Userpresence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling PresenceApi->GetUserPresence") - } - // verify the required parameter 'sourceId' is set - if &sourceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sourceId' when calling PresenceApi->GetUserPresence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userpresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserPresence invokes PATCH /api/v2/users/{userId}/presences/{sourceId} -// -// Patch a user's Presence -// -// The presence object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the 'source' defined in the path as the user's primary presence source. Option 2: Provide the presenceDefinition value. The 'id' is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3. -func (a PresenceApi) PatchUserPresence(userId string, sourceId string, body Userpresence) (*Userpresence, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/presences/{sourceId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{sourceId}", fmt.Sprintf("%v", sourceId), -1) - defaultReturn := new(Userpresence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling PresenceApi->PatchUserPresence") - } - // verify the required parameter 'sourceId' is set - if &sourceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sourceId' when calling PresenceApi->PatchUserPresence") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling PresenceApi->PatchUserPresence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userpresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostPresencedefinitions invokes POST /api/v2/presencedefinitions -// -// Create a Presence Definition -// -// -func (a PresenceApi) PostPresencedefinitions(body Organizationpresence) (*Organizationpresence, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/presencedefinitions" - defaultReturn := new(Organizationpresence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling PresenceApi->PostPresencedefinitions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Organizationpresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutPresencedefinition invokes PUT /api/v2/presencedefinitions/{presenceId} -// -// Update a Presence Definition -// -// -func (a PresenceApi) PutPresencedefinition(presenceId string, body Organizationpresence) (*Organizationpresence, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/presencedefinitions/{presenceId}" - path = strings.Replace(path, "{presenceId}", fmt.Sprintf("%v", presenceId), -1) - defaultReturn := new(Organizationpresence) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'presenceId' is set - if &presenceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'presenceId' when calling PresenceApi->PutPresencedefinition") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling PresenceApi->PutPresencedefinition") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Organizationpresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUsersPresencesBulk invokes PUT /api/v2/users/presences/bulk -// -// Update bulk user Presences -// -// -func (a PresenceApi) PutUsersPresencesBulk(body []Userpresence) ([]Userpresence, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/presences/bulk" - defaultReturn := make([]Userpresence, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling PresenceApi->PutUsersPresencesBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Userpresence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/presencedefinition.go b/build/platformclientv2/presencedefinition.go deleted file mode 100644 index aa56f5eed..000000000 --- a/build/platformclientv2/presencedefinition.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Presencedefinition -type Presencedefinition struct { - // Id - description - Id *string `json:"id,omitempty"` - - - // SystemPresence - SystemPresence *string `json:"systemPresence,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Presencedefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/presencedetailqueryclause.go b/build/platformclientv2/presencedetailqueryclause.go deleted file mode 100644 index a35619ec4..000000000 --- a/build/platformclientv2/presencedetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Presencedetailqueryclause -type Presencedetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Presencedetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Presencedetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/presencedetailqueryfilter.go b/build/platformclientv2/presencedetailqueryfilter.go deleted file mode 100644 index 52c9d9e3a..000000000 --- a/build/platformclientv2/presencedetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Presencedetailqueryfilter -type Presencedetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Presencedetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Presencedetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Presencedetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/presencedetailquerypredicate.go b/build/platformclientv2/presencedetailquerypredicate.go deleted file mode 100644 index 12b6086c9..000000000 --- a/build/platformclientv2/presencedetailquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Presencedetailquerypredicate -type Presencedetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Presencedetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/presenceeventorganizationpresence.go b/build/platformclientv2/presenceeventorganizationpresence.go deleted file mode 100644 index 8339d185f..000000000 --- a/build/platformclientv2/presenceeventorganizationpresence.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Presenceeventorganizationpresence -type Presenceeventorganizationpresence struct { - // Id - Id *string `json:"id,omitempty"` - - - // SystemPresence - SystemPresence *string `json:"systemPresence,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Presenceeventorganizationpresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/presenceeventuserpresence.go b/build/platformclientv2/presenceeventuserpresence.go deleted file mode 100644 index c76b6fcbf..000000000 --- a/build/platformclientv2/presenceeventuserpresence.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Presenceeventuserpresence -type Presenceeventuserpresence struct { - // Source - Source *string `json:"source,omitempty"` - - - // PresenceDefinition - PresenceDefinition *Presenceeventorganizationpresence `json:"presenceDefinition,omitempty"` - - - // Primary - Primary *bool `json:"primary,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // ModifiedDate - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Presenceeventuserpresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/prompt.go b/build/platformclientv2/prompt.go deleted file mode 100644 index ee0d36d93..000000000 --- a/build/platformclientv2/prompt.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Prompt -type Prompt struct { - // Id - The prompt identifier - Id *string `json:"id,omitempty"` - - - // Name - The prompt name. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Resources - Resources *[]Promptasset `json:"resources,omitempty"` - - - // CurrentOperation - CurrentOperation *Operation `json:"currentOperation,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Prompt) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/promptasset.go b/build/platformclientv2/promptasset.go deleted file mode 100644 index 8f067a36c..000000000 --- a/build/platformclientv2/promptasset.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Promptasset -type Promptasset struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // PromptId - Associated prompt ID - PromptId *string `json:"promptId,omitempty"` - - - // Language - Prompt resource language - Language *string `json:"language,omitempty"` - - - // MediaUri - URI of the resource audio - MediaUri *string `json:"mediaUri,omitempty"` - - - // TtsString - Text to speech of the resource - TtsString *string `json:"ttsString,omitempty"` - - - // Text - Text of the resource - Text *string `json:"text,omitempty"` - - - // UploadStatus - Audio upload status - UploadStatus *string `json:"uploadStatus,omitempty"` - - - // UploadUri - Upload URI for the resource audio - UploadUri *string `json:"uploadUri,omitempty"` - - - // LanguageDefault - Whether or not this resource locale is the default for the language - LanguageDefault *bool `json:"languageDefault,omitempty"` - - - // Tags - Tags *map[string][]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *float64 `json:"durationSeconds,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Promptasset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/promptassetcreate.go b/build/platformclientv2/promptassetcreate.go deleted file mode 100644 index 66bf917d2..000000000 --- a/build/platformclientv2/promptassetcreate.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Promptassetcreate -type Promptassetcreate struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // PromptId - Associated prompt ID - PromptId *string `json:"promptId,omitempty"` - - - // Language - The prompt language. - Language *string `json:"language,omitempty"` - - - // MediaUri - URI of the resource audio - MediaUri *string `json:"mediaUri,omitempty"` - - - // TtsString - Text to speech of the resource - TtsString *string `json:"ttsString,omitempty"` - - - // Text - Text of the resource - Text *string `json:"text,omitempty"` - - - // UploadStatus - Audio upload status - UploadStatus *string `json:"uploadStatus,omitempty"` - - - // UploadUri - Upload URI for the resource audio - UploadUri *string `json:"uploadUri,omitempty"` - - - // LanguageDefault - Whether or not this resource locale is the default for the language - LanguageDefault *bool `json:"languageDefault,omitempty"` - - - // Tags - Tags *map[string][]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *float64 `json:"durationSeconds,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Promptassetcreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/promptassetentitylisting.go b/build/platformclientv2/promptassetentitylisting.go deleted file mode 100644 index 68229b1b3..000000000 --- a/build/platformclientv2/promptassetentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Promptassetentitylisting -type Promptassetentitylisting struct { - // Entities - Entities *[]Promptasset `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Promptassetentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/promptentitylisting.go b/build/platformclientv2/promptentitylisting.go deleted file mode 100644 index 4154e283f..000000000 --- a/build/platformclientv2/promptentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Promptentitylisting -type Promptentitylisting struct { - // Entities - Entities *[]Prompt `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Promptentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/propertychange.go b/build/platformclientv2/propertychange.go deleted file mode 100644 index 95cb45c60..000000000 --- a/build/platformclientv2/propertychange.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Propertychange -type Propertychange struct { - // Property - The property that was changed - Property *string `json:"property,omitempty"` - - - // OldValues - Previous values for the property. - OldValues *[]string `json:"oldValues,omitempty"` - - - // NewValues - New values for the property. - NewValues *[]string `json:"newValues,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Propertychange) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/propertyindexrequest.go b/build/platformclientv2/propertyindexrequest.go deleted file mode 100644 index 8ce1162c7..000000000 --- a/build/platformclientv2/propertyindexrequest.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Propertyindexrequest -type Propertyindexrequest struct { - // SessionId - Attach properties to a segment in the indicated session - SessionId *string `json:"sessionId,omitempty"` - - - // TargetDate - Attach properties to a segment covering a specific point in time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - TargetDate *time.Time `json:"targetDate,omitempty"` - - - // Properties - The list of properties to index - Properties *[]Analyticsproperty `json:"properties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Propertyindexrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/provisioninfo.go b/build/platformclientv2/provisioninfo.go deleted file mode 100644 index 650d7d1a4..000000000 --- a/build/platformclientv2/provisioninfo.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Provisioninfo -type Provisioninfo struct { - // Time - The time at which this phone was provisioned. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Time *time.Time `json:"time,omitempty"` - - - // Source - The source of the provisioning - Source *string `json:"source,omitempty"` - - - // ErrorInfo - The error information from the provision process, if any - ErrorInfo *string `json:"errorInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Provisioninfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/publishdraftinput.go b/build/platformclientv2/publishdraftinput.go deleted file mode 100644 index 83fc8a9b5..000000000 --- a/build/platformclientv2/publishdraftinput.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Publishdraftinput - Draft to be published -type Publishdraftinput struct { - // Version - The current draft version. - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Publishdraftinput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/publishedsurveyformreference.go b/build/platformclientv2/publishedsurveyformreference.go deleted file mode 100644 index cef1d0f68..000000000 --- a/build/platformclientv2/publishedsurveyformreference.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Publishedsurveyformreference -type Publishedsurveyformreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContextId - The context id of this form. - ContextId *string `json:"contextId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Publishedsurveyformreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/publishform.go b/build/platformclientv2/publishform.go deleted file mode 100644 index 2fee6b07a..000000000 --- a/build/platformclientv2/publishform.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Publishform -type Publishform struct { - // Published - Is this form published - Published *bool `json:"published,omitempty"` - - - // Id - Unique Id for this version of this form - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Publishform) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/purecloud.go b/build/platformclientv2/purecloud.go deleted file mode 100644 index 94bbadf8a..000000000 --- a/build/platformclientv2/purecloud.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Purecloud -type Purecloud struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Purecloud) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/pureengage.go b/build/platformclientv2/pureengage.go deleted file mode 100644 index ca7819e99..000000000 --- a/build/platformclientv2/pureengage.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Pureengage -type Pureengage struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // AutoProvisionUsers - AutoProvisionUsers *bool `json:"autoProvisionUsers,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Pureengage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/qualityapi.go b/build/platformclientv2/qualityapi.go deleted file mode 100644 index 6c8c5fb39..000000000 --- a/build/platformclientv2/qualityapi.go +++ /dev/null @@ -1,4933 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "time" -"encoding/json" -) - -// QualityApi provides functions for API endpoints -type QualityApi struct { - Configuration *Configuration -} - -// NewQualityApi creates an API instance using the default configuration -func NewQualityApi() *QualityApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating QualityApi with base path: %s", strings.ToLower(config.BasePath))) - return &QualityApi{ - Configuration: config, - } -} - -// NewQualityApiWithConfig creates an API instance using the provided configuration -func NewQualityApiWithConfig(config *Configuration) *QualityApi { - config.Debugf("Creating QualityApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &QualityApi{ - Configuration: config, - } -} - -// DeleteQualityCalibration invokes DELETE /api/v2/quality/calibrations/{calibrationId} -// -// Delete a calibration by id. -// -// -func (a QualityApi) DeleteQualityCalibration(calibrationId string, calibratorId string) (*Calibration, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/calibrations/{calibrationId}" - path = strings.Replace(path, "{calibrationId}", fmt.Sprintf("%v", calibrationId), -1) - defaultReturn := new(Calibration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'calibrationId' is set - if &calibrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'calibrationId' when calling QualityApi->DeleteQualityCalibration") - } - // verify the required parameter 'calibratorId' is set - if &calibratorId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'calibratorId' when calling QualityApi->DeleteQualityCalibration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["calibratorId"] = a.Configuration.APIClient.ParameterToString(calibratorId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Calibration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteQualityConversationEvaluation invokes DELETE /api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId} -// -// Delete an evaluation -// -// -func (a QualityApi) DeleteQualityConversationEvaluation(conversationId string, evaluationId string, expand string) (*Evaluation, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{evaluationId}", fmt.Sprintf("%v", evaluationId), -1) - defaultReturn := new(Evaluation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling QualityApi->DeleteQualityConversationEvaluation") - } - // verify the required parameter 'evaluationId' is set - if &evaluationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'evaluationId' when calling QualityApi->DeleteQualityConversationEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteQualityForm invokes DELETE /api/v2/quality/forms/{formId} -// -// Delete an evaluation form. -// -// -func (a QualityApi) DeleteQualityForm(formId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return nil, errors.New("Missing required parameter 'formId' when calling QualityApi->DeleteQualityForm") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteQualityFormsEvaluation invokes DELETE /api/v2/quality/forms/evaluations/{formId} -// -// Delete an evaluation form. -// -// -func (a QualityApi) DeleteQualityFormsEvaluation(formId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/evaluations/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return nil, errors.New("Missing required parameter 'formId' when calling QualityApi->DeleteQualityFormsEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteQualityFormsSurvey invokes DELETE /api/v2/quality/forms/surveys/{formId} -// -// Delete a survey form. -// -// -func (a QualityApi) DeleteQualityFormsSurvey(formId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return nil, errors.New("Missing required parameter 'formId' when calling QualityApi->DeleteQualityFormsSurvey") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteQualityKeywordset invokes DELETE /api/v2/quality/keywordsets/{keywordSetId} -// -// Delete a keywordSet by id. -// -// -func (a QualityApi) DeleteQualityKeywordset(keywordSetId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/keywordsets/{keywordSetId}" - path = strings.Replace(path, "{keywordSetId}", fmt.Sprintf("%v", keywordSetId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'keywordSetId' is set - if &keywordSetId == nil { - // - return nil, errors.New("Missing required parameter 'keywordSetId' when calling QualityApi->DeleteQualityKeywordset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteQualityKeywordsets invokes DELETE /api/v2/quality/keywordsets -// -// Delete keyword sets -// -// Bulk delete of keyword sets; this will only delete the keyword sets that match the ids specified in the query param. -func (a QualityApi) DeleteQualityKeywordsets(ids string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/keywordsets" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ids' is set - if &ids == nil { - // - return nil, errors.New("Missing required parameter 'ids' when calling QualityApi->DeleteQualityKeywordsets") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["ids"] = a.Configuration.APIClient.ParameterToString(ids, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetQualityAgentsActivity invokes GET /api/v2/quality/agents/activity -// -// Gets a list of Agent Activities -// -// Including the number of evaluations and average evaluation score -func (a QualityApi) GetQualityAgentsActivity(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, startTime time.Time, endTime time.Time, agentUserId []string, evaluatorUserId string, name string, group string) (*Agentactivityentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/agents/activity" - defaultReturn := new(Agentactivityentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["startTime"] = a.Configuration.APIClient.ParameterToString(startTime, collectionFormat) - - - - - collectionFormat = "" - queryParams["endTime"] = a.Configuration.APIClient.ParameterToString(endTime, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range agentUserId { - queryParams["agentUserId"] = value - } - } else { - queryParams["agentUserId"] = a.Configuration.APIClient.ParameterToString(agentUserId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["evaluatorUserId"] = a.Configuration.APIClient.ParameterToString(evaluatorUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["group"] = a.Configuration.APIClient.ParameterToString(group, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Agentactivityentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityCalibration invokes GET /api/v2/quality/calibrations/{calibrationId} -// -// Get a calibration by id. Requires either calibrator id or conversation id -// -// -func (a QualityApi) GetQualityCalibration(calibrationId string, calibratorId string, conversationId string) (*Calibration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/calibrations/{calibrationId}" - path = strings.Replace(path, "{calibrationId}", fmt.Sprintf("%v", calibrationId), -1) - defaultReturn := new(Calibration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'calibrationId' is set - if &calibrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'calibrationId' when calling QualityApi->GetQualityCalibration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["calibratorId"] = a.Configuration.APIClient.ParameterToString(calibratorId, collectionFormat) - - - - - collectionFormat = "" - queryParams["conversationId"] = a.Configuration.APIClient.ParameterToString(conversationId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Calibration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityCalibrations invokes GET /api/v2/quality/calibrations -// -// Get the list of calibrations -// -// -func (a QualityApi) GetQualityCalibrations(calibratorId string, pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, conversationId string, startTime time.Time, endTime time.Time) (*Calibrationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/calibrations" - defaultReturn := new(Calibrationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'calibratorId' is set - if &calibratorId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'calibratorId' when calling QualityApi->GetQualityCalibrations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["conversationId"] = a.Configuration.APIClient.ParameterToString(conversationId, collectionFormat) - - - - - collectionFormat = "" - queryParams["startTime"] = a.Configuration.APIClient.ParameterToString(startTime, collectionFormat) - - - - - collectionFormat = "" - queryParams["endTime"] = a.Configuration.APIClient.ParameterToString(endTime, collectionFormat) - - - - - collectionFormat = "" - queryParams["calibratorId"] = a.Configuration.APIClient.ParameterToString(calibratorId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Calibrationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityConversationAudits invokes GET /api/v2/quality/conversations/{conversationId}/audits -// -// Get audits for conversation or recording -// -// Different permissions are required for viewing different resource audit entries. The quality:evaluation:viewAudit permission is required to view evaluation audits, the recording:recording:viewAudit permission is required to view recording audits, and so on. -func (a QualityApi) GetQualityConversationAudits(conversationId string, pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, recordingId string, entityType string) (*Qualityauditpage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/conversations/{conversationId}/audits" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Qualityauditpage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling QualityApi->GetQualityConversationAudits") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["recordingId"] = a.Configuration.APIClient.ParameterToString(recordingId, collectionFormat) - - - - - collectionFormat = "" - queryParams["entityType"] = a.Configuration.APIClient.ParameterToString(entityType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Qualityauditpage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityConversationEvaluation invokes GET /api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId} -// -// Get an evaluation -// -// -func (a QualityApi) GetQualityConversationEvaluation(conversationId string, evaluationId string, expand string) (*Evaluation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{evaluationId}", fmt.Sprintf("%v", evaluationId), -1) - defaultReturn := new(Evaluation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling QualityApi->GetQualityConversationEvaluation") - } - // verify the required parameter 'evaluationId' is set - if &evaluationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'evaluationId' when calling QualityApi->GetQualityConversationEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityConversationSurveys invokes GET /api/v2/quality/conversations/{conversationId}/surveys -// -// Get the surveys for a conversation -// -// -func (a QualityApi) GetQualityConversationSurveys(conversationId string) ([]Survey, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/conversations/{conversationId}/surveys" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := make([]Survey, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling QualityApi->GetQualityConversationSurveys") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Survey - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityEvaluationsQuery invokes GET /api/v2/quality/evaluations/query -// -// Queries Evaluations and returns a paged list -// -// Query params must include one of conversationId, evaluatorUserId, or agentUserId -func (a QualityApi) GetQualityEvaluationsQuery(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, conversationId string, agentUserId string, evaluatorUserId string, queueId string, startTime string, endTime string, evaluationState []string, isReleased bool, agentHasRead bool, expandAnswerTotalScores bool, maximum int32, sortOrder string) (*Evaluationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/evaluations/query" - defaultReturn := new(Evaluationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["conversationId"] = a.Configuration.APIClient.ParameterToString(conversationId, collectionFormat) - - - - - collectionFormat = "" - queryParams["agentUserId"] = a.Configuration.APIClient.ParameterToString(agentUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["evaluatorUserId"] = a.Configuration.APIClient.ParameterToString(evaluatorUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["queueId"] = a.Configuration.APIClient.ParameterToString(queueId, collectionFormat) - - - - - collectionFormat = "" - queryParams["startTime"] = a.Configuration.APIClient.ParameterToString(startTime, collectionFormat) - - - - - collectionFormat = "" - queryParams["endTime"] = a.Configuration.APIClient.ParameterToString(endTime, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range evaluationState { - queryParams["evaluationState"] = value - } - } else { - queryParams["evaluationState"] = a.Configuration.APIClient.ParameterToString(evaluationState, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["isReleased"] = a.Configuration.APIClient.ParameterToString(isReleased, collectionFormat) - - - - - collectionFormat = "" - queryParams["agentHasRead"] = a.Configuration.APIClient.ParameterToString(agentHasRead, collectionFormat) - - - - - collectionFormat = "" - queryParams["expandAnswerTotalScores"] = a.Configuration.APIClient.ParameterToString(expandAnswerTotalScores, collectionFormat) - - - - - collectionFormat = "" - queryParams["maximum"] = a.Configuration.APIClient.ParameterToString(maximum, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityEvaluatorsActivity invokes GET /api/v2/quality/evaluators/activity -// -// Get an evaluator activity -// -// -func (a QualityApi) GetQualityEvaluatorsActivity(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, startTime time.Time, endTime time.Time, name string, permission []string, group string) (*Evaluatoractivityentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/evaluators/activity" - defaultReturn := new(Evaluatoractivityentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["startTime"] = a.Configuration.APIClient.ParameterToString(startTime, collectionFormat) - - - - - collectionFormat = "" - queryParams["endTime"] = a.Configuration.APIClient.ParameterToString(endTime, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range permission { - queryParams["permission"] = value - } - } else { - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["group"] = a.Configuration.APIClient.ParameterToString(group, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluatoractivityentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityForm invokes GET /api/v2/quality/forms/{formId} -// -// Get an evaluation form -// -// -func (a QualityApi) GetQualityForm(formId string) (*Evaluationform, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityForm") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormVersions invokes GET /api/v2/quality/forms/{formId}/versions -// -// Gets all the revisions for a specific evaluation. -// -// -func (a QualityApi) GetQualityFormVersions(formId string, pageSize int32, pageNumber int32) (*Evaluationformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/{formId}/versions" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityFormVersions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityForms invokes GET /api/v2/quality/forms -// -// Get the list of evaluation forms -// -// -func (a QualityApi) GetQualityForms(pageSize int32, pageNumber int32, sortBy string, nextPage string, previousPage string, expand string, name string, sortOrder string) (*Evaluationformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms" - defaultReturn := new(Evaluationformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsEvaluation invokes GET /api/v2/quality/forms/evaluations/{formId} -// -// Get an evaluation form -// -// -func (a QualityApi) GetQualityFormsEvaluation(formId string) (*Evaluationform, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/evaluations/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityFormsEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsEvaluationVersions invokes GET /api/v2/quality/forms/evaluations/{formId}/versions -// -// Gets all the revisions for a specific evaluation. -// -// -func (a QualityApi) GetQualityFormsEvaluationVersions(formId string, pageSize int32, pageNumber int32) (*Evaluationformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/evaluations/{formId}/versions" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityFormsEvaluationVersions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsEvaluations invokes GET /api/v2/quality/forms/evaluations -// -// Get the list of evaluation forms -// -// -func (a QualityApi) GetQualityFormsEvaluations(pageSize int32, pageNumber int32, sortBy string, nextPage string, previousPage string, expand string, name string, sortOrder string) (*Evaluationformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/evaluations" - defaultReturn := new(Evaluationformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsSurvey invokes GET /api/v2/quality/forms/surveys/{formId} -// -// Get a survey form -// -// -func (a QualityApi) GetQualityFormsSurvey(formId string) (*Surveyform, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Surveyform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityFormsSurvey") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsSurveyVersions invokes GET /api/v2/quality/forms/surveys/{formId}/versions -// -// Gets all the revisions for a specific survey. -// -// -func (a QualityApi) GetQualityFormsSurveyVersions(formId string, pageSize int32, pageNumber int32) (*Surveyformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/{formId}/versions" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Surveyformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityFormsSurveyVersions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsSurveys invokes GET /api/v2/quality/forms/surveys -// -// Get the list of survey forms -// -// -func (a QualityApi) GetQualityFormsSurveys(pageSize int32, pageNumber int32, sortBy string, nextPage string, previousPage string, expand string, name string, sortOrder string) (*Surveyformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys" - defaultReturn := new(Surveyformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsSurveysBulk invokes GET /api/v2/quality/forms/surveys/bulk -// -// Retrieve a list of survey forms by their ids -// -// -func (a QualityApi) GetQualityFormsSurveysBulk(id []string) (*Surveyformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/bulk" - defaultReturn := new(Surveyformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'id' is set - if &id == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'id' when calling QualityApi->GetQualityFormsSurveysBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityFormsSurveysBulkContexts invokes GET /api/v2/quality/forms/surveys/bulk/contexts -// -// Retrieve a list of the latest form versions by context ids -// -// -func (a QualityApi) GetQualityFormsSurveysBulkContexts(contextId []string, published bool) (*Surveyformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/bulk/contexts" - defaultReturn := new(Surveyformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'contextId' is set - if &contextId == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'contextId' when calling QualityApi->GetQualityFormsSurveysBulkContexts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range contextId { - queryParams["contextId"] = value - } - } else { - queryParams["contextId"] = a.Configuration.APIClient.ParameterToString(contextId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["published"] = a.Configuration.APIClient.ParameterToString(published, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityKeywordset invokes GET /api/v2/quality/keywordsets/{keywordSetId} -// -// Get a keywordSet by id. -// -// -func (a QualityApi) GetQualityKeywordset(keywordSetId string) (*Keywordset, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/keywordsets/{keywordSetId}" - path = strings.Replace(path, "{keywordSetId}", fmt.Sprintf("%v", keywordSetId), -1) - defaultReturn := new(Keywordset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'keywordSetId' is set - if &keywordSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'keywordSetId' when calling QualityApi->GetQualityKeywordset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Keywordset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityKeywordsets invokes GET /api/v2/quality/keywordsets -// -// Get the list of keyword sets -// -// -func (a QualityApi) GetQualityKeywordsets(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, name string, queueId string, agentId string, operator string) (*Keywordsetentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/keywordsets" - defaultReturn := new(Keywordsetentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["queueId"] = a.Configuration.APIClient.ParameterToString(queueId, collectionFormat) - - - - - collectionFormat = "" - queryParams["agentId"] = a.Configuration.APIClient.ParameterToString(agentId, collectionFormat) - - - - - collectionFormat = "" - queryParams["operator"] = a.Configuration.APIClient.ParameterToString(operator, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Keywordsetentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityPublishedform invokes GET /api/v2/quality/publishedforms/{formId} -// -// Get the published evaluation forms. -// -// -func (a QualityApi) GetQualityPublishedform(formId string) (*Evaluationform, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityPublishedform") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityPublishedforms invokes GET /api/v2/quality/publishedforms -// -// Get the published evaluation forms. -// -// -func (a QualityApi) GetQualityPublishedforms(pageSize int32, pageNumber int32, name string, onlyLatestPerContext bool) (*Evaluationformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms" - defaultReturn := new(Evaluationformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["onlyLatestPerContext"] = a.Configuration.APIClient.ParameterToString(onlyLatestPerContext, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityPublishedformsEvaluation invokes GET /api/v2/quality/publishedforms/evaluations/{formId} -// -// Get the most recent published version of an evaluation form. -// -// -func (a QualityApi) GetQualityPublishedformsEvaluation(formId string) (*Evaluationform, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/evaluations/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityPublishedformsEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityPublishedformsEvaluations invokes GET /api/v2/quality/publishedforms/evaluations -// -// Get the published evaluation forms. -// -// -func (a QualityApi) GetQualityPublishedformsEvaluations(pageSize int32, pageNumber int32, name string, onlyLatestPerContext bool) (*Evaluationformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/evaluations" - defaultReturn := new(Evaluationformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["onlyLatestPerContext"] = a.Configuration.APIClient.ParameterToString(onlyLatestPerContext, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Evaluationformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityPublishedformsSurvey invokes GET /api/v2/quality/publishedforms/surveys/{formId} -// -// Get the most recent published version of a survey form. -// -// -func (a QualityApi) GetQualityPublishedformsSurvey(formId string) (*Surveyform, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/surveys/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Surveyform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->GetQualityPublishedformsSurvey") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualityPublishedformsSurveys invokes GET /api/v2/quality/publishedforms/surveys -// -// Get the published survey forms. -// -// -func (a QualityApi) GetQualityPublishedformsSurveys(pageSize int32, pageNumber int32, name string, onlyLatestEnabledPerContext bool) (*Surveyformentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/surveys" - defaultReturn := new(Surveyformentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["onlyLatestEnabledPerContext"] = a.Configuration.APIClient.ParameterToString(onlyLatestEnabledPerContext, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Surveyformentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualitySurvey invokes GET /api/v2/quality/surveys/{surveyId} -// -// Get a survey for a conversation -// -// -func (a QualityApi) GetQualitySurvey(surveyId string) (*Survey, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/surveys/{surveyId}" - path = strings.Replace(path, "{surveyId}", fmt.Sprintf("%v", surveyId), -1) - defaultReturn := new(Survey) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'surveyId' is set - if &surveyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'surveyId' when calling QualityApi->GetQualitySurvey") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Survey - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetQualitySurveysScorable invokes GET /api/v2/quality/surveys/scorable -// -// Get a survey as an end-customer, for the purposes of scoring it. -// -// -func (a QualityApi) GetQualitySurveysScorable(customerSurveyUrl string) (*Scorablesurvey, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/surveys/scorable" - defaultReturn := new(Scorablesurvey) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'customerSurveyUrl' is set - if &customerSurveyUrl == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'customerSurveyUrl' when calling QualityApi->GetQualitySurveysScorable") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["customerSurveyUrl"] = a.Configuration.APIClient.ParameterToString(customerSurveyUrl, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scorablesurvey - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchQualityFormsSurvey invokes PATCH /api/v2/quality/forms/surveys/{formId} -// -// Disable a particular version of a survey form and invalidates any invitations that have already been sent to customers using this version of the form. -// -// -func (a QualityApi) PatchQualityFormsSurvey(formId string, body Surveyform) (*Surveyform, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Surveyform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->PatchQualityFormsSurvey") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PatchQualityFormsSurvey") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsEvaluationsAggregatesQuery invokes POST /api/v2/analytics/evaluations/aggregates/query -// -// Query for evaluation aggregates -// -// -func (a QualityApi) PostAnalyticsEvaluationsAggregatesQuery(body Evaluationaggregationquery) (*Evaluationaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/evaluations/aggregates/query" - defaultReturn := new(Evaluationaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostAnalyticsEvaluationsAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsSurveysAggregatesQuery invokes POST /api/v2/analytics/surveys/aggregates/query -// -// Query for survey aggregates -// -// -func (a QualityApi) PostAnalyticsSurveysAggregatesQuery(body Surveyaggregationquery) (*Surveyaggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/surveys/aggregates/query" - defaultReturn := new(Surveyaggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostAnalyticsSurveysAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyaggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityCalibrations invokes POST /api/v2/quality/calibrations -// -// Create a calibration -// -// -func (a QualityApi) PostQualityCalibrations(body Calibrationcreate, expand string) (*Calibration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/calibrations" - defaultReturn := new(Calibration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityCalibrations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Calibration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityConversationEvaluations invokes POST /api/v2/quality/conversations/{conversationId}/evaluations -// -// Create an evaluation -// -// -func (a QualityApi) PostQualityConversationEvaluations(conversationId string, body Evaluation, expand string) (*Evaluation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/conversations/{conversationId}/evaluations" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Evaluation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling QualityApi->PostQualityConversationEvaluations") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityConversationEvaluations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityEvaluationsScoring invokes POST /api/v2/quality/evaluations/scoring -// -// Score evaluation -// -// -func (a QualityApi) PostQualityEvaluationsScoring(body Evaluationformandscoringset) (*Evaluationscoringset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/evaluations/scoring" - defaultReturn := new(Evaluationscoringset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityEvaluationsScoring") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationscoringset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityForms invokes POST /api/v2/quality/forms -// -// Create an evaluation form. -// -// -func (a QualityApi) PostQualityForms(body Evaluationform) (*Evaluationform, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms" - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityForms") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityFormsEvaluations invokes POST /api/v2/quality/forms/evaluations -// -// Create an evaluation form. -// -// -func (a QualityApi) PostQualityFormsEvaluations(body Evaluationform) (*Evaluationform, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/evaluations" - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityFormsEvaluations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityFormsSurveys invokes POST /api/v2/quality/forms/surveys -// -// Create a survey form. -// -// -func (a QualityApi) PostQualityFormsSurveys(body Surveyform) (*Surveyform, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys" - defaultReturn := new(Surveyform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityFormsSurveys") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityKeywordsets invokes POST /api/v2/quality/keywordsets -// -// Create a Keyword Set -// -// -func (a QualityApi) PostQualityKeywordsets(body Keywordset, expand string) (*Keywordset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/keywordsets" - defaultReturn := new(Keywordset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityKeywordsets") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Keywordset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityPublishedforms invokes POST /api/v2/quality/publishedforms -// -// Publish an evaluation form. -// -// -func (a QualityApi) PostQualityPublishedforms(body Publishform) (*Evaluationform, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms" - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityPublishedforms") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityPublishedformsEvaluations invokes POST /api/v2/quality/publishedforms/evaluations -// -// Publish an evaluation form. -// -// -func (a QualityApi) PostQualityPublishedformsEvaluations(body Publishform) (*Evaluationform, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/evaluations" - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityPublishedformsEvaluations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualityPublishedformsSurveys invokes POST /api/v2/quality/publishedforms/surveys -// -// Publish a survey form. -// -// -func (a QualityApi) PostQualityPublishedformsSurveys(body Publishform) (*Surveyform, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/publishedforms/surveys" - defaultReturn := new(Surveyform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualityPublishedformsSurveys") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualitySpotability invokes POST /api/v2/quality/spotability -// -// Retrieve the spotability statistic -// -// -func (a QualityApi) PostQualitySpotability(body Keywordset) (*Keywordset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/spotability" - defaultReturn := new(Keywordset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Keywordset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostQualitySurveysScoring invokes POST /api/v2/quality/surveys/scoring -// -// Score survey -// -// -func (a QualityApi) PostQualitySurveysScoring(body Surveyformandscoringset) (*Surveyscoringset, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/surveys/scoring" - defaultReturn := new(Surveyscoringset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PostQualitySurveysScoring") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyscoringset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualityCalibration invokes PUT /api/v2/quality/calibrations/{calibrationId} -// -// Update a calibration to the specified calibration via PUT. Editable fields include: evaluators, expertEvaluator, and scoringIndex -// -// -func (a QualityApi) PutQualityCalibration(calibrationId string, body Calibration) (*Calibration, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/calibrations/{calibrationId}" - path = strings.Replace(path, "{calibrationId}", fmt.Sprintf("%v", calibrationId), -1) - defaultReturn := new(Calibration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'calibrationId' is set - if &calibrationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'calibrationId' when calling QualityApi->PutQualityCalibration") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualityCalibration") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Calibration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualityConversationEvaluation invokes PUT /api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId} -// -// Update an evaluation -// -// The quality:evaluation:edit permission allows modification of most fields, while the quality:evaluation:editScore permission allows an evaluator to change just the question scores, and the quality:evaluation:editAgentSignoff permission allows an agent to change the agent comments and sign off on the evaluation. -func (a QualityApi) PutQualityConversationEvaluation(conversationId string, evaluationId string, body Evaluation, expand string) (*Evaluation, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{evaluationId}", fmt.Sprintf("%v", evaluationId), -1) - defaultReturn := new(Evaluation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling QualityApi->PutQualityConversationEvaluation") - } - // verify the required parameter 'evaluationId' is set - if &evaluationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'evaluationId' when calling QualityApi->PutQualityConversationEvaluation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualityConversationEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualityForm invokes PUT /api/v2/quality/forms/{formId} -// -// Update an evaluation form. -// -// -func (a QualityApi) PutQualityForm(formId string, body Evaluationform) (*Evaluationform, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->PutQualityForm") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualityForm") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualityFormsEvaluation invokes PUT /api/v2/quality/forms/evaluations/{formId} -// -// Update an evaluation form. -// -// -func (a QualityApi) PutQualityFormsEvaluation(formId string, body Evaluationform) (*Evaluationform, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/evaluations/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Evaluationform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->PutQualityFormsEvaluation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualityFormsEvaluation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Evaluationform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualityFormsSurvey invokes PUT /api/v2/quality/forms/surveys/{formId} -// -// Update a survey form. -// -// -func (a QualityApi) PutQualityFormsSurvey(formId string, body Surveyform) (*Surveyform, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/forms/surveys/{formId}" - path = strings.Replace(path, "{formId}", fmt.Sprintf("%v", formId), -1) - defaultReturn := new(Surveyform) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'formId' is set - if &formId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'formId' when calling QualityApi->PutQualityFormsSurvey") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualityFormsSurvey") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Surveyform - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualityKeywordset invokes PUT /api/v2/quality/keywordsets/{keywordSetId} -// -// Update a keywordSet to the specified keywordSet via PUT. -// -// -func (a QualityApi) PutQualityKeywordset(keywordSetId string, body Keywordset) (*Keywordset, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/keywordsets/{keywordSetId}" - path = strings.Replace(path, "{keywordSetId}", fmt.Sprintf("%v", keywordSetId), -1) - defaultReturn := new(Keywordset) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'keywordSetId' is set - if &keywordSetId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'keywordSetId' when calling QualityApi->PutQualityKeywordset") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualityKeywordset") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Keywordset - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutQualitySurveysScorable invokes PUT /api/v2/quality/surveys/scorable -// -// Update a survey as an end-customer, for the purposes of scoring it. -// -// -func (a QualityApi) PutQualitySurveysScorable(body Scorablesurvey, customerSurveyUrl string) (*Scorablesurvey, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/quality/surveys/scorable" - defaultReturn := new(Scorablesurvey) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling QualityApi->PutQualitySurveysScorable") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["customerSurveyUrl"] = a.Configuration.APIClient.ParameterToString(customerSurveyUrl, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Scorablesurvey - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/qualityaudit.go b/build/platformclientv2/qualityaudit.go deleted file mode 100644 index 49ae90b5c..000000000 --- a/build/platformclientv2/qualityaudit.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Qualityaudit -type Qualityaudit struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // JobId - JobId *string `json:"jobId,omitempty"` - - - // Level - Level *string `json:"level,omitempty"` - - - // Entity - Entity *Auditentity `json:"entity,omitempty"` - - - // Timestamp - Timestamp *string `json:"timestamp,omitempty"` - - - // Action - Action *string `json:"action,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // Changes - Changes *[]Change `json:"changes,omitempty"` - - - // EntityType - EntityType *string `json:"entityType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Qualityaudit) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/qualityauditpage.go b/build/platformclientv2/qualityauditpage.go deleted file mode 100644 index 8ec65449f..000000000 --- a/build/platformclientv2/qualityauditpage.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Qualityauditpage -type Qualityauditpage struct { - // Entities - Entities *[]Qualityaudit `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Qualityauditpage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/querydivision.go b/build/platformclientv2/querydivision.go deleted file mode 100644 index 2b314bf66..000000000 --- a/build/platformclientv2/querydivision.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Querydivision -type Querydivision struct { } - -// String returns a JSON representation of the model -func (o *Querydivision) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queryfacetinfo.go b/build/platformclientv2/queryfacetinfo.go deleted file mode 100644 index 40b9c0488..000000000 --- a/build/platformclientv2/queryfacetinfo.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queryfacetinfo -type Queryfacetinfo struct { - // Attributes - Attributes *[]Facetkeyattribute `json:"attributes,omitempty"` - - - // Facets - Facets *[]Facetentry `json:"facets,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queryfacetinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queryrequest.go b/build/platformclientv2/queryrequest.go deleted file mode 100644 index 008daee6f..000000000 --- a/build/platformclientv2/queryrequest.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queryrequest -type Queryrequest struct { - // QueryPhrase - QueryPhrase *string `json:"queryPhrase,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // FacetNameRequests - FacetNameRequests *[]string `json:"facetNameRequests,omitempty"` - - - // Sort - Sort *[]Sortitem `json:"sort,omitempty"` - - - // Filters - Filters *[]Contentfilteritem `json:"filters,omitempty"` - - - // AttributeFilters - AttributeFilters *[]Attributefilteritem `json:"attributeFilters,omitempty"` - - - // IncludeShares - IncludeShares *bool `json:"includeShares,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queryresult.go b/build/platformclientv2/queryresult.go deleted file mode 100644 index bfd3938d2..000000000 --- a/build/platformclientv2/queryresult.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queryresult -type Queryresult struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Body - Body *Domainentity `json:"body,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queryresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queryresults.go b/build/platformclientv2/queryresults.go deleted file mode 100644 index 954bb87df..000000000 --- a/build/platformclientv2/queryresults.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queryresults -type Queryresults struct { - // Results - Results *Domainentitylistingqueryresult `json:"results,omitempty"` - - - // FacetInfo - FacetInfo *Queryfacetinfo `json:"facetInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queryresults) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queue.go b/build/platformclientv2/queue.go deleted file mode 100644 index f583cfac8..000000000 --- a/build/platformclientv2/queue.go +++ /dev/null @@ -1,102 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queue -type Queue struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // Description - The queue description. - Description *string `json:"description,omitempty"` - - - // DateCreated - The date the queue was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the queue. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the queue. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the queue. - CreatedBy *string `json:"createdBy,omitempty"` - - - // MemberCount - The number of users in the queue. - MemberCount *int32 `json:"memberCount,omitempty"` - - - // MediaSettings - The media settings for the queue. Valid key values: CALL, CALLBACK, CHAT, EMAIL, MESSAGE, SOCIAL_EXPRESSION, VIDEO_COMM - MediaSettings *map[string]Mediasetting `json:"mediaSettings,omitempty"` - - - // Bullseye - The bulls-eye settings for the queue. - Bullseye *Bullseye `json:"bullseye,omitempty"` - - - // AcwSettings - The ACW settings for the queue. - AcwSettings *Acwsettings `json:"acwSettings,omitempty"` - - - // SkillEvaluationMethod - The skill evaluation method to use when routing conversations. - SkillEvaluationMethod *string `json:"skillEvaluationMethod,omitempty"` - - - // QueueFlow - The in-queue flow to use for conversations waiting in queue. - QueueFlow *Domainentityref `json:"queueFlow,omitempty"` - - - // WhisperPrompt - The prompt used for whisper on the queue, if configured. - WhisperPrompt *Domainentityref `json:"whisperPrompt,omitempty"` - - - // AutoAnswerOnly - Specifies whether the configured whisper should play for all ACD calls, or only for those which are auto-answered. - AutoAnswerOnly *bool `json:"autoAnswerOnly,omitempty"` - - - // CallingPartyName - The name to use for caller identification for outbound calls from this queue. - CallingPartyName *string `json:"callingPartyName,omitempty"` - - - // CallingPartyNumber - The phone number to use for caller identification for outbound calls from this queue. - CallingPartyNumber *string `json:"callingPartyNumber,omitempty"` - - - // DefaultScripts - The default script Ids for the communication types. - DefaultScripts *map[string]Script `json:"defaultScripts,omitempty"` - - - // OutboundMessagingAddresses - The messaging addresses for the queue. - OutboundMessagingAddresses *Queuemessagingaddresses `json:"outboundMessagingAddresses,omitempty"` - - - // OutboundEmailAddress - OutboundEmailAddress *Queueemailaddress `json:"outboundEmailAddress,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopiccallbackconversation.go b/build/platformclientv2/queueconversationcallbackeventtopiccallbackconversation.go deleted file mode 100644 index 0b51ce0f1..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopiccallbackconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopiccallbackconversation -type Queueconversationcallbackeventtopiccallbackconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationcallbackeventtopiccallbackmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopiccallbackconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopiccallbackmediaparticipant.go b/build/platformclientv2/queueconversationcallbackeventtopiccallbackmediaparticipant.go deleted file mode 100644 index 96fe4d683..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopiccallbackmediaparticipant.go +++ /dev/null @@ -1,178 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationcallbackeventtopiccallbackmediaparticipant -type Queueconversationcallbackeventtopiccallbackmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationcallbackeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationcallbackeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationcallbackeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationcallbackeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationcallbackeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationcallbackeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationcallbackeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationcallbackeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationcallbackeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // OutboundPreview - OutboundPreview *Queueconversationcallbackeventtopicdialerpreview `json:"outboundPreview,omitempty"` - - - // Voicemail - Voicemail *Queueconversationcallbackeventtopicvoicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // SkipEnabled - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // TimeoutSeconds - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // CallbackScheduledTime - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopiccallbackmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationcallbackeventtopicconversationroutingdata.go deleted file mode 100644 index a54a08955..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicconversationroutingdata -type Queueconversationcallbackeventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationcallbackeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationcallbackeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationcallbackeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationcallbackeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicdetail.go b/build/platformclientv2/queueconversationcallbackeventtopicdetail.go deleted file mode 100644 index b5e95004d..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicdetail -type Queueconversationcallbackeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicdialerpreview.go b/build/platformclientv2/queueconversationcallbackeventtopicdialerpreview.go deleted file mode 100644 index fcd005fdd..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicdialerpreview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicdialerpreview -type Queueconversationcallbackeventtopicdialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - PhoneNumberColumns *[]Queueconversationcallbackeventtopicphonenumbercolumn `json:"phoneNumberColumns,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicdialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicerrorbody.go b/build/platformclientv2/queueconversationcallbackeventtopicerrorbody.go deleted file mode 100644 index fa9c1031e..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicerrorbody -type Queueconversationcallbackeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationcallbackeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationcallbackeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicjourneyaction.go b/build/platformclientv2/queueconversationcallbackeventtopicjourneyaction.go deleted file mode 100644 index 7d98d5e7c..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicjourneyaction -type Queueconversationcallbackeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationcallbackeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationcallbackeventtopicjourneyactionmap.go deleted file mode 100644 index 53d3fc3cc..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicjourneyactionmap -type Queueconversationcallbackeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicjourneycontext.go b/build/platformclientv2/queueconversationcallbackeventtopicjourneycontext.go deleted file mode 100644 index ab093999d..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicjourneycontext -type Queueconversationcallbackeventtopicjourneycontext struct { - // Customer - Customer *Queueconversationcallbackeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationcallbackeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationcallbackeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicjourneycustomer.go b/build/platformclientv2/queueconversationcallbackeventtopicjourneycustomer.go deleted file mode 100644 index 69ebabdfe..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicjourneycustomer -type Queueconversationcallbackeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationcallbackeventtopicjourneycustomersession.go deleted file mode 100644 index 0d1f22f35..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicjourneycustomersession -type Queueconversationcallbackeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicphonenumbercolumn.go b/build/platformclientv2/queueconversationcallbackeventtopicphonenumbercolumn.go deleted file mode 100644 index be46021f6..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicphonenumbercolumn -type Queueconversationcallbackeventtopicphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicscoredagent.go b/build/platformclientv2/queueconversationcallbackeventtopicscoredagent.go deleted file mode 100644 index c732579da..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicscoredagent -type Queueconversationcallbackeventtopicscoredagent struct { - // Agent - Agent *Queueconversationcallbackeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicurireference.go b/build/platformclientv2/queueconversationcallbackeventtopicurireference.go deleted file mode 100644 index f082f55c3..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicurireference -type Queueconversationcallbackeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicvoicemail.go b/build/platformclientv2/queueconversationcallbackeventtopicvoicemail.go deleted file mode 100644 index 2770ba45a..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicvoicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcallbackeventtopicvoicemail -type Queueconversationcallbackeventtopicvoicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicvoicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcallbackeventtopicwrapup.go b/build/platformclientv2/queueconversationcallbackeventtopicwrapup.go deleted file mode 100644 index 0869ece38..000000000 --- a/build/platformclientv2/queueconversationcallbackeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationcallbackeventtopicwrapup -type Queueconversationcallbackeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcallbackeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopiccallconversation.go b/build/platformclientv2/queueconversationcalleventtopiccallconversation.go deleted file mode 100644 index 3bb55ce6d..000000000 --- a/build/platformclientv2/queueconversationcalleventtopiccallconversation.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopiccallconversation -type Queueconversationcalleventtopiccallconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationcalleventtopiccallmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // MaxParticipants - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopiccallconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopiccallmediaparticipant.go b/build/platformclientv2/queueconversationcalleventtopiccallmediaparticipant.go deleted file mode 100644 index 1b036aadd..000000000 --- a/build/platformclientv2/queueconversationcalleventtopiccallmediaparticipant.go +++ /dev/null @@ -1,190 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationcalleventtopiccallmediaparticipant -type Queueconversationcalleventtopiccallmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationcalleventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationcalleventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationcalleventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationcalleventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationcalleventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationcalleventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationcalleventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationcalleventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationcalleventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Muted - Muted *bool `json:"muted,omitempty"` - - - // Confined - Confined *bool `json:"confined,omitempty"` - - - // Recording - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Group - Group *Queueconversationcalleventtopicurireference `json:"group,omitempty"` - - - // Ani - Ani *string `json:"ani,omitempty"` - - - // Dnis - Dnis *string `json:"dnis,omitempty"` - - - // DocumentId - DocumentId *string `json:"documentId,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ConsultParticipantId - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // FaxStatus - FaxStatus *Queueconversationcalleventtopicfaxstatus `json:"faxStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopiccallmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationcalleventtopicconversationroutingdata.go deleted file mode 100644 index 7b7dd23df..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicconversationroutingdata -type Queueconversationcalleventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationcalleventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationcalleventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationcalleventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationcalleventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicdetail.go b/build/platformclientv2/queueconversationcalleventtopicdetail.go deleted file mode 100644 index e3ab7a659..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicdetail -type Queueconversationcalleventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicerrorbody.go b/build/platformclientv2/queueconversationcalleventtopicerrorbody.go deleted file mode 100644 index 1cce91774..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicerrorbody -type Queueconversationcalleventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationcalleventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationcalleventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicfaxstatus.go b/build/platformclientv2/queueconversationcalleventtopicfaxstatus.go deleted file mode 100644 index 34a404c07..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicfaxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicfaxstatus -type Queueconversationcalleventtopicfaxstatus struct { - // Direction - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - ExpectedPages *int32 `json:"expectedPages,omitempty"` - - - // ActivePage - ActivePage *int32 `json:"activePage,omitempty"` - - - // LinesTransmitted - LinesTransmitted *int32 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - BytesTransmitted *int32 `json:"bytesTransmitted,omitempty"` - - - // DataRate - DataRate *int32 `json:"dataRate,omitempty"` - - - // PageErrors - PageErrors *int32 `json:"pageErrors,omitempty"` - - - // LineErrors - LineErrors *int32 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicfaxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicjourneyaction.go b/build/platformclientv2/queueconversationcalleventtopicjourneyaction.go deleted file mode 100644 index 59d2d71cf..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicjourneyaction -type Queueconversationcalleventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationcalleventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationcalleventtopicjourneyactionmap.go deleted file mode 100644 index a379b78f7..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicjourneyactionmap -type Queueconversationcalleventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicjourneycontext.go b/build/platformclientv2/queueconversationcalleventtopicjourneycontext.go deleted file mode 100644 index e54bae322..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicjourneycontext -type Queueconversationcalleventtopicjourneycontext struct { - // Customer - Customer *Queueconversationcalleventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationcalleventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationcalleventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicjourneycustomer.go b/build/platformclientv2/queueconversationcalleventtopicjourneycustomer.go deleted file mode 100644 index 0230e4c58..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicjourneycustomer -type Queueconversationcalleventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationcalleventtopicjourneycustomersession.go deleted file mode 100644 index 97535d8fe..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicjourneycustomersession -type Queueconversationcalleventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicscoredagent.go b/build/platformclientv2/queueconversationcalleventtopicscoredagent.go deleted file mode 100644 index bc8fa24c7..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicscoredagent -type Queueconversationcalleventtopicscoredagent struct { - // Agent - Agent *Queueconversationcalleventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicurireference.go b/build/platformclientv2/queueconversationcalleventtopicurireference.go deleted file mode 100644 index bc20f5fbd..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcalleventtopicurireference -type Queueconversationcalleventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcalleventtopicwrapup.go b/build/platformclientv2/queueconversationcalleventtopicwrapup.go deleted file mode 100644 index 50791b74b..000000000 --- a/build/platformclientv2/queueconversationcalleventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationcalleventtopicwrapup -type Queueconversationcalleventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcalleventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicchatconversation.go b/build/platformclientv2/queueconversationchateventtopicchatconversation.go deleted file mode 100644 index 59662e35e..000000000 --- a/build/platformclientv2/queueconversationchateventtopicchatconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicchatconversation -type Queueconversationchateventtopicchatconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationchateventtopicchatmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicchatconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicchatmediaparticipant.go b/build/platformclientv2/queueconversationchateventtopicchatmediaparticipant.go deleted file mode 100644 index 499d87a4d..000000000 --- a/build/platformclientv2/queueconversationchateventtopicchatmediaparticipant.go +++ /dev/null @@ -1,154 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationchateventtopicchatmediaparticipant -type Queueconversationchateventtopicchatmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationchateventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationchateventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationchateventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationchateventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationchateventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationchateventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationchateventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationchateventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationchateventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicchatmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationchateventtopicconversationroutingdata.go deleted file mode 100644 index cf4c98049..000000000 --- a/build/platformclientv2/queueconversationchateventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicconversationroutingdata -type Queueconversationchateventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationchateventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationchateventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationchateventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationchateventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicdetail.go b/build/platformclientv2/queueconversationchateventtopicdetail.go deleted file mode 100644 index 004128f0b..000000000 --- a/build/platformclientv2/queueconversationchateventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicdetail -type Queueconversationchateventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicerrorbody.go b/build/platformclientv2/queueconversationchateventtopicerrorbody.go deleted file mode 100644 index 78f33acad..000000000 --- a/build/platformclientv2/queueconversationchateventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicerrorbody -type Queueconversationchateventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationchateventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationchateventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicjourneyaction.go b/build/platformclientv2/queueconversationchateventtopicjourneyaction.go deleted file mode 100644 index 9de675412..000000000 --- a/build/platformclientv2/queueconversationchateventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicjourneyaction -type Queueconversationchateventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationchateventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationchateventtopicjourneyactionmap.go deleted file mode 100644 index e8137bcfc..000000000 --- a/build/platformclientv2/queueconversationchateventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicjourneyactionmap -type Queueconversationchateventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicjourneycontext.go b/build/platformclientv2/queueconversationchateventtopicjourneycontext.go deleted file mode 100644 index 68baf1af3..000000000 --- a/build/platformclientv2/queueconversationchateventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicjourneycontext -type Queueconversationchateventtopicjourneycontext struct { - // Customer - Customer *Queueconversationchateventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationchateventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationchateventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicjourneycustomer.go b/build/platformclientv2/queueconversationchateventtopicjourneycustomer.go deleted file mode 100644 index 233b3c61d..000000000 --- a/build/platformclientv2/queueconversationchateventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicjourneycustomer -type Queueconversationchateventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationchateventtopicjourneycustomersession.go deleted file mode 100644 index 74a3a4a99..000000000 --- a/build/platformclientv2/queueconversationchateventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicjourneycustomersession -type Queueconversationchateventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicscoredagent.go b/build/platformclientv2/queueconversationchateventtopicscoredagent.go deleted file mode 100644 index a12aabced..000000000 --- a/build/platformclientv2/queueconversationchateventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicscoredagent -type Queueconversationchateventtopicscoredagent struct { - // Agent - Agent *Queueconversationchateventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicurireference.go b/build/platformclientv2/queueconversationchateventtopicurireference.go deleted file mode 100644 index 577d6bf7b..000000000 --- a/build/platformclientv2/queueconversationchateventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationchateventtopicurireference -type Queueconversationchateventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationchateventtopicwrapup.go b/build/platformclientv2/queueconversationchateventtopicwrapup.go deleted file mode 100644 index 083f1c6ac..000000000 --- a/build/platformclientv2/queueconversationchateventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationchateventtopicwrapup -type Queueconversationchateventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationchateventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopiccobrowseconversation.go b/build/platformclientv2/queueconversationcobrowseeventtopiccobrowseconversation.go deleted file mode 100644 index 4bbb2abf8..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopiccobrowseconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopiccobrowseconversation -type Queueconversationcobrowseeventtopiccobrowseconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationcobrowseeventtopiccobrowsemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopiccobrowseconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopiccobrowsemediaparticipant.go b/build/platformclientv2/queueconversationcobrowseeventtopiccobrowsemediaparticipant.go deleted file mode 100644 index 8ca1abf70..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopiccobrowsemediaparticipant.go +++ /dev/null @@ -1,166 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationcobrowseeventtopiccobrowsemediaparticipant -type Queueconversationcobrowseeventtopiccobrowsemediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationcobrowseeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationcobrowseeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationcobrowseeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationcobrowseeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationcobrowseeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationcobrowseeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationcobrowseeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationcobrowseeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationcobrowseeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // CobrowseSessionId - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // ViewerUrl - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // ProviderEventTime - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // Controlling - Controlling *[]string `json:"controlling,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopiccobrowsemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationcobrowseeventtopicconversationroutingdata.go deleted file mode 100644 index 5ee47a03b..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicconversationroutingdata -type Queueconversationcobrowseeventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationcobrowseeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationcobrowseeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationcobrowseeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationcobrowseeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicdetail.go b/build/platformclientv2/queueconversationcobrowseeventtopicdetail.go deleted file mode 100644 index 769e69526..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicdetail -type Queueconversationcobrowseeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicerrorbody.go b/build/platformclientv2/queueconversationcobrowseeventtopicerrorbody.go deleted file mode 100644 index 6723b3441..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicerrorbody -type Queueconversationcobrowseeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationcobrowseeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationcobrowseeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicjourneyaction.go b/build/platformclientv2/queueconversationcobrowseeventtopicjourneyaction.go deleted file mode 100644 index eb24652f9..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicjourneyaction -type Queueconversationcobrowseeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationcobrowseeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationcobrowseeventtopicjourneyactionmap.go deleted file mode 100644 index 7981ddba8..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicjourneyactionmap -type Queueconversationcobrowseeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicjourneycontext.go b/build/platformclientv2/queueconversationcobrowseeventtopicjourneycontext.go deleted file mode 100644 index 42407f975..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicjourneycontext -type Queueconversationcobrowseeventtopicjourneycontext struct { - // Customer - Customer *Queueconversationcobrowseeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationcobrowseeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationcobrowseeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomer.go b/build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomer.go deleted file mode 100644 index 9f0ab145c..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicjourneycustomer -type Queueconversationcobrowseeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomersession.go deleted file mode 100644 index cdaf41172..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicjourneycustomersession -type Queueconversationcobrowseeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicscoredagent.go b/build/platformclientv2/queueconversationcobrowseeventtopicscoredagent.go deleted file mode 100644 index ce79aa93d..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicscoredagent -type Queueconversationcobrowseeventtopicscoredagent struct { - // Agent - Agent *Queueconversationcobrowseeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicurireference.go b/build/platformclientv2/queueconversationcobrowseeventtopicurireference.go deleted file mode 100644 index df0477ef4..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationcobrowseeventtopicurireference -type Queueconversationcobrowseeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationcobrowseeventtopicwrapup.go b/build/platformclientv2/queueconversationcobrowseeventtopicwrapup.go deleted file mode 100644 index 7f30e52f4..000000000 --- a/build/platformclientv2/queueconversationcobrowseeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationcobrowseeventtopicwrapup -type Queueconversationcobrowseeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationcobrowseeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicattachment.go b/build/platformclientv2/queueconversationemaileventtopicattachment.go deleted file mode 100644 index 715ea7359..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicattachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicattachment -type Queueconversationemaileventtopicattachment struct { - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationemaileventtopicconversationroutingdata.go deleted file mode 100644 index 1074ea80b..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicconversationroutingdata -type Queueconversationemaileventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationemaileventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationemaileventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationemaileventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationemaileventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicdetail.go b/build/platformclientv2/queueconversationemaileventtopicdetail.go deleted file mode 100644 index fc0f46ba4..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicdetail -type Queueconversationemaileventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicemailconversation.go b/build/platformclientv2/queueconversationemaileventtopicemailconversation.go deleted file mode 100644 index 0181a38c0..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicemailconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicemailconversation -type Queueconversationemaileventtopicemailconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationemaileventtopicemailmediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicemailconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicemailmediaparticipant.go b/build/platformclientv2/queueconversationemaileventtopicemailmediaparticipant.go deleted file mode 100644 index 76279c1ec..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicemailmediaparticipant.go +++ /dev/null @@ -1,170 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationemaileventtopicemailmediaparticipant -type Queueconversationemaileventtopicemailmediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationemaileventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationemaileventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationemaileventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationemaileventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationemaileventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationemaileventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationemaileventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationemaileventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationemaileventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // MessagesSent - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // AutoGenerated - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // DraftAttachments - DraftAttachments *[]Queueconversationemaileventtopicattachment `json:"draftAttachments,omitempty"` - - - // Spam - Spam *bool `json:"spam,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicemailmediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicerrorbody.go b/build/platformclientv2/queueconversationemaileventtopicerrorbody.go deleted file mode 100644 index cffbcf62e..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicerrorbody -type Queueconversationemaileventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationemaileventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationemaileventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicjourneyaction.go b/build/platformclientv2/queueconversationemaileventtopicjourneyaction.go deleted file mode 100644 index 5a494f88b..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicjourneyaction -type Queueconversationemaileventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationemaileventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationemaileventtopicjourneyactionmap.go deleted file mode 100644 index caa5b5cce..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicjourneyactionmap -type Queueconversationemaileventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicjourneycontext.go b/build/platformclientv2/queueconversationemaileventtopicjourneycontext.go deleted file mode 100644 index 72c879ee6..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicjourneycontext -type Queueconversationemaileventtopicjourneycontext struct { - // Customer - Customer *Queueconversationemaileventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationemaileventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationemaileventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicjourneycustomer.go b/build/platformclientv2/queueconversationemaileventtopicjourneycustomer.go deleted file mode 100644 index 97c0fe818..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicjourneycustomer -type Queueconversationemaileventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationemaileventtopicjourneycustomersession.go deleted file mode 100644 index ceec6054f..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicjourneycustomersession -type Queueconversationemaileventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicscoredagent.go b/build/platformclientv2/queueconversationemaileventtopicscoredagent.go deleted file mode 100644 index 9ca32468e..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicscoredagent -type Queueconversationemaileventtopicscoredagent struct { - // Agent - Agent *Queueconversationemaileventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicurireference.go b/build/platformclientv2/queueconversationemaileventtopicurireference.go deleted file mode 100644 index 5be46dea1..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationemaileventtopicurireference -type Queueconversationemaileventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationemaileventtopicwrapup.go b/build/platformclientv2/queueconversationemaileventtopicwrapup.go deleted file mode 100644 index 1d3d79bf7..000000000 --- a/build/platformclientv2/queueconversationemaileventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationemaileventtopicwrapup -type Queueconversationemaileventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationemaileventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicaddress.go b/build/platformclientv2/queueconversationeventtopicaddress.go deleted file mode 100644 index e98fec2da..000000000 --- a/build/platformclientv2/queueconversationeventtopicaddress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicaddress -type Queueconversationeventtopicaddress struct { - // Name - Name *string `json:"name,omitempty"` - - - // NameRaw - NameRaw *string `json:"nameRaw,omitempty"` - - - // AddressNormalized - AddressNormalized *string `json:"addressNormalized,omitempty"` - - - // AddressRaw - AddressRaw *string `json:"addressRaw,omitempty"` - - - // AddressDisplayable - AddressDisplayable *string `json:"addressDisplayable,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicattachment.go b/build/platformclientv2/queueconversationeventtopicattachment.go deleted file mode 100644 index b6b63ee06..000000000 --- a/build/platformclientv2/queueconversationeventtopicattachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicattachment -type Queueconversationeventtopicattachment struct { - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopiccall.go b/build/platformclientv2/queueconversationeventtopiccall.go deleted file mode 100644 index f0efb8141..000000000 --- a/build/platformclientv2/queueconversationeventtopiccall.go +++ /dev/null @@ -1,106 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopiccall -type Queueconversationeventtopiccall struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Recording - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Muted - Muted *bool `json:"muted,omitempty"` - - - // Confined - Confined *bool `json:"confined,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationeventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DocumentId - DocumentId *string `json:"documentId,omitempty"` - - - // Self - Self *Queueconversationeventtopicaddress `json:"self,omitempty"` - - - // Other - Other *Queueconversationeventtopicaddress `json:"other,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // DisconnectReasons - DisconnectReasons *[]Queueconversationeventtopicdisconnectreason `json:"disconnectReasons,omitempty"` - - - // FaxStatus - FaxStatus *Queueconversationeventtopicfaxstatus `json:"faxStatus,omitempty"` - - - // UuiData - UuiData *string `json:"uuiData,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopiccall) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopiccallback.go b/build/platformclientv2/queueconversationeventtopiccallback.go deleted file mode 100644 index c6cd5ec9d..000000000 --- a/build/platformclientv2/queueconversationeventtopiccallback.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopiccallback -type Queueconversationeventtopiccallback struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DialerPreview - DialerPreview *Queueconversationeventtopicdialerpreview `json:"dialerPreview,omitempty"` - - - // Voicemail - Voicemail *Queueconversationeventtopicvoicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // SkipEnabled - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // TimeoutSeconds - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // CallbackScheduledTime - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopiccallback) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicchat.go b/build/platformclientv2/queueconversationeventtopicchat.go deleted file mode 100644 index 8952dfaee..000000000 --- a/build/platformclientv2/queueconversationeventtopicchat.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicchat -type Queueconversationeventtopicchat struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicchat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopiccobrowse.go b/build/platformclientv2/queueconversationeventtopiccobrowse.go deleted file mode 100644 index 60a23a37c..000000000 --- a/build/platformclientv2/queueconversationeventtopiccobrowse.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopiccobrowse -type Queueconversationeventtopiccobrowse struct { - // State - State *string `json:"state,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Self - Self *Queueconversationeventtopicaddress `json:"self,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // CobrowseSessionId - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // Controlling - Controlling *[]string `json:"controlling,omitempty"` - - - // ViewerUrl - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ProviderEventTime - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopiccobrowse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicconversation.go b/build/platformclientv2/queueconversationeventtopicconversation.go deleted file mode 100644 index 23595de67..000000000 --- a/build/platformclientv2/queueconversationeventtopicconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicconversation -type Queueconversationeventtopicconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // MaxParticipants - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - - - // Participants - Participants *[]Queueconversationeventtopicparticipant `json:"participants,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationeventtopicconversationroutingdata.go deleted file mode 100644 index b938948e5..000000000 --- a/build/platformclientv2/queueconversationeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicconversationroutingdata -type Queueconversationeventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicdialerpreview.go b/build/platformclientv2/queueconversationeventtopicdialerpreview.go deleted file mode 100644 index 2fc6b0ca6..000000000 --- a/build/platformclientv2/queueconversationeventtopicdialerpreview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicdialerpreview -type Queueconversationeventtopicdialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - PhoneNumberColumns *[]Queueconversationeventtopicphonenumbercolumn `json:"phoneNumberColumns,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicdialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicdisconnectreason.go b/build/platformclientv2/queueconversationeventtopicdisconnectreason.go deleted file mode 100644 index 8fbb63d02..000000000 --- a/build/platformclientv2/queueconversationeventtopicdisconnectreason.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicdisconnectreason -type Queueconversationeventtopicdisconnectreason struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Code - Code *int32 `json:"code,omitempty"` - - - // Phrase - Phrase *string `json:"phrase,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicdisconnectreason) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicemail.go b/build/platformclientv2/queueconversationeventtopicemail.go deleted file mode 100644 index 2462d804f..000000000 --- a/build/platformclientv2/queueconversationeventtopicemail.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicemail -type Queueconversationeventtopicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // AutoGenerated - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // MessagesSent - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationeventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DraftAttachments - DraftAttachments *[]Queueconversationeventtopicattachment `json:"draftAttachments,omitempty"` - - - // Spam - Spam *bool `json:"spam,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicerrordetails.go b/build/platformclientv2/queueconversationeventtopicerrordetails.go deleted file mode 100644 index 98f32c3af..000000000 --- a/build/platformclientv2/queueconversationeventtopicerrordetails.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicerrordetails -type Queueconversationeventtopicerrordetails struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Uri - Uri *string `json:"uri,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicerrordetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicfaxstatus.go b/build/platformclientv2/queueconversationeventtopicfaxstatus.go deleted file mode 100644 index 2a8440419..000000000 --- a/build/platformclientv2/queueconversationeventtopicfaxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicfaxstatus -type Queueconversationeventtopicfaxstatus struct { - // Direction - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - ExpectedPages *int32 `json:"expectedPages,omitempty"` - - - // ActivePage - ActivePage *int32 `json:"activePage,omitempty"` - - - // LinesTransmitted - LinesTransmitted *int32 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - BytesTransmitted *int32 `json:"bytesTransmitted,omitempty"` - - - // BaudRate - BaudRate *int32 `json:"baudRate,omitempty"` - - - // PageErrors - PageErrors *int32 `json:"pageErrors,omitempty"` - - - // LineErrors - LineErrors *int32 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicfaxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicjourneyaction.go b/build/platformclientv2/queueconversationeventtopicjourneyaction.go deleted file mode 100644 index 3c1462d59..000000000 --- a/build/platformclientv2/queueconversationeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicjourneyaction -type Queueconversationeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationeventtopicjourneyactionmap.go deleted file mode 100644 index f09d795fd..000000000 --- a/build/platformclientv2/queueconversationeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicjourneyactionmap -type Queueconversationeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicjourneycontext.go b/build/platformclientv2/queueconversationeventtopicjourneycontext.go deleted file mode 100644 index 0895cc74e..000000000 --- a/build/platformclientv2/queueconversationeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicjourneycontext -type Queueconversationeventtopicjourneycontext struct { - // Customer - Customer *Queueconversationeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicjourneycustomer.go b/build/platformclientv2/queueconversationeventtopicjourneycustomer.go deleted file mode 100644 index 64ff870be..000000000 --- a/build/platformclientv2/queueconversationeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicjourneycustomer -type Queueconversationeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationeventtopicjourneycustomersession.go deleted file mode 100644 index e985dcff1..000000000 --- a/build/platformclientv2/queueconversationeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicjourneycustomersession -type Queueconversationeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicmessage.go b/build/platformclientv2/queueconversationeventtopicmessage.go deleted file mode 100644 index 7103dfbfe..000000000 --- a/build/platformclientv2/queueconversationeventtopicmessage.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicmessage -type Queueconversationeventtopicmessage struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // ToAddress - ToAddress *Queueconversationeventtopicaddress `json:"toAddress,omitempty"` - - - // FromAddress - FromAddress *Queueconversationeventtopicaddress `json:"fromAddress,omitempty"` - - - // Messages - Messages *[]Queueconversationeventtopicmessagedetails `json:"messages,omitempty"` - - - // MessagesTranscriptUri - MessagesTranscriptUri *string `json:"messagesTranscriptUri,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - RecipientType *string `json:"recipientType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicmessagedetails.go b/build/platformclientv2/queueconversationeventtopicmessagedetails.go deleted file mode 100644 index 44f63bb06..000000000 --- a/build/platformclientv2/queueconversationeventtopicmessagedetails.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicmessagedetails -type Queueconversationeventtopicmessagedetails struct { - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // MessageTime - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // MessageStatus - MessageStatus *string `json:"messageStatus,omitempty"` - - - // MessageSegmentCount - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // Media - Media *[]Queueconversationeventtopicmessagemedia `json:"media,omitempty"` - - - // Stickers - Stickers *[]Queueconversationeventtopicmessagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicmessagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicmessagemedia.go b/build/platformclientv2/queueconversationeventtopicmessagemedia.go deleted file mode 100644 index cc04fc376..000000000 --- a/build/platformclientv2/queueconversationeventtopicmessagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicmessagemedia -type Queueconversationeventtopicmessagemedia struct { - // Url - Url *string `json:"url,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicmessagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicmessagesticker.go b/build/platformclientv2/queueconversationeventtopicmessagesticker.go deleted file mode 100644 index 41d15f622..000000000 --- a/build/platformclientv2/queueconversationeventtopicmessagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicmessagesticker -type Queueconversationeventtopicmessagesticker struct { - // Url - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicmessagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicparticipant.go b/build/platformclientv2/queueconversationeventtopicparticipant.go deleted file mode 100644 index 1d215f877..000000000 --- a/build/platformclientv2/queueconversationeventtopicparticipant.go +++ /dev/null @@ -1,154 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicparticipant -type Queueconversationeventtopicparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // QueueId - QueueId *string `json:"queueId,omitempty"` - - - // GroupId - GroupId *string `json:"groupId,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // ConsultParticipantId - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupExpected - WrapupExpected *bool `json:"wrapupExpected,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // Wrapup - Wrapup *Queueconversationeventtopicwrapup `json:"wrapup,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // Calls - Calls *[]Queueconversationeventtopiccall `json:"calls,omitempty"` - - - // Callbacks - Callbacks *[]Queueconversationeventtopiccallback `json:"callbacks,omitempty"` - - - // Chats - Chats *[]Queueconversationeventtopicchat `json:"chats,omitempty"` - - - // Cobrowsesessions - Cobrowsesessions *[]Queueconversationeventtopiccobrowse `json:"cobrowsesessions,omitempty"` - - - // Emails - Emails *[]Queueconversationeventtopicemail `json:"emails,omitempty"` - - - // Messages - Messages *[]Queueconversationeventtopicmessage `json:"messages,omitempty"` - - - // Screenshares - Screenshares *[]Queueconversationeventtopicscreenshare `json:"screenshares,omitempty"` - - - // SocialExpressions - SocialExpressions *[]Queueconversationeventtopicsocialexpression `json:"socialExpressions,omitempty"` - - - // Videos - Videos *[]Queueconversationeventtopicvideo `json:"videos,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicphonenumbercolumn.go b/build/platformclientv2/queueconversationeventtopicphonenumbercolumn.go deleted file mode 100644 index c535c4092..000000000 --- a/build/platformclientv2/queueconversationeventtopicphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicphonenumbercolumn -type Queueconversationeventtopicphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicscoredagent.go b/build/platformclientv2/queueconversationeventtopicscoredagent.go deleted file mode 100644 index a25c7c39f..000000000 --- a/build/platformclientv2/queueconversationeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicscoredagent -type Queueconversationeventtopicscoredagent struct { - // Agent - Agent *Queueconversationeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicscreenshare.go b/build/platformclientv2/queueconversationeventtopicscreenshare.go deleted file mode 100644 index 852658815..000000000 --- a/build/platformclientv2/queueconversationeventtopicscreenshare.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicscreenshare -type Queueconversationeventtopicscreenshare struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Queueconversationeventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // Sharing - Sharing *bool `json:"sharing,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicscreenshare) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicsocialexpression.go b/build/platformclientv2/queueconversationeventtopicsocialexpression.go deleted file mode 100644 index 9e8afe8f1..000000000 --- a/build/platformclientv2/queueconversationeventtopicsocialexpression.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicsocialexpression -type Queueconversationeventtopicsocialexpression struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // SocialMediaId - SocialMediaId *string `json:"socialMediaId,omitempty"` - - - // SocialMediaHub - SocialMediaHub *string `json:"socialMediaHub,omitempty"` - - - // SocialUserName - SocialUserName *string `json:"socialUserName,omitempty"` - - - // PreviewText - PreviewText *string `json:"previewText,omitempty"` - - - // RecordingId - RecordingId *string `json:"recordingId,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicsocialexpression) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicurireference.go b/build/platformclientv2/queueconversationeventtopicurireference.go deleted file mode 100644 index 9508e0186..000000000 --- a/build/platformclientv2/queueconversationeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicurireference -type Queueconversationeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicvideo.go b/build/platformclientv2/queueconversationeventtopicvideo.go deleted file mode 100644 index 063412723..000000000 --- a/build/platformclientv2/queueconversationeventtopicvideo.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicvideo -type Queueconversationeventtopicvideo struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Queueconversationeventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // AudioMuted - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - VideoMuted *bool `json:"videoMuted,omitempty"` - - - // SharingScreen - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Msids - Msids *[]string `json:"msids,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicvideo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicvoicemail.go b/build/platformclientv2/queueconversationeventtopicvoicemail.go deleted file mode 100644 index aacd3f26d..000000000 --- a/build/platformclientv2/queueconversationeventtopicvoicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationeventtopicvoicemail -type Queueconversationeventtopicvoicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicvoicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationeventtopicwrapup.go b/build/platformclientv2/queueconversationeventtopicwrapup.go deleted file mode 100644 index b979521c1..000000000 --- a/build/platformclientv2/queueconversationeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationeventtopicwrapup -type Queueconversationeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationmessageeventtopicconversationroutingdata.go deleted file mode 100644 index 9ec594223..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicconversationroutingdata -type Queueconversationmessageeventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationmessageeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationmessageeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationmessageeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationmessageeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicdetail.go b/build/platformclientv2/queueconversationmessageeventtopicdetail.go deleted file mode 100644 index 082f643f1..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicdetail -type Queueconversationmessageeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicerrorbody.go b/build/platformclientv2/queueconversationmessageeventtopicerrorbody.go deleted file mode 100644 index ed85f8ecc..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicerrorbody -type Queueconversationmessageeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationmessageeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationmessageeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicjourneyaction.go b/build/platformclientv2/queueconversationmessageeventtopicjourneyaction.go deleted file mode 100644 index 31b16bdfa..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicjourneyaction -type Queueconversationmessageeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationmessageeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationmessageeventtopicjourneyactionmap.go deleted file mode 100644 index 68769d005..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicjourneyactionmap -type Queueconversationmessageeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicjourneycontext.go b/build/platformclientv2/queueconversationmessageeventtopicjourneycontext.go deleted file mode 100644 index a0d557560..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicjourneycontext -type Queueconversationmessageeventtopicjourneycontext struct { - // Customer - Customer *Queueconversationmessageeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationmessageeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationmessageeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicjourneycustomer.go b/build/platformclientv2/queueconversationmessageeventtopicjourneycustomer.go deleted file mode 100644 index f911e5cf2..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicjourneycustomer -type Queueconversationmessageeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationmessageeventtopicjourneycustomersession.go deleted file mode 100644 index b16d06796..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicjourneycustomersession -type Queueconversationmessageeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicmessageconversation.go b/build/platformclientv2/queueconversationmessageeventtopicmessageconversation.go deleted file mode 100644 index e32c8b691..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicmessageconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicmessageconversation -type Queueconversationmessageeventtopicmessageconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationmessageeventtopicmessagemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicmessageconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicmessagedetails.go b/build/platformclientv2/queueconversationmessageeventtopicmessagedetails.go deleted file mode 100644 index 80e0d19bb..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicmessagedetails.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationmessageeventtopicmessagedetails -type Queueconversationmessageeventtopicmessagedetails struct { - // Message - Message *Queueconversationmessageeventtopicurireference `json:"message,omitempty"` - - - // MessageTime - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // MessageSegmentCount - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // MessageStatus - MessageStatus *string `json:"messageStatus,omitempty"` - - - // Media - Media *[]Queueconversationmessageeventtopicmessagemedia `json:"media,omitempty"` - - - // Stickers - Stickers *[]Queueconversationmessageeventtopicmessagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicmessagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicmessagemedia.go b/build/platformclientv2/queueconversationmessageeventtopicmessagemedia.go deleted file mode 100644 index 8000ff9ba..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicmessagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicmessagemedia -type Queueconversationmessageeventtopicmessagemedia struct { - // Url - Url *string `json:"url,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicmessagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicmessagemediaparticipant.go b/build/platformclientv2/queueconversationmessageeventtopicmessagemediaparticipant.go deleted file mode 100644 index aff54dfc7..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicmessagemediaparticipant.go +++ /dev/null @@ -1,162 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationmessageeventtopicmessagemediaparticipant -type Queueconversationmessageeventtopicmessagemediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationmessageeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationmessageeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationmessageeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationmessageeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationmessageeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationmessageeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationmessageeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationmessageeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationmessageeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Messages - Messages *[]Queueconversationmessageeventtopicmessagedetails `json:"messages,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - RecipientType *string `json:"recipientType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicmessagemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicmessagesticker.go b/build/platformclientv2/queueconversationmessageeventtopicmessagesticker.go deleted file mode 100644 index bb67c59d9..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicmessagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicmessagesticker -type Queueconversationmessageeventtopicmessagesticker struct { - // Url - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicmessagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicscoredagent.go b/build/platformclientv2/queueconversationmessageeventtopicscoredagent.go deleted file mode 100644 index ae19a53b3..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicscoredagent -type Queueconversationmessageeventtopicscoredagent struct { - // Agent - Agent *Queueconversationmessageeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicurireference.go b/build/platformclientv2/queueconversationmessageeventtopicurireference.go deleted file mode 100644 index 2f38f7867..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationmessageeventtopicurireference -type Queueconversationmessageeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationmessageeventtopicwrapup.go b/build/platformclientv2/queueconversationmessageeventtopicwrapup.go deleted file mode 100644 index 578b117d4..000000000 --- a/build/platformclientv2/queueconversationmessageeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationmessageeventtopicwrapup -type Queueconversationmessageeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationmessageeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationscreenshareeventtopicconversationroutingdata.go deleted file mode 100644 index 3d3dc8d35..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicconversationroutingdata -type Queueconversationscreenshareeventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationscreenshareeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationscreenshareeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationscreenshareeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationscreenshareeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicdetail.go b/build/platformclientv2/queueconversationscreenshareeventtopicdetail.go deleted file mode 100644 index ee63a92eb..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicdetail.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicdetail -type Queueconversationscreenshareeventtopicdetail struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // FieldName - FieldName *string `json:"fieldName,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicdetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicerrorbody.go b/build/platformclientv2/queueconversationscreenshareeventtopicerrorbody.go deleted file mode 100644 index 51afc8dea..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicerrorbody.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicerrorbody -type Queueconversationscreenshareeventtopicerrorbody struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // EntityId - EntityId *string `json:"entityId,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Details - Details *[]Queueconversationscreenshareeventtopicdetail `json:"details,omitempty"` - - - // Errors - Errors *[]Queueconversationscreenshareeventtopicerrorbody `json:"errors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicerrorbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicjourneyaction.go b/build/platformclientv2/queueconversationscreenshareeventtopicjourneyaction.go deleted file mode 100644 index d80b2ac66..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicjourneyaction -type Queueconversationscreenshareeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationscreenshareeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationscreenshareeventtopicjourneyactionmap.go deleted file mode 100644 index a04a52488..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicjourneyactionmap -type Queueconversationscreenshareeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicjourneycontext.go b/build/platformclientv2/queueconversationscreenshareeventtopicjourneycontext.go deleted file mode 100644 index e756505ec..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicjourneycontext -type Queueconversationscreenshareeventtopicjourneycontext struct { - // Customer - Customer *Queueconversationscreenshareeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationscreenshareeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationscreenshareeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomer.go b/build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomer.go deleted file mode 100644 index 316bc4211..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicjourneycustomer -type Queueconversationscreenshareeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomersession.go deleted file mode 100644 index 4526ddd0a..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicjourneycustomersession -type Queueconversationscreenshareeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicscoredagent.go b/build/platformclientv2/queueconversationscreenshareeventtopicscoredagent.go deleted file mode 100644 index f15c17e77..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicscoredagent -type Queueconversationscreenshareeventtopicscoredagent struct { - // Agent - Agent *Queueconversationscreenshareeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicscreenshareconversation.go b/build/platformclientv2/queueconversationscreenshareeventtopicscreenshareconversation.go deleted file mode 100644 index 130ac2644..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicscreenshareconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicscreenshareconversation -type Queueconversationscreenshareeventtopicscreenshareconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Participants - Participants *[]Queueconversationscreenshareeventtopicscreensharemediaparticipant `json:"participants,omitempty"` - - - // OtherMediaUris - OtherMediaUris *[]string `json:"otherMediaUris,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicscreenshareconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicscreensharemediaparticipant.go b/build/platformclientv2/queueconversationscreenshareeventtopicscreensharemediaparticipant.go deleted file mode 100644 index 69a60bd4a..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicscreensharemediaparticipant.go +++ /dev/null @@ -1,158 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationscreenshareeventtopicscreensharemediaparticipant -type Queueconversationscreenshareeventtopicscreensharemediaparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // User - User *Queueconversationscreenshareeventtopicurireference `json:"user,omitempty"` - - - // Queue - Queue *Queueconversationscreenshareeventtopicurireference `json:"queue,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationscreenshareeventtopicerrorbody `json:"errorInfo,omitempty"` - - - // Script - Script *Queueconversationscreenshareeventtopicurireference `json:"script,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // WrapupSkipped - WrapupSkipped *bool `json:"wrapupSkipped,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ExternalContact - ExternalContact *Queueconversationscreenshareeventtopicurireference `json:"externalContact,omitempty"` - - - // ExternalOrganization - ExternalOrganization *Queueconversationscreenshareeventtopicurireference `json:"externalOrganization,omitempty"` - - - // Wrapup - Wrapup *Queueconversationscreenshareeventtopicwrapup `json:"wrapup,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationscreenshareeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // Peer - Peer *string `json:"peer,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationscreenshareeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // PeerCount - PeerCount *int32 `json:"peerCount,omitempty"` - - - // Sharing - Sharing *bool `json:"sharing,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicscreensharemediaparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicurireference.go b/build/platformclientv2/queueconversationscreenshareeventtopicurireference.go deleted file mode 100644 index 924d8ff22..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationscreenshareeventtopicurireference -type Queueconversationscreenshareeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationscreenshareeventtopicwrapup.go b/build/platformclientv2/queueconversationscreenshareeventtopicwrapup.go deleted file mode 100644 index 8edea4641..000000000 --- a/build/platformclientv2/queueconversationscreenshareeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationscreenshareeventtopicwrapup -type Queueconversationscreenshareeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationscreenshareeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicaddress.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicaddress.go deleted file mode 100644 index 7e14e7757..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicaddress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicaddress -type Queueconversationsocialexpressioneventtopicaddress struct { - // Name - Name *string `json:"name,omitempty"` - - - // NameRaw - NameRaw *string `json:"nameRaw,omitempty"` - - - // AddressNormalized - AddressNormalized *string `json:"addressNormalized,omitempty"` - - - // AddressRaw - AddressRaw *string `json:"addressRaw,omitempty"` - - - // AddressDisplayable - AddressDisplayable *string `json:"addressDisplayable,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicattachment.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicattachment.go deleted file mode 100644 index 322eca7fe..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicattachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicattachment -type Queueconversationsocialexpressioneventtopicattachment struct { - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopiccall.go b/build/platformclientv2/queueconversationsocialexpressioneventtopiccall.go deleted file mode 100644 index 945ea26ee..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopiccall.go +++ /dev/null @@ -1,106 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopiccall -type Queueconversationsocialexpressioneventtopiccall struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Recording - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Muted - Muted *bool `json:"muted,omitempty"` - - - // Confined - Confined *bool `json:"confined,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationsocialexpressioneventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DocumentId - DocumentId *string `json:"documentId,omitempty"` - - - // Self - Self *Queueconversationsocialexpressioneventtopicaddress `json:"self,omitempty"` - - - // Other - Other *Queueconversationsocialexpressioneventtopicaddress `json:"other,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // DisconnectReasons - DisconnectReasons *[]Queueconversationsocialexpressioneventtopicdisconnectreason `json:"disconnectReasons,omitempty"` - - - // FaxStatus - FaxStatus *Queueconversationsocialexpressioneventtopicfaxstatus `json:"faxStatus,omitempty"` - - - // UuiData - UuiData *string `json:"uuiData,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopiccall) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopiccallback.go b/build/platformclientv2/queueconversationsocialexpressioneventtopiccallback.go deleted file mode 100644 index 7953dc4a8..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopiccallback.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopiccallback -type Queueconversationsocialexpressioneventtopiccallback struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DialerPreview - DialerPreview *Queueconversationsocialexpressioneventtopicdialerpreview `json:"dialerPreview,omitempty"` - - - // Voicemail - Voicemail *Queueconversationsocialexpressioneventtopicvoicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // SkipEnabled - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // TimeoutSeconds - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // CallbackScheduledTime - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopiccallback) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicchat.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicchat.go deleted file mode 100644 index 301bb77be..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicchat.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicchat -type Queueconversationsocialexpressioneventtopicchat struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationsocialexpressioneventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicchat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopiccobrowse.go b/build/platformclientv2/queueconversationsocialexpressioneventtopiccobrowse.go deleted file mode 100644 index f25dfd6b0..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopiccobrowse.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopiccobrowse -type Queueconversationsocialexpressioneventtopiccobrowse struct { - // State - State *string `json:"state,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Self - Self *Queueconversationsocialexpressioneventtopicaddress `json:"self,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // CobrowseSessionId - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // Controlling - Controlling *[]string `json:"controlling,omitempty"` - - - // ViewerUrl - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ProviderEventTime - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopiccobrowse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicconversation.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicconversation.go deleted file mode 100644 index 794e5a3bb..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicconversation -type Queueconversationsocialexpressioneventtopicconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // MaxParticipants - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - - - // Participants - Participants *[]Queueconversationsocialexpressioneventtopicparticipant `json:"participants,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicconversationroutingdata.go deleted file mode 100644 index 91095f79a..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicconversationroutingdata -type Queueconversationsocialexpressioneventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationsocialexpressioneventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationsocialexpressioneventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationsocialexpressioneventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationsocialexpressioneventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicdialerpreview.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicdialerpreview.go deleted file mode 100644 index a55bc5497..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicdialerpreview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicdialerpreview -type Queueconversationsocialexpressioneventtopicdialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - PhoneNumberColumns *[]Queueconversationsocialexpressioneventtopicphonenumbercolumn `json:"phoneNumberColumns,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicdialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicdisconnectreason.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicdisconnectreason.go deleted file mode 100644 index 280d27e6d..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicdisconnectreason.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicdisconnectreason -type Queueconversationsocialexpressioneventtopicdisconnectreason struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Code - Code *int32 `json:"code,omitempty"` - - - // Phrase - Phrase *string `json:"phrase,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicdisconnectreason) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicemail.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicemail.go deleted file mode 100644 index 8e656ded8..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicemail.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicemail -type Queueconversationsocialexpressioneventtopicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // AutoGenerated - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // MessagesSent - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationsocialexpressioneventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DraftAttachments - DraftAttachments *[]Queueconversationsocialexpressioneventtopicattachment `json:"draftAttachments,omitempty"` - - - // Spam - Spam *bool `json:"spam,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicerrordetails.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicerrordetails.go deleted file mode 100644 index 725a33718..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicerrordetails.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicerrordetails -type Queueconversationsocialexpressioneventtopicerrordetails struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Uri - Uri *string `json:"uri,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicerrordetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicfaxstatus.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicfaxstatus.go deleted file mode 100644 index a549b54ae..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicfaxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicfaxstatus -type Queueconversationsocialexpressioneventtopicfaxstatus struct { - // Direction - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - ExpectedPages *int32 `json:"expectedPages,omitempty"` - - - // ActivePage - ActivePage *int32 `json:"activePage,omitempty"` - - - // LinesTransmitted - LinesTransmitted *int32 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - BytesTransmitted *int32 `json:"bytesTransmitted,omitempty"` - - - // BaudRate - BaudRate *int32 `json:"baudRate,omitempty"` - - - // PageErrors - PageErrors *int32 `json:"pageErrors,omitempty"` - - - // LineErrors - LineErrors *int32 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicfaxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyaction.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyaction.go deleted file mode 100644 index 236165b53..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicjourneyaction -type Queueconversationsocialexpressioneventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationsocialexpressioneventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyactionmap.go deleted file mode 100644 index d319a1b64..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicjourneyactionmap -type Queueconversationsocialexpressioneventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycontext.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycontext.go deleted file mode 100644 index b57e96d3b..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicjourneycontext -type Queueconversationsocialexpressioneventtopicjourneycontext struct { - // Customer - Customer *Queueconversationsocialexpressioneventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationsocialexpressioneventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationsocialexpressioneventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomer.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomer.go deleted file mode 100644 index 724676815..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicjourneycustomer -type Queueconversationsocialexpressioneventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomersession.go deleted file mode 100644 index b984995d1..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicjourneycustomersession -type Queueconversationsocialexpressioneventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessage.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicmessage.go deleted file mode 100644 index 5124689ba..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessage.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicmessage -type Queueconversationsocialexpressioneventtopicmessage struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // ToAddress - ToAddress *Queueconversationsocialexpressioneventtopicaddress `json:"toAddress,omitempty"` - - - // FromAddress - FromAddress *Queueconversationsocialexpressioneventtopicaddress `json:"fromAddress,omitempty"` - - - // Messages - Messages *[]Queueconversationsocialexpressioneventtopicmessagedetails `json:"messages,omitempty"` - - - // MessagesTranscriptUri - MessagesTranscriptUri *string `json:"messagesTranscriptUri,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - RecipientType *string `json:"recipientType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagedetails.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagedetails.go deleted file mode 100644 index e53475bd0..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagedetails.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicmessagedetails -type Queueconversationsocialexpressioneventtopicmessagedetails struct { - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // MessageTime - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // MessageStatus - MessageStatus *string `json:"messageStatus,omitempty"` - - - // MessageSegmentCount - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // Media - Media *[]Queueconversationsocialexpressioneventtopicmessagemedia `json:"media,omitempty"` - - - // Stickers - Stickers *[]Queueconversationsocialexpressioneventtopicmessagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicmessagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagemedia.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagemedia.go deleted file mode 100644 index 87f7ebee0..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicmessagemedia -type Queueconversationsocialexpressioneventtopicmessagemedia struct { - // Url - Url *string `json:"url,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicmessagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagesticker.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagesticker.go deleted file mode 100644 index f9db00a15..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicmessagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicmessagesticker -type Queueconversationsocialexpressioneventtopicmessagesticker struct { - // Url - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicmessagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicparticipant.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicparticipant.go deleted file mode 100644 index e768d49bf..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicparticipant.go +++ /dev/null @@ -1,154 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicparticipant -type Queueconversationsocialexpressioneventtopicparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // QueueId - QueueId *string `json:"queueId,omitempty"` - - - // GroupId - GroupId *string `json:"groupId,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // ConsultParticipantId - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupExpected - WrapupExpected *bool `json:"wrapupExpected,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // Wrapup - Wrapup *Queueconversationsocialexpressioneventtopicwrapup `json:"wrapup,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationsocialexpressioneventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // Calls - Calls *[]Queueconversationsocialexpressioneventtopiccall `json:"calls,omitempty"` - - - // Callbacks - Callbacks *[]Queueconversationsocialexpressioneventtopiccallback `json:"callbacks,omitempty"` - - - // Chats - Chats *[]Queueconversationsocialexpressioneventtopicchat `json:"chats,omitempty"` - - - // Cobrowsesessions - Cobrowsesessions *[]Queueconversationsocialexpressioneventtopiccobrowse `json:"cobrowsesessions,omitempty"` - - - // Emails - Emails *[]Queueconversationsocialexpressioneventtopicemail `json:"emails,omitempty"` - - - // Messages - Messages *[]Queueconversationsocialexpressioneventtopicmessage `json:"messages,omitempty"` - - - // Screenshares - Screenshares *[]Queueconversationsocialexpressioneventtopicscreenshare `json:"screenshares,omitempty"` - - - // SocialExpressions - SocialExpressions *[]Queueconversationsocialexpressioneventtopicsocialexpression `json:"socialExpressions,omitempty"` - - - // Videos - Videos *[]Queueconversationsocialexpressioneventtopicvideo `json:"videos,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicphonenumbercolumn.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicphonenumbercolumn.go deleted file mode 100644 index 4f981153d..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicphonenumbercolumn -type Queueconversationsocialexpressioneventtopicphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicscoredagent.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicscoredagent.go deleted file mode 100644 index 432695d69..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicscoredagent -type Queueconversationsocialexpressioneventtopicscoredagent struct { - // Agent - Agent *Queueconversationsocialexpressioneventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicscreenshare.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicscreenshare.go deleted file mode 100644 index c2caf2dee..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicscreenshare.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicscreenshare -type Queueconversationsocialexpressioneventtopicscreenshare struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Queueconversationsocialexpressioneventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // Sharing - Sharing *bool `json:"sharing,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicscreenshare) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicsocialexpression.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicsocialexpression.go deleted file mode 100644 index 163518c32..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicsocialexpression.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicsocialexpression -type Queueconversationsocialexpressioneventtopicsocialexpression struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // SocialMediaId - SocialMediaId *string `json:"socialMediaId,omitempty"` - - - // SocialMediaHub - SocialMediaHub *string `json:"socialMediaHub,omitempty"` - - - // SocialUserName - SocialUserName *string `json:"socialUserName,omitempty"` - - - // PreviewText - PreviewText *string `json:"previewText,omitempty"` - - - // RecordingId - RecordingId *string `json:"recordingId,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicsocialexpression) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicurireference.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicurireference.go deleted file mode 100644 index 089607d2b..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicurireference -type Queueconversationsocialexpressioneventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicvideo.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicvideo.go deleted file mode 100644 index 47f8f98ba..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicvideo.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicvideo -type Queueconversationsocialexpressioneventtopicvideo struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Queueconversationsocialexpressioneventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // AudioMuted - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - VideoMuted *bool `json:"videoMuted,omitempty"` - - - // SharingScreen - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Msids - Msids *[]string `json:"msids,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicvideo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicvoicemail.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicvoicemail.go deleted file mode 100644 index 21de8b8e6..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicvoicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicvoicemail -type Queueconversationsocialexpressioneventtopicvoicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicvoicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationsocialexpressioneventtopicwrapup.go b/build/platformclientv2/queueconversationsocialexpressioneventtopicwrapup.go deleted file mode 100644 index 987f2d7c7..000000000 --- a/build/platformclientv2/queueconversationsocialexpressioneventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationsocialexpressioneventtopicwrapup -type Queueconversationsocialexpressioneventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationsocialexpressioneventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicaddress.go b/build/platformclientv2/queueconversationvideoeventtopicaddress.go deleted file mode 100644 index 8b8d1dd59..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicaddress.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicaddress -type Queueconversationvideoeventtopicaddress struct { - // Name - Name *string `json:"name,omitempty"` - - - // NameRaw - NameRaw *string `json:"nameRaw,omitempty"` - - - // AddressNormalized - AddressNormalized *string `json:"addressNormalized,omitempty"` - - - // AddressRaw - AddressRaw *string `json:"addressRaw,omitempty"` - - - // AddressDisplayable - AddressDisplayable *string `json:"addressDisplayable,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicattachment.go b/build/platformclientv2/queueconversationvideoeventtopicattachment.go deleted file mode 100644 index 892077e01..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicattachment.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicattachment -type Queueconversationvideoeventtopicattachment struct { - // AttachmentId - AttachmentId *string `json:"attachmentId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // ContentType - ContentType *string `json:"contentType,omitempty"` - - - // ContentLength - ContentLength *int32 `json:"contentLength,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicattachment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopiccall.go b/build/platformclientv2/queueconversationvideoeventtopiccall.go deleted file mode 100644 index 302b74d69..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopiccall.go +++ /dev/null @@ -1,106 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopiccall -type Queueconversationvideoeventtopiccall struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Recording - Recording *bool `json:"recording,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Muted - Muted *bool `json:"muted,omitempty"` - - - // Confined - Confined *bool `json:"confined,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationvideoeventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DocumentId - DocumentId *string `json:"documentId,omitempty"` - - - // Self - Self *Queueconversationvideoeventtopicaddress `json:"self,omitempty"` - - - // Other - Other *Queueconversationvideoeventtopicaddress `json:"other,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // DisconnectReasons - DisconnectReasons *[]Queueconversationvideoeventtopicdisconnectreason `json:"disconnectReasons,omitempty"` - - - // FaxStatus - FaxStatus *Queueconversationvideoeventtopicfaxstatus `json:"faxStatus,omitempty"` - - - // UuiData - UuiData *string `json:"uuiData,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopiccall) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopiccallback.go b/build/platformclientv2/queueconversationvideoeventtopiccallback.go deleted file mode 100644 index e6fb05d9b..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopiccallback.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopiccallback -type Queueconversationvideoeventtopiccallback struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // DialerPreview - DialerPreview *Queueconversationvideoeventtopicdialerpreview `json:"dialerPreview,omitempty"` - - - // Voicemail - Voicemail *Queueconversationvideoeventtopicvoicemail `json:"voicemail,omitempty"` - - - // CallbackNumbers - CallbackNumbers *[]string `json:"callbackNumbers,omitempty"` - - - // CallbackUserName - CallbackUserName *string `json:"callbackUserName,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // SkipEnabled - SkipEnabled *bool `json:"skipEnabled,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // TimeoutSeconds - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // CallbackScheduledTime - CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"` - - - // AutomatedCallbackConfigId - AutomatedCallbackConfigId *string `json:"automatedCallbackConfigId,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopiccallback) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicchat.go b/build/platformclientv2/queueconversationvideoeventtopicchat.go deleted file mode 100644 index 3e3df0d5f..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicchat.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicchat -type Queueconversationvideoeventtopicchat struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // AvatarImageUrl - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // JourneyContext - JourneyContext *Queueconversationvideoeventtopicjourneycontext `json:"journeyContext,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicchat) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopiccobrowse.go b/build/platformclientv2/queueconversationvideoeventtopiccobrowse.go deleted file mode 100644 index 0880fdc8c..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopiccobrowse.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopiccobrowse -type Queueconversationvideoeventtopiccobrowse struct { - // State - State *string `json:"state,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Self - Self *Queueconversationvideoeventtopicaddress `json:"self,omitempty"` - - - // RoomId - RoomId *string `json:"roomId,omitempty"` - - - // CobrowseSessionId - CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"` - - - // CobrowseRole - CobrowseRole *string `json:"cobrowseRole,omitempty"` - - - // Controlling - Controlling *[]string `json:"controlling,omitempty"` - - - // ViewerUrl - ViewerUrl *string `json:"viewerUrl,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // ProviderEventTime - ProviderEventTime *time.Time `json:"providerEventTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopiccobrowse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicconversation.go b/build/platformclientv2/queueconversationvideoeventtopicconversation.go deleted file mode 100644 index 0732e3d88..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicconversation.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicconversation -type Queueconversationvideoeventtopicconversation struct { - // Id - Id *string `json:"id,omitempty"` - - - // MaxParticipants - MaxParticipants *int32 `json:"maxParticipants,omitempty"` - - - // Participants - Participants *[]Queueconversationvideoeventtopicparticipant `json:"participants,omitempty"` - - - // RecordingState - RecordingState *string `json:"recordingState,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicconversationroutingdata.go b/build/platformclientv2/queueconversationvideoeventtopicconversationroutingdata.go deleted file mode 100644 index 8f70801e0..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicconversationroutingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicconversationroutingdata -type Queueconversationvideoeventtopicconversationroutingdata struct { - // Queue - Queue *Queueconversationvideoeventtopicurireference `json:"queue,omitempty"` - - - // Language - Language *Queueconversationvideoeventtopicurireference `json:"language,omitempty"` - - - // Priority - Priority *int32 `json:"priority,omitempty"` - - - // Skills - Skills *[]Queueconversationvideoeventtopicurireference `json:"skills,omitempty"` - - - // ScoredAgents - ScoredAgents *[]Queueconversationvideoeventtopicscoredagent `json:"scoredAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicconversationroutingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicdialerpreview.go b/build/platformclientv2/queueconversationvideoeventtopicdialerpreview.go deleted file mode 100644 index 374047fc7..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicdialerpreview.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicdialerpreview -type Queueconversationvideoeventtopicdialerpreview struct { - // Id - Id *string `json:"id,omitempty"` - - - // ContactId - ContactId *string `json:"contactId,omitempty"` - - - // ContactListId - ContactListId *string `json:"contactListId,omitempty"` - - - // CampaignId - CampaignId *string `json:"campaignId,omitempty"` - - - // PhoneNumberColumns - PhoneNumberColumns *[]Queueconversationvideoeventtopicphonenumbercolumn `json:"phoneNumberColumns,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicdialerpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicdisconnectreason.go b/build/platformclientv2/queueconversationvideoeventtopicdisconnectreason.go deleted file mode 100644 index a197c0e0e..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicdisconnectreason.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicdisconnectreason -type Queueconversationvideoeventtopicdisconnectreason struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Code - Code *int32 `json:"code,omitempty"` - - - // Phrase - Phrase *string `json:"phrase,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicdisconnectreason) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicemail.go b/build/platformclientv2/queueconversationvideoeventtopicemail.go deleted file mode 100644 index bb85056d3..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicemail.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicemail -type Queueconversationvideoeventtopicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // AutoGenerated - AutoGenerated *bool `json:"autoGenerated,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // MessagesSent - MessagesSent *int32 `json:"messagesSent,omitempty"` - - - // ErrorInfo - ErrorInfo *Queueconversationvideoeventtopicerrordetails `json:"errorInfo,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // Direction - Direction *string `json:"direction,omitempty"` - - - // DraftAttachments - DraftAttachments *[]Queueconversationvideoeventtopicattachment `json:"draftAttachments,omitempty"` - - - // Spam - Spam *bool `json:"spam,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicerrordetails.go b/build/platformclientv2/queueconversationvideoeventtopicerrordetails.go deleted file mode 100644 index 8a42f7610..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicerrordetails.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicerrordetails -type Queueconversationvideoeventtopicerrordetails struct { - // Status - Status *int32 `json:"status,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // MessageWithParams - MessageWithParams *string `json:"messageWithParams,omitempty"` - - - // MessageParams - MessageParams *map[string]string `json:"messageParams,omitempty"` - - - // ContextId - ContextId *string `json:"contextId,omitempty"` - - - // Uri - Uri *string `json:"uri,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicerrordetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicfaxstatus.go b/build/platformclientv2/queueconversationvideoeventtopicfaxstatus.go deleted file mode 100644 index 43c447738..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicfaxstatus.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicfaxstatus -type Queueconversationvideoeventtopicfaxstatus struct { - // Direction - Direction *string `json:"direction,omitempty"` - - - // ExpectedPages - ExpectedPages *int32 `json:"expectedPages,omitempty"` - - - // ActivePage - ActivePage *int32 `json:"activePage,omitempty"` - - - // LinesTransmitted - LinesTransmitted *int32 `json:"linesTransmitted,omitempty"` - - - // BytesTransmitted - BytesTransmitted *int32 `json:"bytesTransmitted,omitempty"` - - - // BaudRate - BaudRate *int32 `json:"baudRate,omitempty"` - - - // PageErrors - PageErrors *int32 `json:"pageErrors,omitempty"` - - - // LineErrors - LineErrors *int32 `json:"lineErrors,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicfaxstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicjourneyaction.go b/build/platformclientv2/queueconversationvideoeventtopicjourneyaction.go deleted file mode 100644 index fab41a3a0..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicjourneyaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicjourneyaction -type Queueconversationvideoeventtopicjourneyaction struct { - // Id - Id *string `json:"id,omitempty"` - - - // ActionMap - ActionMap *Queueconversationvideoeventtopicjourneyactionmap `json:"actionMap,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicjourneyaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicjourneyactionmap.go b/build/platformclientv2/queueconversationvideoeventtopicjourneyactionmap.go deleted file mode 100644 index 49fccc0a3..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicjourneyactionmap.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicjourneyactionmap -type Queueconversationvideoeventtopicjourneyactionmap struct { - // Id - Id *string `json:"id,omitempty"` - - - // Version - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicjourneyactionmap) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicjourneycontext.go b/build/platformclientv2/queueconversationvideoeventtopicjourneycontext.go deleted file mode 100644 index 5dd111675..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicjourneycontext.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicjourneycontext -type Queueconversationvideoeventtopicjourneycontext struct { - // Customer - Customer *Queueconversationvideoeventtopicjourneycustomer `json:"customer,omitempty"` - - - // CustomerSession - CustomerSession *Queueconversationvideoeventtopicjourneycustomersession `json:"customerSession,omitempty"` - - - // TriggeringAction - TriggeringAction *Queueconversationvideoeventtopicjourneyaction `json:"triggeringAction,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicjourneycontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicjourneycustomer.go b/build/platformclientv2/queueconversationvideoeventtopicjourneycustomer.go deleted file mode 100644 index 9460cc1a1..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicjourneycustomer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicjourneycustomer -type Queueconversationvideoeventtopicjourneycustomer struct { - // Id - Id *string `json:"id,omitempty"` - - - // IdType - IdType *string `json:"idType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicjourneycustomer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicjourneycustomersession.go b/build/platformclientv2/queueconversationvideoeventtopicjourneycustomersession.go deleted file mode 100644 index 004e8eb58..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicjourneycustomersession.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicjourneycustomersession -type Queueconversationvideoeventtopicjourneycustomersession struct { - // Id - Id *string `json:"id,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicjourneycustomersession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicmessage.go b/build/platformclientv2/queueconversationvideoeventtopicmessage.go deleted file mode 100644 index d68137689..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicmessage.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicmessage -type Queueconversationvideoeventtopicmessage struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // ToAddress - ToAddress *Queueconversationvideoeventtopicaddress `json:"toAddress,omitempty"` - - - // FromAddress - FromAddress *Queueconversationvideoeventtopicaddress `json:"fromAddress,omitempty"` - - - // Messages - Messages *[]Queueconversationvideoeventtopicmessagedetails `json:"messages,omitempty"` - - - // MessagesTranscriptUri - MessagesTranscriptUri *string `json:"messagesTranscriptUri,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // RecipientCountry - RecipientCountry *string `json:"recipientCountry,omitempty"` - - - // RecipientType - RecipientType *string `json:"recipientType,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicmessagedetails.go b/build/platformclientv2/queueconversationvideoeventtopicmessagedetails.go deleted file mode 100644 index 37f9cf280..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicmessagedetails.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicmessagedetails -type Queueconversationvideoeventtopicmessagedetails struct { - // MessageId - MessageId *string `json:"messageId,omitempty"` - - - // MessageTime - MessageTime *time.Time `json:"messageTime,omitempty"` - - - // MessageStatus - MessageStatus *string `json:"messageStatus,omitempty"` - - - // MessageSegmentCount - MessageSegmentCount *int32 `json:"messageSegmentCount,omitempty"` - - - // Media - Media *[]Queueconversationvideoeventtopicmessagemedia `json:"media,omitempty"` - - - // Stickers - Stickers *[]Queueconversationvideoeventtopicmessagesticker `json:"stickers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicmessagedetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicmessagemedia.go b/build/platformclientv2/queueconversationvideoeventtopicmessagemedia.go deleted file mode 100644 index a1847ead0..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicmessagemedia.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicmessagemedia -type Queueconversationvideoeventtopicmessagemedia struct { - // Url - Url *string `json:"url,omitempty"` - - - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ContentLengthBytes - ContentLengthBytes *int32 `json:"contentLengthBytes,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicmessagemedia) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicmessagesticker.go b/build/platformclientv2/queueconversationvideoeventtopicmessagesticker.go deleted file mode 100644 index e9fba7f58..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicmessagesticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicmessagesticker -type Queueconversationvideoeventtopicmessagesticker struct { - // Url - Url *string `json:"url,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicmessagesticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicparticipant.go b/build/platformclientv2/queueconversationvideoeventtopicparticipant.go deleted file mode 100644 index 56ec70978..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicparticipant.go +++ /dev/null @@ -1,154 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicparticipant -type Queueconversationvideoeventtopicparticipant struct { - // Id - Id *string `json:"id,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // ExternalContactId - ExternalContactId *string `json:"externalContactId,omitempty"` - - - // ExternalOrganizationId - ExternalOrganizationId *string `json:"externalOrganizationId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // QueueId - QueueId *string `json:"queueId,omitempty"` - - - // GroupId - GroupId *string `json:"groupId,omitempty"` - - - // Purpose - Purpose *string `json:"purpose,omitempty"` - - - // ConsultParticipantId - ConsultParticipantId *string `json:"consultParticipantId,omitempty"` - - - // Address - Address *string `json:"address,omitempty"` - - - // WrapupRequired - WrapupRequired *bool `json:"wrapupRequired,omitempty"` - - - // WrapupExpected - WrapupExpected *bool `json:"wrapupExpected,omitempty"` - - - // WrapupPrompt - WrapupPrompt *string `json:"wrapupPrompt,omitempty"` - - - // WrapupTimeoutMs - WrapupTimeoutMs *int32 `json:"wrapupTimeoutMs,omitempty"` - - - // Wrapup - Wrapup *Queueconversationvideoeventtopicwrapup `json:"wrapup,omitempty"` - - - // StartAcwTime - StartAcwTime *time.Time `json:"startAcwTime,omitempty"` - - - // EndAcwTime - EndAcwTime *time.Time `json:"endAcwTime,omitempty"` - - - // ConversationRoutingData - ConversationRoutingData *Queueconversationvideoeventtopicconversationroutingdata `json:"conversationRoutingData,omitempty"` - - - // AlertingTimeoutMs - AlertingTimeoutMs *int32 `json:"alertingTimeoutMs,omitempty"` - - - // MonitoredParticipantId - MonitoredParticipantId *string `json:"monitoredParticipantId,omitempty"` - - - // ScreenRecordingState - ScreenRecordingState *string `json:"screenRecordingState,omitempty"` - - - // FlaggedReason - FlaggedReason *string `json:"flaggedReason,omitempty"` - - - // Attributes - Attributes *map[string]string `json:"attributes,omitempty"` - - - // Calls - Calls *[]Queueconversationvideoeventtopiccall `json:"calls,omitempty"` - - - // Callbacks - Callbacks *[]Queueconversationvideoeventtopiccallback `json:"callbacks,omitempty"` - - - // Chats - Chats *[]Queueconversationvideoeventtopicchat `json:"chats,omitempty"` - - - // Cobrowsesessions - Cobrowsesessions *[]Queueconversationvideoeventtopiccobrowse `json:"cobrowsesessions,omitempty"` - - - // Emails - Emails *[]Queueconversationvideoeventtopicemail `json:"emails,omitempty"` - - - // Messages - Messages *[]Queueconversationvideoeventtopicmessage `json:"messages,omitempty"` - - - // Screenshares - Screenshares *[]Queueconversationvideoeventtopicscreenshare `json:"screenshares,omitempty"` - - - // SocialExpressions - SocialExpressions *[]Queueconversationvideoeventtopicsocialexpression `json:"socialExpressions,omitempty"` - - - // Videos - Videos *[]Queueconversationvideoeventtopicvideo `json:"videos,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicparticipant) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicphonenumbercolumn.go b/build/platformclientv2/queueconversationvideoeventtopicphonenumbercolumn.go deleted file mode 100644 index c3749e92c..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicphonenumbercolumn.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicphonenumbercolumn -type Queueconversationvideoeventtopicphonenumbercolumn struct { - // ColumnName - ColumnName *string `json:"columnName,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicphonenumbercolumn) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicscoredagent.go b/build/platformclientv2/queueconversationvideoeventtopicscoredagent.go deleted file mode 100644 index fd153adbc..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicscoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicscoredagent -type Queueconversationvideoeventtopicscoredagent struct { - // Agent - Agent *Queueconversationvideoeventtopicurireference `json:"agent,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicscoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicscreenshare.go b/build/platformclientv2/queueconversationvideoeventtopicscreenshare.go deleted file mode 100644 index 20090b22a..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicscreenshare.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicscreenshare -type Queueconversationvideoeventtopicscreenshare struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Queueconversationvideoeventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // Sharing - Sharing *bool `json:"sharing,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicscreenshare) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicsocialexpression.go b/build/platformclientv2/queueconversationvideoeventtopicsocialexpression.go deleted file mode 100644 index 7b3948834..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicsocialexpression.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicsocialexpression -type Queueconversationvideoeventtopicsocialexpression struct { - // State - State *string `json:"state,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // SocialMediaId - SocialMediaId *string `json:"socialMediaId,omitempty"` - - - // SocialMediaHub - SocialMediaHub *string `json:"socialMediaHub,omitempty"` - - - // SocialUserName - SocialUserName *string `json:"socialUserName,omitempty"` - - - // PreviewText - PreviewText *string `json:"previewText,omitempty"` - - - // RecordingId - RecordingId *string `json:"recordingId,omitempty"` - - - // Held - Held *bool `json:"held,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicsocialexpression) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicurireference.go b/build/platformclientv2/queueconversationvideoeventtopicurireference.go deleted file mode 100644 index 332e99c46..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicurireference -type Queueconversationvideoeventtopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicvideo.go b/build/platformclientv2/queueconversationvideoeventtopicvideo.go deleted file mode 100644 index b1714c5e0..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicvideo.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicvideo -type Queueconversationvideoeventtopicvideo struct { - // State - State *string `json:"state,omitempty"` - - - // Self - Self *Queueconversationvideoeventtopicaddress `json:"self,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // Context - Context *string `json:"context,omitempty"` - - - // AudioMuted - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - VideoMuted *bool `json:"videoMuted,omitempty"` - - - // SharingScreen - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // Provider - Provider *string `json:"provider,omitempty"` - - - // ScriptId - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - PeerId *string `json:"peerId,omitempty"` - - - // DisconnectType - DisconnectType *string `json:"disconnectType,omitempty"` - - - // ConnectedTime - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Msids - Msids *[]string `json:"msids,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicvideo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicvoicemail.go b/build/platformclientv2/queueconversationvideoeventtopicvoicemail.go deleted file mode 100644 index 4b69889e6..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicvoicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueconversationvideoeventtopicvoicemail -type Queueconversationvideoeventtopicvoicemail struct { - // Id - Id *string `json:"id,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicvoicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueconversationvideoeventtopicwrapup.go b/build/platformclientv2/queueconversationvideoeventtopicwrapup.go deleted file mode 100644 index d5d07cade..000000000 --- a/build/platformclientv2/queueconversationvideoeventtopicwrapup.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queueconversationvideoeventtopicwrapup -type Queueconversationvideoeventtopicwrapup struct { - // Code - Code *string `json:"code,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // Tags - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - EndTime *time.Time `json:"endTime,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueconversationvideoeventtopicwrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueemailaddress.go b/build/platformclientv2/queueemailaddress.go deleted file mode 100644 index 2102310e1..000000000 --- a/build/platformclientv2/queueemailaddress.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueemailaddress -type Queueemailaddress struct { - // Domain - Domain *Domainentityref `json:"domain,omitempty"` - - - // Route - Route *Inboundroute `json:"route,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueemailaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueentitylisting.go b/build/platformclientv2/queueentitylisting.go deleted file mode 100644 index ace29c4c8..000000000 --- a/build/platformclientv2/queueentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueentitylisting -type Queueentitylisting struct { - // Entities - Entities *[]Queue `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queuemediaassociation.go b/build/platformclientv2/queuemediaassociation.go deleted file mode 100644 index 676195c68..000000000 --- a/build/platformclientv2/queuemediaassociation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queuemediaassociation - A combination of a single queue and one or more media types to associate with a service goal group -type Queuemediaassociation struct { - // Id - The reference ID for this QueueMediaAssociation - Id *string `json:"id,omitempty"` - - - // Queue - The queue to associate with the service goal group - Queue *Queuereference `json:"queue,omitempty"` - - - // MediaTypes - The media types of the given queue to associate with the service goal group - MediaTypes *[]string `json:"mediaTypes,omitempty"` - - - // Delete - If marked true on a PATCH, this QueueMediaAssociation will be permanently deleted - Delete *bool `json:"delete,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queuemediaassociation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queuemember.go b/build/platformclientv2/queuemember.go deleted file mode 100644 index 0ec45c6ef..000000000 --- a/build/platformclientv2/queuemember.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queuemember -type Queuemember struct { - // Id - The queue member's id. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // RingNumber - RingNumber *int32 `json:"ringNumber,omitempty"` - - - // Joined - Joined *bool `json:"joined,omitempty"` - - - // MemberBy - MemberBy *string `json:"memberBy,omitempty"` - - - // RoutingStatus - RoutingStatus *Routingstatus `json:"routingStatus,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queuemember) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queuememberentitylisting.go b/build/platformclientv2/queuememberentitylisting.go deleted file mode 100644 index 2619271b5..000000000 --- a/build/platformclientv2/queuememberentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queuememberentitylisting -type Queuememberentitylisting struct { - // Entities - Entities *[]Queuemember `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queuememberentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queuemessagingaddresses.go b/build/platformclientv2/queuemessagingaddresses.go deleted file mode 100644 index 128ed7841..000000000 --- a/build/platformclientv2/queuemessagingaddresses.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queuemessagingaddresses -type Queuemessagingaddresses struct { - // SmsAddress - SmsAddress *Domainentityref `json:"smsAddress,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queuemessagingaddresses) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueobservationdatacontainer.go b/build/platformclientv2/queueobservationdatacontainer.go deleted file mode 100644 index 248d43f73..000000000 --- a/build/platformclientv2/queueobservationdatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueobservationdatacontainer -type Queueobservationdatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Observationmetricdata `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueobservationdatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueobservationquery.go b/build/platformclientv2/queueobservationquery.go deleted file mode 100644 index e606e58e0..000000000 --- a/build/platformclientv2/queueobservationquery.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueobservationquery -type Queueobservationquery struct { - // Filter - Filter to return a subset of observations. Expresses boolean logical predicates as well as dimensional filters - Filter *Queueobservationqueryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // DetailMetrics - Metrics for which to include additional detailed observations - DetailMetrics *[]string `json:"detailMetrics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueobservationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueobservationqueryclause.go b/build/platformclientv2/queueobservationqueryclause.go deleted file mode 100644 index 76da9a48a..000000000 --- a/build/platformclientv2/queueobservationqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueobservationqueryclause -type Queueobservationqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Queueobservationquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueobservationqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueobservationqueryfilter.go b/build/platformclientv2/queueobservationqueryfilter.go deleted file mode 100644 index a951e8281..000000000 --- a/build/platformclientv2/queueobservationqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueobservationqueryfilter -type Queueobservationqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Queueobservationqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Queueobservationquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueobservationqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueobservationquerypredicate.go b/build/platformclientv2/queueobservationquerypredicate.go deleted file mode 100644 index 6e711855c..000000000 --- a/build/platformclientv2/queueobservationquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueobservationquerypredicate -type Queueobservationquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueobservationquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueobservationqueryresponse.go b/build/platformclientv2/queueobservationqueryresponse.go deleted file mode 100644 index da3669faf..000000000 --- a/build/platformclientv2/queueobservationqueryresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueobservationqueryresponse -type Queueobservationqueryresponse struct { - // SystemToOrganizationMappings - A mapping from system presence to a list of organization presence ids - SystemToOrganizationMappings *map[string][]string `json:"systemToOrganizationMappings,omitempty"` - - - // Results - Results *[]Queueobservationdatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueobservationqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queuereference.go b/build/platformclientv2/queuereference.go deleted file mode 100644 index b58f99b9b..000000000 --- a/build/platformclientv2/queuereference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queuereference -type Queuereference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queuereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queuerequest.go b/build/platformclientv2/queuerequest.go deleted file mode 100644 index 237ea56ee..000000000 --- a/build/platformclientv2/queuerequest.go +++ /dev/null @@ -1,102 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Queuerequest -type Queuerequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The queue name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Writabledivision `json:"division,omitempty"` - - - // Description - The queue description. - Description *string `json:"description,omitempty"` - - - // DateCreated - The date the queue was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the queue. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the queue. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the queue. - CreatedBy *string `json:"createdBy,omitempty"` - - - // MemberCount - The number of users in the queue. - MemberCount *int32 `json:"memberCount,omitempty"` - - - // MediaSettings - The media settings for the queue. Valid key values: CALL, CALLBACK, CHAT, EMAIL, MESSAGE, SOCIAL_EXPRESSION, VIDEO_COMM - MediaSettings *map[string]Mediasetting `json:"mediaSettings,omitempty"` - - - // Bullseye - The bulls-eye settings for the queue. - Bullseye *Bullseye `json:"bullseye,omitempty"` - - - // AcwSettings - The ACW settings for the queue. - AcwSettings *Acwsettings `json:"acwSettings,omitempty"` - - - // SkillEvaluationMethod - The skill evaluation method to use when routing conversations. - SkillEvaluationMethod *string `json:"skillEvaluationMethod,omitempty"` - - - // QueueFlow - The in-queue flow to use for conversations waiting in queue. - QueueFlow *Domainentityref `json:"queueFlow,omitempty"` - - - // WhisperPrompt - The prompt used for whisper on the queue, if configured. - WhisperPrompt *Domainentityref `json:"whisperPrompt,omitempty"` - - - // AutoAnswerOnly - Specifies whether the configured whisper should play for all ACD calls, or only for those which are auto-answered. - AutoAnswerOnly *bool `json:"autoAnswerOnly,omitempty"` - - - // CallingPartyName - The name to use for caller identification for outbound calls from this queue. - CallingPartyName *string `json:"callingPartyName,omitempty"` - - - // CallingPartyNumber - The phone number to use for caller identification for outbound calls from this queue. - CallingPartyNumber *string `json:"callingPartyNumber,omitempty"` - - - // DefaultScripts - The default script Ids for the communication types. - DefaultScripts *map[string]Script `json:"defaultScripts,omitempty"` - - - // OutboundMessagingAddresses - The messaging addresses for the queue. - OutboundMessagingAddresses *Queuemessagingaddresses `json:"outboundMessagingAddresses,omitempty"` - - - // OutboundEmailAddress - OutboundEmailAddress *Queueemailaddress `json:"outboundEmailAddress,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queuerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueusereventtopicqueuemember.go b/build/platformclientv2/queueusereventtopicqueuemember.go deleted file mode 100644 index 9c6165fde..000000000 --- a/build/platformclientv2/queueusereventtopicqueuemember.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueusereventtopicqueuemember -type Queueusereventtopicqueuemember struct { - // MemberId - MemberId *string `json:"memberId,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // RingNumber - RingNumber *int32 `json:"ringNumber,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // Joined - Joined *bool `json:"joined,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueusereventtopicqueuemember) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/queueutilizationdiagnostic.go b/build/platformclientv2/queueutilizationdiagnostic.go deleted file mode 100644 index b917a16f5..000000000 --- a/build/platformclientv2/queueutilizationdiagnostic.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Queueutilizationdiagnostic -type Queueutilizationdiagnostic struct { - // Queue - Identifier of the queue - Queue *Domainentityref `json:"queue,omitempty"` - - - // UsersInQueue - The number of users joined to the queue - UsersInQueue *int32 `json:"usersInQueue,omitempty"` - - - // ActiveUsersInQueue - The number of users active on the queue - ActiveUsersInQueue *int32 `json:"activeUsersInQueue,omitempty"` - - - // UsersOnQueue - The number of users with a status of on-queue - UsersOnQueue *int32 `json:"usersOnQueue,omitempty"` - - - // UsersNotUtilized - The number of users in the queue currently not engaged - UsersNotUtilized *int32 `json:"usersNotUtilized,omitempty"` - - - // UsersOnQueueWithStation - The number of users in the queue with a station - UsersOnQueueWithStation *int32 `json:"usersOnQueueWithStation,omitempty"` - - - // UsersOnACampaignCall - The number of users currently engaged in a campaign call - UsersOnACampaignCall *int32 `json:"usersOnACampaignCall,omitempty"` - - - // UsersOnDifferentEdgeGroup - The number of users whose station is homed to an edge different from the campaign - UsersOnDifferentEdgeGroup *int32 `json:"usersOnDifferentEdgeGroup,omitempty"` - - - // UsersOnANonCampaignCall - The number of users currently engaged in a communication that is not part of the campaign - UsersOnANonCampaignCall *int32 `json:"usersOnANonCampaignCall,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Queueutilizationdiagnostic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reaction.go b/build/platformclientv2/reaction.go deleted file mode 100644 index 49b6569f2..000000000 --- a/build/platformclientv2/reaction.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reaction -type Reaction struct { - // Data - Parameter for this reaction. For transfer_flow, this would be the outbound flow id. - Data *string `json:"data,omitempty"` - - - // Name - Name of the parameter for this reaction. For transfer_flow, this would be the outbound flow name. - Name *string `json:"name,omitempty"` - - - // ReactionType - The reaction to take for a given call analysis result. - ReactionType *string `json:"reactionType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reaction) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recallentry.go b/build/platformclientv2/recallentry.go deleted file mode 100644 index 6b447817c..000000000 --- a/build/platformclientv2/recallentry.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Recallentry -type Recallentry struct { - // NbrAttempts - NbrAttempts *int32 `json:"nbrAttempts,omitempty"` - - - // MinutesBetweenAttempts - MinutesBetweenAttempts *int32 `json:"minutesBetweenAttempts,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recallentry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recipient.go b/build/platformclientv2/recipient.go deleted file mode 100644 index 272205785..000000000 --- a/build/platformclientv2/recipient.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recipient -type Recipient struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Flow - An automate flow object which defines the set of actions to be taken, when a message is received by this provisioned phone number. - Flow *Flow `json:"flow,omitempty"` - - - // DateCreated - Date this recipient was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this recipient was modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User that created this recipient - CreatedBy *User `json:"createdBy,omitempty"` - - - // ModifiedBy - User that modified this recipient - ModifiedBy *User `json:"modifiedBy,omitempty"` - - - // MessengerType - The messenger type for this recipient - MessengerType *string `json:"messengerType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recipient) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recipientlisting.go b/build/platformclientv2/recipientlisting.go deleted file mode 100644 index 8e53e98e7..000000000 --- a/build/platformclientv2/recipientlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Recipientlisting -type Recipientlisting struct { - // Entities - Entities *[]Recipient `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recipientlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/record.go b/build/platformclientv2/record.go deleted file mode 100644 index 25f76e452..000000000 --- a/build/platformclientv2/record.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Record -type Record struct { - // Name - The name of the record. - Name *string `json:"name,omitempty"` - - - // VarType - The type of the record. (Example values: MX, TXT, CNAME) - VarType *string `json:"type,omitempty"` - - - // Value - The value of the record. - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Record) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recording.go b/build/platformclientv2/recording.go deleted file mode 100644 index 7f634b4d8..000000000 --- a/build/platformclientv2/recording.go +++ /dev/null @@ -1,126 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recording -type Recording struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ConversationId - ConversationId *string `json:"conversationId,omitempty"` - - - // Path - Path *string `json:"path,omitempty"` - - - // StartTime - The start time of the recording. Null when there is no playable media. - StartTime *string `json:"startTime,omitempty"` - - - // EndTime - The end time of the recording. Null when there is no playable media. - EndTime *string `json:"endTime,omitempty"` - - - // Media - The type of media that the recording is. At the moment that could be audio, chat, or email. - Media *string `json:"media,omitempty"` - - - // Annotations - Annotations that belong to the recording. - Annotations *[]Annotation `json:"annotations,omitempty"` - - - // Transcript - Represents a chat transcript - Transcript *[]Chatmessage `json:"transcript,omitempty"` - - - // EmailTranscript - Represents an email transcript - EmailTranscript *[]Recordingemailmessage `json:"emailTranscript,omitempty"` - - - // MessagingTranscript - Represents a messaging transcript - MessagingTranscript *[]Recordingmessagingmessage `json:"messagingTranscript,omitempty"` - - - // FileState - Represents the current file state for a recording. Examples: Uploading, Archived, etc - FileState *string `json:"fileState,omitempty"` - - - // RestoreExpirationTime - The amount of time a restored recording will remain restored before being archived again. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RestoreExpirationTime *time.Time `json:"restoreExpirationTime,omitempty"` - - - // MediaUris - The different mediaUris for the recording. Null when there is no playable media. - MediaUris *map[string]Mediaresult `json:"mediaUris,omitempty"` - - - // EstimatedTranscodeTimeMs - EstimatedTranscodeTimeMs *int64 `json:"estimatedTranscodeTimeMs,omitempty"` - - - // ActualTranscodeTimeMs - ActualTranscodeTimeMs *int64 `json:"actualTranscodeTimeMs,omitempty"` - - - // ArchiveDate - The date the recording will be archived. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ArchiveDate *time.Time `json:"archiveDate,omitempty"` - - - // ArchiveMedium - The type of archive medium used. Example: CloudArchive - ArchiveMedium *string `json:"archiveMedium,omitempty"` - - - // DeleteDate - The date the recording will be deleted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DeleteDate *time.Time `json:"deleteDate,omitempty"` - - - // ExportDate - The date the recording will be exported. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExportDate *time.Time `json:"exportDate,omitempty"` - - - // ExportedDate - The date the recording was exported. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExportedDate *time.Time `json:"exportedDate,omitempty"` - - - // OutputDurationMs - Duration of transcoded media in milliseconds - OutputDurationMs *int32 `json:"outputDurationMs,omitempty"` - - - // OutputSizeInBytes - Size of transcoded media in bytes. 0 if there is no transcoded media. - OutputSizeInBytes *int32 `json:"outputSizeInBytes,omitempty"` - - - // MaxAllowedRestorationsForOrg - How many archive restorations the organization is allowed to have. - MaxAllowedRestorationsForOrg *int32 `json:"maxAllowedRestorationsForOrg,omitempty"` - - - // RemainingRestorationsAllowedForOrg - The remaining archive restorations the organization has. - RemainingRestorationsAllowedForOrg *int32 `json:"remainingRestorationsAllowedForOrg,omitempty"` - - - // SessionId - The session id represents an external resource id, such as email, call, chat, etc - SessionId *string `json:"sessionId,omitempty"` - - - // Users - The users participating in the conversation - Users *[]User `json:"users,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recording) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingapi.go b/build/platformclientv2/recordingapi.go deleted file mode 100644 index febd304d6..000000000 --- a/build/platformclientv2/recordingapi.go +++ /dev/null @@ -1,3262 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// RecordingApi provides functions for API endpoints -type RecordingApi struct { - Configuration *Configuration -} - -// NewRecordingApi creates an API instance using the default configuration -func NewRecordingApi() *RecordingApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating RecordingApi with base path: %s", strings.ToLower(config.BasePath))) - return &RecordingApi{ - Configuration: config, - } -} - -// NewRecordingApiWithConfig creates an API instance using the provided configuration -func NewRecordingApiWithConfig(config *Configuration) *RecordingApi { - config.Debugf("Creating RecordingApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &RecordingApi{ - Configuration: config, - } -} - -// DeleteConversationRecordingAnnotation invokes DELETE /api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId} -// -// Delete annotation -// -// -func (a RecordingApi) DeleteConversationRecordingAnnotation(conversationId string, recordingId string, annotationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - path = strings.Replace(path, "{annotationId}", fmt.Sprintf("%v", annotationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->DeleteConversationRecordingAnnotation") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->DeleteConversationRecordingAnnotation") - } - // verify the required parameter 'annotationId' is set - if &annotationId == nil { - // - return nil, errors.New("Missing required parameter 'annotationId' when calling RecordingApi->DeleteConversationRecordingAnnotation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteOrphanrecording invokes DELETE /api/v2/orphanrecordings/{orphanId} -// -// Deletes a single orphan recording -// -// -func (a RecordingApi) DeleteOrphanrecording(orphanId string) (*Orphanrecording, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orphanrecordings/{orphanId}" - path = strings.Replace(path, "{orphanId}", fmt.Sprintf("%v", orphanId), -1) - defaultReturn := new(Orphanrecording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'orphanId' is set - if &orphanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'orphanId' when calling RecordingApi->DeleteOrphanrecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Orphanrecording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteRecordingJob invokes DELETE /api/v2/recording/jobs/{jobId} -// -// Delete the recording bulk job -// -// -func (a RecordingApi) DeleteRecordingJob(jobId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return nil, errors.New("Missing required parameter 'jobId' when calling RecordingApi->DeleteRecordingJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRecordingMediaretentionpolicies invokes DELETE /api/v2/recording/mediaretentionpolicies -// -// Delete media retention policies -// -// Bulk delete of media retention policies, this will only delete the polices that match the ids specified in the query param. -func (a RecordingApi) DeleteRecordingMediaretentionpolicies(ids string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'ids' is set - if &ids == nil { - // - return nil, errors.New("Missing required parameter 'ids' when calling RecordingApi->DeleteRecordingMediaretentionpolicies") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["ids"] = a.Configuration.APIClient.ParameterToString(ids, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRecordingMediaretentionpolicy invokes DELETE /api/v2/recording/mediaretentionpolicies/{policyId} -// -// Delete a media retention policy -// -// -func (a RecordingApi) DeleteRecordingMediaretentionpolicy(policyId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies/{policyId}" - path = strings.Replace(path, "{policyId}", fmt.Sprintf("%v", policyId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'policyId' is set - if &policyId == nil { - // - return nil, errors.New("Missing required parameter 'policyId' when calling RecordingApi->DeleteRecordingMediaretentionpolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetConversationRecording invokes GET /api/v2/conversations/{conversationId}/recordings/{recordingId} -// -// Gets a specific recording. -// -// -func (a RecordingApi) GetConversationRecording(conversationId string, recordingId string, formatId string, download bool, fileName string) (*Recording, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Recording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->GetConversationRecording") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->GetConversationRecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["formatId"] = a.Configuration.APIClient.ParameterToString(formatId, collectionFormat) - - - - - collectionFormat = "" - queryParams["download"] = a.Configuration.APIClient.ParameterToString(download, collectionFormat) - - - - - collectionFormat = "" - queryParams["fileName"] = a.Configuration.APIClient.ParameterToString(fileName, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationRecordingAnnotation invokes GET /api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId} -// -// Get annotation -// -// -func (a RecordingApi) GetConversationRecordingAnnotation(conversationId string, recordingId string, annotationId string) (*Annotation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - path = strings.Replace(path, "{annotationId}", fmt.Sprintf("%v", annotationId), -1) - defaultReturn := new(Annotation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->GetConversationRecordingAnnotation") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->GetConversationRecordingAnnotation") - } - // verify the required parameter 'annotationId' is set - if &annotationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'annotationId' when calling RecordingApi->GetConversationRecordingAnnotation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Annotation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationRecordingAnnotations invokes GET /api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations -// -// Get annotations for recording -// -// -func (a RecordingApi) GetConversationRecordingAnnotations(conversationId string, recordingId string) ([]Annotation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := make([]Annotation, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->GetConversationRecordingAnnotations") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->GetConversationRecordingAnnotations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Annotation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationRecordingmetadata invokes GET /api/v2/conversations/{conversationId}/recordingmetadata -// -// Get recording metadata for a conversation. Does not return playable media. -// -// -func (a RecordingApi) GetConversationRecordingmetadata(conversationId string) ([]Recording, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordingmetadata" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := make([]Recording, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->GetConversationRecordingmetadata") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Recording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationRecordingmetadataRecordingId invokes GET /api/v2/conversations/{conversationId}/recordingmetadata/{recordingId} -// -// Get metadata for a specific recording. Does not return playable media. -// -// -func (a RecordingApi) GetConversationRecordingmetadataRecordingId(conversationId string, recordingId string) (*Recordingmetadata, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Recordingmetadata) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->GetConversationRecordingmetadataRecordingId") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->GetConversationRecordingmetadataRecordingId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recordingmetadata - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConversationRecordings invokes GET /api/v2/conversations/{conversationId}/recordings -// -// Get all of a Conversation's Recordings. -// -// -func (a RecordingApi) GetConversationRecordings(conversationId string, maxWaitMs int32, formatId string) ([]Recording, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := make([]Recording, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->GetConversationRecordings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["maxWaitMs"] = a.Configuration.APIClient.ParameterToString(maxWaitMs, collectionFormat) - - - - - collectionFormat = "" - queryParams["formatId"] = a.Configuration.APIClient.ParameterToString(formatId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Recording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrphanrecording invokes GET /api/v2/orphanrecordings/{orphanId} -// -// Gets a single orphan recording -// -// -func (a RecordingApi) GetOrphanrecording(orphanId string) (*Orphanrecording, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orphanrecordings/{orphanId}" - path = strings.Replace(path, "{orphanId}", fmt.Sprintf("%v", orphanId), -1) - defaultReturn := new(Orphanrecording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'orphanId' is set - if &orphanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'orphanId' when calling RecordingApi->GetOrphanrecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Orphanrecording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrphanrecordingMedia invokes GET /api/v2/orphanrecordings/{orphanId}/media -// -// Gets the media of a single orphan recording -// -// A 202 response means the orphaned media is currently transcoding and will be available shortly.A 200 response denotes the transcoded orphan media is available now and is contained in the response body. -func (a RecordingApi) GetOrphanrecordingMedia(orphanId string, formatId string, download bool, fileName string) (*Recording, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orphanrecordings/{orphanId}/media" - path = strings.Replace(path, "{orphanId}", fmt.Sprintf("%v", orphanId), -1) - defaultReturn := new(Recording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'orphanId' is set - if &orphanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'orphanId' when calling RecordingApi->GetOrphanrecordingMedia") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["formatId"] = a.Configuration.APIClient.ParameterToString(formatId, collectionFormat) - - - - - collectionFormat = "" - queryParams["download"] = a.Configuration.APIClient.ParameterToString(download, collectionFormat) - - - - - collectionFormat = "" - queryParams["fileName"] = a.Configuration.APIClient.ParameterToString(fileName, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetOrphanrecordings invokes GET /api/v2/orphanrecordings -// -// Gets all orphan recordings -// -// -func (a RecordingApi) GetOrphanrecordings(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, hasConversation bool, media string) (*Orphanrecordinglisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orphanrecordings" - defaultReturn := new(Orphanrecordinglisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["hasConversation"] = a.Configuration.APIClient.ParameterToString(hasConversation, collectionFormat) - - - - - collectionFormat = "" - queryParams["media"] = a.Configuration.APIClient.ParameterToString(media, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Orphanrecordinglisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingBatchrequest invokes GET /api/v2/recording/batchrequests/{jobId} -// -// Get the status and results for a batch request job, only the user that submitted the job may retrieve results -// -// -func (a RecordingApi) GetRecordingBatchrequest(jobId string) (*Batchdownloadjobstatusresult, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/batchrequests/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Batchdownloadjobstatusresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling RecordingApi->GetRecordingBatchrequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Batchdownloadjobstatusresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingJob invokes GET /api/v2/recording/jobs/{jobId} -// -// Get the status of the job associated with the job id. -// -// -func (a RecordingApi) GetRecordingJob(jobId string) (*Recordingjob, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Recordingjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling RecordingApi->GetRecordingJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recordingjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingJobs invokes GET /api/v2/recording/jobs -// -// Get the status of all jobs within the user's organization -// -// -func (a RecordingApi) GetRecordingJobs(pageSize int32, pageNumber int32, sortBy string, state string, showOnlyMyJobs bool, jobType string) (*Recordingjobentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/jobs" - defaultReturn := new(Recordingjobentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["state"] = a.Configuration.APIClient.ParameterToString(state, collectionFormat) - - - - - collectionFormat = "" - queryParams["showOnlyMyJobs"] = a.Configuration.APIClient.ParameterToString(showOnlyMyJobs, collectionFormat) - - - - - collectionFormat = "" - queryParams["jobType"] = a.Configuration.APIClient.ParameterToString(jobType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recordingjobentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingLocalkeysSetting invokes GET /api/v2/recording/localkeys/settings/{settingsId} -// -// Get the local encryption settings -// -// -func (a RecordingApi) GetRecordingLocalkeysSetting(settingsId string) (*Localencryptionconfiguration, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/localkeys/settings/{settingsId}" - path = strings.Replace(path, "{settingsId}", fmt.Sprintf("%v", settingsId), -1) - defaultReturn := new(Localencryptionconfiguration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'settingsId' is set - if &settingsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'settingsId' when calling RecordingApi->GetRecordingLocalkeysSetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Localencryptionconfiguration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingLocalkeysSettings invokes GET /api/v2/recording/localkeys/settings -// -// gets a list local key settings data -// -// -func (a RecordingApi) GetRecordingLocalkeysSettings() (*Localencryptionconfigurationlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/localkeys/settings" - defaultReturn := new(Localencryptionconfigurationlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Localencryptionconfigurationlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingMediaretentionpolicies invokes GET /api/v2/recording/mediaretentionpolicies -// -// Gets media retention policy list with query options to filter on name and enabled. -// -// for a less verbose response, add summary=true to this endpoint -func (a RecordingApi) GetRecordingMediaretentionpolicies(pageSize int32, pageNumber int32, sortBy string, expand []string, nextPage string, previousPage string, name string, enabled bool, summary bool, hasErrors bool) (*Policyentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies" - defaultReturn := new(Policyentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["nextPage"] = a.Configuration.APIClient.ParameterToString(nextPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["previousPage"] = a.Configuration.APIClient.ParameterToString(previousPage, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["enabled"] = a.Configuration.APIClient.ParameterToString(enabled, collectionFormat) - - - - - collectionFormat = "" - queryParams["summary"] = a.Configuration.APIClient.ParameterToString(summary, collectionFormat) - - - - - collectionFormat = "" - queryParams["hasErrors"] = a.Configuration.APIClient.ParameterToString(hasErrors, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Policyentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingMediaretentionpolicy invokes GET /api/v2/recording/mediaretentionpolicies/{policyId} -// -// Get a media retention policy -// -// -func (a RecordingApi) GetRecordingMediaretentionpolicy(policyId string) (*Policy, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies/{policyId}" - path = strings.Replace(path, "{policyId}", fmt.Sprintf("%v", policyId), -1) - defaultReturn := new(Policy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'policyId' is set - if &policyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'policyId' when calling RecordingApi->GetRecordingMediaretentionpolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Policy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingRecordingkeys invokes GET /api/v2/recording/recordingkeys -// -// Get encryption key list -// -// -func (a RecordingApi) GetRecordingRecordingkeys(pageSize int32, pageNumber int32) (*Encryptionkeyentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/recordingkeys" - defaultReturn := new(Encryptionkeyentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Encryptionkeyentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingRecordingkeysRotationschedule invokes GET /api/v2/recording/recordingkeys/rotationschedule -// -// Get key rotation schedule -// -// -func (a RecordingApi) GetRecordingRecordingkeysRotationschedule() (*Keyrotationschedule, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/recordingkeys/rotationschedule" - defaultReturn := new(Keyrotationschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Keyrotationschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingSettings invokes GET /api/v2/recording/settings -// -// Get the Recording Settings for the Organization -// -// -func (a RecordingApi) GetRecordingSettings(createDefault bool) (*Recordingsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/settings" - defaultReturn := new(Recordingsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["createDefault"] = a.Configuration.APIClient.ParameterToString(createDefault, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recordingsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRecordingsScreensessions invokes GET /api/v2/recordings/screensessions -// -// Retrieves a paged listing of screen recording sessions -// -// -func (a RecordingApi) GetRecordingsScreensessions(pageSize int32, pageNumber int32) (*Screenrecordingsessionlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recordings/screensessions" - defaultReturn := new(Screenrecordingsessionlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Screenrecordingsessionlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchRecordingMediaretentionpolicy invokes PATCH /api/v2/recording/mediaretentionpolicies/{policyId} -// -// Patch a media retention policy -// -// -func (a RecordingApi) PatchRecordingMediaretentionpolicy(policyId string, body Policy) (*Policy, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies/{policyId}" - path = strings.Replace(path, "{policyId}", fmt.Sprintf("%v", policyId), -1) - defaultReturn := new(Policy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'policyId' is set - if &policyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'policyId' when calling RecordingApi->PatchRecordingMediaretentionpolicy") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PatchRecordingMediaretentionpolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Policy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchRecordingsScreensession invokes PATCH /api/v2/recordings/screensessions/{recordingSessionId} -// -// Update a screen recording session -// -// -func (a RecordingApi) PatchRecordingsScreensession(recordingSessionId string, body Screenrecordingsessionrequest) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recordings/screensessions/{recordingSessionId}" - path = strings.Replace(path, "{recordingSessionId}", fmt.Sprintf("%v", recordingSessionId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recordingSessionId' is set - if &recordingSessionId == nil { - // - return nil, errors.New("Missing required parameter 'recordingSessionId' when calling RecordingApi->PatchRecordingsScreensession") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostConversationRecordingAnnotations invokes POST /api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations -// -// Create annotation -// -// -func (a RecordingApi) PostConversationRecordingAnnotations(conversationId string, recordingId string, body Annotation) (*Annotation, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Annotation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->PostConversationRecordingAnnotations") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->PostConversationRecordingAnnotations") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PostConversationRecordingAnnotations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Annotation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRecordingBatchrequests invokes POST /api/v2/recording/batchrequests -// -// Submit a batch download request for recordings. Recordings in response will be in their original format/codec - configured in the Trunk configuration. -// -// -func (a RecordingApi) PostRecordingBatchrequests(body Batchdownloadjobsubmission) (*Batchdownloadjobsubmissionresult, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/batchrequests" - defaultReturn := new(Batchdownloadjobsubmissionresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PostRecordingBatchrequests") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Batchdownloadjobsubmissionresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRecordingJobs invokes POST /api/v2/recording/jobs -// -// Create a recording bulk job -// -// -func (a RecordingApi) PostRecordingJobs(body Recordingjobsquery) (*Recordingjob, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/jobs" - defaultReturn := new(Recordingjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PostRecordingJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Recordingjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRecordingLocalkeys invokes POST /api/v2/recording/localkeys -// -// create a local recording key -// -// -func (a RecordingApi) PostRecordingLocalkeys(body Localencryptionkeyrequest) (*Encryptionkey, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/localkeys" - defaultReturn := new(Encryptionkey) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PostRecordingLocalkeys") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Encryptionkey - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRecordingLocalkeysSettings invokes POST /api/v2/recording/localkeys/settings -// -// create settings for local key creation -// -// -func (a RecordingApi) PostRecordingLocalkeysSettings(body Localencryptionconfiguration) (*Localencryptionconfiguration, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/localkeys/settings" - defaultReturn := new(Localencryptionconfiguration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PostRecordingLocalkeysSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Localencryptionconfiguration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRecordingMediaretentionpolicies invokes POST /api/v2/recording/mediaretentionpolicies -// -// Create media retention policy -// -// -func (a RecordingApi) PostRecordingMediaretentionpolicies(body Policycreate) (*Policy, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies" - defaultReturn := new(Policy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PostRecordingMediaretentionpolicies") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Policy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRecordingRecordingkeys invokes POST /api/v2/recording/recordingkeys -// -// Create encryption key -// -// -func (a RecordingApi) PostRecordingRecordingkeys() (*Encryptionkey, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/recordingkeys" - defaultReturn := new(Encryptionkey) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Encryptionkey - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutConversationRecording invokes PUT /api/v2/conversations/{conversationId}/recordings/{recordingId} -// -// Updates the retention records on a recording. -// -// Currently supports updating and removing both archive and delete dates for eligible recordings. A request to change the archival date of an archived recording will result in a restoration of the recording until the new date set. The recording:recording:view permission is required for the recording, as well as either the recording:recording:editRetention or recording:screenRecording:editRetention permissions depending on the type of recording. -func (a RecordingApi) PutConversationRecording(conversationId string, recordingId string, body Recording) (*Recording, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Recording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->PutConversationRecording") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->PutConversationRecording") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutConversationRecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Recording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutConversationRecordingAnnotation invokes PUT /api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId} -// -// Update annotation -// -// -func (a RecordingApi) PutConversationRecordingAnnotation(conversationId string, recordingId string, annotationId string, body Annotation) (*Annotation, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - path = strings.Replace(path, "{annotationId}", fmt.Sprintf("%v", annotationId), -1) - defaultReturn := new(Annotation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling RecordingApi->PutConversationRecordingAnnotation") - } - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling RecordingApi->PutConversationRecordingAnnotation") - } - // verify the required parameter 'annotationId' is set - if &annotationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'annotationId' when calling RecordingApi->PutConversationRecordingAnnotation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutConversationRecordingAnnotation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Annotation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutOrphanrecording invokes PUT /api/v2/orphanrecordings/{orphanId} -// -// Updates an orphan recording to a regular recording with retention values -// -// If this operation is successful the orphan will no longer exist. It will be replaced by the resulting recording in the response. This replacement recording is accessible by the normal Recording api. -func (a RecordingApi) PutOrphanrecording(orphanId string, body Orphanupdaterequest) (*Recording, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/orphanrecordings/{orphanId}" - path = strings.Replace(path, "{orphanId}", fmt.Sprintf("%v", orphanId), -1) - defaultReturn := new(Recording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'orphanId' is set - if &orphanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'orphanId' when calling RecordingApi->PutOrphanrecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Recording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRecordingJob invokes PUT /api/v2/recording/jobs/{jobId} -// -// Execute the recording bulk job -// -// -func (a RecordingApi) PutRecordingJob(jobId string, body Executerecordingjobsquery) (*Recordingjob, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Recordingjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling RecordingApi->PutRecordingJob") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutRecordingJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Recordingjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRecordingLocalkeysSetting invokes PUT /api/v2/recording/localkeys/settings/{settingsId} -// -// Update the local encryption settings -// -// -func (a RecordingApi) PutRecordingLocalkeysSetting(settingsId string, body Localencryptionconfiguration) (*Localencryptionconfiguration, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/localkeys/settings/{settingsId}" - path = strings.Replace(path, "{settingsId}", fmt.Sprintf("%v", settingsId), -1) - defaultReturn := new(Localencryptionconfiguration) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'settingsId' is set - if &settingsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'settingsId' when calling RecordingApi->PutRecordingLocalkeysSetting") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutRecordingLocalkeysSetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Localencryptionconfiguration - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRecordingMediaretentionpolicy invokes PUT /api/v2/recording/mediaretentionpolicies/{policyId} -// -// Update a media retention policy -// -// -func (a RecordingApi) PutRecordingMediaretentionpolicy(policyId string, body Policy) (*Policy, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/mediaretentionpolicies/{policyId}" - path = strings.Replace(path, "{policyId}", fmt.Sprintf("%v", policyId), -1) - defaultReturn := new(Policy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'policyId' is set - if &policyId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'policyId' when calling RecordingApi->PutRecordingMediaretentionpolicy") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutRecordingMediaretentionpolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Policy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRecordingRecordingkeysRotationschedule invokes PUT /api/v2/recording/recordingkeys/rotationschedule -// -// Update key rotation schedule -// -// -func (a RecordingApi) PutRecordingRecordingkeysRotationschedule(body Keyrotationschedule) (*Keyrotationschedule, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/recordingkeys/rotationschedule" - defaultReturn := new(Keyrotationschedule) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutRecordingRecordingkeysRotationschedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Keyrotationschedule - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRecordingSettings invokes PUT /api/v2/recording/settings -// -// Update the Recording Settings for the Organization -// -// -func (a RecordingApi) PutRecordingSettings(body Recordingsettings) (*Recordingsettings, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/recording/settings" - defaultReturn := new(Recordingsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RecordingApi->PutRecordingSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Recordingsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/recordingemailmessage.go b/build/platformclientv2/recordingemailmessage.go deleted file mode 100644 index 938f9a627..000000000 --- a/build/platformclientv2/recordingemailmessage.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recordingemailmessage -type Recordingemailmessage struct { - // HtmlBody - HtmlBody *string `json:"htmlBody,omitempty"` - - - // TextBody - TextBody *string `json:"textBody,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // To - To *[]Emailaddress `json:"to,omitempty"` - - - // Cc - Cc *[]Emailaddress `json:"cc,omitempty"` - - - // Bcc - Bcc *[]Emailaddress `json:"bcc,omitempty"` - - - // From - From *Emailaddress `json:"from,omitempty"` - - - // Subject - Subject *string `json:"subject,omitempty"` - - - // Attachments - Attachments *[]Emailattachment `json:"attachments,omitempty"` - - - // Time - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Time *time.Time `json:"time,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingemailmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingjob.go b/build/platformclientv2/recordingjob.go deleted file mode 100644 index fc2b20e32..000000000 --- a/build/platformclientv2/recordingjob.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recordingjob -type Recordingjob struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // State - The current state of the job. - State *string `json:"state,omitempty"` - - - // RecordingJobsQuery - Original query of the job. - RecordingJobsQuery *Recordingjobsquery `json:"recordingJobsQuery,omitempty"` - - - // DateCreated - Date when the job was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // TotalConversations - Total number of conversations affected. - TotalConversations *int32 `json:"totalConversations,omitempty"` - - - // TotalRecordings - Total number of recordings affected. - TotalRecordings *int32 `json:"totalRecordings,omitempty"` - - - // TotalProcessedRecordings - Total number of recordings have been processed. - TotalProcessedRecordings *int32 `json:"totalProcessedRecordings,omitempty"` - - - // PercentProgress - Progress in percentage based on the number of recordings - PercentProgress *int32 `json:"percentProgress,omitempty"` - - - // ErrorMessage - Error occurred during the job execution - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // User - Details of the user created the job - User *Addressableentityref `json:"user,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingjob) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingjobentitylisting.go b/build/platformclientv2/recordingjobentitylisting.go deleted file mode 100644 index 91a0588be..000000000 --- a/build/platformclientv2/recordingjobentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Recordingjobentitylisting -type Recordingjobentitylisting struct { - // Entities - Entities *[]Recordingjob `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingjobentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingjobsquery.go b/build/platformclientv2/recordingjobsquery.go deleted file mode 100644 index f1d1ab1f6..000000000 --- a/build/platformclientv2/recordingjobsquery.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recordingjobsquery -type Recordingjobsquery struct { - // Action - Operation to perform bulk task - Action *string `json:"action,omitempty"` - - - // ActionDate - The date when the action will be performed. If the operation will cause the delete date of a recording to be older than the export date, the export date will be adjusted to the delete date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ActionDate *time.Time `json:"actionDate,omitempty"` - - - // IntegrationId - IntegrationId to Access AWS S3 bucket for bulk recording exports. This field is required and used only for EXPORT action. - IntegrationId *string `json:"integrationId,omitempty"` - - - // IncludeScreenRecordings - Include Screen recordings for export action, default value = true - IncludeScreenRecordings *bool `json:"includeScreenRecordings,omitempty"` - - - // ConversationQuery - Conversation Query. Note: After the recording is created, it might take up to 48 hours for the recording to be included in the submitted job query. - ConversationQuery *Asyncconversationquery `json:"conversationQuery,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingjobsquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingmessagingmessage.go b/build/platformclientv2/recordingmessagingmessage.go deleted file mode 100644 index 30e965756..000000000 --- a/build/platformclientv2/recordingmessagingmessage.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recordingmessagingmessage -type Recordingmessagingmessage struct { - // From - From *string `json:"from,omitempty"` - - - // FromUser - FromUser *User `json:"fromUser,omitempty"` - - - // FromExternalContact - FromExternalContact *Externalcontact `json:"fromExternalContact,omitempty"` - - - // To - To *string `json:"to,omitempty"` - - - // Timestamp - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // MessageText - MessageText *string `json:"messageText,omitempty"` - - - // MessageMediaAttachments - MessageMediaAttachments *[]Messagemediaattachment `json:"messageMediaAttachments,omitempty"` - - - // MessageStickerAttachments - MessageStickerAttachments *[]Messagestickerattachment `json:"messageStickerAttachments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingmessagingmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingmetadata.go b/build/platformclientv2/recordingmetadata.go deleted file mode 100644 index 94d965605..000000000 --- a/build/platformclientv2/recordingmetadata.go +++ /dev/null @@ -1,90 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Recordingmetadata -type Recordingmetadata struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ConversationId - ConversationId *string `json:"conversationId,omitempty"` - - - // Path - Path *string `json:"path,omitempty"` - - - // StartTime - The start time of the recording for screen recordings. Null for other types. - StartTime *string `json:"startTime,omitempty"` - - - // EndTime - EndTime *string `json:"endTime,omitempty"` - - - // Media - The type of media that the recording is. At the moment that could be audio, chat, email, or message. - Media *string `json:"media,omitempty"` - - - // Annotations - Annotations that belong to the recording. Populated when recording filestate is AVAILABLE. - Annotations *[]Annotation `json:"annotations,omitempty"` - - - // FileState - Represents the current file state for a recording. Examples: Uploading, Archived, etc - FileState *string `json:"fileState,omitempty"` - - - // RestoreExpirationTime - The amount of time a restored recording will remain restored before being archived again. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RestoreExpirationTime *time.Time `json:"restoreExpirationTime,omitempty"` - - - // ArchiveDate - The date the recording will be archived. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ArchiveDate *time.Time `json:"archiveDate,omitempty"` - - - // ArchiveMedium - The type of archive medium used. Example: CloudArchive - ArchiveMedium *string `json:"archiveMedium,omitempty"` - - - // DeleteDate - The date the recording will be deleted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DeleteDate *time.Time `json:"deleteDate,omitempty"` - - - // ExportDate - The date the recording will be exported. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExportDate *time.Time `json:"exportDate,omitempty"` - - - // ExportedDate - The date the recording was exported. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ExportedDate *time.Time `json:"exportedDate,omitempty"` - - - // MaxAllowedRestorationsForOrg - How many archive restorations the organization is allowed to have. - MaxAllowedRestorationsForOrg *int32 `json:"maxAllowedRestorationsForOrg,omitempty"` - - - // RemainingRestorationsAllowedForOrg - The remaining archive restorations the organization has. - RemainingRestorationsAllowedForOrg *int32 `json:"remainingRestorationsAllowedForOrg,omitempty"` - - - // SessionId - The session id represents an external resource id, such as email, call, chat, etc - SessionId *string `json:"sessionId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingmetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/recordingsettings.go b/build/platformclientv2/recordingsettings.go deleted file mode 100644 index 9f81507c1..000000000 --- a/build/platformclientv2/recordingsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Recordingsettings -type Recordingsettings struct { - // MaxSimultaneousStreams - MaxSimultaneousStreams *int32 `json:"maxSimultaneousStreams,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Recordingsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/regiontimezone.go b/build/platformclientv2/regiontimezone.go deleted file mode 100644 index 693d80eac..000000000 --- a/build/platformclientv2/regiontimezone.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Regiontimezone -type Regiontimezone struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Offset - Offset *int64 `json:"offset,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Regiontimezone) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/relationship.go b/build/platformclientv2/relationship.go deleted file mode 100644 index 324506b0c..000000000 --- a/build/platformclientv2/relationship.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Relationship -type Relationship struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - The user associated with the external organization - User *User `json:"user,omitempty"` - - - // ExternalOrganization - The external organization this relationship is attached to - ExternalOrganization *Externalorganization `json:"externalOrganization,omitempty"` - - - // Relationship - The relationship or role of the user to this external organization.Examples: Account Manager, Sales Engineer, Implementation Consultant - Relationship *string `json:"relationship,omitempty"` - - - // ExternalDataSources - Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param. - ExternalDataSources *[]Externaldatasource `json:"externalDataSources,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Relationship) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/relationshiplisting.go b/build/platformclientv2/relationshiplisting.go deleted file mode 100644 index 7b8682d8b..000000000 --- a/build/platformclientv2/relationshiplisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Relationshiplisting -type Relationshiplisting struct { - // Entities - Entities *[]Relationship `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Relationshiplisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/replacementterm.go b/build/platformclientv2/replacementterm.go deleted file mode 100644 index b9b32aa27..000000000 --- a/build/platformclientv2/replacementterm.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Replacementterm -type Replacementterm struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // ExistingValue - ExistingValue *string `json:"existingValue,omitempty"` - - - // UpdatedValue - UpdatedValue *string `json:"updatedValue,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Replacementterm) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/replacerequest.go b/build/platformclientv2/replacerequest.go deleted file mode 100644 index 28e11c96a..000000000 --- a/build/platformclientv2/replacerequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Replacerequest -type Replacerequest struct { - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // AuthToken - AuthToken *string `json:"authToken,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Replacerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/replaceresponse.go b/build/platformclientv2/replaceresponse.go deleted file mode 100644 index e60f96d99..000000000 --- a/build/platformclientv2/replaceresponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Replaceresponse -type Replaceresponse struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ChangeNumber - ChangeNumber *int32 `json:"changeNumber,omitempty"` - - - // UploadStatus - UploadStatus *Domainentityref `json:"uploadStatus,omitempty"` - - - // UploadDestinationUri - UploadDestinationUri *string `json:"uploadDestinationUri,omitempty"` - - - // UploadMethod - UploadMethod *string `json:"uploadMethod,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Replaceresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportingdataexporttopicdataexportnotification.go b/build/platformclientv2/reportingdataexporttopicdataexportnotification.go deleted file mode 100644 index 662aa5d24..000000000 --- a/build/platformclientv2/reportingdataexporttopicdataexportnotification.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Reportingdataexporttopicdataexportnotification -type Reportingdataexporttopicdataexportnotification struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // ExportFormat - ExportFormat *string `json:"exportFormat,omitempty"` - - - // DownloadUrl - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // ViewType - ViewType *string `json:"viewType,omitempty"` - - - // ExportErrorMessagesType - ExportErrorMessagesType *string `json:"exportErrorMessagesType,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - - - // CreatedDateTime - CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` - - - // ModifiedDateTime - ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` - - - // PercentageComplete - PercentageComplete *float32 `json:"percentageComplete,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportingdataexporttopicdataexportnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportingexportjoblisting.go b/build/platformclientv2/reportingexportjoblisting.go deleted file mode 100644 index 7775273f9..000000000 --- a/build/platformclientv2/reportingexportjoblisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportingexportjoblisting -type Reportingexportjoblisting struct { - // Entities - Entities *[]Reportingexportjobresponse `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportingexportjoblisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportingexportjobrequest.go b/build/platformclientv2/reportingexportjobrequest.go deleted file mode 100644 index 5876f48ac..000000000 --- a/build/platformclientv2/reportingexportjobrequest.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportingexportjobrequest -type Reportingexportjobrequest struct { - // Name - The user supplied name of the export request - Name *string `json:"name,omitempty"` - - - // TimeZone - The requested timezone of the exported data. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // ExportFormat - The requested format of the exported data - ExportFormat *string `json:"exportFormat,omitempty"` - - - // Interval - The time period used to limit the the exported data. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // Period - The Period of the request in which to break down the intervals. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Period *string `json:"period,omitempty"` - - - // ViewType - The type of view export job to be created - ViewType *string `json:"viewType,omitempty"` - - - // Filter - Filters to apply to create the view - Filter *Viewfilter `json:"filter,omitempty"` - - - // Read - Indicates if the request has been marked as read - Read *bool `json:"read,omitempty"` - - - // Locale - The locale use for localization of the exported data, i.e. en-us, es-mx - Locale *string `json:"locale,omitempty"` - - - // HasFormatDurations - Indicates if durations are formatted in hh:mm:ss format instead of ms - HasFormatDurations *bool `json:"hasFormatDurations,omitempty"` - - - // HasSplitFilters - Indicates if filters will be split in aggregate detail exports - HasSplitFilters *bool `json:"hasSplitFilters,omitempty"` - - - // SelectedColumns - The list of ordered selected columns from the export view by the user - SelectedColumns *[]Selectedcolumns `json:"selectedColumns,omitempty"` - - - // HasCustomParticipantAttributes - Indicates if custom participant attributes will be exported - HasCustomParticipantAttributes *bool `json:"hasCustomParticipantAttributes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportingexportjobrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportingexportjobresponse.go b/build/platformclientv2/reportingexportjobresponse.go deleted file mode 100644 index f954ba633..000000000 --- a/build/platformclientv2/reportingexportjobresponse.go +++ /dev/null @@ -1,98 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Reportingexportjobresponse -type Reportingexportjobresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Status - The current status of the export request - Status *string `json:"status,omitempty"` - - - // TimeZone - The requested timezone of the exported data. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // ExportFormat - The requested format of the exported data - ExportFormat *string `json:"exportFormat,omitempty"` - - - // Interval - The time period used to limit the the exported data. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // DownloadUrl - The url to download the request if it's status is completed - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // ViewType - The type of view export job to be created - ViewType *string `json:"viewType,omitempty"` - - - // ExportErrorMessagesType - The error message in case the export request failed - ExportErrorMessagesType *string `json:"exportErrorMessagesType,omitempty"` - - - // Period - The Period of the request in which to break down the intervals. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Period *string `json:"period,omitempty"` - - - // Filter - Filters to apply to create the view - Filter *Viewfilter `json:"filter,omitempty"` - - - // Read - Indicates if the request has been marked as read - Read *bool `json:"read,omitempty"` - - - // CreatedDateTime - The created date/time of the request. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` - - - // ModifiedDateTime - The last modified date/time of the request. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` - - - // Locale - The locale use for localization of the exported data, i.e. en-us, es-mx - Locale *string `json:"locale,omitempty"` - - - // PercentageComplete - The percentage of the job that has completed processing - PercentageComplete *float64 `json:"percentageComplete,omitempty"` - - - // HasFormatDurations - Indicates if durations are formatted in hh:mm:ss format instead of ms - HasFormatDurations *bool `json:"hasFormatDurations,omitempty"` - - - // HasSplitFilters - Indicates if filters will be split in aggregate detail exports - HasSplitFilters *bool `json:"hasSplitFilters,omitempty"` - - - // SelectedColumns - The list of ordered selected columns from the export view by the user - SelectedColumns *[]Selectedcolumns `json:"selectedColumns,omitempty"` - - - // HasCustomParticipantAttributes - Indicates if custom participant attributes will be exported - HasCustomParticipantAttributes *bool `json:"hasCustomParticipantAttributes,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportingexportjobresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportingexportmetadatajoblisting.go b/build/platformclientv2/reportingexportmetadatajoblisting.go deleted file mode 100644 index ff9159944..000000000 --- a/build/platformclientv2/reportingexportmetadatajoblisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportingexportmetadatajoblisting -type Reportingexportmetadatajoblisting struct { - // Entities - Entities *[]Reportingexportmetadatajobresponse `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportingexportmetadatajoblisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportingexportmetadatajobresponse.go b/build/platformclientv2/reportingexportmetadatajobresponse.go deleted file mode 100644 index 8758aeea8..000000000 --- a/build/platformclientv2/reportingexportmetadatajobresponse.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportingexportmetadatajobresponse -type Reportingexportmetadatajobresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ViewType - The view type of the export metadata - ViewType *string `json:"viewType,omitempty"` - - - // DateLimitations - The date limitations of the export metadata - DateLimitations *string `json:"dateLimitations,omitempty"` - - - // RequiredFilters - The list of required filters for the export metadata - RequiredFilters *[]string `json:"requiredFilters,omitempty"` - - - // SupportedFilters - The list of supported filters for the export metadata - SupportedFilters *[]string `json:"supportedFilters,omitempty"` - - - // RequiredColumnIds - The list of required column ids for the export metadata - RequiredColumnIds *[]string `json:"requiredColumnIds,omitempty"` - - - // DependentColumnIds - The list of dependent column ids for the export metadata - DependentColumnIds *map[string][]string `json:"dependentColumnIds,omitempty"` - - - // AvailableColumnIds - The list of available column ids for the export metadata - AvailableColumnIds *[]string `json:"availableColumnIds,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportingexportmetadatajobresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportmetadata.go b/build/platformclientv2/reportmetadata.go deleted file mode 100644 index 25a8d08a3..000000000 --- a/build/platformclientv2/reportmetadata.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportmetadata -type Reportmetadata struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Keywords - Keywords *[]string `json:"keywords,omitempty"` - - - // AvailableLocales - AvailableLocales *[]string `json:"availableLocales,omitempty"` - - - // Parameters - Parameters *[]Parameter `json:"parameters,omitempty"` - - - // ExampleUrl - ExampleUrl *string `json:"exampleUrl,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportmetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportmetadataentitylisting.go b/build/platformclientv2/reportmetadataentitylisting.go deleted file mode 100644 index f0b433f40..000000000 --- a/build/platformclientv2/reportmetadataentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportmetadataentitylisting -type Reportmetadataentitylisting struct { - // Entities - Entities *[]Reportmetadata `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportmetadataentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportrunentry.go b/build/platformclientv2/reportrunentry.go deleted file mode 100644 index 62fdac5d3..000000000 --- a/build/platformclientv2/reportrunentry.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Reportrunentry -type Reportrunentry struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // ReportId - ReportId *string `json:"reportId,omitempty"` - - - // RunTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RunTime *time.Time `json:"runTime,omitempty"` - - - // RunStatus - RunStatus *string `json:"runStatus,omitempty"` - - - // ErrorMessage - ErrorMessage *string `json:"errorMessage,omitempty"` - - - // RunDurationMsec - RunDurationMsec *int64 `json:"runDurationMsec,omitempty"` - - - // ReportUrl - ReportUrl *string `json:"reportUrl,omitempty"` - - - // ReportFormat - ReportFormat *string `json:"reportFormat,omitempty"` - - - // ScheduleUri - ScheduleUri *string `json:"scheduleUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportrunentry) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportrunentryentitydomainlisting.go b/build/platformclientv2/reportrunentryentitydomainlisting.go deleted file mode 100644 index b6ce42ceb..000000000 --- a/build/platformclientv2/reportrunentryentitydomainlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportrunentryentitydomainlisting -type Reportrunentryentitydomainlisting struct { - // Entities - Entities *[]Reportrunentry `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportrunentryentitydomainlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportschedule.go b/build/platformclientv2/reportschedule.go deleted file mode 100644 index c7e9416dd..000000000 --- a/build/platformclientv2/reportschedule.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Reportschedule -type Reportschedule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // QuartzCronExpression - Quartz Cron Expression - QuartzCronExpression *string `json:"quartzCronExpression,omitempty"` - - - // NextFireTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - NextFireTime *time.Time `json:"nextFireTime,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // TimeZone - TimeZone *string `json:"timeZone,omitempty"` - - - // TimePeriod - TimePeriod *string `json:"timePeriod,omitempty"` - - - // Interval - Interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // ReportFormat - ReportFormat *string `json:"reportFormat,omitempty"` - - - // Locale - Locale *string `json:"locale,omitempty"` - - - // Enabled - Enabled *bool `json:"enabled,omitempty"` - - - // ReportId - Report ID - ReportId *string `json:"reportId,omitempty"` - - - // Parameters - Parameters *map[string]interface{} `json:"parameters,omitempty"` - - - // LastRun - LastRun *Reportrunentry `json:"lastRun,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reportscheduleentitylisting.go b/build/platformclientv2/reportscheduleentitylisting.go deleted file mode 100644 index 95135e790..000000000 --- a/build/platformclientv2/reportscheduleentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reportscheduleentitylisting -type Reportscheduleentitylisting struct { - // Entities - Entities *[]Reportschedule `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reportscheduleentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/requestconfig.go b/build/platformclientv2/requestconfig.go deleted file mode 100644 index 461dd8ada..000000000 --- a/build/platformclientv2/requestconfig.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Requestconfig - Defines response components of the Action Request. -type Requestconfig struct { - // RequestUrlTemplate - URL that may include placeholders for requests to 3rd party service - RequestUrlTemplate *string `json:"requestUrlTemplate,omitempty"` - - - // RequestTemplate - Velocity template to define request body sent to 3rd party service. - RequestTemplate *string `json:"requestTemplate,omitempty"` - - - // RequestTemplateUri - URI to retrieve requestTemplate - RequestTemplateUri *string `json:"requestTemplateUri,omitempty"` - - - // RequestType - HTTP method to use for request - RequestType *string `json:"requestType,omitempty"` - - - // Headers - Headers to include in request in (Header Name, Value) pairs. - Headers *map[string]string `json:"headers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Requestconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reschedulerequest.go b/build/platformclientv2/reschedulerequest.go deleted file mode 100644 index 8e439a8cf..000000000 --- a/build/platformclientv2/reschedulerequest.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Reschedulerequest -type Reschedulerequest struct { - // StartDate - The start date of the range to reschedule in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - The end date of the range to reschedule in ISO-8601 format - EndDate *time.Time `json:"endDate,omitempty"` - - - // AgentIds - The IDs of the agents to reschedule. Null or empty means all agents on the schedule - AgentIds *[]string `json:"agentIds,omitempty"` - - - // ActivityCodeIds - The IDs of the activity codes to reschedule. Null or empty means all activity codes will be considered - ActivityCodeIds *[]string `json:"activityCodeIds,omitempty"` - - - // DoNotChangeWeeklyPaidTime - Whether to prevent changes to weekly paid time - DoNotChangeWeeklyPaidTime *bool `json:"doNotChangeWeeklyPaidTime,omitempty"` - - - // DoNotChangeDailyPaidTime - Whether to prevent changes to daily paid time - DoNotChangeDailyPaidTime *bool `json:"doNotChangeDailyPaidTime,omitempty"` - - - // DoNotChangeShiftStartTimes - Whether to prevent changes to shift start times - DoNotChangeShiftStartTimes *bool `json:"doNotChangeShiftStartTimes,omitempty"` - - - // DoNotChangeManuallyEditedShifts - Whether to prevent changes to manually edited shifts - DoNotChangeManuallyEditedShifts *bool `json:"doNotChangeManuallyEditedShifts,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reschedulerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/rescheduleresult.go b/build/platformclientv2/rescheduleresult.go deleted file mode 100644 index 213c626d6..000000000 --- a/build/platformclientv2/rescheduleresult.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Rescheduleresult -type Rescheduleresult struct { - // DownloadUrl - The url from which to download the resulting WeekSchedule object for the rescheduling range - DownloadUrl *string `json:"downloadUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Rescheduleresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reschedulingoptionsresponse.go b/build/platformclientv2/reschedulingoptionsresponse.go deleted file mode 100644 index 98523c434..000000000 --- a/build/platformclientv2/reschedulingoptionsresponse.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Reschedulingoptionsresponse -type Reschedulingoptionsresponse struct { - // StartDate - The start date of the range to reschedule in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - The end date of the range to reschedule in ISO-8601 format - EndDate *time.Time `json:"endDate,omitempty"` - - - // AgentIds - The IDs of the agents to reschedule. Null or empty means all agents on the schedule - AgentIds *[]string `json:"agentIds,omitempty"` - - - // ActivityCodeIds - The IDs of the activity codes to reschedule. Null or empty means all activity codes will be considered - ActivityCodeIds *[]string `json:"activityCodeIds,omitempty"` - - - // DoNotChangeWeeklyPaidTime - Whether to prevent changes to weekly paid time - DoNotChangeWeeklyPaidTime *bool `json:"doNotChangeWeeklyPaidTime,omitempty"` - - - // DoNotChangeDailyPaidTime - Whether to prevent changes to daily paid time - DoNotChangeDailyPaidTime *bool `json:"doNotChangeDailyPaidTime,omitempty"` - - - // DoNotChangeShiftStartTimes - Whether to prevent changes to shift start times - DoNotChangeShiftStartTimes *bool `json:"doNotChangeShiftStartTimes,omitempty"` - - - // DoNotChangeManuallyEditedShifts - Whether to prevent changes to manually edited shifts - DoNotChangeManuallyEditedShifts *bool `json:"doNotChangeManuallyEditedShifts,omitempty"` - - - // ExistingScheduleId - The schedule ID of the schedule to which the results will be applied - ExistingScheduleId *string `json:"existingScheduleId,omitempty"` - - - // ExistingScheduleVersion - The version of the schedule at the time the rescheduling was initiated - ExistingScheduleVersion *int32 `json:"existingScheduleVersion,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reschedulingoptionsresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/resourceconditionnode.go b/build/platformclientv2/resourceconditionnode.go deleted file mode 100644 index 079f8151f..000000000 --- a/build/platformclientv2/resourceconditionnode.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Resourceconditionnode -type Resourceconditionnode struct { - // VariableName - VariableName *string `json:"variableName,omitempty"` - - - // Conjunction - Conjunction *string `json:"conjunction,omitempty"` - - - // Operator - Operator *string `json:"operator,omitempty"` - - - // Operands - Operands *[]Resourceconditionvalue `json:"operands,omitempty"` - - - // Terms - Terms *[]Resourceconditionnode `json:"terms,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Resourceconditionnode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/resourceconditionvalue.go b/build/platformclientv2/resourceconditionvalue.go deleted file mode 100644 index a9e3b862f..000000000 --- a/build/platformclientv2/resourceconditionvalue.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Resourceconditionvalue -type Resourceconditionvalue struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Resourceconditionvalue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/resourcepermissionpolicy.go b/build/platformclientv2/resourcepermissionpolicy.go deleted file mode 100644 index 5be3ebc0f..000000000 --- a/build/platformclientv2/resourcepermissionpolicy.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Resourcepermissionpolicy -type Resourcepermissionpolicy struct { - // Id - Id *string `json:"id,omitempty"` - - - // Domain - Domain *string `json:"domain,omitempty"` - - - // EntityName - EntityName *string `json:"entityName,omitempty"` - - - // PolicyName - PolicyName *string `json:"policyName,omitempty"` - - - // PolicyDescription - PolicyDescription *string `json:"policyDescription,omitempty"` - - - // ActionSetKey - ActionSetKey *string `json:"actionSetKey,omitempty"` - - - // AllowConditions - AllowConditions *bool `json:"allowConditions,omitempty"` - - - // ResourceConditionNode - ResourceConditionNode *Resourceconditionnode `json:"resourceConditionNode,omitempty"` - - - // NamedResources - NamedResources *[]string `json:"namedResources,omitempty"` - - - // ResourceCondition - ResourceCondition *string `json:"resourceCondition,omitempty"` - - - // ActionSet - ActionSet *[]string `json:"actionSet,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Resourcepermissionpolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/response.go b/build/platformclientv2/response.go deleted file mode 100644 index 4c3f7af5b..000000000 --- a/build/platformclientv2/response.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Response - Contains information about a response. -type Response struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // Libraries - One or more libraries response is associated with. - Libraries *[]Domainentityref `json:"libraries,omitempty"` - - - // Texts - One or more texts associated with the response. - Texts *[]Responsetext `json:"texts,omitempty"` - - - // CreatedBy - User that created the response - CreatedBy *User `json:"createdBy,omitempty"` - - - // DateCreated - The date and time the response was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // InteractionType - The interaction type for this response. - InteractionType *string `json:"interactionType,omitempty"` - - - // Substitutions - Details about any text substitutions used in the texts for this response. - Substitutions *[]Responsesubstitution `json:"substitutions,omitempty"` - - - // SubstitutionsSchema - Metadata about the text substitutions in json schema format. - SubstitutionsSchema *Jsonschemadocument `json:"substitutionsSchema,omitempty"` - - - // ResponseType - The response type represented by the response - ResponseType *string `json:"responseType,omitempty"` - - - // MessagingTemplate - The messaging template definition. This is required when adding to a library with responseType set to MessagingTemplate. - MessagingTemplate *Messagingtemplate `json:"messagingTemplate,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Response) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responseconfig.go b/build/platformclientv2/responseconfig.go deleted file mode 100644 index 042164c54..000000000 --- a/build/platformclientv2/responseconfig.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responseconfig - Defines response components of the Action Request. -type Responseconfig struct { - // TranslationMap - Map 'attribute name' and 'JSON path' pairs used to extract data from REST response. - TranslationMap *map[string]string `json:"translationMap,omitempty"` - - - // TranslationMapDefaults - Map 'attribute name' and 'default value' pairs used as fallback values if JSON path extraction fails for specified key. - TranslationMapDefaults *map[string]string `json:"translationMapDefaults,omitempty"` - - - // SuccessTemplate - Velocity template to build response to return from Action. - SuccessTemplate *string `json:"successTemplate,omitempty"` - - - // SuccessTemplateUri - URI to retrieve success template. - SuccessTemplateUri *string `json:"successTemplateUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responseconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responseentitylist.go b/build/platformclientv2/responseentitylist.go deleted file mode 100644 index 75ecab3b0..000000000 --- a/build/platformclientv2/responseentitylist.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responseentitylist - Query result list -type Responseentitylist struct { - // Entities - Entities *[]Response `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responseentitylist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responseentitylisting.go b/build/platformclientv2/responseentitylisting.go deleted file mode 100644 index b57faf54d..000000000 --- a/build/platformclientv2/responseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responseentitylisting -type Responseentitylisting struct { - // Entities - Entities *[]Response `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responsefilter.go b/build/platformclientv2/responsefilter.go deleted file mode 100644 index a6091cb5a..000000000 --- a/build/platformclientv2/responsefilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responsefilter - Used to filter response queries -type Responsefilter struct { - // Name - Field to filter on. Allowed values are 'name' and 'libraryId. - Name *string `json:"name,omitempty"` - - - // Operator - Filter operation: IN, EQUALS, NOTEQUALS. - Operator *string `json:"operator,omitempty"` - - - // Values - Values to filter on. - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responsefilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responsemanagementapi.go b/build/platformclientv2/responsemanagementapi.go deleted file mode 100644 index ff91fd1da..000000000 --- a/build/platformclientv2/responsemanagementapi.go +++ /dev/null @@ -1,864 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ResponseManagementApi provides functions for API endpoints -type ResponseManagementApi struct { - Configuration *Configuration -} - -// NewResponseManagementApi creates an API instance using the default configuration -func NewResponseManagementApi() *ResponseManagementApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ResponseManagementApi with base path: %s", strings.ToLower(config.BasePath))) - return &ResponseManagementApi{ - Configuration: config, - } -} - -// NewResponseManagementApiWithConfig creates an API instance using the provided configuration -func NewResponseManagementApiWithConfig(config *Configuration) *ResponseManagementApi { - config.Debugf("Creating ResponseManagementApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ResponseManagementApi{ - Configuration: config, - } -} - -// DeleteResponsemanagementLibrary invokes DELETE /api/v2/responsemanagement/libraries/{libraryId} -// -// Delete an existing response library. -// -// This will remove any responses associated with the library. -func (a ResponseManagementApi) DeleteResponsemanagementLibrary(libraryId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/libraries/{libraryId}" - path = strings.Replace(path, "{libraryId}", fmt.Sprintf("%v", libraryId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'libraryId' is set - if &libraryId == nil { - // - return nil, errors.New("Missing required parameter 'libraryId' when calling ResponseManagementApi->DeleteResponsemanagementLibrary") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteResponsemanagementResponse invokes DELETE /api/v2/responsemanagement/responses/{responseId} -// -// Delete an existing response. -// -// This will remove the response from any libraries associated with it. -func (a ResponseManagementApi) DeleteResponsemanagementResponse(responseId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/responses/{responseId}" - path = strings.Replace(path, "{responseId}", fmt.Sprintf("%v", responseId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'responseId' is set - if &responseId == nil { - // - return nil, errors.New("Missing required parameter 'responseId' when calling ResponseManagementApi->DeleteResponsemanagementResponse") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetResponsemanagementLibraries invokes GET /api/v2/responsemanagement/libraries -// -// Gets a list of existing response libraries. -// -// -func (a ResponseManagementApi) GetResponsemanagementLibraries(pageNumber int32, pageSize int32) (*Libraryentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/libraries" - defaultReturn := new(Libraryentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Libraryentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetResponsemanagementLibrary invokes GET /api/v2/responsemanagement/libraries/{libraryId} -// -// Get details about an existing response library. -// -// -func (a ResponseManagementApi) GetResponsemanagementLibrary(libraryId string) (*Library, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/libraries/{libraryId}" - path = strings.Replace(path, "{libraryId}", fmt.Sprintf("%v", libraryId), -1) - defaultReturn := new(Library) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'libraryId' is set - if &libraryId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'libraryId' when calling ResponseManagementApi->GetResponsemanagementLibrary") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Library - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetResponsemanagementResponse invokes GET /api/v2/responsemanagement/responses/{responseId} -// -// Get details about an existing response. -// -// -func (a ResponseManagementApi) GetResponsemanagementResponse(responseId string, expand string) (*Response, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/responses/{responseId}" - path = strings.Replace(path, "{responseId}", fmt.Sprintf("%v", responseId), -1) - defaultReturn := new(Response) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'responseId' is set - if &responseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'responseId' when calling ResponseManagementApi->GetResponsemanagementResponse") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Response - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetResponsemanagementResponses invokes GET /api/v2/responsemanagement/responses -// -// Gets a list of existing responses. -// -// -func (a ResponseManagementApi) GetResponsemanagementResponses(libraryId string, pageNumber int32, pageSize int32, expand string) (*Responseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/responses" - defaultReturn := new(Responseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'libraryId' is set - if &libraryId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'libraryId' when calling ResponseManagementApi->GetResponsemanagementResponses") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["libraryId"] = a.Configuration.APIClient.ParameterToString(libraryId, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Responseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostResponsemanagementLibraries invokes POST /api/v2/responsemanagement/libraries -// -// Create a response library. -// -// -func (a ResponseManagementApi) PostResponsemanagementLibraries(body Library) (*Library, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/libraries" - defaultReturn := new(Library) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ResponseManagementApi->PostResponsemanagementLibraries") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Library - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostResponsemanagementResponses invokes POST /api/v2/responsemanagement/responses -// -// Create a response. -// -// -func (a ResponseManagementApi) PostResponsemanagementResponses(body Response, expand string) (*Response, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/responses" - defaultReturn := new(Response) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ResponseManagementApi->PostResponsemanagementResponses") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Response - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostResponsemanagementResponsesQuery invokes POST /api/v2/responsemanagement/responses/query -// -// Query responses -// -// -func (a ResponseManagementApi) PostResponsemanagementResponsesQuery(body Responsequeryrequest) (*Responsequeryresults, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/responses/query" - defaultReturn := new(Responsequeryresults) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ResponseManagementApi->PostResponsemanagementResponsesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Responsequeryresults - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutResponsemanagementLibrary invokes PUT /api/v2/responsemanagement/libraries/{libraryId} -// -// Update an existing response library. -// -// Fields that can be updated: name. The most recent version is required for updates. -func (a ResponseManagementApi) PutResponsemanagementLibrary(libraryId string, body Library) (*Library, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/libraries/{libraryId}" - path = strings.Replace(path, "{libraryId}", fmt.Sprintf("%v", libraryId), -1) - defaultReturn := new(Library) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'libraryId' is set - if &libraryId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'libraryId' when calling ResponseManagementApi->PutResponsemanagementLibrary") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ResponseManagementApi->PutResponsemanagementLibrary") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Library - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutResponsemanagementResponse invokes PUT /api/v2/responsemanagement/responses/{responseId} -// -// Update an existing response. -// -// Fields that can be updated: name, libraries, and texts. The most recent version is required for updates. -func (a ResponseManagementApi) PutResponsemanagementResponse(responseId string, body Response, expand string) (*Response, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/responsemanagement/responses/{responseId}" - path = strings.Replace(path, "{responseId}", fmt.Sprintf("%v", responseId), -1) - defaultReturn := new(Response) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'responseId' is set - if &responseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'responseId' when calling ResponseManagementApi->PutResponsemanagementResponse") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ResponseManagementApi->PutResponsemanagementResponse") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Response - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/responsequeryrequest.go b/build/platformclientv2/responsequeryrequest.go deleted file mode 100644 index e5b480aeb..000000000 --- a/build/platformclientv2/responsequeryrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responsequeryrequest - Used to query for responses -type Responsequeryrequest struct { - // QueryPhrase - Query phrase to search response text and name. If not set will match all. - QueryPhrase *string `json:"queryPhrase,omitempty"` - - - // PageSize - The maximum number of hits to return. Default: 25, Maximum: 500. - PageSize *int32 `json:"pageSize,omitempty"` - - - // Filters - Filter the query results. - Filters *[]Responsefilter `json:"filters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responsequeryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responsequeryresults.go b/build/platformclientv2/responsequeryresults.go deleted file mode 100644 index e4a8753d5..000000000 --- a/build/platformclientv2/responsequeryresults.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responsequeryresults - Used to return response query results -type Responsequeryresults struct { - // Results - Contains the query results - Results *Responseentitylist `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responsequeryresults) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responseset.go b/build/platformclientv2/responseset.go deleted file mode 100644 index 336fa8892..000000000 --- a/build/platformclientv2/responseset.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Responseset -type Responseset struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the ResponseSet. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // Responses - Map of disposition identifiers to reactions. For example: {\"disposition.classification.callable.person\": {\"reactionType\": \"transfer\"}}. - Responses *map[string]Reaction `json:"responses,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responseset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responsesetentitylisting.go b/build/platformclientv2/responsesetentitylisting.go deleted file mode 100644 index f5709c117..000000000 --- a/build/platformclientv2/responsesetentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responsesetentitylisting -type Responsesetentitylisting struct { - // Entities - Entities *[]Responseset `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responsesetentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responsesubstitution.go b/build/platformclientv2/responsesubstitution.go deleted file mode 100644 index e5ba8431e..000000000 --- a/build/platformclientv2/responsesubstitution.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responsesubstitution - Contains information about the substitutions associated with a response. -type Responsesubstitution struct { - // Id - Response substitution identifier. - Id *string `json:"id,omitempty"` - - - // Description - Response substitution description. - Description *string `json:"description,omitempty"` - - - // DefaultValue - Response substitution default value. - DefaultValue *string `json:"defaultValue,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responsesubstitution) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/responsetext.go b/build/platformclientv2/responsetext.go deleted file mode 100644 index 64fd1801c..000000000 --- a/build/platformclientv2/responsetext.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Responsetext - Contains information about the text associated with a response. -type Responsetext struct { - // Content - Response text content. - Content *string `json:"content,omitempty"` - - - // ContentType - Response text content type. - ContentType *string `json:"contentType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Responsetext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/resterrordetail.go b/build/platformclientv2/resterrordetail.go deleted file mode 100644 index 8aac6578e..000000000 --- a/build/platformclientv2/resterrordetail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Resterrordetail -type Resterrordetail struct { - // VarError - name of the error - VarError *string `json:"error,omitempty"` - - - // Details - additional information regarding the error - Details *string `json:"details,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Resterrordetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/retentionduration.go b/build/platformclientv2/retentionduration.go deleted file mode 100644 index 871cad382..000000000 --- a/build/platformclientv2/retentionduration.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Retentionduration -type Retentionduration struct { - // ArchiveRetention - ArchiveRetention *Archiveretention `json:"archiveRetention,omitempty"` - - - // DeleteRetention - DeleteRetention *Deleteretention `json:"deleteRetention,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Retentionduration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/reversewhitepageslookupresult.go b/build/platformclientv2/reversewhitepageslookupresult.go deleted file mode 100644 index 2b7b09690..000000000 --- a/build/platformclientv2/reversewhitepageslookupresult.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Reversewhitepageslookupresult -type Reversewhitepageslookupresult struct { - // Contacts - Contacts *[]Externalcontact `json:"contacts,omitempty"` - - - // ExternalOrganizations - ExternalOrganizations *[]Externalorganization `json:"externalOrganizations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Reversewhitepageslookupresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ring.go b/build/platformclientv2/ring.go deleted file mode 100644 index 840149481..000000000 --- a/build/platformclientv2/ring.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ring -type Ring struct { - // ExpansionCriteria - ExpansionCriteria *[]Expansioncriterium `json:"expansionCriteria,omitempty"` - - - // Actions - Actions *Actions `json:"actions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ring) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/roledivision.go b/build/platformclientv2/roledivision.go deleted file mode 100644 index 7000408c4..000000000 --- a/build/platformclientv2/roledivision.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Roledivision -type Roledivision struct { - // RoleId - Role to be associated with the given division which forms a grant - RoleId *string `json:"roleId,omitempty"` - - - // DivisionId - Division associated with the given role which forms a grant - DivisionId *string `json:"divisionId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Roledivision) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/roledivisiongrants.go b/build/platformclientv2/roledivisiongrants.go deleted file mode 100644 index cd71e5d86..000000000 --- a/build/platformclientv2/roledivisiongrants.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Roledivisiongrants -type Roledivisiongrants struct { - // Grants - A list containing pairs of role and division IDs - Grants *[]Roledivisionpair `json:"grants,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Roledivisiongrants) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/roledivisionpair.go b/build/platformclientv2/roledivisionpair.go deleted file mode 100644 index b59159ed4..000000000 --- a/build/platformclientv2/roledivisionpair.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Roledivisionpair -type Roledivisionpair struct { - // RoleId - The ID of the role - RoleId *string `json:"roleId,omitempty"` - - - // DivisionId - The ID of the division - DivisionId *string `json:"divisionId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Roledivisionpair) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routegroup.go b/build/platformclientv2/routegroup.go deleted file mode 100644 index a54cdbbe6..000000000 --- a/build/platformclientv2/routegroup.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routegroup - Route group for calculated forecasts -type Routegroup struct { - // Attributes - The attributes that describe this route group - Attributes *Routegroupattributes `json:"attributes,omitempty"` - - - // OfferedPerInterval - Interactions offered per 15 minute interval - OfferedPerInterval *[]float64 `json:"offeredPerInterval,omitempty"` - - - // AverageTalkTimeSecondsPerInterval - Average talk time in seconds per 15 minute interval - AverageTalkTimeSecondsPerInterval *[]float64 `json:"averageTalkTimeSecondsPerInterval,omitempty"` - - - // AverageAfterCallWorkSecondsPerInterval - Average after call work in seconds per 15 minute interval - AverageAfterCallWorkSecondsPerInterval *[]float64 `json:"averageAfterCallWorkSecondsPerInterval,omitempty"` - - - // CompletedPerInterval - Interactions completed per 15 minute interval - CompletedPerInterval *[]float64 `json:"completedPerInterval,omitempty"` - - - // AbandonedPerInterval - Interactions abandoned per 15 minute interval - AbandonedPerInterval *[]float64 `json:"abandonedPerInterval,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routegroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routegroupattributes.go b/build/platformclientv2/routegroupattributes.go deleted file mode 100644 index 339455612..000000000 --- a/build/platformclientv2/routegroupattributes.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routegroupattributes - Attributes for the associated route group -type Routegroupattributes struct { - // Queue - The queue to which the associated route group applies - Queue *Queuereference `json:"queue,omitempty"` - - - // MediaType - The media type to which the associated route group applies - MediaType *string `json:"mediaType,omitempty"` - - - // Language - The language to which the associated route group applies - Language *Languagereference `json:"language,omitempty"` - - - // Skills - The skill set to which the associated route group applies - Skills *[]Routingskillreference `json:"skills,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routegroupattributes) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routegrouplist.go b/build/platformclientv2/routegrouplist.go deleted file mode 100644 index 696b28e68..000000000 --- a/build/platformclientv2/routegrouplist.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Routegrouplist -type Routegrouplist struct { - // StartDate - The reference start date for the route group arrays. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // RouteGroups - The route group data for this forecast - RouteGroups *[]Routegroup `json:"routeGroups,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routegrouplist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingapi.go b/build/platformclientv2/routingapi.go deleted file mode 100644 index 825a18657..000000000 --- a/build/platformclientv2/routingapi.go +++ /dev/null @@ -1,6211 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// RoutingApi provides functions for API endpoints -type RoutingApi struct { - Configuration *Configuration -} - -// NewRoutingApi creates an API instance using the default configuration -func NewRoutingApi() *RoutingApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating RoutingApi with base path: %s", strings.ToLower(config.BasePath))) - return &RoutingApi{ - Configuration: config, - } -} - -// NewRoutingApiWithConfig creates an API instance using the provided configuration -func NewRoutingApiWithConfig(config *Configuration) *RoutingApi { - config.Debugf("Creating RoutingApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &RoutingApi{ - Configuration: config, - } -} - -// DeleteRoutingEmailDomain invokes DELETE /api/v2/routing/email/domains/{domainId} -// -// Delete a domain -// -// -func (a RoutingApi) DeleteRoutingEmailDomain(domainId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainId}" - path = strings.Replace(path, "{domainId}", fmt.Sprintf("%v", domainId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainId' is set - if &domainId == nil { - // - return nil, errors.New("Missing required parameter 'domainId' when calling RoutingApi->DeleteRoutingEmailDomain") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingEmailDomainRoute invokes DELETE /api/v2/routing/email/domains/{domainName}/routes/{routeId} -// -// Delete a route -// -// -func (a RoutingApi) DeleteRoutingEmailDomainRoute(domainName string, routeId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainName}/routes/{routeId}" - path = strings.Replace(path, "{domainName}", fmt.Sprintf("%v", domainName), -1) - path = strings.Replace(path, "{routeId}", fmt.Sprintf("%v", routeId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainName' is set - if &domainName == nil { - // - return nil, errors.New("Missing required parameter 'domainName' when calling RoutingApi->DeleteRoutingEmailDomainRoute") - } - // verify the required parameter 'routeId' is set - if &routeId == nil { - // - return nil, errors.New("Missing required parameter 'routeId' when calling RoutingApi->DeleteRoutingEmailDomainRoute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingQueue invokes DELETE /api/v2/routing/queues/{queueId} -// -// Delete a queue -// -// -func (a RoutingApi) DeleteRoutingQueue(queueId string, forceDelete bool) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->DeleteRoutingQueue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceDelete"] = a.Configuration.APIClient.ParameterToString(forceDelete, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingQueueUser invokes DELETE /api/v2/routing/queues/{queueId}/users/{memberId} -// -// Delete queue member -// -// -func (a RoutingApi) DeleteRoutingQueueUser(queueId string, memberId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/users/{memberId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->DeleteRoutingQueueUser") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return nil, errors.New("Missing required parameter 'memberId' when calling RoutingApi->DeleteRoutingQueueUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingQueueWrapupcode invokes DELETE /api/v2/routing/queues/{queueId}/wrapupcodes/{codeId} -// -// Delete a wrap-up code from a queue -// -// -func (a RoutingApi) DeleteRoutingQueueWrapupcode(queueId string, codeId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - path = strings.Replace(path, "{codeId}", fmt.Sprintf("%v", codeId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->DeleteRoutingQueueWrapupcode") - } - // verify the required parameter 'codeId' is set - if &codeId == nil { - // - return nil, errors.New("Missing required parameter 'codeId' when calling RoutingApi->DeleteRoutingQueueWrapupcode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingSettings invokes DELETE /api/v2/routing/settings -// -// Delete an organization's routing settings -// -// -func (a RoutingApi) DeleteRoutingSettings() (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingSkill invokes DELETE /api/v2/routing/skills/{skillId} -// -// Delete Routing Skill -// -// -func (a RoutingApi) DeleteRoutingSkill(skillId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/skills/{skillId}" - path = strings.Replace(path, "{skillId}", fmt.Sprintf("%v", skillId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'skillId' is set - if &skillId == nil { - // - return nil, errors.New("Missing required parameter 'skillId' when calling RoutingApi->DeleteRoutingSkill") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingSmsPhonenumber invokes DELETE /api/v2/routing/sms/phonenumbers/{addressId} -// -// Delete a phone number provisioned for SMS. -// -// -func (a RoutingApi) DeleteRoutingSmsPhonenumber(addressId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/phonenumbers/{addressId}" - path = strings.Replace(path, "{addressId}", fmt.Sprintf("%v", addressId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'addressId' is set - if &addressId == nil { - // - return nil, errors.New("Missing required parameter 'addressId' when calling RoutingApi->DeleteRoutingSmsPhonenumber") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingUserUtilization invokes DELETE /api/v2/routing/users/{userId}/utilization -// -// Delete the user's max utilization settings and revert to the organization-wide default. -// -// -func (a RoutingApi) DeleteRoutingUserUtilization(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->DeleteRoutingUserUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingUtilization invokes DELETE /api/v2/routing/utilization -// -// Delete the organization-wide max utilization settings and revert to the system default. -// -// -func (a RoutingApi) DeleteRoutingUtilization() (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/utilization" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingWrapupcode invokes DELETE /api/v2/routing/wrapupcodes/{codeId} -// -// Delete wrap-up code -// -// -func (a RoutingApi) DeleteRoutingWrapupcode(codeId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/wrapupcodes/{codeId}" - path = strings.Replace(path, "{codeId}", fmt.Sprintf("%v", codeId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'codeId' is set - if &codeId == nil { - // - return nil, errors.New("Missing required parameter 'codeId' when calling RoutingApi->DeleteRoutingWrapupcode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserRoutinglanguage invokes DELETE /api/v2/users/{userId}/routinglanguages/{languageId} -// -// Remove routing language from user -// -// -func (a RoutingApi) DeleteUserRoutinglanguage(userId string, languageId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages/{languageId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->DeleteUserRoutinglanguage") - } - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return nil, errors.New("Missing required parameter 'languageId' when calling RoutingApi->DeleteUserRoutinglanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserRoutingskill invokes DELETE /api/v2/users/{userId}/routingskills/{skillId} -// -// Remove routing skill from user -// -// -func (a RoutingApi) DeleteUserRoutingskill(userId string, skillId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/{skillId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{skillId}", fmt.Sprintf("%v", skillId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->DeleteUserRoutingskill") - } - // verify the required parameter 'skillId' is set - if &skillId == nil { - // - return nil, errors.New("Missing required parameter 'skillId' when calling RoutingApi->DeleteUserRoutingskill") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetRoutingEmailDomain invokes GET /api/v2/routing/email/domains/{domainId} -// -// Get domain -// -// -func (a RoutingApi) GetRoutingEmailDomain(domainId string) (*Inbounddomain, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainId}" - path = strings.Replace(path, "{domainId}", fmt.Sprintf("%v", domainId), -1) - defaultReturn := new(Inbounddomain) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainId' is set - if &domainId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'domainId' when calling RoutingApi->GetRoutingEmailDomain") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Inbounddomain - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingEmailDomainRoute invokes GET /api/v2/routing/email/domains/{domainName}/routes/{routeId} -// -// Get a route -// -// -func (a RoutingApi) GetRoutingEmailDomainRoute(domainName string, routeId string) (*Inboundroute, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainName}/routes/{routeId}" - path = strings.Replace(path, "{domainName}", fmt.Sprintf("%v", domainName), -1) - path = strings.Replace(path, "{routeId}", fmt.Sprintf("%v", routeId), -1) - defaultReturn := new(Inboundroute) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainName' is set - if &domainName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'domainName' when calling RoutingApi->GetRoutingEmailDomainRoute") - } - // verify the required parameter 'routeId' is set - if &routeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'routeId' when calling RoutingApi->GetRoutingEmailDomainRoute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Inboundroute - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingEmailDomainRoutes invokes GET /api/v2/routing/email/domains/{domainName}/routes -// -// Get routes -// -// -func (a RoutingApi) GetRoutingEmailDomainRoutes(domainName string, pageSize int32, pageNumber int32, pattern string) (*Inboundrouteentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainName}/routes" - path = strings.Replace(path, "{domainName}", fmt.Sprintf("%v", domainName), -1) - defaultReturn := new(Inboundrouteentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainName' is set - if &domainName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'domainName' when calling RoutingApi->GetRoutingEmailDomainRoutes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pattern"] = a.Configuration.APIClient.ParameterToString(pattern, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Inboundrouteentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingEmailDomains invokes GET /api/v2/routing/email/domains -// -// Get domains -// -// -func (a RoutingApi) GetRoutingEmailDomains() (*Inbounddomainentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains" - defaultReturn := new(Inbounddomainentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Inbounddomainentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingEmailSetup invokes GET /api/v2/routing/email/setup -// -// Get email setup -// -// -func (a RoutingApi) GetRoutingEmailSetup() (*Emailsetup, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/setup" - defaultReturn := new(Emailsetup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Emailsetup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingLanguages invokes GET /api/v2/routing/languages -// -// Get the list of supported languages. -// -// -func (a RoutingApi) GetRoutingLanguages(pageSize int32, pageNumber int32, sortOrder string, name string, id []string) (*Languageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/languages" - defaultReturn := new(Languageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Languageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingMessageRecipient invokes GET /api/v2/routing/message/recipients/{recipientId} -// -// Get a recipient -// -// -func (a RoutingApi) GetRoutingMessageRecipient(recipientId string) (*Recipient, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/message/recipients/{recipientId}" - path = strings.Replace(path, "{recipientId}", fmt.Sprintf("%v", recipientId), -1) - defaultReturn := new(Recipient) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recipientId' is set - if &recipientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recipientId' when calling RoutingApi->GetRoutingMessageRecipient") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recipient - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingMessageRecipients invokes GET /api/v2/routing/message/recipients -// -// Get recipients -// -// -func (a RoutingApi) GetRoutingMessageRecipients(messengerType string, pageSize int32, pageNumber int32) (*Recipientlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/message/recipients" - defaultReturn := new(Recipientlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["messengerType"] = a.Configuration.APIClient.ParameterToString(messengerType, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Recipientlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueue invokes GET /api/v2/routing/queues/{queueId} -// -// Get details about this queue. -// -// -func (a RoutingApi) GetRoutingQueue(queueId string) (*Queue, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Queue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->GetRoutingQueue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Queue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueueEstimatedwaittime invokes GET /api/v2/routing/queues/{queueId}/estimatedwaittime -// -// Get Estimated Wait Time -// -// -func (a RoutingApi) GetRoutingQueueEstimatedwaittime(queueId string, conversationId string) (*Estimatedwaittimepredictions, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/estimatedwaittime" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Estimatedwaittimepredictions) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->GetRoutingQueueEstimatedwaittime") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["conversationId"] = a.Configuration.APIClient.ParameterToString(conversationId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Estimatedwaittimepredictions - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueueMediatypeEstimatedwaittime invokes GET /api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime -// -// Get Estimated Wait Time -// -// -func (a RoutingApi) GetRoutingQueueMediatypeEstimatedwaittime(queueId string, mediaType string) (*Estimatedwaittimepredictions, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - path = strings.Replace(path, "{mediaType}", fmt.Sprintf("%v", mediaType), -1) - defaultReturn := new(Estimatedwaittimepredictions) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->GetRoutingQueueMediatypeEstimatedwaittime") - } - // verify the required parameter 'mediaType' is set - if &mediaType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'mediaType' when calling RoutingApi->GetRoutingQueueMediatypeEstimatedwaittime") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Estimatedwaittimepredictions - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueueUsers invokes GET /api/v2/routing/queues/{queueId}/users -// -// Get the members of this queue -// -// -func (a RoutingApi) GetRoutingQueueUsers(queueId string, pageSize int32, pageNumber int32, sortBy string, expand []string, joined bool, name string, profileSkills []string, skills []string, languages []string, routingStatus []string, presence []string) (*Queuememberentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/users" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Queuememberentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->GetRoutingQueueUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["joined"] = a.Configuration.APIClient.ParameterToString(joined, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range profileSkills { - queryParams["profileSkills"] = value - } - } else { - queryParams["profileSkills"] = a.Configuration.APIClient.ParameterToString(profileSkills, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range skills { - queryParams["skills"] = value - } - } else { - queryParams["skills"] = a.Configuration.APIClient.ParameterToString(skills, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range languages { - queryParams["languages"] = value - } - } else { - queryParams["languages"] = a.Configuration.APIClient.ParameterToString(languages, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range routingStatus { - queryParams["routingStatus"] = value - } - } else { - queryParams["routingStatus"] = a.Configuration.APIClient.ParameterToString(routingStatus, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range presence { - queryParams["presence"] = value - } - } else { - queryParams["presence"] = a.Configuration.APIClient.ParameterToString(presence, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Queuememberentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueueWrapupcodes invokes GET /api/v2/routing/queues/{queueId}/wrapupcodes -// -// Get the wrap-up codes for a queue -// -// -func (a RoutingApi) GetRoutingQueueWrapupcodes(queueId string, pageSize int32, pageNumber int32) (*Wrapupcodeentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/wrapupcodes" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Wrapupcodeentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->GetRoutingQueueWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wrapupcodeentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueues invokes GET /api/v2/routing/queues -// -// Get list of queues. -// -// -func (a RoutingApi) GetRoutingQueues(pageSize int32, pageNumber int32, sortBy string, name string, id []string, divisionId []string) (*Queueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues" - defaultReturn := new(Queueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Queueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueuesDivisionviews invokes GET /api/v2/routing/queues/divisionviews -// -// Get a paged listing of simplified queue objects, filterable by name, queue ID(s), or division ID(s). -// -// -func (a RoutingApi) GetRoutingQueuesDivisionviews(pageSize int32, pageNumber int32, sortBy string, sortOrder string, name string, id []string, divisionId []string) (*Queueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/divisionviews" - defaultReturn := new(Queueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Queueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueuesDivisionviewsAll invokes GET /api/v2/routing/queues/divisionviews/all -// -// Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization. -// -// -func (a RoutingApi) GetRoutingQueuesDivisionviewsAll(pageSize int32, pageNumber int32, sortBy string, sortOrder string) (*Queueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/divisionviews/all" - defaultReturn := new(Queueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Queueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingQueuesMe invokes GET /api/v2/routing/queues/me -// -// Get a paged listing of queues the user is a member of. -// -// -func (a RoutingApi) GetRoutingQueuesMe(joined bool, pageSize int32, pageNumber int32, sortBy string, sortOrder string) (*Userqueueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/me" - defaultReturn := new(Userqueueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["joined"] = a.Configuration.APIClient.ParameterToString(joined, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userqueueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSettings invokes GET /api/v2/routing/settings -// -// Get an organization's routing settings -// -// -func (a RoutingApi) GetRoutingSettings() (*Routingsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings" - defaultReturn := new(Routingsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Routingsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSettingsContactcenter invokes GET /api/v2/routing/settings/contactcenter -// -// Get Contact Center Settings -// -// -func (a RoutingApi) GetRoutingSettingsContactcenter() (*Contactcentersettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings/contactcenter" - defaultReturn := new(Contactcentersettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Contactcentersettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSettingsTranscription invokes GET /api/v2/routing/settings/transcription -// -// Get Transcription Settings -// -// -func (a RoutingApi) GetRoutingSettingsTranscription() (*Transcriptionsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings/transcription" - defaultReturn := new(Transcriptionsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Transcriptionsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSkill invokes GET /api/v2/routing/skills/{skillId} -// -// Get Routing Skill -// -// -func (a RoutingApi) GetRoutingSkill(skillId string) (*Routingskill, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/skills/{skillId}" - path = strings.Replace(path, "{skillId}", fmt.Sprintf("%v", skillId), -1) - defaultReturn := new(Routingskill) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'skillId' is set - if &skillId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'skillId' when calling RoutingApi->GetRoutingSkill") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Routingskill - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSkills invokes GET /api/v2/routing/skills -// -// Get the list of routing skills. -// -// -func (a RoutingApi) GetRoutingSkills(pageSize int32, pageNumber int32, name string, id []string) (*Skillentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/skills" - defaultReturn := new(Skillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Skillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSmsAddress invokes GET /api/v2/routing/sms/addresses/{addressId} -// -// Get an Address by Id for SMS -// -// -func (a RoutingApi) GetRoutingSmsAddress(addressId string) (*Smsaddress, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/addresses/{addressId}" - path = strings.Replace(path, "{addressId}", fmt.Sprintf("%v", addressId), -1) - defaultReturn := new(Smsaddress) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'addressId' is set - if &addressId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'addressId' when calling RoutingApi->GetRoutingSmsAddress") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Smsaddress - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSmsAddresses invokes GET /api/v2/routing/sms/addresses -// -// Get a list of Addresses for SMS -// -// -func (a RoutingApi) GetRoutingSmsAddresses(pageSize int32, pageNumber int32) (*Smsaddressentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/addresses" - defaultReturn := new(Smsaddressentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Smsaddressentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSmsAvailablephonenumbers invokes GET /api/v2/routing/sms/availablephonenumbers -// -// Get a list of available phone numbers for SMS provisioning. -// -// This request will return up to 30 random phone numbers matching the criteria specified. To get additional phone numbers repeat the request. -func (a RoutingApi) GetRoutingSmsAvailablephonenumbers(countryCode string, phoneNumberType string, region string, city string, areaCode string, pattern string, addressRequirement string) (*Smsavailablephonenumberentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/availablephonenumbers" - defaultReturn := new(Smsavailablephonenumberentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'countryCode' is set - if &countryCode == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'countryCode' when calling RoutingApi->GetRoutingSmsAvailablephonenumbers") - } - // verify the required parameter 'phoneNumberType' is set - if &phoneNumberType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneNumberType' when calling RoutingApi->GetRoutingSmsAvailablephonenumbers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["countryCode"] = a.Configuration.APIClient.ParameterToString(countryCode, collectionFormat) - - - - - collectionFormat = "" - queryParams["region"] = a.Configuration.APIClient.ParameterToString(region, collectionFormat) - - - - - collectionFormat = "" - queryParams["city"] = a.Configuration.APIClient.ParameterToString(city, collectionFormat) - - - - - collectionFormat = "" - queryParams["areaCode"] = a.Configuration.APIClient.ParameterToString(areaCode, collectionFormat) - - - - - collectionFormat = "" - queryParams["phoneNumberType"] = a.Configuration.APIClient.ParameterToString(phoneNumberType, collectionFormat) - - - - - collectionFormat = "" - queryParams["pattern"] = a.Configuration.APIClient.ParameterToString(pattern, collectionFormat) - - - - - collectionFormat = "" - queryParams["addressRequirement"] = a.Configuration.APIClient.ParameterToString(addressRequirement, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Smsavailablephonenumberentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSmsPhonenumber invokes GET /api/v2/routing/sms/phonenumbers/{addressId} -// -// Get a phone number provisioned for SMS. -// -// -func (a RoutingApi) GetRoutingSmsPhonenumber(addressId string) (*Smsphonenumber, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/phonenumbers/{addressId}" - path = strings.Replace(path, "{addressId}", fmt.Sprintf("%v", addressId), -1) - defaultReturn := new(Smsphonenumber) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'addressId' is set - if &addressId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'addressId' when calling RoutingApi->GetRoutingSmsPhonenumber") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Smsphonenumber - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingSmsPhonenumbers invokes GET /api/v2/routing/sms/phonenumbers -// -// Get a list of provisioned phone numbers. -// -// -func (a RoutingApi) GetRoutingSmsPhonenumbers(phoneNumber string, phoneNumberType string, phoneNumberStatus string, pageSize int32, pageNumber int32) (*Smsphonenumberentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/phonenumbers" - defaultReturn := new(Smsphonenumberentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["phoneNumber"] = a.Configuration.APIClient.ParameterToString(phoneNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["phoneNumberType"] = a.Configuration.APIClient.ParameterToString(phoneNumberType, collectionFormat) - - - - - collectionFormat = "" - queryParams["phoneNumberStatus"] = a.Configuration.APIClient.ParameterToString(phoneNumberStatus, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Smsphonenumberentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingUserUtilization invokes GET /api/v2/routing/users/{userId}/utilization -// -// Get the user's max utilization settings. If not configured, the organization-wide default is returned. -// -// -func (a RoutingApi) GetRoutingUserUtilization(userId string) (*Utilization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Utilization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->GetRoutingUserUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Utilization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingUtilization invokes GET /api/v2/routing/utilization -// -// Get the organization-wide max utilization settings. -// -// -func (a RoutingApi) GetRoutingUtilization() (*Utilization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/utilization" - defaultReturn := new(Utilization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Utilization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingWrapupcode invokes GET /api/v2/routing/wrapupcodes/{codeId} -// -// Get details about this wrap-up code. -// -// -func (a RoutingApi) GetRoutingWrapupcode(codeId string) (*Wrapupcode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/wrapupcodes/{codeId}" - path = strings.Replace(path, "{codeId}", fmt.Sprintf("%v", codeId), -1) - defaultReturn := new(Wrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'codeId' is set - if &codeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'codeId' when calling RoutingApi->GetRoutingWrapupcode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingWrapupcodes invokes GET /api/v2/routing/wrapupcodes -// -// Get list of wrapup codes. -// -// -func (a RoutingApi) GetRoutingWrapupcodes(pageSize int32, pageNumber int32, sortBy string, name string) (*Wrapupcodeentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/wrapupcodes" - defaultReturn := new(Wrapupcodeentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wrapupcodeentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserQueues invokes GET /api/v2/users/{userId}/queues -// -// Get queues for user -// -// -func (a RoutingApi) GetUserQueues(userId string, pageSize int32, pageNumber int32, joined bool, divisionId []string) (*Userqueueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/queues" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userqueueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->GetUserQueues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["joined"] = a.Configuration.APIClient.ParameterToString(joined, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userqueueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoutinglanguages invokes GET /api/v2/users/{userId}/routinglanguages -// -// List routing language for user -// -// -func (a RoutingApi) GetUserRoutinglanguages(userId string, pageSize int32, pageNumber int32, sortOrder string) (*Userlanguageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userlanguageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->GetUserRoutinglanguages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userlanguageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoutingskills invokes GET /api/v2/users/{userId}/routingskills -// -// List routing skills for user -// -// -func (a RoutingApi) GetUserRoutingskills(userId string, pageSize int32, pageNumber int32, sortOrder string) (*Userskillentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userskillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->GetUserRoutingskills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userskillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchRoutingQueueUser invokes PATCH /api/v2/routing/queues/{queueId}/users/{memberId} -// -// Update the ring number OR joined status for a User in a Queue -// -// -func (a RoutingApi) PatchRoutingQueueUser(queueId string, memberId string, body Queuemember) (*Queuemember, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/users/{memberId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - defaultReturn := new(Queuemember) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->PatchRoutingQueueUser") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'memberId' when calling RoutingApi->PatchRoutingQueueUser") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchRoutingQueueUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queuemember - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchRoutingQueueUsers invokes PATCH /api/v2/routing/queues/{queueId}/users -// -// Join or unjoin a set of users for a queue -// -// -func (a RoutingApi) PatchRoutingQueueUsers(queueId string, body []Queuemember) (*Queuememberentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/users" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Queuememberentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->PatchRoutingQueueUsers") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchRoutingQueueUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queuememberentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchRoutingSettingsContactcenter invokes PATCH /api/v2/routing/settings/contactcenter -// -// Update Contact Center Settings -// -// -func (a RoutingApi) PatchRoutingSettingsContactcenter(body Contactcentersettings) (*APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings/contactcenter" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchRoutingSettingsContactcenter") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PatchUserQueue invokes PATCH /api/v2/users/{userId}/queues/{queueId} -// -// Join or unjoin a queue for a user -// -// -func (a RoutingApi) PatchUserQueue(queueId string, userId string, body Userqueue) (*Userqueue, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/queues/{queueId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userqueue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->PatchUserQueue") - } - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PatchUserQueue") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchUserQueue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userqueue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserQueues invokes PATCH /api/v2/users/{userId}/queues -// -// Join or unjoin a set of queues for a user -// -// -func (a RoutingApi) PatchUserQueues(userId string, body []Userqueue, divisionId []string) (*Userqueueentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/queues" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userqueueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PatchUserQueues") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchUserQueues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userqueueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserRoutinglanguage invokes PATCH /api/v2/users/{userId}/routinglanguages/{languageId} -// -// Update routing language proficiency or state. -// -// -func (a RoutingApi) PatchUserRoutinglanguage(userId string, languageId string, body Userroutinglanguage) (*Userroutinglanguage, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages/{languageId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - defaultReturn := new(Userroutinglanguage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PatchUserRoutinglanguage") - } - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageId' when calling RoutingApi->PatchUserRoutinglanguage") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchUserRoutinglanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutinglanguage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserRoutinglanguagesBulk invokes PATCH /api/v2/users/{userId}/routinglanguages/bulk -// -// Add bulk routing language to user. Max limit 50 languages -// -// -func (a RoutingApi) PatchUserRoutinglanguagesBulk(userId string, body []Userroutinglanguagepost) (*Userlanguageentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages/bulk" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userlanguageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PatchUserRoutinglanguagesBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchUserRoutinglanguagesBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userlanguageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserRoutingskillsBulk invokes PATCH /api/v2/users/{userId}/routingskills/bulk -// -// Bulk add routing skills to user -// -// -func (a RoutingApi) PatchUserRoutingskillsBulk(userId string, body []Userroutingskillpost) (*Userskillentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/bulk" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userskillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PatchUserRoutingskillsBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PatchUserRoutingskillsBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userskillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsQueuesObservationsQuery invokes POST /api/v2/analytics/queues/observations/query -// -// Query for queue observations -// -// -func (a RoutingApi) PostAnalyticsQueuesObservationsQuery(body Queueobservationquery) (*Queueobservationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/queues/observations/query" - defaultReturn := new(Queueobservationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostAnalyticsQueuesObservationsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queueobservationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingEmailDomainRoutes invokes POST /api/v2/routing/email/domains/{domainName}/routes -// -// Create a route -// -// -func (a RoutingApi) PostRoutingEmailDomainRoutes(domainName string, body Inboundroute) (*Inboundroute, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainName}/routes" - path = strings.Replace(path, "{domainName}", fmt.Sprintf("%v", domainName), -1) - defaultReturn := new(Inboundroute) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainName' is set - if &domainName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'domainName' when calling RoutingApi->PostRoutingEmailDomainRoutes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingEmailDomainRoutes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Inboundroute - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingEmailDomains invokes POST /api/v2/routing/email/domains -// -// Create a domain -// -// -func (a RoutingApi) PostRoutingEmailDomains(body Inbounddomain) (*Inbounddomain, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains" - defaultReturn := new(Inbounddomain) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingEmailDomains") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Inbounddomain - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingLanguages invokes POST /api/v2/routing/languages -// -// Create Language -// -// -func (a RoutingApi) PostRoutingLanguages(body Language) (*Language, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/languages" - defaultReturn := new(Language) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingLanguages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Language - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingQueueUsers invokes POST /api/v2/routing/queues/{queueId}/users -// -// Bulk add or delete up to 100 queue members -// -// -func (a RoutingApi) PostRoutingQueueUsers(queueId string, body []Writableentity, delete bool) (*string, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/users" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->PostRoutingQueueUsers") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingQueueUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["delete"] = a.Configuration.APIClient.ParameterToString(delete, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingQueueWrapupcodes invokes POST /api/v2/routing/queues/{queueId}/wrapupcodes -// -// Add up to 100 wrap-up codes to a queue -// -// -func (a RoutingApi) PostRoutingQueueWrapupcodes(queueId string, body []Wrapupcodereference) ([]Wrapupcode, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}/wrapupcodes" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := make([]Wrapupcode, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->PostRoutingQueueWrapupcodes") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingQueueWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingQueues invokes POST /api/v2/routing/queues -// -// Create a queue -// -// -func (a RoutingApi) PostRoutingQueues(body Createqueuerequest) (*Queue, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues" - defaultReturn := new(Queue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingQueues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingSkills invokes POST /api/v2/routing/skills -// -// Create Skill -// -// -func (a RoutingApi) PostRoutingSkills(body Routingskill) (*Routingskill, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/skills" - defaultReturn := new(Routingskill) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingSkills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Routingskill - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingSmsAddresses invokes POST /api/v2/routing/sms/addresses -// -// Provision an Address for SMS -// -// -func (a RoutingApi) PostRoutingSmsAddresses(body Smsaddressprovision) (*Smsaddress, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/addresses" - defaultReturn := new(Smsaddress) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingSmsAddresses") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Smsaddress - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingSmsPhonenumbers invokes POST /api/v2/routing/sms/phonenumbers -// -// Provision a phone number for SMS -// -// -func (a RoutingApi) PostRoutingSmsPhonenumbers(body Smsphonenumberprovision) (*Smsphonenumber, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/phonenumbers" - defaultReturn := new(Smsphonenumber) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingSmsPhonenumbers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Smsphonenumber - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostRoutingWrapupcodes invokes POST /api/v2/routing/wrapupcodes -// -// Create a wrap-up code -// -// -func (a RoutingApi) PostRoutingWrapupcodes(body Wrapupcode) (*Wrapupcode, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/wrapupcodes" - defaultReturn := new(Wrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostRoutingWrapupcodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUserRoutinglanguages invokes POST /api/v2/users/{userId}/routinglanguages -// -// Add routing language to user -// -// -func (a RoutingApi) PostUserRoutinglanguages(userId string, body Userroutinglanguagepost) (*Userroutinglanguage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userroutinglanguage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PostUserRoutinglanguages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostUserRoutinglanguages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutinglanguage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUserRoutingskills invokes POST /api/v2/users/{userId}/routingskills -// -// Add routing skill to user -// -// -func (a RoutingApi) PostUserRoutingskills(userId string, body Userroutingskillpost) (*Userroutingskill, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userroutingskill) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PostUserRoutingskills") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PostUserRoutingskills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutingskill - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingEmailDomainRoute invokes PUT /api/v2/routing/email/domains/{domainName}/routes/{routeId} -// -// Update a route -// -// -func (a RoutingApi) PutRoutingEmailDomainRoute(domainName string, routeId string, body Inboundroute) (*Inboundroute, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/email/domains/{domainName}/routes/{routeId}" - path = strings.Replace(path, "{domainName}", fmt.Sprintf("%v", domainName), -1) - path = strings.Replace(path, "{routeId}", fmt.Sprintf("%v", routeId), -1) - defaultReturn := new(Inboundroute) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'domainName' is set - if &domainName == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'domainName' when calling RoutingApi->PutRoutingEmailDomainRoute") - } - // verify the required parameter 'routeId' is set - if &routeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'routeId' when calling RoutingApi->PutRoutingEmailDomainRoute") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingEmailDomainRoute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Inboundroute - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingMessageRecipient invokes PUT /api/v2/routing/message/recipients/{recipientId} -// -// Update a recipient -// -// -func (a RoutingApi) PutRoutingMessageRecipient(recipientId string, body Recipient) (*Recipient, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/message/recipients/{recipientId}" - path = strings.Replace(path, "{recipientId}", fmt.Sprintf("%v", recipientId), -1) - defaultReturn := new(Recipient) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recipientId' is set - if &recipientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recipientId' when calling RoutingApi->PutRoutingMessageRecipient") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingMessageRecipient") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Recipient - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingQueue invokes PUT /api/v2/routing/queues/{queueId} -// -// Update a queue -// -// -func (a RoutingApi) PutRoutingQueue(queueId string, body Queuerequest) (*Queue, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/queues/{queueId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Queue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling RoutingApi->PutRoutingQueue") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingQueue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Queue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingSettings invokes PUT /api/v2/routing/settings -// -// Update an organization's routing settings -// -// -func (a RoutingApi) PutRoutingSettings(body Routingsettings) (*Routingsettings, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings" - defaultReturn := new(Routingsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Routingsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingSettingsTranscription invokes PUT /api/v2/routing/settings/transcription -// -// Update Transcription Settings -// -// -func (a RoutingApi) PutRoutingSettingsTranscription(body Transcriptionsettings) (*Transcriptionsettings, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/settings/transcription" - defaultReturn := new(Transcriptionsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingSettingsTranscription") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Transcriptionsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingSmsPhonenumber invokes PUT /api/v2/routing/sms/phonenumbers/{addressId} -// -// Update a phone number provisioned for SMS. -// -// -func (a RoutingApi) PutRoutingSmsPhonenumber(addressId string, body Smsphonenumber) (*Smsphonenumber, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/sms/phonenumbers/{addressId}" - path = strings.Replace(path, "{addressId}", fmt.Sprintf("%v", addressId), -1) - defaultReturn := new(Smsphonenumber) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'addressId' is set - if &addressId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'addressId' when calling RoutingApi->PutRoutingSmsPhonenumber") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingSmsPhonenumber") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Smsphonenumber - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingUserUtilization invokes PUT /api/v2/routing/users/{userId}/utilization -// -// Update the user's max utilization settings. Include only those media types requiring custom configuration. -// -// -func (a RoutingApi) PutRoutingUserUtilization(userId string, body Utilization) (*Utilization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Utilization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PutRoutingUserUtilization") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingUserUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Utilization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingUtilization invokes PUT /api/v2/routing/utilization -// -// Update the organization-wide max utilization settings. Include only those media types requiring custom configuration. -// -// -func (a RoutingApi) PutRoutingUtilization(body Utilization) (*Utilization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/utilization" - defaultReturn := new(Utilization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Utilization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingWrapupcode invokes PUT /api/v2/routing/wrapupcodes/{codeId} -// -// Update wrap-up code -// -// -func (a RoutingApi) PutRoutingWrapupcode(codeId string, body Wrapupcode) (*Wrapupcode, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/wrapupcodes/{codeId}" - path = strings.Replace(path, "{codeId}", fmt.Sprintf("%v", codeId), -1) - defaultReturn := new(Wrapupcode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'codeId' is set - if &codeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'codeId' when calling RoutingApi->PutRoutingWrapupcode") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingWrapupcode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Wrapupcode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoutingskill invokes PUT /api/v2/users/{userId}/routingskills/{skillId} -// -// Update routing skill proficiency or state. -// -// -func (a RoutingApi) PutUserRoutingskill(userId string, skillId string, body Userroutingskill) (*Userroutingskill, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/{skillId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{skillId}", fmt.Sprintf("%v", skillId), -1) - defaultReturn := new(Userroutingskill) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PutUserRoutingskill") - } - // verify the required parameter 'skillId' is set - if &skillId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'skillId' when calling RoutingApi->PutUserRoutingskill") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutUserRoutingskill") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutingskill - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoutingskillsBulk invokes PUT /api/v2/users/{userId}/routingskills/bulk -// -// Replace all routing skills assigned to a user -// -// -func (a RoutingApi) PutUserRoutingskillsBulk(userId string, body []Userroutingskillpost) (*Userskillentitylisting, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/bulk" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userskillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PutUserRoutingskillsBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutUserRoutingskillsBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userskillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/routingdata.go b/build/platformclientv2/routingdata.go deleted file mode 100644 index 405fc924c..000000000 --- a/build/platformclientv2/routingdata.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingdata -type Routingdata struct { - // QueueId - The identifier of the routing queue - QueueId *string `json:"queueId,omitempty"` - - - // LanguageId - The identifier of a language to be considered in routing - LanguageId *string `json:"languageId,omitempty"` - - - // Priority - The priority for routing - Priority *int32 `json:"priority,omitempty"` - - - // SkillIds - A list of skill identifiers to be considered in routing - SkillIds *[]string `json:"skillIds,omitempty"` - - - // PreferredAgentIds - A list of agents to be preferred in routing - PreferredAgentIds *[]string `json:"preferredAgentIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingrule.go b/build/platformclientv2/routingrule.go deleted file mode 100644 index df6b69793..000000000 --- a/build/platformclientv2/routingrule.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingrule -type Routingrule struct { - // Operator - matching operator. MEETS_THRESHOLD matches any agent with a score at or above the rule's threshold. ANY matches all specified agents, regardless of score. - Operator *string `json:"operator,omitempty"` - - - // Threshold - threshold required for routing attempt (generally an agent score). may be null for operator ANY. - Threshold *int32 `json:"threshold,omitempty"` - - - // WaitSeconds - seconds to wait in this rule before moving to the next - WaitSeconds *float64 `json:"waitSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingsettings.go b/build/platformclientv2/routingsettings.go deleted file mode 100644 index 072c6deeb..000000000 --- a/build/platformclientv2/routingsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingsettings -type Routingsettings struct { - // ResetAgentScoreOnPresenceChange - Reset agent score when agent presence changes from off-queue to on-queue - ResetAgentScoreOnPresenceChange *bool `json:"resetAgentScoreOnPresenceChange,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingskill.go b/build/platformclientv2/routingskill.go deleted file mode 100644 index 435974e19..000000000 --- a/build/platformclientv2/routingskill.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Routingskill -type Routingskill struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the skill. - Name *string `json:"name,omitempty"` - - - // DateModified - Date last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // State - The current state for this skill. - State *string `json:"state,omitempty"` - - - // Version - Required when updating. Version must be the current version. Only the system can assign version. - Version *string `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingskill) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingskillreference.go b/build/platformclientv2/routingskillreference.go deleted file mode 100644 index 8dfaea03c..000000000 --- a/build/platformclientv2/routingskillreference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingskillreference -type Routingskillreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingskillreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingstatus.go b/build/platformclientv2/routingstatus.go deleted file mode 100644 index 80f8a25e9..000000000 --- a/build/platformclientv2/routingstatus.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Routingstatus -type Routingstatus struct { - // UserId - The userId of the agent - UserId *string `json:"userId,omitempty"` - - - // Status - Indicates the Routing State of the agent. A value of OFF_QUEUE will be returned if the specified user does not exist. - Status *string `json:"status,omitempty"` - - - // StartTime - The timestamp when the agent went into this state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingstatusdetailqueryclause.go b/build/platformclientv2/routingstatusdetailqueryclause.go deleted file mode 100644 index d69046652..000000000 --- a/build/platformclientv2/routingstatusdetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingstatusdetailqueryclause -type Routingstatusdetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Routingstatusdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingstatusdetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingstatusdetailqueryfilter.go b/build/platformclientv2/routingstatusdetailqueryfilter.go deleted file mode 100644 index 947939323..000000000 --- a/build/platformclientv2/routingstatusdetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingstatusdetailqueryfilter -type Routingstatusdetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Routingstatusdetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Routingstatusdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingstatusdetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/routingstatusdetailquerypredicate.go b/build/platformclientv2/routingstatusdetailquerypredicate.go deleted file mode 100644 index 2a627700f..000000000 --- a/build/platformclientv2/routingstatusdetailquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Routingstatusdetailquerypredicate -type Routingstatusdetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Routingstatusdetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ruleset.go b/build/platformclientv2/ruleset.go deleted file mode 100644 index c2346e2ba..000000000 --- a/build/platformclientv2/ruleset.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Ruleset -type Ruleset struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the RuleSet. - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // ContactList - A ContactList to provide user-interface suggestions for contact columns on relevant conditions and actions. - ContactList *Domainentityref `json:"contactList,omitempty"` - - - // Queue - A Queue to provide user-interface suggestions for wrap-up codes on relevant conditions and actions. - Queue *Domainentityref `json:"queue,omitempty"` - - - // Rules - The list of rules. - Rules *[]Dialerrule `json:"rules,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ruleset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/rulesetdiagnostic.go b/build/platformclientv2/rulesetdiagnostic.go deleted file mode 100644 index 5d5a66e04..000000000 --- a/build/platformclientv2/rulesetdiagnostic.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Rulesetdiagnostic -type Rulesetdiagnostic struct { - // RuleSet - A campaign rule set - RuleSet *Domainentityref `json:"ruleSet,omitempty"` - - - // Warnings - Diagnostic warnings for the rule set - Warnings *[]string `json:"warnings,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Rulesetdiagnostic) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/rulesetentitylisting.go b/build/platformclientv2/rulesetentitylisting.go deleted file mode 100644 index 995a83dfb..000000000 --- a/build/platformclientv2/rulesetentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Rulesetentitylisting -type Rulesetentitylisting struct { - // Entities - Entities *[]Ruleset `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Rulesetentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/runnowresponse.go b/build/platformclientv2/runnowresponse.go deleted file mode 100644 index 7b0417ae9..000000000 --- a/build/platformclientv2/runnowresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Runnowresponse -type Runnowresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Runnowresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/salesforce.go b/build/platformclientv2/salesforce.go deleted file mode 100644 index 2ddfd4d7d..000000000 --- a/build/platformclientv2/salesforce.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Salesforce -type Salesforce struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Certificate - Certificate *string `json:"certificate,omitempty"` - - - // IssuerURI - IssuerURI *string `json:"issuerURI,omitempty"` - - - // SsoTargetURI - SsoTargetURI *string `json:"ssoTargetURI,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Salesforce) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedule.go b/build/platformclientv2/schedule.go deleted file mode 100644 index 23f34b45c..000000000 --- a/build/platformclientv2/schedule.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Schedule - Defines a period of time to perform a specific action. Each schedule must be associated with one or more schedule groups to be used. -type Schedule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // Start - Date time is represented as an ISO-8601 string without a timezone. For example: yyyy-MM-ddTHH:mm:ss.SSS - Start *time.Time `json:"start,omitempty"` - - - // End - Date time is represented as an ISO-8601 string without a timezone. For example: yyyy-MM-ddTHH:mm:ss.SSS - End *time.Time `json:"end,omitempty"` - - - // Rrule - An iCal Recurrence Rule (RRULE) string. - Rrule *string `json:"rrule,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scheduleentitylisting.go b/build/platformclientv2/scheduleentitylisting.go deleted file mode 100644 index 66f34802f..000000000 --- a/build/platformclientv2/scheduleentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scheduleentitylisting -type Scheduleentitylisting struct { - // Entities - Entities *[]Schedule `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scheduleentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulegenerationwarning.go b/build/platformclientv2/schedulegenerationwarning.go deleted file mode 100644 index 7c023d6c0..000000000 --- a/build/platformclientv2/schedulegenerationwarning.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulegenerationwarning - Schedule generation warning -type Schedulegenerationwarning struct { - // UserId - ID of the user in the warning - UserId *string `json:"userId,omitempty"` - - - // UserNotLicensed - Whether the user does not have the appropriate license to be scheduled - UserNotLicensed *bool `json:"userNotLicensed,omitempty"` - - - // UnableToMeetMaxDays - Whether the number of scheduled days exceeded the maximum days to schedule defined in the agent work plan - UnableToMeetMaxDays *bool `json:"unableToMeetMaxDays,omitempty"` - - - // UnableToScheduleRequiredDays - Days indicated as required to work in agent work plan where no viable shift was found to schedule - UnableToScheduleRequiredDays *[]string `json:"unableToScheduleRequiredDays,omitempty"` - - - // UnableToMeetMinPaidForTheWeek - Whether the schedule did not meet the minimum paid time for the week defined in the agent work plan - UnableToMeetMinPaidForTheWeek *bool `json:"unableToMeetMinPaidForTheWeek,omitempty"` - - - // UnableToMeetMaxPaidForTheWeek - Whether the schedule exceeded the maximum paid time for the week defined in the agent work plan - UnableToMeetMaxPaidForTheWeek *bool `json:"unableToMeetMaxPaidForTheWeek,omitempty"` - - - // NoNeedDays - Days agent was scheduled but there was no need to meet. The scheduled days have no effect on service levels - NoNeedDays *[]string `json:"noNeedDays,omitempty"` - - - // ShiftsTooCloseTogether - Whether the schedule did not meet the minimum time between shifts defined in the agent work plan - ShiftsTooCloseTogether *bool `json:"shiftsTooCloseTogether,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulegenerationwarning) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulegroup.go b/build/platformclientv2/schedulegroup.go deleted file mode 100644 index 9120e79bc..000000000 --- a/build/platformclientv2/schedulegroup.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Schedulegroup - A group of schedules that define the operating hours of an organization. -type Schedulegroup struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // TimeZone - The timezone the schedules are a part of. This is not a schedule property to allow a schedule to be used in multiple timezones. - TimeZone *string `json:"timeZone,omitempty"` - - - // OpenSchedules - The schedules defining the hours an organization is open. - OpenSchedules *[]Domainentityref `json:"openSchedules,omitempty"` - - - // ClosedSchedules - The schedules defining the hours an organization is closed. - ClosedSchedules *[]Domainentityref `json:"closedSchedules,omitempty"` - - - // HolidaySchedules - The schedules defining the hours an organization is closed for the holidays. - HolidaySchedules *[]Domainentityref `json:"holidaySchedules,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulegroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulegroupentitylisting.go b/build/platformclientv2/schedulegroupentitylisting.go deleted file mode 100644 index d135408a9..000000000 --- a/build/platformclientv2/schedulegroupentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulegroupentitylisting -type Schedulegroupentitylisting struct { - // Entities - Entities *[]Schedulegroup `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulegroupentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scheduleinterval.go b/build/platformclientv2/scheduleinterval.go deleted file mode 100644 index 3b103718e..000000000 --- a/build/platformclientv2/scheduleinterval.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scheduleinterval -type Scheduleinterval struct { - // Start - The scheduled start time as an ISO-8601 string, i.e yyyy-MM-ddTHH:mm:ss.SSSZ - Start *string `json:"start,omitempty"` - - - // End - The scheduled end time as an ISO-8601 string, i.e. yyyy-MM-ddTHH:mm:ss.SSSZ - End *string `json:"end,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scheduleinterval) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulingprocessingerror.go b/build/platformclientv2/schedulingprocessingerror.go deleted file mode 100644 index d843f30c7..000000000 --- a/build/platformclientv2/schedulingprocessingerror.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulingprocessingerror -type Schedulingprocessingerror struct { - // InternalErrorCode - An internal code representing the type of error. BadJson for 'Unable to parse json.' NotFound for 'Resource not found.' Fail for 'An unexpected server error occured.' - InternalErrorCode *string `json:"internalErrorCode,omitempty"` - - - // Description - A text description of the error - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulingprocessingerror) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulingrunlistresponse.go b/build/platformclientv2/schedulingrunlistresponse.go deleted file mode 100644 index 8b68e83e8..000000000 --- a/build/platformclientv2/schedulingrunlistresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulingrunlistresponse -type Schedulingrunlistresponse struct { - // Entities - Entities *[]Schedulingrunresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulingrunlistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulingrunresponse.go b/build/platformclientv2/schedulingrunresponse.go deleted file mode 100644 index 990c95782..000000000 --- a/build/platformclientv2/schedulingrunresponse.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Schedulingrunresponse - Information containing details of a schedule run -type Schedulingrunresponse struct { - // RunId - ID of the schedule run - RunId *string `json:"runId,omitempty"` - - - // SchedulerRunId - The runId from scheduler service. Useful for debugging schedule errors - SchedulerRunId *string `json:"schedulerRunId,omitempty"` - - - // IntradayRescheduling - Whether this is the result of a rescheduling request - IntradayRescheduling *bool `json:"intradayRescheduling,omitempty"` - - - // State - Status of the schedule run - State *string `json:"state,omitempty"` - - - // PercentComplete - Completion percentage of the schedule run - PercentComplete *float64 `json:"percentComplete,omitempty"` - - - // TargetWeek - The start date of the week for which the scheduling is done in yyyy-MM-dd format - TargetWeek *string `json:"targetWeek,omitempty"` - - - // ScheduleId - ID of the schedule. Does not apply to reschedule, see reschedulingOptions.existingScheduleId - ScheduleId *string `json:"scheduleId,omitempty"` - - - // ScheduleDescription - Description of the schedule - ScheduleDescription *string `json:"scheduleDescription,omitempty"` - - - // SchedulingStartTime - Start time of the schedule run. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SchedulingStartTime *time.Time `json:"schedulingStartTime,omitempty"` - - - // SchedulingStartedBy - User that started the schedule run - SchedulingStartedBy *Userreference `json:"schedulingStartedBy,omitempty"` - - - // SchedulingCanceledBy - User that canceled the schedule run - SchedulingCanceledBy *Userreference `json:"schedulingCanceledBy,omitempty"` - - - // SchedulingCompletedTime - Time at which the scheduling run was completed. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SchedulingCompletedTime *time.Time `json:"schedulingCompletedTime,omitempty"` - - - // ReschedulingOptions - The selected options for the reschedule request. Will always be null if intradayRescheduling is false - ReschedulingOptions *Reschedulingoptionsresponse `json:"reschedulingOptions,omitempty"` - - - // ReschedulingResultExpiration - When the rescheduling result data will expire. Results are kept temporarily as they should be applied as soon as possible after the run finishes. Will always be null if intradayRescheduling is false. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReschedulingResultExpiration *time.Time `json:"reschedulingResultExpiration,omitempty"` - - - // Applied - Whether the rescheduling run has been marked applied - Applied *bool `json:"applied,omitempty"` - - - // UnscheduledAgents - Agents that were not scheduled in the rescheduling operation. Will always be null if intradayRescheduling is false - UnscheduledAgents *[]Unscheduledagentwarning `json:"unscheduledAgents,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulingrunresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulingsettingsrequest.go b/build/platformclientv2/schedulingsettingsrequest.go deleted file mode 100644 index 756117e28..000000000 --- a/build/platformclientv2/schedulingsettingsrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulingsettingsrequest - Scheduling Settings -type Schedulingsettingsrequest struct { - // MaxOccupancyPercentForDeferredWork - Max occupancy percent for deferred work - MaxOccupancyPercentForDeferredWork *int32 `json:"maxOccupancyPercentForDeferredWork,omitempty"` - - - // DefaultShrinkagePercent - Default shrinkage percent for scheduling - DefaultShrinkagePercent *float64 `json:"defaultShrinkagePercent,omitempty"` - - - // ShrinkageOverrides - Shrinkage overrides for scheduling - ShrinkageOverrides *Shrinkageoverrides `json:"shrinkageOverrides,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulingsettingsrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulingsettingsresponse.go b/build/platformclientv2/schedulingsettingsresponse.go deleted file mode 100644 index 04be224a2..000000000 --- a/build/platformclientv2/schedulingsettingsresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulingsettingsresponse - Scheduling Settings -type Schedulingsettingsresponse struct { - // MaxOccupancyPercentForDeferredWork - Max occupancy percent for deferred work - MaxOccupancyPercentForDeferredWork *int32 `json:"maxOccupancyPercentForDeferredWork,omitempty"` - - - // DefaultShrinkagePercent - Default shrinkage percent for scheduling - DefaultShrinkagePercent *float64 `json:"defaultShrinkagePercent,omitempty"` - - - // ShrinkageOverrides - Shrinkage overrides for scheduling - ShrinkageOverrides *Shrinkageoverrides `json:"shrinkageOverrides,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulingsettingsresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schedulingstatusresponse.go b/build/platformclientv2/schedulingstatusresponse.go deleted file mode 100644 index 5c3e777ec..000000000 --- a/build/platformclientv2/schedulingstatusresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schedulingstatusresponse -type Schedulingstatusresponse struct { - // Id - The ID generated for the scheduling job. Use to GET result when job is completed. - Id *string `json:"id,omitempty"` - - - // Status - The status of the scheduling job. - Status *string `json:"status,omitempty"` - - - // ErrorDetails - If the request could not be properly processed, error details will be given here. - ErrorDetails *[]Schedulingprocessingerror `json:"errorDetails,omitempty"` - - - // SchedulingResultUri - The uri of the scheduling result. It has a value if the status is 'Success'. - SchedulingResultUri *string `json:"schedulingResultUri,omitempty"` - - - // PercentComplete - The percentage of the job that is complete. - PercentComplete *int32 `json:"percentComplete,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schedulingstatusresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schemacategory.go b/build/platformclientv2/schemacategory.go deleted file mode 100644 index 819bfceef..000000000 --- a/build/platformclientv2/schemacategory.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Schemacategory -type Schemacategory struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schemacategory) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schemacategoryentitylisting.go b/build/platformclientv2/schemacategoryentitylisting.go deleted file mode 100644 index 8ffd13217..000000000 --- a/build/platformclientv2/schemacategoryentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schemacategoryentitylisting -type Schemacategoryentitylisting struct { - // Entities - Entities *[]Schemacategory `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schemacategoryentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/schemareferenceentitylisting.go b/build/platformclientv2/schemareferenceentitylisting.go deleted file mode 100644 index c04389092..000000000 --- a/build/platformclientv2/schemareferenceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Schemareferenceentitylisting -type Schemareferenceentitylisting struct { - // Entities - Entities *[]Domainschemareference `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Schemareferenceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimapi.go b/build/platformclientv2/scimapi.go deleted file mode 100644 index ecc846d03..000000000 --- a/build/platformclientv2/scimapi.go +++ /dev/null @@ -1,2791 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// SCIMApi provides functions for API endpoints -type SCIMApi struct { - Configuration *Configuration -} - -// NewSCIMApi creates an API instance using the default configuration -func NewSCIMApi() *SCIMApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating SCIMApi with base path: %s", strings.ToLower(config.BasePath))) - return &SCIMApi{ - Configuration: config, - } -} - -// NewSCIMApiWithConfig creates an API instance using the provided configuration -func NewSCIMApiWithConfig(config *Configuration) *SCIMApi { - config.Debugf("Creating SCIMApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &SCIMApi{ - Configuration: config, - } -} - -// DeleteScimGroup invokes DELETE /api/v2/scim/groups/{groupId} -// -// Delete a group. -// -// -func (a SCIMApi) DeleteScimGroup(groupId string, ifMatch string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->DeleteScimGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteScimUser invokes DELETE /api/v2/scim/users/{userId} -// -// Delete a user -// -// -func (a SCIMApi) DeleteScimUser(userId string, ifMatch string) (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->DeleteScimUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteScimV2Group invokes DELETE /api/v2/scim/v2/groups/{groupId} -// -// Delete a group. -// -// -func (a SCIMApi) DeleteScimV2Group(groupId string, ifMatch string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->DeleteScimV2Group") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteScimV2User invokes DELETE /api/v2/scim/v2/users/{userId} -// -// Delete a user -// -// -func (a SCIMApi) DeleteScimV2User(userId string, ifMatch string) (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->DeleteScimV2User") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimGroup invokes GET /api/v2/scim/groups/{groupId} -// -// Get a group -// -// -func (a SCIMApi) GetScimGroup(groupId string, attributes []string, excludedAttributes []string, ifNoneMatch string) (*Scimv2group, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->GetScimGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-None-Match" - headerParams["If-None-Match"] = ifNoneMatch - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimGroups invokes GET /api/v2/scim/groups -// -// Get a list of groups -// -// -func (a SCIMApi) GetScimGroups(startIndex int32, count int32, attributes []string, excludedAttributes []string, filter string) (*Scimgrouplistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/groups" - defaultReturn := new(Scimgrouplistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["startIndex"] = a.Configuration.APIClient.ParameterToString(startIndex, collectionFormat) - - - - - collectionFormat = "" - queryParams["count"] = a.Configuration.APIClient.ParameterToString(count, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["filter"] = a.Configuration.APIClient.ParameterToString(filter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimgrouplistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimResourcetype invokes GET /api/v2/scim/resourcetypes/{resourceType} -// -// Get a resource type -// -// -func (a SCIMApi) GetScimResourcetype(resourceType string) (*Scimconfigresourcetype, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/resourcetypes/{resourceType}" - path = strings.Replace(path, "{resourceType}", fmt.Sprintf("%v", resourceType), -1) - defaultReturn := new(Scimconfigresourcetype) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'resourceType' is set - if &resourceType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'resourceType' when calling SCIMApi->GetScimResourcetype") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimconfigresourcetype - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimResourcetypes invokes GET /api/v2/scim/resourcetypes -// -// Get a list of resource types -// -// -func (a SCIMApi) GetScimResourcetypes() (*Scimconfigresourcetypeslistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/resourcetypes" - defaultReturn := new(Scimconfigresourcetypeslistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimconfigresourcetypeslistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimSchema invokes GET /api/v2/scim/schemas/{schemaId} -// -// Get the SCIM schema by id -// -// -func (a SCIMApi) GetScimSchema(schemaId string) (*Scimconfigresourcetype, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/schemas/{schemaId}" - path = strings.Replace(path, "{schemaId}", fmt.Sprintf("%v", schemaId), -1) - defaultReturn := new(Scimconfigresourcetype) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'schemaId' is set - if &schemaId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaId' when calling SCIMApi->GetScimSchema") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimconfigresourcetype - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimSchemas invokes GET /api/v2/scim/schemas -// -// Get the SCIM schemas -// -// -func (a SCIMApi) GetScimSchemas(filter string) (*Scimconfigresourcetypeslistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/schemas" - defaultReturn := new(Scimconfigresourcetypeslistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["filter"] = a.Configuration.APIClient.ParameterToString(filter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimconfigresourcetypeslistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimServiceproviderconfig invokes GET /api/v2/scim/serviceproviderconfig -// -// Get a service provider's configuration -// -// -func (a SCIMApi) GetScimServiceproviderconfig(ifNoneMatch string) (*Scimserviceproviderconfig, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/serviceproviderconfig" - defaultReturn := new(Scimserviceproviderconfig) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-None-Match" - headerParams["If-None-Match"] = ifNoneMatch - - var successPayload *Scimserviceproviderconfig - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimUser invokes GET /api/v2/scim/users/{userId} -// -// Get a user -// -// -func (a SCIMApi) GetScimUser(userId string, attributes []string, excludedAttributes []string, ifNoneMatch string) (*Scimv2user, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->GetScimUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-None-Match" - headerParams["If-None-Match"] = ifNoneMatch - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimUsers invokes GET /api/v2/scim/users -// -// Get a list of users -// -// To return all active users, do not use a filter parameter. To return inactive users, set \"filter\" to \"active eq false\". By default, returns SCIM attributes externalId, enterprise-user:manager, and roles. To exclude these attributes, set \"attributes\" to \"id,active\" or \"excludeAttributes\" to \"externalId,roles,urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division\". -func (a SCIMApi) GetScimUsers(startIndex int32, count int32, attributes []string, excludedAttributes []string, filter string) (*Scimuserlistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/users" - defaultReturn := new(Scimuserlistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["startIndex"] = a.Configuration.APIClient.ParameterToString(startIndex, collectionFormat) - - - - - collectionFormat = "" - queryParams["count"] = a.Configuration.APIClient.ParameterToString(count, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["filter"] = a.Configuration.APIClient.ParameterToString(filter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimuserlistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Group invokes GET /api/v2/scim/v2/groups/{groupId} -// -// Get a group -// -// -func (a SCIMApi) GetScimV2Group(groupId string, attributes []string, excludedAttributes []string, ifNoneMatch string) (*Scimv2group, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->GetScimV2Group") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-None-Match" - headerParams["If-None-Match"] = ifNoneMatch - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Groups invokes GET /api/v2/scim/v2/groups -// -// Get a list of groups -// -// -func (a SCIMApi) GetScimV2Groups(filter string, startIndex int32, count int32, attributes []string, excludedAttributes []string) (*Scimgrouplistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/groups" - defaultReturn := new(Scimgrouplistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'filter' is set - if &filter == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'filter' when calling SCIMApi->GetScimV2Groups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["startIndex"] = a.Configuration.APIClient.ParameterToString(startIndex, collectionFormat) - - - - - collectionFormat = "" - queryParams["count"] = a.Configuration.APIClient.ParameterToString(count, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["filter"] = a.Configuration.APIClient.ParameterToString(filter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimgrouplistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Resourcetype invokes GET /api/v2/scim/v2/resourcetypes/{resourceType} -// -// Get a resource type -// -// -func (a SCIMApi) GetScimV2Resourcetype(resourceType string) (*Scimconfigresourcetype, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/resourcetypes/{resourceType}" - path = strings.Replace(path, "{resourceType}", fmt.Sprintf("%v", resourceType), -1) - defaultReturn := new(Scimconfigresourcetype) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'resourceType' is set - if &resourceType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'resourceType' when calling SCIMApi->GetScimV2Resourcetype") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimconfigresourcetype - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Resourcetypes invokes GET /api/v2/scim/v2/resourcetypes -// -// Get a list of resource types -// -// -func (a SCIMApi) GetScimV2Resourcetypes() (*Scimconfigresourcetypeslistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/resourcetypes" - defaultReturn := new(Scimconfigresourcetypeslistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimconfigresourcetypeslistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Schema invokes GET /api/v2/scim/v2/schemas/{schemaId} -// -// Get the SCIM schema by id -// -// -func (a SCIMApi) GetScimV2Schema(schemaId string) (*Scimv2schemadefinition, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/schemas/{schemaId}" - path = strings.Replace(path, "{schemaId}", fmt.Sprintf("%v", schemaId), -1) - defaultReturn := new(Scimv2schemadefinition) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'schemaId' is set - if &schemaId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaId' when calling SCIMApi->GetScimV2Schema") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimv2schemadefinition - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Schemas invokes GET /api/v2/scim/v2/schemas -// -// Get the SCIM schemas -// -// -func (a SCIMApi) GetScimV2Schemas(filter string) (*Scimv2schemalistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/schemas" - defaultReturn := new(Scimv2schemalistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["filter"] = a.Configuration.APIClient.ParameterToString(filter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimv2schemalistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Serviceproviderconfig invokes GET /api/v2/scim/v2/serviceproviderconfig -// -// Get a service provider's configuration -// -// -func (a SCIMApi) GetScimV2Serviceproviderconfig(ifNoneMatch string) (*Scimserviceproviderconfig, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/serviceproviderconfig" - defaultReturn := new(Scimserviceproviderconfig) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-None-Match" - headerParams["If-None-Match"] = ifNoneMatch - - var successPayload *Scimserviceproviderconfig - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2User invokes GET /api/v2/scim/v2/users/{userId} -// -// Get a user -// -// -func (a SCIMApi) GetScimV2User(userId string, attributes []string, excludedAttributes []string, ifNoneMatch string) (*Scimv2user, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->GetScimV2User") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-None-Match" - headerParams["If-None-Match"] = ifNoneMatch - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScimV2Users invokes GET /api/v2/scim/v2/users -// -// Get a list of users -// -// To return all active users, do not use a filter parameter. To return inactive users, set \"filter\" to \"active eq false\". By default, returns SCIM attributes externalId, enterprise-user:manager, and roles. To exclude these attributes, set \"attributes\" to \"id,active\" or \"excludeAttributes\" to \"externalId,roles,urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division\". -func (a SCIMApi) GetScimV2Users(startIndex int32, count int32, attributes []string, excludedAttributes []string, filter string) (*Scimuserlistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/users" - defaultReturn := new(Scimuserlistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["startIndex"] = a.Configuration.APIClient.ParameterToString(startIndex, collectionFormat) - - - - - collectionFormat = "" - queryParams["count"] = a.Configuration.APIClient.ParameterToString(count, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range attributes { - queryParams["attributes"] = value - } - } else { - queryParams["attributes"] = a.Configuration.APIClient.ParameterToString(attributes, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range excludedAttributes { - queryParams["excludedAttributes"] = value - } - } else { - queryParams["excludedAttributes"] = a.Configuration.APIClient.ParameterToString(excludedAttributes, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["filter"] = a.Configuration.APIClient.ParameterToString(filter, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scimuserlistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchScimGroup invokes PATCH /api/v2/scim/groups/{groupId} -// -// Modify a group -// -// -func (a SCIMApi) PatchScimGroup(groupId string, body Scimv2patchrequest, ifMatch string) (*Scimv2group, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->PatchScimGroup") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PatchScimGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchScimUser invokes PATCH /api/v2/scim/users/{userId} -// -// Modify a user -// -// -func (a SCIMApi) PatchScimUser(userId string, body Scimv2patchrequest, ifMatch string) (*Scimv2user, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->PatchScimUser") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PatchScimUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchScimV2Group invokes PATCH /api/v2/scim/v2/groups/{groupId} -// -// Modify a group -// -// -func (a SCIMApi) PatchScimV2Group(groupId string, body Scimv2patchrequest, ifMatch string) (*Scimv2group, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->PatchScimV2Group") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PatchScimV2Group") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchScimV2User invokes PATCH /api/v2/scim/v2/users/{userId} -// -// Modify a user -// -// -func (a SCIMApi) PatchScimV2User(userId string, body Scimv2patchrequest, ifMatch string) (*Scimv2user, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->PatchScimV2User") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PatchScimV2User") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostScimGroups invokes POST /api/v2/scim/groups -// -// The information used to create a group. -// -// PureCloud group will be created as \"Official\" group with visibility set \"Public\", and rules visibility True. Will auto-create an external ID if one is not provided on create. External ID is used to determine if delete should be allowed. -func (a SCIMApi) PostScimGroups(body Scimv2group) (*Scimv2group, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/groups" - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PostScimGroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostScimUsers invokes POST /api/v2/scim/users -// -// Create a user -// -// -func (a SCIMApi) PostScimUsers(body Scimv2createuser) (*Scimv2user, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/users" - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PostScimUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostScimV2Groups invokes POST /api/v2/scim/v2/groups -// -// The information used to create a group. -// -// PureCloud group will be created as \"Official\" group with visibility set \"Public\", and rules visibility True. Will auto-create an external ID if one is not provided on create. External ID is used to determine if delete should be allowed. -func (a SCIMApi) PostScimV2Groups(body Scimv2group) (*Scimv2group, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/groups" - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PostScimV2Groups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostScimV2Users invokes POST /api/v2/scim/v2/users -// -// Create a user -// -// -func (a SCIMApi) PostScimV2Users(body Scimv2createuser) (*Scimv2user, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/users" - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PostScimV2Users") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutScimGroup invokes PUT /api/v2/scim/groups/{groupId} -// -// Replace a group -// -// -func (a SCIMApi) PutScimGroup(groupId string, body Scimv2group, ifMatch string) (*Scimv2group, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->PutScimGroup") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PutScimGroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutScimUser invokes PUT /api/v2/scim/users/{userId} -// -// Replace a user -// -// -func (a SCIMApi) PutScimUser(userId string, body Scimv2user, ifMatch string) (*Scimv2user, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->PutScimUser") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PutScimUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutScimV2Group invokes PUT /api/v2/scim/v2/groups/{groupId} -// -// Replace a group -// -// -func (a SCIMApi) PutScimV2Group(groupId string, body Scimv2group, ifMatch string) (*Scimv2group, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/groups/{groupId}" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Scimv2group) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling SCIMApi->PutScimV2Group") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PutScimV2Group") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2group - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutScimV2User invokes PUT /api/v2/scim/v2/users/{userId} -// -// Replace a user -// -// -func (a SCIMApi) PutScimV2User(userId string, body Scimv2user, ifMatch string) (*Scimv2user, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scim/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Scimv2user) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling SCIMApi->PutScimV2User") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SCIMApi->PutScimV2User") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", "application/scim+json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", -"application/scim+json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - // header params "If-Match" - headerParams["If-Match"] = ifMatch - - // body params - postBody = &body - - var successPayload *Scimv2user - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/scimconfigresourcetype.go b/build/platformclientv2/scimconfigresourcetype.go deleted file mode 100644 index e010234ea..000000000 --- a/build/platformclientv2/scimconfigresourcetype.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimconfigresourcetype - Defines a SCIM resource. -type Scimconfigresourcetype struct { - // Id - The ID of the SCIM resource. Set by the service provider. \"caseExact\" is set to \"true\". \"Mutability\" is set to \"readOnly\". \"Returned\" is set to \"always\". - Id *string `json:"id,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - - - // Name - The name of the resource type. - Name *string `json:"name,omitempty"` - - - // Description - The description of the resource type. - Description *string `json:"description,omitempty"` - - - // Schema - The URI of the primary or base schema for the resource type. - Schema *string `json:"schema,omitempty"` - - - // SchemaExtensions - The list of schema extensions for the resource type. - SchemaExtensions *[]Scimconfigresourcetypeschemaextension `json:"schemaExtensions,omitempty"` - - - // Endpoint - The HTTP-addressable endpoint of the resource type. Appears after the base URL. - Endpoint *string `json:"endpoint,omitempty"` - - - // Meta - The metadata of the SCIM resource. - Meta *Scimmetadata `json:"meta,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimconfigresourcetype) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimconfigresourcetypeschemaextension.go b/build/platformclientv2/scimconfigresourcetypeschemaextension.go deleted file mode 100644 index 8e6f0c687..000000000 --- a/build/platformclientv2/scimconfigresourcetypeschemaextension.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimconfigresourcetypeschemaextension - Defines a SCIM resource type's schema extension. -type Scimconfigresourcetypeschemaextension struct { - // Schema - The URI of an extended schema, for example, \"urn:edu:2.0:Staff\". Must be equal to the \"id\" attribute of a schema. - Schema *string `json:"schema,omitempty"` - - - // Required - Indicates whether a schema extension is required. - Required *bool `json:"required,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimconfigresourcetypeschemaextension) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimconfigresourcetypeslistresponse.go b/build/platformclientv2/scimconfigresourcetypeslistresponse.go deleted file mode 100644 index 3660e15d4..000000000 --- a/build/platformclientv2/scimconfigresourcetypeslistresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimconfigresourcetypeslistresponse - Defines a response for a list of SCIM resource types. -type Scimconfigresourcetypeslistresponse struct { - // TotalResults - The total number of results. - TotalResults *int64 `json:"totalResults,omitempty"` - - - // StartIndex - The 1-based index of the first result returned by this request. Add this to \"itemsPerPage\" when requesting the next page of results. - StartIndex *int64 `json:"startIndex,omitempty"` - - - // ItemsPerPage - The number of resources returned per page. - ItemsPerPage *int64 `json:"itemsPerPage,omitempty"` - - - // Resources - The list of requested resources. - Resources *[]Scimconfigresourcetype `json:"Resources,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimconfigresourcetypeslistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimemail.go b/build/platformclientv2/scimemail.go deleted file mode 100644 index 19469bd9e..000000000 --- a/build/platformclientv2/scimemail.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimemail - Defines a SCIM email address. -type Scimemail struct { - // Value - The email address. - Value *string `json:"value,omitempty"` - - - // VarType - The type of email address. - VarType *string `json:"type,omitempty"` - - - // Primary - Indicates whether the email address is the primary email address. - Primary *bool `json:"primary,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimerror.go b/build/platformclientv2/scimerror.go deleted file mode 100644 index dc0ef2e21..000000000 --- a/build/platformclientv2/scimerror.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimerror - Defines a SCIM error. -type Scimerror struct { - // Status - The HTTP status code returned for the SCIM error. - Status *string `json:"status,omitempty"` - - - // ScimType - The type of SCIM error when httpStatus is a \"400\" error. - ScimType *string `json:"scimType,omitempty"` - - - // Detail - The detailed description of the SCIM error. - Detail *string `json:"detail,omitempty"` - - - // Schemas - The list of schemas for the SCIM error. - Schemas *[]string `json:"schemas,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimerror) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimgrouplistresponse.go b/build/platformclientv2/scimgrouplistresponse.go deleted file mode 100644 index 9d1ee1ab8..000000000 --- a/build/platformclientv2/scimgrouplistresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimgrouplistresponse - Defines a response for a list of SCIM groups. -type Scimgrouplistresponse struct { - // TotalResults - The total number of results. - TotalResults *int64 `json:"totalResults,omitempty"` - - - // StartIndex - The 1-based index of the first result returned by this request. Add this to \"itemsPerPage\" when requesting the next page of results. - StartIndex *int64 `json:"startIndex,omitempty"` - - - // ItemsPerPage - The number of resources returned per page. - ItemsPerPage *int64 `json:"itemsPerPage,omitempty"` - - - // Resources - The list of requested resources. If \"count\" is 0, then the list will be empty. - Resources *[]Scimv2group `json:"Resources,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimgrouplistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimmetadata.go b/build/platformclientv2/scimmetadata.go deleted file mode 100644 index b597cc7b0..000000000 --- a/build/platformclientv2/scimmetadata.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Scimmetadata - Defines the SCIM metadata. -type Scimmetadata struct { - // ResourceType - The type of SCIM resource. - ResourceType *string `json:"resourceType,omitempty"` - - - // LastModified - The last time that the resource was modified. Date time is represented as an ISO-8601 string, for example, yyyy-MM-ddTHH:mm:ss.SSSZ. - LastModified *time.Time `json:"lastModified,omitempty"` - - - // Location - The URI of the resource. - Location *string `json:"location,omitempty"` - - - // Version - The version of the resource. Matches the ETag HTTP response header. - Version *string `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimmetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimphonenumber.go b/build/platformclientv2/scimphonenumber.go deleted file mode 100644 index 42164dbc3..000000000 --- a/build/platformclientv2/scimphonenumber.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimphonenumber - Defines a SCIM phone number. -type Scimphonenumber struct { - // Value - The phone number in E.164 or tel URI format, for example, tel:+nnnnnnnn; ext=xxxxx. - Value *string `json:"value,omitempty"` - - - // VarType - The type of phone number. - VarType *string `json:"type,omitempty"` - - - // Primary - Indicates whether the phone number is the primary phone number. - Primary *bool `json:"primary,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimphonenumber) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimserviceproviderconfig.go b/build/platformclientv2/scimserviceproviderconfig.go deleted file mode 100644 index 2369fbccc..000000000 --- a/build/platformclientv2/scimserviceproviderconfig.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimserviceproviderconfig - Defines a SCIM service provider's configuration. -type Scimserviceproviderconfig struct { - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - - - // DocumentationUri - The HTTP-addressable URL that points to the service provider's documentation. - DocumentationUri *string `json:"documentationUri,omitempty"` - - - // Patch - The \"patch\" configuration options. - Patch *Scimserviceproviderconfigsimplefeature `json:"patch,omitempty"` - - - // Filter - The \"filter\" configuration options. - Filter *Scimserviceproviderconfigfilterfeature `json:"filter,omitempty"` - - - // Etag - The \"etag\" configuration options. - Etag *Scimserviceproviderconfigsimplefeature `json:"etag,omitempty"` - - - // Sort - The \"sort\" configuration options. - Sort *Scimserviceproviderconfigsimplefeature `json:"sort,omitempty"` - - - // Bulk - The \"bulk\" configuration options. - Bulk *Scimserviceproviderconfigbulkfeature `json:"bulk,omitempty"` - - - // ChangePassword - The \"changePassword\" configuration options. - ChangePassword *Scimserviceproviderconfigsimplefeature `json:"changePassword,omitempty"` - - - // AuthenticationSchemes - The list of supported authentication schemes. - AuthenticationSchemes *[]Scimserviceproviderconfigauthenticationscheme `json:"authenticationSchemes,omitempty"` - - - // Meta - The metadata of the SCIM resource. - Meta *Scimmetadata `json:"meta,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimserviceproviderconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimserviceproviderconfigauthenticationscheme.go b/build/platformclientv2/scimserviceproviderconfigauthenticationscheme.go deleted file mode 100644 index 5ba4e6ca1..000000000 --- a/build/platformclientv2/scimserviceproviderconfigauthenticationscheme.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimserviceproviderconfigauthenticationscheme - Defines an authentication scheme in the SCIM service provider's configuration. -type Scimserviceproviderconfigauthenticationscheme struct { - // Name - The name of the authentication scheme, for example, HTTP Basic. - Name *string `json:"name,omitempty"` - - - // Description - The description of the authentication scheme. - Description *string `json:"description,omitempty"` - - - // SpecUri - The HTTP-addressable URL that points to the authentication scheme's specification. - SpecUri *string `json:"specUri,omitempty"` - - - // DocumentationUri - The HTTP-addressable URL that points to the authentication scheme's usage documentation. - DocumentationUri *string `json:"documentationUri,omitempty"` - - - // VarType - The type of authentication scheme. - VarType *string `json:"type,omitempty"` - - - // Primary - Indicates whether this authentication scheme is the primary method of authentication. - Primary *bool `json:"primary,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimserviceproviderconfigauthenticationscheme) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimserviceproviderconfigbulkfeature.go b/build/platformclientv2/scimserviceproviderconfigbulkfeature.go deleted file mode 100644 index d8e36cca1..000000000 --- a/build/platformclientv2/scimserviceproviderconfigbulkfeature.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimserviceproviderconfigbulkfeature - Defines a \"bulk\" request in the SCIM service provider's configuration. -type Scimserviceproviderconfigbulkfeature struct { - // Supported - Indicates whether configuration options are supported. - Supported *bool `json:"supported,omitempty"` - - - // MaxOperations - The maximum number of operations for each bulk request. - MaxOperations *int32 `json:"maxOperations,omitempty"` - - - // MaxPayloadSize - The maximum payload size. - MaxPayloadSize *int32 `json:"maxPayloadSize,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimserviceproviderconfigbulkfeature) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimserviceproviderconfigfilterfeature.go b/build/platformclientv2/scimserviceproviderconfigfilterfeature.go deleted file mode 100644 index b59bee626..000000000 --- a/build/platformclientv2/scimserviceproviderconfigfilterfeature.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimserviceproviderconfigfilterfeature - Defines a \"filter\" request in the SCIM service provider's configuration. -type Scimserviceproviderconfigfilterfeature struct { - // Supported - Indicates whether configuration options are supported. - Supported *bool `json:"supported,omitempty"` - - - // MaxResults - The maximum number of results returned from a filtered query. - MaxResults *int32 `json:"maxResults,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimserviceproviderconfigfilterfeature) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimserviceproviderconfigsimplefeature.go b/build/platformclientv2/scimserviceproviderconfigsimplefeature.go deleted file mode 100644 index b32495a1a..000000000 --- a/build/platformclientv2/scimserviceproviderconfigsimplefeature.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimserviceproviderconfigsimplefeature - Defines a request in the SCIM service provider's configuration. -type Scimserviceproviderconfigsimplefeature struct { - // Supported - Indicates whether configuration options are supported. - Supported *bool `json:"supported,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimserviceproviderconfigsimplefeature) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimuserextensions.go b/build/platformclientv2/scimuserextensions.go deleted file mode 100644 index b9d7e3437..000000000 --- a/build/platformclientv2/scimuserextensions.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimuserextensions - SCIM PureCloud extensions of user. -type Scimuserextensions struct { - // RoutingSkills - Routing Skills assigned to user. No more than 50 skills may be assigned to a user. - RoutingSkills *[]Scimuserroutingskill `json:"routingSkills,omitempty"` - - - // RoutingLanguages - Routing Languages assigned to user. No more than 50 languages may be assigned to a user. - RoutingLanguages *[]Scimuserroutinglanguage `json:"routingLanguages,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimuserextensions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimuserlistresponse.go b/build/platformclientv2/scimuserlistresponse.go deleted file mode 100644 index cdb82c3c6..000000000 --- a/build/platformclientv2/scimuserlistresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimuserlistresponse - Defines a response for a list of SCIM users. -type Scimuserlistresponse struct { - // TotalResults - The total number of results. - TotalResults *int64 `json:"totalResults,omitempty"` - - - // StartIndex - The 1-based index of the first result returned by this request. Add this to \"itemsPerPage\" when requesting the next page of results. - StartIndex *int64 `json:"startIndex,omitempty"` - - - // ItemsPerPage - The number of resources returned per page. - ItemsPerPage *int64 `json:"itemsPerPage,omitempty"` - - - // Resources - The list of requested resources. If \"count\" is 0, then the list will be empty. - Resources *[]Scimv2user `json:"Resources,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimuserlistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimuserrole.go b/build/platformclientv2/scimuserrole.go deleted file mode 100644 index c48577c98..000000000 --- a/build/platformclientv2/scimuserrole.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimuserrole - Defines a user role. -type Scimuserrole struct { - // Value - Purecloud user role name - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimuserrole) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimuserroutinglanguage.go b/build/platformclientv2/scimuserroutinglanguage.go deleted file mode 100644 index 9eb091ec5..000000000 --- a/build/platformclientv2/scimuserroutinglanguage.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimuserroutinglanguage - Routing language assigned to user. -type Scimuserroutinglanguage struct { - // Name - Case-sensitive name identifying a language configured in routing languages. - Name *string `json:"name,omitempty"` - - - // Proficiency - Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular language. It is used when a queue is set to \"Best available language\" mode to allow acd interactions to target agents with higher proficiency ratings. - Proficiency *float64 `json:"proficiency,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimuserroutinglanguage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimuserroutingskill.go b/build/platformclientv2/scimuserroutingskill.go deleted file mode 100644 index becb0e9bd..000000000 --- a/build/platformclientv2/scimuserroutingskill.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimuserroutingskill - Routing skill assigned to user. -type Scimuserroutingskill struct { - // Name - Case-sensitive name identifying a skill configured in routing skills. - Name *string `json:"name,omitempty"` - - - // Proficiency - Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular skill. It is used when a queue is set to \"Best available skills\" mode to allow acd interactions to target agents with higher proficiency ratings. - Proficiency *float64 `json:"proficiency,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimuserroutingskill) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2createuser.go b/build/platformclientv2/scimv2createuser.go deleted file mode 100644 index e69f8be10..000000000 --- a/build/platformclientv2/scimv2createuser.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2createuser - Defines the creation of a SCIM user. -type Scimv2createuser struct { - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - - - // Active - Indicates whether the user's administrative status is active. - Active *bool `json:"active,omitempty"` - - - // UserName - The user's PureCloud email address. Must be unique. - UserName *string `json:"userName,omitempty"` - - - // DisplayName - The display name of the user. - DisplayName *string `json:"displayName,omitempty"` - - - // Password - The new password for the PureCloud user. Does not return an existing password. - Password *string `json:"password,omitempty"` - - - // Title - The user's title. - Title *string `json:"title,omitempty"` - - - // PhoneNumbers - The list of the user's phone numbers. - PhoneNumbers *[]Scimphonenumber `json:"phoneNumbers,omitempty"` - - - // Emails - The list of the user's email addresses. - Emails *[]Scimemail `json:"emails,omitempty"` - - - // ExternalId - The external ID of the user. Set by the provisioning client. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readWrite\". - ExternalId *string `json:"externalId,omitempty"` - - - // Groups - The list of groups that the user is a member of. - Groups *[]Scimv2groupreference `json:"groups,omitempty"` - - - // Roles - The list of roles assigned to the user. - Roles *[]Scimuserrole `json:"roles,omitempty"` - - - // UrnIetfParamsScimSchemasExtensionEnterprise20User - The URI of the schema for the enterprise user. - UrnIetfParamsScimSchemasExtensionEnterprise20User *Scimv2enterpriseuser `json:"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User,omitempty"` - - - // UrnIetfParamsScimSchemasExtensionGenesysPurecloud20User - UrnIetfParamsScimSchemasExtensionGenesysPurecloud20User *Scimuserextensions `json:"urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2createuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2enterpriseuser.go b/build/platformclientv2/scimv2enterpriseuser.go deleted file mode 100644 index 40598a51f..000000000 --- a/build/platformclientv2/scimv2enterpriseuser.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2enterpriseuser - Defines an SCIM enterprise user. -type Scimv2enterpriseuser struct { - // Division - The division that the user belongs to. - Division *string `json:"division,omitempty"` - - - // Department - The department that the user belongs to. - Department *string `json:"department,omitempty"` - - - // Manager - The user's manager. - Manager *Manager `json:"manager,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2enterpriseuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2group.go b/build/platformclientv2/scimv2group.go deleted file mode 100644 index f0bb0a762..000000000 --- a/build/platformclientv2/scimv2group.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2group - Defines a SCIM group. -type Scimv2group struct { - // Id - The ID of the SCIM resource. Set by the service provider. \"caseExact\" is set to \"true\". \"Mutability\" is set to \"readOnly\". \"Returned\" is set to \"always\". - Id *string `json:"id,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - - - // DisplayName - The display name of the group. - DisplayName *string `json:"displayName,omitempty"` - - - // ExternalId - The external ID of the group. Set by the provisioning client. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readWrite\". - ExternalId *string `json:"externalId,omitempty"` - - - // Members - The list of members in the group. - Members *[]Scimv2memberreference `json:"members,omitempty"` - - - // Meta - The metadata of the SCIM resource. - Meta *Scimmetadata `json:"meta,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2group) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2groupreference.go b/build/platformclientv2/scimv2groupreference.go deleted file mode 100644 index 712a49405..000000000 --- a/build/platformclientv2/scimv2groupreference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2groupreference - Defines a reference to SCIM groups. -type Scimv2groupreference struct { - // VarType - The type of SCIM resource. - VarType *string `json:"type,omitempty"` - - - // Value - The ID of the group member. Can be \"userId\" or \"groupId\". - Value *string `json:"value,omitempty"` - - - // Ref - The reference URI of the SCIM resource. - Ref *string `json:"$ref,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2groupreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2memberreference.go b/build/platformclientv2/scimv2memberreference.go deleted file mode 100644 index f73a48441..000000000 --- a/build/platformclientv2/scimv2memberreference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2memberreference - Defines a reference to SCIM group members. -type Scimv2memberreference struct { - // VarType - The type of SCIM resource. - VarType *string `json:"type,omitempty"` - - - // Value - The ID of the group member. Can be \"userId\" or \"groupId\". - Value *string `json:"value,omitempty"` - - - // Ref - The reference URI of the SCIM resource. - Ref *string `json:"$ref,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2memberreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2patchoperation.go b/build/platformclientv2/scimv2patchoperation.go deleted file mode 100644 index e0f63d02b..000000000 --- a/build/platformclientv2/scimv2patchoperation.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2patchoperation - Defines a SCIM PATCH operation. The path and value follow very specific rules based on operation types. See section 3.5.2 \"Modifying with PATCH\" in RFC 7644 for details. -type Scimv2patchoperation struct { - // Op - The PATCH operation to perform. - Op *string `json:"op,omitempty"` - - - // Path - The attribute path that describes the target of the operation. Required for a \"remove\" operation. - Path *string `json:"path,omitempty"` - - - // Value - The value to set in the path. - Value *Jsonnode `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2patchoperation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2patchrequest.go b/build/platformclientv2/scimv2patchrequest.go deleted file mode 100644 index 5b9a3b080..000000000 --- a/build/platformclientv2/scimv2patchrequest.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2patchrequest - Defines a SCIM PATCH request. See section 3.5.2 \"Modifying with PATCH\" in RFC 7644 for details. -type Scimv2patchrequest struct { - // Schemas - The list of schemas used in the PATCH request. - Schemas *[]string `json:"schemas,omitempty"` - - - // Operations - The list of operations to perform for the PATCH request. - Operations *[]Scimv2patchoperation `json:"Operations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2patchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2schemaattribute.go b/build/platformclientv2/scimv2schemaattribute.go deleted file mode 100644 index c94dbea2e..000000000 --- a/build/platformclientv2/scimv2schemaattribute.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2schemaattribute - A complex type that defines service provider attributes, or sub-attributes and their qualities. -type Scimv2schemaattribute struct { - // Name - The attribute's name - Name *string `json:"name,omitempty"` - - - // VarType - The attribute's data type. Valid values are \"string\", \"boolean\", \"decimal\", \"integer\", \"dateTime\", \"reference\", and \"complex\". - VarType *string `json:"type,omitempty"` - - - // SubAttributes - When an attribute is of type \"complex\", \"subAttributes\" defines a set of sub-attributes. \"subAttributes\" has the same schema sub-attributes as \"attributes\" - SubAttributes *[]Scimv2schemaattribute `json:"subAttributes,omitempty"` - - - // MultiValued - A Boolean value indicating the attribute's plurality. - MultiValued *bool `json:"multiValued,omitempty"` - - - // Description - The attribute's human-readable description. - Description *string `json:"description,omitempty"` - - - // Required - A Boolean value that specifies whether or not the attribute is required. - Required *bool `json:"required,omitempty"` - - - // CanonicalValues - A collection of suggested canonical values that MAY be used (e.g., \"work\" and \"home\"). In some cases, service providers MAY choose to ignore unsupported values. OPTIONAL. - CanonicalValues *[]string `json:"canonicalValues,omitempty"` - - - // CaseExact - A Boolean value that specifies whether or not a string attribute is case sensitive. The server SHALL use case sensitivity when evaluating filters. For attributes that are case exact, the server SHALL preserve case for any value submitted. If the attribute is case insensitive, the server MAY alter case for a submitted value. Case sensitivity also impacts how attribute values MAY be compared against filter values (see Section 3.4.2.2 of [RFC7644]) - CaseExact *bool `json:"caseExact,omitempty"` - - - // Mutability - A single keyword indicating the circumstances under which the value of the attribute can be (re)defined. Value are readOnly, readWrite, immutable, writeOnly - Mutability *string `json:"mutability,omitempty"` - - - // Returned - A single keyword that indicates when an attribute and associated values are returned in response to a GET request, or in response to a PUT, POST, or PATCH request. Valid keywords are as follows: always, never, default, request - Returned *string `json:"returned,omitempty"` - - - // Uniqueness - A single keyword value that specifies how the service provider enforces uniqueness of attribute values. A server MAY reject an invalid value based on uniqueness by returning HTTP response code 400 (Bad Request). A client MAY enforce uniqueness on the client side to a greater degree than the service provider enforces. For example, a client could make a value unique while the server has uniqueness of \"none\". Valid keywords are as follows: none, server, global - Uniqueness *string `json:"uniqueness,omitempty"` - - - // ReferenceTypes - A multi-valued array of JSON strings that indicate the SCIM resource types that may be referenced. Values include User, Group, external and uri. - ReferenceTypes *[]string `json:"referenceTypes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2schemaattribute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2schemadefinition.go b/build/platformclientv2/scimv2schemadefinition.go deleted file mode 100644 index d655c80b6..000000000 --- a/build/platformclientv2/scimv2schemadefinition.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2schemadefinition - A SCIM schema definition. -type Scimv2schemadefinition struct { - // Id - The ID of the SCIM resource. Set by the service provider. \"caseExact\" is set to \"true\". \"Mutability\" is set to \"readOnly\". \"Returned\" is set to \"always\". - Id *string `json:"id,omitempty"` - - - // Name - Schema name. - Name *string `json:"name,omitempty"` - - - // Description - Schema description. - Description *string `json:"description,omitempty"` - - - // Attributes - A complex type that defines service provider attributes and their qualities. - Attributes *[]Scimv2schemaattribute `json:"attributes,omitempty"` - - - // Meta - The metadata of the SCIM resource. - Meta *Scimmetadata `json:"meta,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2schemadefinition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2schemalistresponse.go b/build/platformclientv2/scimv2schemalistresponse.go deleted file mode 100644 index 15dd93a2a..000000000 --- a/build/platformclientv2/scimv2schemalistresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2schemalistresponse - SCIM Resource Types list response -type Scimv2schemalistresponse struct { - // TotalResults - The total number of results. - TotalResults *int64 `json:"totalResults,omitempty"` - - - // StartIndex - The 1-based index of the first result returned by this request. Add this to \"itemsPerPage\" when requesting the next page of results. - StartIndex *int64 `json:"startIndex,omitempty"` - - - // ItemsPerPage - The number of resources returned per page. - ItemsPerPage *int64 `json:"itemsPerPage,omitempty"` - - - // Resources - Resources - Resources *[]Scimv2schemadefinition `json:"Resources,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2schemalistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scimv2user.go b/build/platformclientv2/scimv2user.go deleted file mode 100644 index 2a584fc44..000000000 --- a/build/platformclientv2/scimv2user.go +++ /dev/null @@ -1,73 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scimv2user - Defines a SCIM user. -type Scimv2user struct { - // Id - The ID of the SCIM resource. Set by the service provider. \"caseExact\" is set to \"true\". \"Mutability\" is set to \"readOnly\". \"Returned\" is set to \"always\". - Id *string `json:"id,omitempty"` - - - // Schemas - The list of supported schemas. - Schemas *[]string `json:"schemas,omitempty"` - - - // Active - Indicates whether the user's administrative status is active. - Active *bool `json:"active,omitempty"` - - - // UserName - The user's PureCloud email address. Must be unique. - UserName *string `json:"userName,omitempty"` - - - // DisplayName - The display name of the user. - DisplayName *string `json:"displayName,omitempty"` - - - // Password - The new password for the PureCloud user. Does not return an existing password. - Password *string `json:"password,omitempty"` - - - // Title - The user's title. - Title *string `json:"title,omitempty"` - - - // PhoneNumbers - The list of the user's phone numbers. - PhoneNumbers *[]Scimphonenumber `json:"phoneNumbers,omitempty"` - - - // Emails - The list of the user's email addresses. - Emails *[]Scimemail `json:"emails,omitempty"` - - - // ExternalId - The external ID of the user. Set by the provisioning client. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readWrite\". - ExternalId *string `json:"externalId,omitempty"` - - - // Groups - The list of groups that the user is a member of. - Groups *[]Scimv2groupreference `json:"groups,omitempty"` - - - // Roles - The list of roles assigned to the user. - Roles *[]Scimuserrole `json:"roles,omitempty"` - - - // UrnIetfParamsScimSchemasExtensionEnterprise20User - The URI of the schema for the enterprise user. - UrnIetfParamsScimSchemasExtensionEnterprise20User *Scimv2enterpriseuser `json:"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User,omitempty"` - - - // UrnIetfParamsScimSchemasExtensionGenesysPurecloud20User - UrnIetfParamsScimSchemasExtensionGenesysPurecloud20User *Scimuserextensions `json:"urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User,omitempty"` - - - // Meta - The metadata of the SCIM resource. - Meta *Scimmetadata `json:"meta,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scimv2user) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scorablesurvey.go b/build/platformclientv2/scorablesurvey.go deleted file mode 100644 index 8e278dfc5..000000000 --- a/build/platformclientv2/scorablesurvey.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scorablesurvey -type Scorablesurvey struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SurveyForm - Survey form used for this survey. - SurveyForm *Surveyform `json:"surveyForm,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // Answers - Answers *Surveyscoringset `json:"answers,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scorablesurvey) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scoredagent.go b/build/platformclientv2/scoredagent.go deleted file mode 100644 index 3486e3227..000000000 --- a/build/platformclientv2/scoredagent.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scoredagent -type Scoredagent struct { - // Agent - The agent - Agent *Addressableentityref `json:"agent,omitempty"` - - - // Score - Agent's score for the current conversation, from 0 - 100, higher being better - Score *int32 `json:"score,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scoredagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/screenrecordingsession.go b/build/platformclientv2/screenrecordingsession.go deleted file mode 100644 index 29ff471e3..000000000 --- a/build/platformclientv2/screenrecordingsession.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Screenrecordingsession -type Screenrecordingsession struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // CommunicationId - The id of the communication that is being recorded on the conversation - CommunicationId *string `json:"communicationId,omitempty"` - - - // Conversation - Conversation *Conversation `json:"conversation,omitempty"` - - - // StartTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Screenrecordingsession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/screenrecordingsessionlisting.go b/build/platformclientv2/screenrecordingsessionlisting.go deleted file mode 100644 index 5d79b0b9b..000000000 --- a/build/platformclientv2/screenrecordingsessionlisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Screenrecordingsessionlisting -type Screenrecordingsessionlisting struct { - // Entities - Entities *[]Screenrecordingsession `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Screenrecordingsessionlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/screenrecordingsessionrequest.go b/build/platformclientv2/screenrecordingsessionrequest.go deleted file mode 100644 index 3c86e56ae..000000000 --- a/build/platformclientv2/screenrecordingsessionrequest.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Screenrecordingsessionrequest -type Screenrecordingsessionrequest struct { - // State - The screen recording session's state. Values can be: 'stopped' - State *string `json:"state,omitempty"` - - - // ArchiveDate - The screen recording session's archive date. Must be greater than 1 day from now if set. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ArchiveDate *time.Time `json:"archiveDate,omitempty"` - - - // DeleteDate - The screen recording session's delete date. Must be greater than archiveDate if set, otherwise one day from now. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DeleteDate *time.Time `json:"deleteDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Screenrecordingsessionrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/screenshare.go b/build/platformclientv2/screenshare.go deleted file mode 100644 index 514aca767..000000000 --- a/build/platformclientv2/screenshare.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Screenshare -type Screenshare struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Context - The room id context (xmpp jid) for the conference session. - Context *string `json:"context,omitempty"` - - - // Sharing - Indicates whether this participant is sharing their screen. - Sharing *bool `json:"sharing,omitempty"` - - - // PeerCount - The number of peer participants from the perspective of the participant in the conference. - PeerCount *int32 `json:"peerCount,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Provider - The source provider for the screen share. - Provider *string `json:"provider,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // Segments - The time line of the participant's call, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Screenshare) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/script.go b/build/platformclientv2/script.go deleted file mode 100644 index 4204e3099..000000000 --- a/build/platformclientv2/script.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Script -type Script struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VersionId - VersionId *string `json:"versionId,omitempty"` - - - // CreatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // PublishedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - PublishedDate *time.Time `json:"publishedDate,omitempty"` - - - // VersionDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - VersionDate *time.Time `json:"versionDate,omitempty"` - - - // StartPageId - StartPageId *string `json:"startPageId,omitempty"` - - - // StartPageName - StartPageName *string `json:"startPageName,omitempty"` - - - // Features - Features *map[string]interface{} `json:"features,omitempty"` - - - // Variables - Variables *map[string]interface{} `json:"variables,omitempty"` - - - // CustomActions - CustomActions *map[string]interface{} `json:"customActions,omitempty"` - - - // Pages - Pages *[]Page `json:"pages,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Script) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scriptentitylisting.go b/build/platformclientv2/scriptentitylisting.go deleted file mode 100644 index b31b1934c..000000000 --- a/build/platformclientv2/scriptentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Scriptentitylisting -type Scriptentitylisting struct { - // Entities - Entities *[]Script `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Scriptentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/scriptsapi.go b/build/platformclientv2/scriptsapi.go deleted file mode 100644 index 4b4b4c525..000000000 --- a/build/platformclientv2/scriptsapi.go +++ /dev/null @@ -1,968 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// ScriptsApi provides functions for API endpoints -type ScriptsApi struct { - Configuration *Configuration -} - -// NewScriptsApi creates an API instance using the default configuration -func NewScriptsApi() *ScriptsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating ScriptsApi with base path: %s", strings.ToLower(config.BasePath))) - return &ScriptsApi{ - Configuration: config, - } -} - -// NewScriptsApiWithConfig creates an API instance using the provided configuration -func NewScriptsApiWithConfig(config *Configuration) *ScriptsApi { - config.Debugf("Creating ScriptsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &ScriptsApi{ - Configuration: config, - } -} - -// GetScript invokes GET /api/v2/scripts/{scriptId} -// -// Get a script -// -// -func (a ScriptsApi) GetScript(scriptId string) (*Script, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/{scriptId}" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - defaultReturn := new(Script) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScript") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Script - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptPage invokes GET /api/v2/scripts/{scriptId}/pages/{pageId} -// -// Get a page -// -// -func (a ScriptsApi) GetScriptPage(scriptId string, pageId string, scriptDataVersion string) (*Page, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/{scriptId}/pages/{pageId}" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - path = strings.Replace(path, "{pageId}", fmt.Sprintf("%v", pageId), -1) - defaultReturn := new(Page) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScriptPage") - } - // verify the required parameter 'pageId' is set - if &pageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'pageId' when calling ScriptsApi->GetScriptPage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Page - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptPages invokes GET /api/v2/scripts/{scriptId}/pages -// -// Get the list of pages -// -// -func (a ScriptsApi) GetScriptPages(scriptId string, scriptDataVersion string) ([]Page, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/{scriptId}/pages" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - defaultReturn := make([]Page, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScriptPages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Page - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScripts invokes GET /api/v2/scripts -// -// Get the list of scripts -// -// -func (a ScriptsApi) GetScripts(pageSize int32, pageNumber int32, expand string, name string, feature string, flowId string, sortBy string, sortOrder string, scriptDataVersion string) (*Scriptentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts" - defaultReturn := new(Scriptentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["feature"] = a.Configuration.APIClient.ParameterToString(feature, collectionFormat) - - - - - collectionFormat = "" - queryParams["flowId"] = a.Configuration.APIClient.ParameterToString(flowId, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scriptentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptsPublished invokes GET /api/v2/scripts/published -// -// Get the published scripts. -// -// -func (a ScriptsApi) GetScriptsPublished(pageSize int32, pageNumber int32, expand string, name string, feature string, flowId string, scriptDataVersion string) (*Scriptentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/published" - defaultReturn := new(Scriptentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["feature"] = a.Configuration.APIClient.ParameterToString(feature, collectionFormat) - - - - - collectionFormat = "" - queryParams["flowId"] = a.Configuration.APIClient.ParameterToString(flowId, collectionFormat) - - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Scriptentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptsPublishedScriptId invokes GET /api/v2/scripts/published/{scriptId} -// -// Get the published script. -// -// -func (a ScriptsApi) GetScriptsPublishedScriptId(scriptId string, scriptDataVersion string) (*Script, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/published/{scriptId}" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - defaultReturn := new(Script) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScriptsPublishedScriptId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Script - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptsPublishedScriptIdPage invokes GET /api/v2/scripts/published/{scriptId}/pages/{pageId} -// -// Get the published page. -// -// -func (a ScriptsApi) GetScriptsPublishedScriptIdPage(scriptId string, pageId string, scriptDataVersion string) (*Page, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/published/{scriptId}/pages/{pageId}" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - path = strings.Replace(path, "{pageId}", fmt.Sprintf("%v", pageId), -1) - defaultReturn := new(Page) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScriptsPublishedScriptIdPage") - } - // verify the required parameter 'pageId' is set - if &pageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'pageId' when calling ScriptsApi->GetScriptsPublishedScriptIdPage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Page - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptsPublishedScriptIdPages invokes GET /api/v2/scripts/published/{scriptId}/pages -// -// Get the list of published pages -// -// -func (a ScriptsApi) GetScriptsPublishedScriptIdPages(scriptId string, scriptDataVersion string) ([]Page, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/published/{scriptId}/pages" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - defaultReturn := make([]Page, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScriptsPublishedScriptIdPages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Page - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptsPublishedScriptIdVariables invokes GET /api/v2/scripts/published/{scriptId}/variables -// -// Get the published variables -// -// -func (a ScriptsApi) GetScriptsPublishedScriptIdVariables(scriptId string, input string, output string, varType string, scriptDataVersion string) (*map[string]interface{}, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/published/{scriptId}/variables" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - defaultReturn := new(map[string]interface{}) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->GetScriptsPublishedScriptIdVariables") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["input"] = a.Configuration.APIClient.ParameterToString(input, collectionFormat) - - - - - collectionFormat = "" - queryParams["output"] = a.Configuration.APIClient.ParameterToString(output, collectionFormat) - - - - - collectionFormat = "" - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - - - - - collectionFormat = "" - queryParams["scriptDataVersion"] = a.Configuration.APIClient.ParameterToString(scriptDataVersion, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *map[string]interface{} - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetScriptsUploadStatus invokes GET /api/v2/scripts/uploads/{uploadId}/status -// -// Get the upload status of an imported script -// -// -func (a ScriptsApi) GetScriptsUploadStatus(uploadId string, longPoll bool) (*Importscriptstatusresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/uploads/{uploadId}/status" - path = strings.Replace(path, "{uploadId}", fmt.Sprintf("%v", uploadId), -1) - defaultReturn := new(Importscriptstatusresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'uploadId' is set - if &uploadId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'uploadId' when calling ScriptsApi->GetScriptsUploadStatus") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["longPoll"] = a.Configuration.APIClient.ParameterToString(longPoll, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Importscriptstatusresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostScriptExport invokes POST /api/v2/scripts/{scriptId}/export -// -// Export a script via download service. -// -// -func (a ScriptsApi) PostScriptExport(scriptId string, body Exportscriptrequest) (*Exportscriptresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/scripts/{scriptId}/export" - path = strings.Replace(path, "{scriptId}", fmt.Sprintf("%v", scriptId), -1) - defaultReturn := new(Exportscriptresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'scriptId' is set - if &scriptId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scriptId' when calling ScriptsApi->PostScriptExport") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Exportscriptresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/searchaggregation.go b/build/platformclientv2/searchaggregation.go deleted file mode 100644 index 657bcbf27..000000000 --- a/build/platformclientv2/searchaggregation.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Searchaggregation -type Searchaggregation struct { - // Field - The field used for aggregation - Field *string `json:"field,omitempty"` - - - // Name - The name of the aggregation. The response aggregation uses this name. - Name *string `json:"name,omitempty"` - - - // VarType - The type of aggregation to perform - VarType *string `json:"type,omitempty"` - - - // Value - A value to use for aggregation - Value *string `json:"value,omitempty"` - - - // Size - The number aggregations results to return out of the entire result set - Size *int32 `json:"size,omitempty"` - - - // Order - The order in which aggregation results are sorted - Order *[]string `json:"order,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Searchaggregation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/searchapi.go b/build/platformclientv2/searchapi.go deleted file mode 100644 index dd5a2d4fc..000000000 --- a/build/platformclientv2/searchapi.go +++ /dev/null @@ -1,1288 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// SearchApi provides functions for API endpoints -type SearchApi struct { - Configuration *Configuration -} - -// NewSearchApi creates an API instance using the default configuration -func NewSearchApi() *SearchApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating SearchApi with base path: %s", strings.ToLower(config.BasePath))) - return &SearchApi{ - Configuration: config, - } -} - -// NewSearchApiWithConfig creates an API instance using the provided configuration -func NewSearchApiWithConfig(config *Configuration) *SearchApi { - config.Debugf("Creating SearchApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &SearchApi{ - Configuration: config, - } -} - -// GetDocumentationGknSearch invokes GET /api/v2/documentation/gkn/search -// -// Search gkn documentation using the q64 value returned from a previous search -// -// -func (a SearchApi) GetDocumentationGknSearch(q64 string) (*Gkndocumentationsearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/documentation/gkn/search" - defaultReturn := new(Gkndocumentationsearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetDocumentationGknSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Gkndocumentationsearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetDocumentationSearch invokes GET /api/v2/documentation/search -// -// Search documentation using the q64 value returned from a previous search -// -// -func (a SearchApi) GetDocumentationSearch(q64 string) (*Documentationsearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/documentation/search" - defaultReturn := new(Documentationsearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetDocumentationSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Documentationsearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetGroupsSearch invokes GET /api/v2/groups/search -// -// Search groups using the q64 value returned from a previous search -// -// -func (a SearchApi) GetGroupsSearch(q64 string, expand []string) (*Groupssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/search" - defaultReturn := new(Groupssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetGroupsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Groupssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetLocationsSearch invokes GET /api/v2/locations/search -// -// Search locations using the q64 value returned from a previous search -// -// -func (a SearchApi) GetLocationsSearch(q64 string, expand []string) (*Locationssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/search" - defaultReturn := new(Locationssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetLocationsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Locationssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetSearch invokes GET /api/v2/search -// -// Search using the q64 value returned from a previous search. -// -// -func (a SearchApi) GetSearch(q64 string, expand []string, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetSearchSuggest invokes GET /api/v2/search/suggest -// -// Suggest resources using the q64 value returned from a previous suggest query. -// -// -func (a SearchApi) GetSearchSuggest(q64 string, expand []string, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search/suggest" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetSearchSuggest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUsersSearch invokes GET /api/v2/users/search -// -// Search users using the q64 value returned from a previous search -// -// -func (a SearchApi) GetUsersSearch(q64 string, expand []string) (*Userssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/search" - defaultReturn := new(Userssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetUsersSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailSearch invokes GET /api/v2/voicemail/search -// -// Search voicemails using the q64 value returned from a previous search -// -// -func (a SearchApi) GetVoicemailSearch(q64 string, expand []string) (*Voicemailssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/search" - defaultReturn := new(Voicemailssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SearchApi->GetVoicemailSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostDocumentationGknSearch invokes POST /api/v2/documentation/gkn/search -// -// Search gkn documentation -// -// -func (a SearchApi) PostDocumentationGknSearch(body Gkndocumentationsearchrequest) (*Gkndocumentationsearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/documentation/gkn/search" - defaultReturn := new(Gkndocumentationsearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostDocumentationGknSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Gkndocumentationsearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostDocumentationSearch invokes POST /api/v2/documentation/search -// -// Search documentation -// -// -func (a SearchApi) PostDocumentationSearch(body Documentationsearchrequest) (*Documentationsearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/documentation/search" - defaultReturn := new(Documentationsearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostDocumentationSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Documentationsearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostGroupsSearch invokes POST /api/v2/groups/search -// -// Search groups -// -// -func (a SearchApi) PostGroupsSearch(body Groupsearchrequest) (*Groupssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/groups/search" - defaultReturn := new(Groupssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostGroupsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Groupssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostLocationsSearch invokes POST /api/v2/locations/search -// -// Search locations -// -// -func (a SearchApi) PostLocationsSearch(body Locationsearchrequest) (*Locationssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/locations/search" - defaultReturn := new(Locationssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostLocationsSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Locationssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostSearch invokes POST /api/v2/search -// -// Search resources. -// -// -func (a SearchApi) PostSearch(body Searchrequest, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostSearchSuggest invokes POST /api/v2/search/suggest -// -// Suggest resources. -// -// -func (a SearchApi) PostSearchSuggest(body Suggestsearchrequest, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search/suggest" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostSearchSuggest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUsersSearch invokes POST /api/v2/users/search -// -// Search users -// -// -func (a SearchApi) PostUsersSearch(body Usersearchrequest) (*Userssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/search" - defaultReturn := new(Userssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostUsersSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostVoicemailSearch invokes POST /api/v2/voicemail/search -// -// Search voicemails -// -// -func (a SearchApi) PostVoicemailSearch(body Voicemailsearchrequest) (*Voicemailssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/search" - defaultReturn := new(Voicemailssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SearchApi->PostVoicemailSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/searchcriteria.go b/build/platformclientv2/searchcriteria.go deleted file mode 100644 index 7461c3dee..000000000 --- a/build/platformclientv2/searchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Searchcriteria -type Searchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Searchcriteria `json:"group,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Searchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/searchrequest.go b/build/platformclientv2/searchrequest.go deleted file mode 100644 index 7da72176c..000000000 --- a/build/platformclientv2/searchrequest.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Searchrequest -type Searchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // ReturnFields - A List of strings. Possible values are any field in the resource you are searching on. The other option is to use ALL_FIELDS, when this is provided all fields in the resource will be returned in the search results. - ReturnFields *[]string `json:"returnFields,omitempty"` - - - // Expand - Provides more details about a specified resource - Expand *[]string `json:"expand,omitempty"` - - - // Types - Resource domain type to search - Types *[]string `json:"types,omitempty"` - - - // Query - The search criteria - Query *[]Searchcriteria `json:"query,omitempty"` - - - // Aggregations - Aggregation criteria - Aggregations *[]Searchaggregation `json:"aggregations,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Searchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/searchsort.go b/build/platformclientv2/searchsort.go deleted file mode 100644 index c43412ef4..000000000 --- a/build/platformclientv2/searchsort.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Searchsort -type Searchsort struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Searchsort) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/section.go b/build/platformclientv2/section.go deleted file mode 100644 index 43f611cae..000000000 --- a/build/platformclientv2/section.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Section -type Section struct { - // FieldList - FieldList *[]Fieldlist `json:"fieldList,omitempty"` - - - // InstructionText - InstructionText *string `json:"instructionText,omitempty"` - - - // Key - Key *string `json:"key,omitempty"` - - - // State - State *string `json:"state,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Section) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/securesession.go b/build/platformclientv2/securesession.go deleted file mode 100644 index c2670df86..000000000 --- a/build/platformclientv2/securesession.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Securesession -type Securesession struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Flow - The flow to execute securely - Flow *Domainentityref `json:"flow,omitempty"` - - - // UserData - Customer-provided data - UserData *string `json:"userData,omitempty"` - - - // State - The current state of a secure session - State *string `json:"state,omitempty"` - - - // SourceParticipantId - Unique identifier for the participant initiating the secure session. - SourceParticipantId *string `json:"sourceParticipantId,omitempty"` - - - // Disconnect - If true, disconnect the agent after creating the session - Disconnect *bool `json:"disconnect,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Securesession) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/securesessionentitylisting.go b/build/platformclientv2/securesessionentitylisting.go deleted file mode 100644 index 50eacf657..000000000 --- a/build/platformclientv2/securesessionentitylisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Securesessionentitylisting -type Securesessionentitylisting struct { - // Entities - Entities *[]Securesession `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Securesessionentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/securityprofile.go b/build/platformclientv2/securityprofile.go deleted file mode 100644 index 4c600d381..000000000 --- a/build/platformclientv2/securityprofile.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Securityprofile -type Securityprofile struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Permissions - Permissions *[]string `json:"permissions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Securityprofile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/securityprofileentitylisting.go b/build/platformclientv2/securityprofileentitylisting.go deleted file mode 100644 index 9533f3144..000000000 --- a/build/platformclientv2/securityprofileentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Securityprofileentitylisting -type Securityprofileentitylisting struct { - // Entities - Entities *[]Securityprofile `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Securityprofileentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/segment.go b/build/platformclientv2/segment.go deleted file mode 100644 index 3df47f6e5..000000000 --- a/build/platformclientv2/segment.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Segment -type Segment struct { - // StartTime - The timestamp when this segment began. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartTime *time.Time `json:"startTime,omitempty"` - - - // EndTime - The timestamp when this segment ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // VarType - The activity taking place for the participant in the segment. - VarType *string `json:"type,omitempty"` - - - // HowEnded - A description of the event that ended the segment. - HowEnded *string `json:"howEnded,omitempty"` - - - // DisconnectType - A description of the event that disconnected the segment - DisconnectType *string `json:"disconnectType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Segment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/segmentdetailqueryclause.go b/build/platformclientv2/segmentdetailqueryclause.go deleted file mode 100644 index bcfa3288f..000000000 --- a/build/platformclientv2/segmentdetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Segmentdetailqueryclause -type Segmentdetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Segmentdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Segmentdetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/segmentdetailqueryfilter.go b/build/platformclientv2/segmentdetailqueryfilter.go deleted file mode 100644 index 328bfc42d..000000000 --- a/build/platformclientv2/segmentdetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Segmentdetailqueryfilter -type Segmentdetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Segmentdetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Segmentdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Segmentdetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/segmentdetailquerypredicate.go b/build/platformclientv2/segmentdetailquerypredicate.go deleted file mode 100644 index 71894432b..000000000 --- a/build/platformclientv2/segmentdetailquerypredicate.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Segmentdetailquerypredicate -type Segmentdetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // PropertyType - Left hand side for property predicates - PropertyType *string `json:"propertyType,omitempty"` - - - // Property - Left hand side for property predicates - Property *string `json:"property,omitempty"` - - - // Metric - Left hand side for metric predicates - Metric *string `json:"metric,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension, metric, or property predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension, metric, or property predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Segmentdetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/selectedcolumns.go b/build/platformclientv2/selectedcolumns.go deleted file mode 100644 index ef8b151fe..000000000 --- a/build/platformclientv2/selectedcolumns.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Selectedcolumns -type Selectedcolumns struct { - // ColumnOrder - Indicates the order/position of the selected column - ColumnOrder *int32 `json:"columnOrder,omitempty"` - - - // ColumnName - Indicates enum name of the column from the export view - ColumnName *string `json:"columnName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Selectedcolumns) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sendagentlessoutboundmessagerequest.go b/build/platformclientv2/sendagentlessoutboundmessagerequest.go deleted file mode 100644 index 38dc36416..000000000 --- a/build/platformclientv2/sendagentlessoutboundmessagerequest.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Sendagentlessoutboundmessagerequest -type Sendagentlessoutboundmessagerequest struct { - // FromAddress - The messaging address of the sender of the message. For an SMS messenger type, this must be a currently provisioned sms phone number. - FromAddress *string `json:"fromAddress,omitempty"` - - - // ToAddress - The messaging address of the recipient of the message. For an SMS messenger type, the phone number address must be in E.164 format. E.g. +13175555555 or +34234234234 - ToAddress *string `json:"toAddress,omitempty"` - - - // ToAddressMessengerType - The recipient messaging address messenger type. - ToAddressMessengerType *string `json:"toAddressMessengerType,omitempty"` - - - // TextBody - The text of the message to send - TextBody *string `json:"textBody,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sendagentlessoutboundmessagerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sendagentlessoutboundmessageresponse.go b/build/platformclientv2/sendagentlessoutboundmessageresponse.go deleted file mode 100644 index 857a75522..000000000 --- a/build/platformclientv2/sendagentlessoutboundmessageresponse.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Sendagentlessoutboundmessageresponse -type Sendagentlessoutboundmessageresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // ConversationId - The identifier of the conversation. - ConversationId *string `json:"conversationId,omitempty"` - - - // FromAddress - The sender of the text message. - FromAddress *string `json:"fromAddress,omitempty"` - - - // ToAddress - The recipient of the text message. - ToAddress *string `json:"toAddress,omitempty"` - - - // MessengerType - Type of text messenger. - MessengerType *string `json:"messengerType,omitempty"` - - - // TextBody - The body of the text message. - TextBody *string `json:"textBody,omitempty"` - - - // Timestamp - The time when the message was sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // User - Details of the user created the job - User *Addressableentityref `json:"user,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sendagentlessoutboundmessageresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sequenceschedule.go b/build/platformclientv2/sequenceschedule.go deleted file mode 100644 index 812488bf8..000000000 --- a/build/platformclientv2/sequenceschedule.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Sequenceschedule -type Sequenceschedule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // Intervals - A list of intervals during which to run the associated CampaignSequence. - Intervals *[]Scheduleinterval `json:"intervals,omitempty"` - - - // TimeZone - The time zone for this SequenceSchedule. For example, Africa/Abidjan. - TimeZone *string `json:"timeZone,omitempty"` - - - // Sequence - The CampaignSequence that this SequenceSchedule is for. - Sequence *Domainentityref `json:"sequence,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sequenceschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/serverdate.go b/build/platformclientv2/serverdate.go deleted file mode 100644 index 6b0014ebf..000000000 --- a/build/platformclientv2/serverdate.go +++ /dev/null @@ -1,18 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Serverdate -type Serverdate struct { - // CurrentDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CurrentDate *time.Time `json:"currentDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Serverdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/servicecontext.go b/build/platformclientv2/servicecontext.go deleted file mode 100644 index 7d0ff3f41..000000000 --- a/build/platformclientv2/servicecontext.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Servicecontext -type Servicecontext struct { - // Name - Unused field for the purpose of ensuring a Swagger definition is created for a class with only @JsonIgnore members. - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Servicecontext) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/servicegoalgroup.go b/build/platformclientv2/servicegoalgroup.go deleted file mode 100644 index 6e862b67d..000000000 --- a/build/platformclientv2/servicegoalgroup.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Servicegoalgroup - Service Goal Group -type Servicegoalgroup struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Goals - Goals defined for this service goal group - Goals *Servicegoalgroupgoals `json:"goals,omitempty"` - - - // QueueMediaAssociations - List of queues and media types from that queue to associate with this service goal group - QueueMediaAssociations *[]Queuemediaassociation `json:"queueMediaAssociations,omitempty"` - - - // Metadata - Version metadata for the list of service goal groups for the associated management unit - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Servicegoalgroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/servicegoalgroupgoals.go b/build/platformclientv2/servicegoalgroupgoals.go deleted file mode 100644 index 89e496e93..000000000 --- a/build/platformclientv2/servicegoalgroupgoals.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Servicegoalgroupgoals - Goals defined for the service goal group -type Servicegoalgroupgoals struct { - // ServiceLevel - Service level targets for this service goal group - ServiceLevel *Wfmservicelevel `json:"serviceLevel,omitempty"` - - - // AverageSpeedOfAnswer - Average speed of answer targets for this service goal group - AverageSpeedOfAnswer *Wfmaveragespeedofanswer `json:"averageSpeedOfAnswer,omitempty"` - - - // AbandonRate - Abandon rate targets for this service goal group - AbandonRate *Wfmabandonrate `json:"abandonRate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Servicegoalgroupgoals) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/servicegoalgrouplist.go b/build/platformclientv2/servicegoalgrouplist.go deleted file mode 100644 index a5d40e99c..000000000 --- a/build/platformclientv2/servicegoalgrouplist.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Servicegoalgrouplist - List of service goal groups -type Servicegoalgrouplist struct { - // Entities - Entities *[]Servicegoalgroup `json:"entities,omitempty"` - - - // Metadata - Version metadata for the list of service goal groups for the associated management unit - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Servicegoalgrouplist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/servicelevel.go b/build/platformclientv2/servicelevel.go deleted file mode 100644 index b58e1c016..000000000 --- a/build/platformclientv2/servicelevel.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Servicelevel -type Servicelevel struct { - // Percentage - Percentage *float64 `json:"percentage,omitempty"` - - - // DurationMs - DurationMs *int64 `json:"durationMs,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Servicelevel) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/setuuidatarequest.go b/build/platformclientv2/setuuidatarequest.go deleted file mode 100644 index a9a05b2d9..000000000 --- a/build/platformclientv2/setuuidatarequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Setuuidatarequest -type Setuuidatarequest struct { - // UuiData - The value of the uuiData to set. - UuiData *string `json:"uuiData,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Setuuidatarequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/setwrapperdayofweek.go b/build/platformclientv2/setwrapperdayofweek.go deleted file mode 100644 index f9485e4dc..000000000 --- a/build/platformclientv2/setwrapperdayofweek.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Setwrapperdayofweek -type Setwrapperdayofweek struct { - // Values - Values *[]string `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Setwrapperdayofweek) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/share.go b/build/platformclientv2/share.go deleted file mode 100644 index 649be53db..000000000 --- a/build/platformclientv2/share.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Share -type Share struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SharedEntityType - SharedEntityType *string `json:"sharedEntityType,omitempty"` - - - // SharedEntity - SharedEntity *Domainentityref `json:"sharedEntity,omitempty"` - - - // MemberType - MemberType *string `json:"memberType,omitempty"` - - - // Member - Member *Domainentityref `json:"member,omitempty"` - - - // SharedBy - SharedBy *Domainentityref `json:"sharedBy,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // Group - Group *Group `json:"group,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Share) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sharedentity.go b/build/platformclientv2/sharedentity.go deleted file mode 100644 index 8553f7d1f..000000000 --- a/build/platformclientv2/sharedentity.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Sharedentity -type Sharedentity struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sharedentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sharedresponse.go b/build/platformclientv2/sharedresponse.go deleted file mode 100644 index 452eacf87..000000000 --- a/build/platformclientv2/sharedresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Sharedresponse -type Sharedresponse struct { - // Id - Id *string `json:"id,omitempty"` - - - // DownloadUri - DownloadUri *string `json:"downloadUri,omitempty"` - - - // ViewUri - ViewUri *string `json:"viewUri,omitempty"` - - - // Document - Document *Document `json:"document,omitempty"` - - - // Share - Share *Share `json:"share,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sharedresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shareentitylisting.go b/build/platformclientv2/shareentitylisting.go deleted file mode 100644 index 7e2447744..000000000 --- a/build/platformclientv2/shareentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shareentitylisting -type Shareentitylisting struct { - // Entities - Entities *[]Share `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shareentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shiftstartvariance.go b/build/platformclientv2/shiftstartvariance.go deleted file mode 100644 index c4e90ac58..000000000 --- a/build/platformclientv2/shiftstartvariance.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shiftstartvariance - Variance in minutes among start times of shifts in work plan -type Shiftstartvariance struct { - // ApplicableDays - Days for which shift start variance is configured - ApplicableDays *[]string `json:"applicableDays,omitempty"` - - - // MaxShiftStartVarianceMinutes - Maximum variance in minutes across shift starts - MaxShiftStartVarianceMinutes *int32 `json:"maxShiftStartVarianceMinutes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shiftstartvariance) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shifttradeactivityrule.go b/build/platformclientv2/shifttradeactivityrule.go deleted file mode 100644 index 9ebb29816..000000000 --- a/build/platformclientv2/shifttradeactivityrule.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shifttradeactivityrule -type Shifttradeactivityrule struct { - // ActivityCategory - The activity category to which to apply this rule - ActivityCategory *string `json:"activityCategory,omitempty"` - - - // Action - The action this rule invokes - Action *string `json:"action,omitempty"` - - - // ActivityCodeIdReplacement - The activity code ID with which to replace activities belonging to the original category if applicable (required if action == Replace, must be a default activity code ID) - ActivityCodeIdReplacement *string `json:"activityCodeIdReplacement,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shifttradeactivityrule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shifttradelistresponse.go b/build/platformclientv2/shifttradelistresponse.go deleted file mode 100644 index d2f9af6cc..000000000 --- a/build/platformclientv2/shifttradelistresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shifttradelistresponse -type Shifttradelistresponse struct { - // Entities - Entities *[]Shifttraderesponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shifttradelistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shifttradematchessummaryresponse.go b/build/platformclientv2/shifttradematchessummaryresponse.go deleted file mode 100644 index c1c2c4b3a..000000000 --- a/build/platformclientv2/shifttradematchessummaryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shifttradematchessummaryresponse -type Shifttradematchessummaryresponse struct { - // Entities - Entities *[]Weekshifttradematchessummaryresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shifttradematchessummaryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shifttradenotification.go b/build/platformclientv2/shifttradenotification.go deleted file mode 100644 index 68e4e0555..000000000 --- a/build/platformclientv2/shifttradenotification.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Shifttradenotification -type Shifttradenotification struct { - // WeekDate - The start date of the schedule with which this trade is associated - WeekDate *string `json:"weekDate,omitempty"` - - - // TradeId - The ID of the shift trade - TradeId *string `json:"tradeId,omitempty"` - - - // OneSided - Whether this is a one sided shift trade - OneSided *bool `json:"oneSided,omitempty"` - - - // NewState - The new state of the shift trade, null if there was no change - NewState *string `json:"newState,omitempty"` - - - // InitiatingUser - The user who initiated the shift trade - InitiatingUser *Userreference `json:"initiatingUser,omitempty"` - - - // InitiatingShiftDate - The start date and time of the initiating shift. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - InitiatingShiftDate *time.Time `json:"initiatingShiftDate,omitempty"` - - - // ReceivingUser - The user on the receiving side of this shift trade (null if not matched) - ReceivingUser *Userreference `json:"receivingUser,omitempty"` - - - // ReceivingShiftDate - The start date and time of the receiving shift (null if not matched or if one-sided. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReceivingShiftDate *time.Time `json:"receivingShiftDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shifttradenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shifttraderesponse.go b/build/platformclientv2/shifttraderesponse.go deleted file mode 100644 index 483cd6296..000000000 --- a/build/platformclientv2/shifttraderesponse.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Shifttraderesponse -type Shifttraderesponse struct { - // Id - The ID of this shift trade - Id *string `json:"id,omitempty"` - - - // WeekDate - The start week date of the associated schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd - WeekDate *time.Time `json:"weekDate,omitempty"` - - - // Schedule - The ID of the associated schedule - Schedule *Weekschedulereference `json:"schedule,omitempty"` - - - // State - The state of this shift trade - State *string `json:"state,omitempty"` - - - // InitiatingUser - The user who initiated this trade - InitiatingUser *Userreference `json:"initiatingUser,omitempty"` - - - // InitiatingShiftId - The ID of the shift offered for trade by the initiating user - InitiatingShiftId *string `json:"initiatingShiftId,omitempty"` - - - // InitiatingShiftStart - The start date/time of the shift being offered for trade. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - InitiatingShiftStart *time.Time `json:"initiatingShiftStart,omitempty"` - - - // InitiatingShiftEnd - The end date/time of the shift being offered for trade. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - InitiatingShiftEnd *time.Time `json:"initiatingShiftEnd,omitempty"` - - - // ReceivingUser - The user matching the trade, or if the state is not Matched, the user to whom the trade request was sent - ReceivingUser *Userreference `json:"receivingUser,omitempty"` - - - // ReceivingShiftId - The ID of the shift being exchanged for the initiating shift, null if the receiving user is picking up a shift - ReceivingShiftId *string `json:"receivingShiftId,omitempty"` - - - // ReceivingShiftStart - The start date/time of the receiving shift. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReceivingShiftStart *time.Time `json:"receivingShiftStart,omitempty"` - - - // ReceivingShiftEnd - The end date/time of the receiving shift. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReceivingShiftEnd *time.Time `json:"receivingShiftEnd,omitempty"` - - - // Expiration - When this shift trade offer will expire if not matched or approved. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Expiration *time.Time `json:"expiration,omitempty"` - - - // OneSided - Whether this is a one-sided shift trade (e.g. the initiating user is not asking for a shift in return) - OneSided *bool `json:"oneSided,omitempty"` - - - // AcceptableIntervals - AcceptableIntervals *[]string `json:"acceptableIntervals,omitempty"` - - - // ReviewedBy - The user who reviewed this shift trade - ReviewedBy *Userreference `json:"reviewedBy,omitempty"` - - - // ReviewedDate - The timestamp when this shift trade was reviewed. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReviewedDate *time.Time `json:"reviewedDate,omitempty"` - - - // Metadata - Version data for this trade - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shifttraderesponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shifttradesettings.go b/build/platformclientv2/shifttradesettings.go deleted file mode 100644 index cc4d2030e..000000000 --- a/build/platformclientv2/shifttradesettings.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shifttradesettings -type Shifttradesettings struct { - // Enabled - Whether shift trading is enabled for this management unit - Enabled *bool `json:"enabled,omitempty"` - - - // AutoReview - Whether automatic shift trade review is enabled according to the rules defined in for this management unit - AutoReview *bool `json:"autoReview,omitempty"` - - - // AllowDirectTrades - Whether direct shift trades between agents are allowed - AllowDirectTrades *bool `json:"allowDirectTrades,omitempty"` - - - // MinHoursInFuture - The minimum number of hours in the future shift trades are allowed - MinHoursInFuture *int32 `json:"minHoursInFuture,omitempty"` - - - // UnequalPaid - How to handle shift trades which involve unequal paid times - UnequalPaid *string `json:"unequalPaid,omitempty"` - - - // OneSided - How to handle one-sided shift trades - OneSided *string `json:"oneSided,omitempty"` - - - // WeeklyMinPaidViolations - How to handle shift trades which result in violations of weekly minimum paid time constraint - WeeklyMinPaidViolations *string `json:"weeklyMinPaidViolations,omitempty"` - - - // WeeklyMaxPaidViolations - How to handle shift trades which result in violations of weekly maximum paid time constraint - WeeklyMaxPaidViolations *string `json:"weeklyMaxPaidViolations,omitempty"` - - - // RequiresMatchingQueues - Whether to constrain shift trades to agents with matching queues - RequiresMatchingQueues *bool `json:"requiresMatchingQueues,omitempty"` - - - // RequiresMatchingLanguages - Whether to constrain shift trades to agents with matching languages - RequiresMatchingLanguages *bool `json:"requiresMatchingLanguages,omitempty"` - - - // RequiresMatchingSkills - Whether to constrain shift trades to agents with matching skills - RequiresMatchingSkills *bool `json:"requiresMatchingSkills,omitempty"` - - - // RequiresMatchingPlanningGroups - Whether to constrain shift trades to agents with matching planning groups - RequiresMatchingPlanningGroups *bool `json:"requiresMatchingPlanningGroups,omitempty"` - - - // ActivityCategoryRules - Rules that specify what to do with activity categories that are part of a shift defined in a trade - ActivityCategoryRules *[]Shifttradeactivityrule `json:"activityCategoryRules,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shifttradesettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shorttermforecast.go b/build/platformclientv2/shorttermforecast.go deleted file mode 100644 index ee057a1b5..000000000 --- a/build/platformclientv2/shorttermforecast.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Shorttermforecast - Short Term Forecast -type Shorttermforecast struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // WeekDate - The weekDate of the short term forecast in yyyy-MM-dd format - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - The description of the short term forecast - Description *string `json:"description,omitempty"` - - - // CreationMethod - The method used to create this forecast - CreationMethod *string `json:"creationMethod,omitempty"` - - - // Metadata - Metadata for this forecast - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // SourceData - The source data references and metadata for this forecast - SourceData *Listwrapperforecastsourcedaypointer `json:"sourceData,omitempty"` - - - // ReferenceStartDate - ISO-8601 date that serves as the reference date for interval-based modifications - ReferenceStartDate *time.Time `json:"referenceStartDate,omitempty"` - - - // Modifications - The modifications that have been applied to this forecast - Modifications *Listwrapperwfmforecastmodification `json:"modifications,omitempty"` - - - // GenerationResults - Forecast generation results, if applicable - GenerationResults *Forecastgenerationresult `json:"generationResults,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shorttermforecast) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shorttermforecastingsettings.go b/build/platformclientv2/shorttermforecastingsettings.go deleted file mode 100644 index eb497e92b..000000000 --- a/build/platformclientv2/shorttermforecastingsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shorttermforecastingsettings - Short Term Forecasting Settings -type Shorttermforecastingsettings struct { - // DefaultHistoryWeeks - The number of weeks to consider by default when generating a volume forecast - DefaultHistoryWeeks *int32 `json:"defaultHistoryWeeks,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shorttermforecastingsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shorttermforecastlistitemresponse.go b/build/platformclientv2/shorttermforecastlistitemresponse.go deleted file mode 100644 index 9524f6f58..000000000 --- a/build/platformclientv2/shorttermforecastlistitemresponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shorttermforecastlistitemresponse - Abbreviated information for a short term forecast to be returned in a list -type Shorttermforecastlistitemresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // WeekDate - The weekDate of the short term forecast in yyyy-MM-dd format - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - The description of the short term forecast - Description *string `json:"description,omitempty"` - - - // CreationMethod - The method used to create this forecast - CreationMethod *string `json:"creationMethod,omitempty"` - - - // Metadata - Metadata for this forecast - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shorttermforecastlistitemresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shorttermforecastlistresponse.go b/build/platformclientv2/shorttermforecastlistresponse.go deleted file mode 100644 index 7beb0d4c7..000000000 --- a/build/platformclientv2/shorttermforecastlistresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shorttermforecastlistresponse -type Shorttermforecastlistresponse struct { - // Entities - Entities *[]Shorttermforecastlistitemresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shorttermforecastlistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shorttermforecastreference.go b/build/platformclientv2/shorttermforecastreference.go deleted file mode 100644 index 9598aefd0..000000000 --- a/build/platformclientv2/shorttermforecastreference.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shorttermforecastreference - A pointer to a short term forecast -type Shorttermforecastreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // WeekDate - The weekDate of the short term forecast in yyyy-MM-dd format - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - The description of the short term forecast - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shorttermforecastreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shorttermforecastresponse.go b/build/platformclientv2/shorttermforecastresponse.go deleted file mode 100644 index 6f098cfa0..000000000 --- a/build/platformclientv2/shorttermforecastresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shorttermforecastresponse -type Shorttermforecastresponse struct { - // Status - The status of the request - Status *string `json:"status,omitempty"` - - - // Result - The resulting forecast. May be sent asynchronously via notification depending on the complexity of the forecast - Result *Shorttermforecast `json:"result,omitempty"` - - - // OperationId - The operation id to watch for on the notification topic - OperationId *string `json:"operationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shorttermforecastresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shrinkageoverride.go b/build/platformclientv2/shrinkageoverride.go deleted file mode 100644 index 93820e08e..000000000 --- a/build/platformclientv2/shrinkageoverride.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shrinkageoverride -type Shrinkageoverride struct { - // IntervalIndex - Index of shrinkage override interval. Starting index is 0 and indexes are based on 15 minute intervals for a 7 day week - IntervalIndex *int32 `json:"intervalIndex,omitempty"` - - - // ShrinkagePercent - Shrinkage override percent. Setting a null value will reset the interval to the default - ShrinkagePercent *float64 `json:"shrinkagePercent,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shrinkageoverride) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/shrinkageoverrides.go b/build/platformclientv2/shrinkageoverrides.go deleted file mode 100644 index 55355b73c..000000000 --- a/build/platformclientv2/shrinkageoverrides.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Shrinkageoverrides -type Shrinkageoverrides struct { - // Clear - Set true to clear the shrinkage interval overrides - Clear *bool `json:"clear,omitempty"` - - - // Values - List of interval shrinkage overrides - Values *[]Shrinkageoverride `json:"values,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Shrinkageoverrides) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/signedurlresponse.go b/build/platformclientv2/signedurlresponse.go deleted file mode 100644 index f660a5121..000000000 --- a/build/platformclientv2/signedurlresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Signedurlresponse -type Signedurlresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Url - Url of the downloaded pcap file - Url *string `json:"url,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Signedurlresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sipdownloadresponse.go b/build/platformclientv2/sipdownloadresponse.go deleted file mode 100644 index d66980623..000000000 --- a/build/platformclientv2/sipdownloadresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Sipdownloadresponse -type Sipdownloadresponse struct { - // DownloadId - unique id of the downloaded file - DownloadId *string `json:"downloadId,omitempty"` - - - // DocumentId - Document id of pcap file - DocumentId *string `json:"documentId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sipdownloadresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sipsearchpublicrequest.go b/build/platformclientv2/sipsearchpublicrequest.go deleted file mode 100644 index 2a0de79ab..000000000 --- a/build/platformclientv2/sipsearchpublicrequest.go +++ /dev/null @@ -1,54 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Sipsearchpublicrequest -type Sipsearchpublicrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // CallId - unique identification of the placed call - CallId *string `json:"callId,omitempty"` - - - // ToUser - SIP user to who the call was placed - ToUser *string `json:"toUser,omitempty"` - - - // FromUser - SIP user who placed the call - FromUser *string `json:"fromUser,omitempty"` - - - // ConversationId - Unique identification of the conversation - ConversationId *string `json:"conversationId,omitempty"` - - - // ParticipantId - Unique identification of the participant - ParticipantId *string `json:"participantId,omitempty"` - - - // DateStart - Start date of the search. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateStart *time.Time `json:"dateStart,omitempty"` - - - // DateEnd - End date of the search. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateEnd *time.Time `json:"dateEnd,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sipsearchpublicrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sipsearchresult.go b/build/platformclientv2/sipsearchresult.go deleted file mode 100644 index dd3ec7f23..000000000 --- a/build/platformclientv2/sipsearchresult.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Sipsearchresult -type Sipsearchresult struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Status - Status of the search request - Status *int32 `json:"status,omitempty"` - - - // Sid - Session id associated to the search request - Sid *string `json:"sid,omitempty"` - - - // Auth - Auth token used for this search request - Auth *string `json:"auth,omitempty"` - - - // Message - Any messages returned from homer as part of the response - Message *string `json:"message,omitempty"` - - - // Data - Homer search data that is returned - Data *[]Homerrecord `json:"data,omitempty"` - - - // Count - Number of records returned - Count *int32 `json:"count,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sipsearchresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/site.go b/build/platformclientv2/site.go deleted file mode 100644 index 299366fb9..000000000 --- a/build/platformclientv2/site.go +++ /dev/null @@ -1,106 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Site -type Site struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // PrimarySites - PrimarySites *[]Domainentityref `json:"primarySites,omitempty"` - - - // SecondarySites - SecondarySites *[]Domainentityref `json:"secondarySites,omitempty"` - - - // PrimaryEdges - PrimaryEdges *[]Edge `json:"primaryEdges,omitempty"` - - - // SecondaryEdges - SecondaryEdges *[]Edge `json:"secondaryEdges,omitempty"` - - - // Addresses - Addresses *[]Contact `json:"addresses,omitempty"` - - - // Edges - Edges *[]Edge `json:"edges,omitempty"` - - - // EdgeAutoUpdateConfig - Recurrance rule, time zone, and start/end settings for automatic edge updates for this site - EdgeAutoUpdateConfig *Edgeautoupdateconfig `json:"edgeAutoUpdateConfig,omitempty"` - - - // MediaRegionsUseLatencyBased - MediaRegionsUseLatencyBased *bool `json:"mediaRegionsUseLatencyBased,omitempty"` - - - // Location - Location - Location *Locationdefinition `json:"location,omitempty"` - - - // Managed - Managed *bool `json:"managed,omitempty"` - - - // NtpSettings - Network Time Protocol settings for the site - NtpSettings *Ntpsettings `json:"ntpSettings,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Site) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/siteentitylisting.go b/build/platformclientv2/siteentitylisting.go deleted file mode 100644 index e3489deb2..000000000 --- a/build/platformclientv2/siteentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Siteentitylisting -type Siteentitylisting struct { - // Entities - Entities *[]Site `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Siteentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/skillentitylisting.go b/build/platformclientv2/skillentitylisting.go deleted file mode 100644 index 2b660e722..000000000 --- a/build/platformclientv2/skillentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Skillentitylisting -type Skillentitylisting struct { - // Entities - Entities *[]Routingskill `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Skillentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/skillstoremove.go b/build/platformclientv2/skillstoremove.go deleted file mode 100644 index c3779f0fc..000000000 --- a/build/platformclientv2/skillstoremove.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Skillstoremove -type Skillstoremove struct { - // Name - Name *string `json:"name,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Skillstoremove) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsaddress.go b/build/platformclientv2/smsaddress.go deleted file mode 100644 index 5afc682e1..000000000 --- a/build/platformclientv2/smsaddress.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsaddress -type Smsaddress struct { - // Id - The id of this address. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Street - The number and street address where this address is located. - Street *string `json:"street,omitempty"` - - - // City - The city in which this address is in - City *string `json:"city,omitempty"` - - - // Region - The state or region this address is in - Region *string `json:"region,omitempty"` - - - // PostalCode - The postal code this address is in - PostalCode *string `json:"postalCode,omitempty"` - - - // CountryCode - The ISO country code of this address - CountryCode *string `json:"countryCode,omitempty"` - - - // Validated - In some countries, addresses are validated to comply with local regulation. In those countries, if the address you provide does not pass validation, it will not be accepted as an Address. This value will be true if the Address has been validated, or false for countries that don't require validation or if the Address is non-compliant. - Validated *bool `json:"validated,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsaddressentitylisting.go b/build/platformclientv2/smsaddressentitylisting.go deleted file mode 100644 index efc30e311..000000000 --- a/build/platformclientv2/smsaddressentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsaddressentitylisting -type Smsaddressentitylisting struct { - // Entities - Entities *[]Smsaddress `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsaddressentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsaddressprovision.go b/build/platformclientv2/smsaddressprovision.go deleted file mode 100644 index 1fd727a9b..000000000 --- a/build/platformclientv2/smsaddressprovision.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsaddressprovision -type Smsaddressprovision struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name associated with this address - Name *string `json:"name,omitempty"` - - - // Street - The number and street address where this address is located. - Street *string `json:"street,omitempty"` - - - // City - The city in which this address is in - City *string `json:"city,omitempty"` - - - // Region - The state or region this address is in - Region *string `json:"region,omitempty"` - - - // PostalCode - The postal code this address is in - PostalCode *string `json:"postalCode,omitempty"` - - - // CountryCode - The ISO country code of this address - CountryCode *string `json:"countryCode,omitempty"` - - - // AutoCorrectAddress - This is used when the address is created. If the value is not set or true, then the system will, if necessary, auto-correct the address you provide. Set this value to false if the system should not auto-correct the address. - AutoCorrectAddress *bool `json:"autoCorrectAddress,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsaddressprovision) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsavailablephonenumber.go b/build/platformclientv2/smsavailablephonenumber.go deleted file mode 100644 index 0ce135ef7..000000000 --- a/build/platformclientv2/smsavailablephonenumber.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsavailablephonenumber -type Smsavailablephonenumber struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // PhoneNumber - A phone number available for provisioning in E.164 format. E.g. +13175555555 or +34234234234 - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // CountryCode - The ISO 3166-1 alpha-2 country code of the country this phone number is associated with. - CountryCode *string `json:"countryCode,omitempty"` - - - // Region - The region/province/state the phone number is associated with. - Region *string `json:"region,omitempty"` - - - // City - The city the phone number is associated with. - City *string `json:"city,omitempty"` - - - // Capabilities - The capabilities of the phone number available for provisioning. - Capabilities *[]string `json:"capabilities,omitempty"` - - - // PhoneNumberType - The type of phone number available for provisioning. - PhoneNumberType *string `json:"phoneNumberType,omitempty"` - - - // AddressRequirement - The address requirement needed for provisioning this number. If there is a requirement, the address must be the residence or place of business of the individual or entity using the phone number. - AddressRequirement *string `json:"addressRequirement,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsavailablephonenumber) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsavailablephonenumberentitylisting.go b/build/platformclientv2/smsavailablephonenumberentitylisting.go deleted file mode 100644 index a787023b9..000000000 --- a/build/platformclientv2/smsavailablephonenumberentitylisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsavailablephonenumberentitylisting -type Smsavailablephonenumberentitylisting struct { - // Entities - Entities *[]Smsavailablephonenumber `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsavailablephonenumberentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsphonenumber.go b/build/platformclientv2/smsphonenumber.go deleted file mode 100644 index a33d5ea0b..000000000 --- a/build/platformclientv2/smsphonenumber.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Smsphonenumber -type Smsphonenumber struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // PhoneNumber - A phone number provisioned for SMS communications in E.164 format. E.g. +13175555555 or +34234234234 - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // PhoneNumberType - Type of the phone number provisioned. - PhoneNumberType *string `json:"phoneNumberType,omitempty"` - - - // ProvisionedThroughPureCloud - Is set to false, if the phone number is provisioned through a SMS provider, outside of PureCloud - ProvisionedThroughPureCloud *bool `json:"provisionedThroughPureCloud,omitempty"` - - - // PhoneNumberStatus - Status of the provisioned phone number. - PhoneNumberStatus *string `json:"phoneNumberStatus,omitempty"` - - - // Capabilities - The capabilities of the phone number available for provisioning. - Capabilities *[]string `json:"capabilities,omitempty"` - - - // CountryCode - The ISO 3166-1 alpha-2 country code of the country this phone number is associated with. - CountryCode *string `json:"countryCode,omitempty"` - - - // DateCreated - Date this phone number was provisioned. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this phone number was modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User that provisioned this phone number - CreatedBy *User `json:"createdBy,omitempty"` - - - // ModifiedBy - User that last modified this phone number - ModifiedBy *User `json:"modifiedBy,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // PurchaseDate - Date this phone number was purchased, if the phoneNumberType is shortcode. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - PurchaseDate *time.Time `json:"purchaseDate,omitempty"` - - - // CancellationDate - Contract end date of this phone number, if the phoneNumberType is shortcode. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CancellationDate *time.Time `json:"cancellationDate,omitempty"` - - - // RenewalDate - Contract renewal date of this phone number, if the phoneNumberType is shortcode. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RenewalDate *time.Time `json:"renewalDate,omitempty"` - - - // AutoRenewable - Renewal time period of this phone number, if the phoneNumberType is shortcode. - AutoRenewable *string `json:"autoRenewable,omitempty"` - - - // AddressId - The id of an address attached to this phone number. - AddressId *Smsaddress `json:"addressId,omitempty"` - - - // ShortCodeBillingType - BillingType of this phone number, if the phoneNumberType is shortcode. - ShortCodeBillingType *string `json:"shortCodeBillingType,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsphonenumber) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsphonenumberentitylisting.go b/build/platformclientv2/smsphonenumberentitylisting.go deleted file mode 100644 index ca2b86f0c..000000000 --- a/build/platformclientv2/smsphonenumberentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsphonenumberentitylisting -type Smsphonenumberentitylisting struct { - // Entities - Entities *[]Smsphonenumber `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsphonenumberentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/smsphonenumberprovision.go b/build/platformclientv2/smsphonenumberprovision.go deleted file mode 100644 index 5a0f81890..000000000 --- a/build/platformclientv2/smsphonenumberprovision.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Smsphonenumberprovision -type Smsphonenumberprovision struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // PhoneNumber - A phone number to be used for SMS communications. E.g. +13175555555 or +34234234234 - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // PhoneNumberType - Type of the phone number provisioned. - PhoneNumberType *string `json:"phoneNumberType,omitempty"` - - - // CountryCode - The ISO 3166-1 alpha-2 country code of the country this phone number is associated with. - CountryCode *string `json:"countryCode,omitempty"` - - - // AddressId - The id of an address added on your account. Due to regulatory requirements in some countries, an address may be required when provisioning a sms number. In those cases you should provide the provisioned sms address id here - AddressId *string `json:"addressId,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Smsphonenumberprovision) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/socialexpression.go b/build/platformclientv2/socialexpression.go deleted file mode 100644 index b839f14ac..000000000 --- a/build/platformclientv2/socialexpression.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Socialexpression -type Socialexpression struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // SocialMediaId - A globally unique identifier for the social media. - SocialMediaId *string `json:"socialMediaId,omitempty"` - - - // SocialMediaHub - The social network of the communication - SocialMediaHub *string `json:"socialMediaHub,omitempty"` - - - // SocialUserName - The user name for the communication. - SocialUserName *string `json:"socialUserName,omitempty"` - - - // PreviewText - The text preview of the communication contents - PreviewText *string `json:"previewText,omitempty"` - - - // RecordingId - A globally unique identifier for the recording associated with this chat. - RecordingId *string `json:"recordingId,omitempty"` - - - // Segments - The time line of the participant's chat, divided into activity segments. - Segments *[]Segment `json:"segments,omitempty"` - - - // Held - True if this call is held and the person on this side hears silence. - Held *bool `json:"held,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartHoldTime - The timestamp the chat was placed on hold in the cloud clock if the chat is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartHoldTime *time.Time `json:"startHoldTime,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Provider - The source provider for the social expression. - Provider *string `json:"provider,omitempty"` - - - // ScriptId - The UUID of the script to use. - ScriptId *string `json:"scriptId,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Socialexpression) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/socialhandle.go b/build/platformclientv2/socialhandle.go deleted file mode 100644 index 20e3b540c..000000000 --- a/build/platformclientv2/socialhandle.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Socialhandle -type Socialhandle struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Socialhandle) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/sortitem.go b/build/platformclientv2/sortitem.go deleted file mode 100644 index 51c5b84f7..000000000 --- a/build/platformclientv2/sortitem.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Sortitem -type Sortitem struct { - // Name - Name *string `json:"name,omitempty"` - - - // Ascending - Ascending *bool `json:"ascending,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Sortitem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/speechtextanalyticsapi.go b/build/platformclientv2/speechtextanalyticsapi.go deleted file mode 100644 index d3de8b402..000000000 --- a/build/platformclientv2/speechtextanalyticsapi.go +++ /dev/null @@ -1,107 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// SpeechTextAnalyticsApi provides functions for API endpoints -type SpeechTextAnalyticsApi struct { - Configuration *Configuration -} - -// NewSpeechTextAnalyticsApi creates an API instance using the default configuration -func NewSpeechTextAnalyticsApi() *SpeechTextAnalyticsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating SpeechTextAnalyticsApi with base path: %s", strings.ToLower(config.BasePath))) - return &SpeechTextAnalyticsApi{ - Configuration: config, - } -} - -// NewSpeechTextAnalyticsApiWithConfig creates an API instance using the provided configuration -func NewSpeechTextAnalyticsApiWithConfig(config *Configuration) *SpeechTextAnalyticsApi { - config.Debugf("Creating SpeechTextAnalyticsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &SpeechTextAnalyticsApi{ - Configuration: config, - } -} - -// GetConversationTranscriptproperty invokes GET /api/v2/conversations/{conversationId}/transcriptproperties/{communicationId} -// -// Get the pre-signed S3 URL for the transcript of a specific communication of a conversation -// -// -func (a SpeechTextAnalyticsApi) GetConversationTranscriptproperty(conversationId string, communicationId string) (*Transcriptproperty, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/conversations/{conversationId}/transcriptproperties/{communicationId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{communicationId}", fmt.Sprintf("%v", communicationId), -1) - defaultReturn := new(Transcriptproperty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling SpeechTextAnalyticsApi->GetConversationTranscriptproperty") - } - // verify the required parameter 'communicationId' is set - if &communicationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'communicationId' when calling SpeechTextAnalyticsApi->GetConversationTranscriptproperty") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Transcriptproperty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/stateventcampaigntopicdatum.go b/build/platformclientv2/stateventcampaigntopicdatum.go deleted file mode 100644 index 0b29e4cf2..000000000 --- a/build/platformclientv2/stateventcampaigntopicdatum.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventcampaigntopicdatum -type Stateventcampaigntopicdatum struct { - // Interval - Interval *string `json:"interval,omitempty"` - - - // Metrics - Metrics *[]Stateventcampaigntopicmetric `json:"metrics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventcampaigntopicdatum) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventcampaigntopicmetric.go b/build/platformclientv2/stateventcampaigntopicmetric.go deleted file mode 100644 index 281c51a4c..000000000 --- a/build/platformclientv2/stateventcampaigntopicmetric.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventcampaigntopicmetric -type Stateventcampaigntopicmetric struct { - // Metric - Metric *string `json:"metric,omitempty"` - - - // Qualifier - Qualifier *string `json:"qualifier,omitempty"` - - - // Stats - Stats *map[string]float32 `json:"stats,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventcampaigntopicmetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventcampaigntopicstatsnotification.go b/build/platformclientv2/stateventcampaigntopicstatsnotification.go deleted file mode 100644 index b9d7d0d2e..000000000 --- a/build/platformclientv2/stateventcampaigntopicstatsnotification.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventcampaigntopicstatsnotification -type Stateventcampaigntopicstatsnotification struct { - // Group - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Stateventcampaigntopicdatum `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventcampaigntopicstatsnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventqueuetopicdatum.go b/build/platformclientv2/stateventqueuetopicdatum.go deleted file mode 100644 index 2dc419d92..000000000 --- a/build/platformclientv2/stateventqueuetopicdatum.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventqueuetopicdatum -type Stateventqueuetopicdatum struct { - // Interval - Interval *string `json:"interval,omitempty"` - - - // Metrics - Metrics *[]Stateventqueuetopicmetric `json:"metrics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventqueuetopicdatum) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventqueuetopicmetric.go b/build/platformclientv2/stateventqueuetopicmetric.go deleted file mode 100644 index 4de6efd60..000000000 --- a/build/platformclientv2/stateventqueuetopicmetric.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventqueuetopicmetric -type Stateventqueuetopicmetric struct { - // Metric - Metric *string `json:"metric,omitempty"` - - - // Qualifier - Qualifier *string `json:"qualifier,omitempty"` - - - // Stats - Stats *map[string]float32 `json:"stats,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventqueuetopicmetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventqueuetopicstatsnotification.go b/build/platformclientv2/stateventqueuetopicstatsnotification.go deleted file mode 100644 index cce84beb8..000000000 --- a/build/platformclientv2/stateventqueuetopicstatsnotification.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventqueuetopicstatsnotification -type Stateventqueuetopicstatsnotification struct { - // Group - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Stateventqueuetopicdatum `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventqueuetopicstatsnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventusertopicdatum.go b/build/platformclientv2/stateventusertopicdatum.go deleted file mode 100644 index f384e2182..000000000 --- a/build/platformclientv2/stateventusertopicdatum.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventusertopicdatum -type Stateventusertopicdatum struct { - // Interval - Interval *string `json:"interval,omitempty"` - - - // Metrics - Metrics *[]Stateventusertopicmetric `json:"metrics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventusertopicdatum) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventusertopicmetric.go b/build/platformclientv2/stateventusertopicmetric.go deleted file mode 100644 index 872bfc4e0..000000000 --- a/build/platformclientv2/stateventusertopicmetric.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventusertopicmetric -type Stateventusertopicmetric struct { - // Metric - Metric *string `json:"metric,omitempty"` - - - // Qualifier - Qualifier *string `json:"qualifier,omitempty"` - - - // Stats - Stats *map[string]float32 `json:"stats,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventusertopicmetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stateventusertopicstatsnotification.go b/build/platformclientv2/stateventusertopicstatsnotification.go deleted file mode 100644 index c32d0a91f..000000000 --- a/build/platformclientv2/stateventusertopicstatsnotification.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stateventusertopicstatsnotification -type Stateventusertopicstatsnotification struct { - // Group - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Stateventusertopicdatum `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stateventusertopicstatsnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/station.go b/build/platformclientv2/station.go deleted file mode 100644 index a15b15971..000000000 --- a/build/platformclientv2/station.go +++ /dev/null @@ -1,69 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Station -type Station struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // UserId - The Id of the user currently logged in and associated with the station. - UserId *string `json:"userId,omitempty"` - - - // WebRtcUserId - The Id of the user configured for the station if it is of type inin_webrtc_softphone. Empty if station type is not inin_webrtc_softphone. - WebRtcUserId *string `json:"webRtcUserId,omitempty"` - - - // PrimaryEdge - PrimaryEdge *Domainentityref `json:"primaryEdge,omitempty"` - - - // SecondaryEdge - SecondaryEdge *Domainentityref `json:"secondaryEdge,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // LineAppearanceId - LineAppearanceId *string `json:"lineAppearanceId,omitempty"` - - - // WebRtcMediaDscp - The default or configured value of media dscp for the station. Empty if station type is not inin_webrtc_softphone. - WebRtcMediaDscp *int32 `json:"webRtcMediaDscp,omitempty"` - - - // WebRtcPersistentEnabled - The default or configured value of persistent connection setting for the station. Empty if station type is not inin_webrtc_softphone. - WebRtcPersistentEnabled *bool `json:"webRtcPersistentEnabled,omitempty"` - - - // WebRtcForceTurn - Whether the station is configured to require TURN for routing WebRTC calls. Empty if station type is not inin_webrtc_softphone. - WebRtcForceTurn *bool `json:"webRtcForceTurn,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Station) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stationentitylisting.go b/build/platformclientv2/stationentitylisting.go deleted file mode 100644 index e736b335c..000000000 --- a/build/platformclientv2/stationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stationentitylisting -type Stationentitylisting struct { - // Entities - Entities *[]Station `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/stationsapi.go b/build/platformclientv2/stationsapi.go deleted file mode 100644 index be840a21b..000000000 --- a/build/platformclientv2/stationsapi.go +++ /dev/null @@ -1,414 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// StationsApi provides functions for API endpoints -type StationsApi struct { - Configuration *Configuration -} - -// NewStationsApi creates an API instance using the default configuration -func NewStationsApi() *StationsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating StationsApi with base path: %s", strings.ToLower(config.BasePath))) - return &StationsApi{ - Configuration: config, - } -} - -// NewStationsApiWithConfig creates an API instance using the provided configuration -func NewStationsApiWithConfig(config *Configuration) *StationsApi { - config.Debugf("Creating StationsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &StationsApi{ - Configuration: config, - } -} - -// DeleteStationAssociateduser invokes DELETE /api/v2/stations/{stationId}/associateduser -// -// Unassigns the user assigned to this station -// -// -func (a StationsApi) DeleteStationAssociateduser(stationId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/stations/{stationId}/associateduser" - path = strings.Replace(path, "{stationId}", fmt.Sprintf("%v", stationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'stationId' is set - if &stationId == nil { - // - return nil, errors.New("Missing required parameter 'stationId' when calling StationsApi->DeleteStationAssociateduser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetStation invokes GET /api/v2/stations/{stationId} -// -// Get station. -// -// -func (a StationsApi) GetStation(stationId string) (*Station, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/stations/{stationId}" - path = strings.Replace(path, "{stationId}", fmt.Sprintf("%v", stationId), -1) - defaultReturn := new(Station) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'stationId' is set - if &stationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'stationId' when calling StationsApi->GetStation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Station - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetStations invokes GET /api/v2/stations -// -// Get the list of available stations. -// -// -func (a StationsApi) GetStations(pageSize int32, pageNumber int32, sortBy string, name string, userSelectable string, webRtcUserId string, id string, lineAppearanceId string) (*Stationentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/stations" - defaultReturn := new(Stationentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["userSelectable"] = a.Configuration.APIClient.ParameterToString(userSelectable, collectionFormat) - - - - - collectionFormat = "" - queryParams["webRtcUserId"] = a.Configuration.APIClient.ParameterToString(webRtcUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - - - - - collectionFormat = "" - queryParams["lineAppearanceId"] = a.Configuration.APIClient.ParameterToString(lineAppearanceId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Stationentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetStationsSettings invokes GET /api/v2/stations/settings -// -// Get an organization's StationSettings -// -// -func (a StationsApi) GetStationsSettings() (*Stationsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/stations/settings" - defaultReturn := new(Stationsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Stationsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchStationsSettings invokes PATCH /api/v2/stations/settings -// -// Patch an organization's StationSettings -// -// -func (a StationsApi) PatchStationsSettings(body Stationsettings) (*Stationsettings, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/stations/settings" - defaultReturn := new(Stationsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling StationsApi->PatchStationsSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Stationsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/stationsettings.go b/build/platformclientv2/stationsettings.go deleted file mode 100644 index a7978ec0a..000000000 --- a/build/platformclientv2/stationsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Stationsettings - Organization settings for stations -type Stationsettings struct { - // FreeSeatingConfiguration - Configuration options for free-seating - FreeSeatingConfiguration *Freeseatingconfiguration `json:"freeSeatingConfiguration,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Stationsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/statisticalresponse.go b/build/platformclientv2/statisticalresponse.go deleted file mode 100644 index 51be29bdd..000000000 --- a/build/platformclientv2/statisticalresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Statisticalresponse -type Statisticalresponse struct { - // Interval - Interval *string `json:"interval,omitempty"` - - - // Metrics - Metrics *[]Aggregatemetricdata `json:"metrics,omitempty"` - - - // Views - Views *[]Aggregateviewdata `json:"views,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Statisticalresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/statisticalsummary.go b/build/platformclientv2/statisticalsummary.go deleted file mode 100644 index 7aba2b44d..000000000 --- a/build/platformclientv2/statisticalsummary.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Statisticalsummary -type Statisticalsummary struct { - // Max - Max *float32 `json:"max,omitempty"` - - - // Min - Min *float32 `json:"min,omitempty"` - - - // Count - Count *int64 `json:"count,omitempty"` - - - // Sum - Sum *float32 `json:"sum,omitempty"` - - - // Current - Current *float32 `json:"current,omitempty"` - - - // Ratio - Ratio *float32 `json:"ratio,omitempty"` - - - // Numerator - Numerator *float32 `json:"numerator,omitempty"` - - - // Denominator - Denominator *float32 `json:"denominator,omitempty"` - - - // Target - Target *float32 `json:"target,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Statisticalsummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/streetaddress.go b/build/platformclientv2/streetaddress.go deleted file mode 100644 index 44f5567c7..000000000 --- a/build/platformclientv2/streetaddress.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Streetaddress -type Streetaddress struct { - // Country - 2 Letter Country code, like US or GB - Country *string `json:"country,omitempty"` - - - // A1 - State or Province - A1 *string `json:"A1,omitempty"` - - - // A3 - City or township - A3 *string `json:"A3,omitempty"` - - - // RD - RD *string `json:"RD,omitempty"` - - - // HNO - HNO *string `json:"HNO,omitempty"` - - - // LOC - LOC *string `json:"LOC,omitempty"` - - - // NAM - NAM *string `json:"NAM,omitempty"` - - - // PC - PC *string `json:"PC,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Streetaddress) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/subjectdivisiongrants.go b/build/platformclientv2/subjectdivisiongrants.go deleted file mode 100644 index 9b56e12e1..000000000 --- a/build/platformclientv2/subjectdivisiongrants.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Subjectdivisiongrants -type Subjectdivisiongrants struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Divisions - Divisions *[]Division `json:"divisions,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Subjectdivisiongrants) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/subjectdivisiongrantsentitylisting.go b/build/platformclientv2/subjectdivisiongrantsentitylisting.go deleted file mode 100644 index 5d04babc1..000000000 --- a/build/platformclientv2/subjectdivisiongrantsentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Subjectdivisiongrantsentitylisting -type Subjectdivisiongrantsentitylisting struct { - // Entities - Entities *[]Subjectdivisiongrants `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Subjectdivisiongrantsentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/subjectdivisions.go b/build/platformclientv2/subjectdivisions.go deleted file mode 100644 index bec5f38ab..000000000 --- a/build/platformclientv2/subjectdivisions.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Subjectdivisions -type Subjectdivisions struct { - // SubjectIds - A collection of subject IDs to associate with the given divisions - SubjectIds *[]string `json:"subjectIds,omitempty"` - - - // DivisionIds - A collection of division IDs to associate with the given subjects - DivisionIds *[]string `json:"divisionIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Subjectdivisions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/subscriberresponse.go b/build/platformclientv2/subscriberresponse.go deleted file mode 100644 index d7a8f5055..000000000 --- a/build/platformclientv2/subscriberresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Subscriberresponse -type Subscriberresponse struct { - // MessageReturned - Suggested valid addresses - MessageReturned *[]string `json:"messageReturned,omitempty"` - - - // Status - http status - Status *string `json:"status,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Subscriberresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/subscriptionoverviewusage.go b/build/platformclientv2/subscriptionoverviewusage.go deleted file mode 100644 index f7a18727c..000000000 --- a/build/platformclientv2/subscriptionoverviewusage.go +++ /dev/null @@ -1,61 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Subscriptionoverviewusage -type Subscriptionoverviewusage struct { - // Name - Product charge name - Name *string `json:"name,omitempty"` - - - // PartNumber - Product part number - PartNumber *string `json:"partNumber,omitempty"` - - - // Grouping - UI grouping key - Grouping *string `json:"grouping,omitempty"` - - - // UnitOfMeasureType - UI unit of measure - UnitOfMeasureType *string `json:"unitOfMeasureType,omitempty"` - - - // UsageQuantity - Usage count for specified period - UsageQuantity *string `json:"usageQuantity,omitempty"` - - - // OveragePrice - Price for usage / overage charge - OveragePrice *string `json:"overagePrice,omitempty"` - - - // PrepayQuantity - Items prepaid for specified period - PrepayQuantity *string `json:"prepayQuantity,omitempty"` - - - // PrepayPrice - Price for prepay charge - PrepayPrice *string `json:"prepayPrice,omitempty"` - - - // UsageNotes - Notes about the usage/charge item - UsageNotes *string `json:"usageNotes,omitempty"` - - - // IsCancellable - Indicates whether the item is cancellable - IsCancellable *bool `json:"isCancellable,omitempty"` - - - // BundleQuantity - Quantity multiplier for this charge - BundleQuantity *string `json:"bundleQuantity,omitempty"` - - - // IsThirdParty - A charge from a third party entity - IsThirdParty *bool `json:"isThirdParty,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Subscriptionoverviewusage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/suggestapi.go b/build/platformclientv2/suggestapi.go deleted file mode 100644 index e32ded10d..000000000 --- a/build/platformclientv2/suggestapi.go +++ /dev/null @@ -1,378 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// SuggestApi provides functions for API endpoints -type SuggestApi struct { - Configuration *Configuration -} - -// NewSuggestApi creates an API instance using the default configuration -func NewSuggestApi() *SuggestApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating SuggestApi with base path: %s", strings.ToLower(config.BasePath))) - return &SuggestApi{ - Configuration: config, - } -} - -// NewSuggestApiWithConfig creates an API instance using the provided configuration -func NewSuggestApiWithConfig(config *Configuration) *SuggestApi { - config.Debugf("Creating SuggestApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &SuggestApi{ - Configuration: config, - } -} - -// GetSearch invokes GET /api/v2/search -// -// Search using the q64 value returned from a previous search. -// -// -func (a SuggestApi) GetSearch(q64 string, expand []string, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SuggestApi->GetSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetSearchSuggest invokes GET /api/v2/search/suggest -// -// Suggest resources using the q64 value returned from a previous suggest query. -// -// -func (a SuggestApi) GetSearchSuggest(q64 string, expand []string, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search/suggest" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling SuggestApi->GetSearchSuggest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostSearch invokes POST /api/v2/search -// -// Search resources. -// -// -func (a SuggestApi) PostSearch(body Searchrequest, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SuggestApi->PostSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostSearchSuggest invokes POST /api/v2/search/suggest -// -// Suggest resources. -// -// -func (a SuggestApi) PostSearchSuggest(body Suggestsearchrequest, profile bool) (*Jsonnodesearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/search/suggest" - defaultReturn := new(Jsonnodesearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling SuggestApi->PostSearchSuggest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["profile"] = a.Configuration.APIClient.ParameterToString(profile, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Jsonnodesearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/suggestsearchcriteria.go b/build/platformclientv2/suggestsearchcriteria.go deleted file mode 100644 index 2199ea6f5..000000000 --- a/build/platformclientv2/suggestsearchcriteria.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Suggestsearchcriteria -type Suggestsearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Suggestsearchcriteria `json:"group,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Suggestsearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/suggestsearchrequest.go b/build/platformclientv2/suggestsearchrequest.go deleted file mode 100644 index 17b6d9654..000000000 --- a/build/platformclientv2/suggestsearchrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Suggestsearchrequest -type Suggestsearchrequest struct { - // Expand - Provides more details about a specified resource - Expand *[]string `json:"expand,omitempty"` - - - // Types - Resource domain type to search - Types *[]string `json:"types,omitempty"` - - - // Query - Suggest query - Query *[]Suggestsearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Suggestsearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/survey.go b/build/platformclientv2/survey.go deleted file mode 100644 index 9f1e00e08..000000000 --- a/build/platformclientv2/survey.go +++ /dev/null @@ -1,58 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Survey -type Survey struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Conversation - Conversation *Conversation `json:"conversation,omitempty"` - - - // SurveyForm - Survey form used for this survey. - SurveyForm *Surveyform `json:"surveyForm,omitempty"` - - - // Agent - Agent *Domainentityref `json:"agent,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // Queue - Queue *Queuereference `json:"queue,omitempty"` - - - // Answers - Answers *Surveyscoringset `json:"answers,omitempty"` - - - // CompletedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CompletedDate *time.Time `json:"completedDate,omitempty"` - - - // SurveyErrorDetails - Additional information about what happened when the survey is in Error status. - SurveyErrorDetails *Surveyerrordetails `json:"surveyErrorDetails,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Survey) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregatedatacontainer.go b/build/platformclientv2/surveyaggregatedatacontainer.go deleted file mode 100644 index e5130785a..000000000 --- a/build/platformclientv2/surveyaggregatedatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregatedatacontainer -type Surveyaggregatedatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Statisticalresponse `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregatedatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregatequeryclause.go b/build/platformclientv2/surveyaggregatequeryclause.go deleted file mode 100644 index 3097f9cc9..000000000 --- a/build/platformclientv2/surveyaggregatequeryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregatequeryclause -type Surveyaggregatequeryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Surveyaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregatequeryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregatequeryfilter.go b/build/platformclientv2/surveyaggregatequeryfilter.go deleted file mode 100644 index da5fe3957..000000000 --- a/build/platformclientv2/surveyaggregatequeryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregatequeryfilter -type Surveyaggregatequeryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Surveyaggregatequeryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Surveyaggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregatequeryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregatequerypredicate.go b/build/platformclientv2/surveyaggregatequerypredicate.go deleted file mode 100644 index 285a654af..000000000 --- a/build/platformclientv2/surveyaggregatequerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregatequerypredicate -type Surveyaggregatequerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregatequerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregatequeryresponse.go b/build/platformclientv2/surveyaggregatequeryresponse.go deleted file mode 100644 index 32704305b..000000000 --- a/build/platformclientv2/surveyaggregatequeryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregatequeryresponse -type Surveyaggregatequeryresponse struct { - // Results - Results *[]Surveyaggregatedatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregatequeryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregationquery.go b/build/platformclientv2/surveyaggregationquery.go deleted file mode 100644 index a8a3939c2..000000000 --- a/build/platformclientv2/surveyaggregationquery.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregationquery -type Surveyaggregationquery struct { - // Interval - Behaves like one clause in a SQL WHERE. Specifies the date and time range of data being queried. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // Granularity - Granularity aggregates metrics into subpartitions within the time interval specified. The default granularity is the same duration as the interval. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Granularity *string `json:"granularity,omitempty"` - - - // TimeZone - Sets the time zone for the query interval, defaults to UTC. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // GroupBy - Behaves like a SQL GROUPBY. Allows for multiple levels of grouping as a list of dimensions. Partitions resulting aggregate computations into distinct named subgroups rather than across the entire result set as if it were one group. - GroupBy *[]string `json:"groupBy,omitempty"` - - - // Filter - Behaves like a SQL WHERE clause. This is ANDed with the interval parameter. Expresses boolean logical predicates as well as dimensional filters - Filter *Surveyaggregatequeryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // FlattenMultivaluedDimensions - Flattens any multivalued dimensions used in response groups (e.g. ['a','b','c']->'a,b,c') - FlattenMultivaluedDimensions *bool `json:"flattenMultivaluedDimensions,omitempty"` - - - // Views - Custom derived metric views - Views *[]Surveyaggregationview `json:"views,omitempty"` - - - // AlternateTimeDimension - Dimension to use as the alternative timestamp for data in the aggregate. Choosing \"eventTime\" uses the actual time of the data event. - AlternateTimeDimension *string `json:"alternateTimeDimension,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyaggregationview.go b/build/platformclientv2/surveyaggregationview.go deleted file mode 100644 index 0330586c0..000000000 --- a/build/platformclientv2/surveyaggregationview.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyaggregationview -type Surveyaggregationview struct { - // Target - Target metric name - Target *string `json:"target,omitempty"` - - - // Name - A unique name for this view. Must be distinct from other views and built-in metric names. - Name *string `json:"name,omitempty"` - - - // Function - Type of view you wish to create - Function *string `json:"function,omitempty"` - - - // VarRange - Range of numbers for slicing up data - VarRange *Aggregationrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyaggregationview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyassignment.go b/build/platformclientv2/surveyassignment.go deleted file mode 100644 index ed23d6774..000000000 --- a/build/platformclientv2/surveyassignment.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyassignment -type Surveyassignment struct { - // SurveyForm - The survey form used for this survey. - SurveyForm *Publishedsurveyformreference `json:"surveyForm,omitempty"` - - - // Flow - The URI reference to the flow associated with this survey. - Flow *Domainentityref `json:"flow,omitempty"` - - - // InviteTimeInterval - An ISO 8601 repeated interval consisting of the number of repetitions, the start datetime, and the interval (e.g. R2/2018-03-01T13:00:00Z/P1M10DT2H30M). Total duration must not exceed 90 days. - InviteTimeInterval *string `json:"inviteTimeInterval,omitempty"` - - - // SendingUser - User together with sendingDomain used to send email, null to use no-reply - SendingUser *string `json:"sendingUser,omitempty"` - - - // SendingDomain - Validated email domain, required - SendingDomain *string `json:"sendingDomain,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyassignment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveydetailqueryclause.go b/build/platformclientv2/surveydetailqueryclause.go deleted file mode 100644 index 4c3ddd043..000000000 --- a/build/platformclientv2/surveydetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveydetailqueryclause -type Surveydetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Surveydetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveydetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveydetailqueryfilter.go b/build/platformclientv2/surveydetailqueryfilter.go deleted file mode 100644 index 2218c4066..000000000 --- a/build/platformclientv2/surveydetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveydetailqueryfilter -type Surveydetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Surveydetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Surveydetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveydetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveydetailquerypredicate.go b/build/platformclientv2/surveydetailquerypredicate.go deleted file mode 100644 index 66e41f25d..000000000 --- a/build/platformclientv2/surveydetailquerypredicate.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveydetailquerypredicate -type Surveydetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Metric - Left hand side for metric predicates - Metric *string `json:"metric,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension or metric predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension or metric predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveydetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyerrordetails.go b/build/platformclientv2/surveyerrordetails.go deleted file mode 100644 index 7399be2e2..000000000 --- a/build/platformclientv2/surveyerrordetails.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyerrordetails -type Surveyerrordetails struct { - // FlowDiagnosticInfo - Additional information about any errors that occurred in the survey invite flow. - FlowDiagnosticInfo *Flowdiagnosticinfo `json:"flowDiagnosticInfo,omitempty"` - - - // SurveyErrorReason - An error code indicating the reason for the survey failure. - SurveyErrorReason *string `json:"surveyErrorReason,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyerrordetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyform.go b/build/platformclientv2/surveyform.go deleted file mode 100644 index 352b5c666..000000000 --- a/build/platformclientv2/surveyform.go +++ /dev/null @@ -1,70 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Surveyform -type Surveyform struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The survey form name - Name *string `json:"name,omitempty"` - - - // ModifiedDate - Last modified date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // Published - Is this form published - Published *bool `json:"published,omitempty"` - - - // Disabled - Is this form disabled - Disabled *bool `json:"disabled,omitempty"` - - - // ContextId - Unique Id for all versions of this form - ContextId *string `json:"contextId,omitempty"` - - - // Language - Language for survey viewer localization. Currently localized languages: da, de, en-US, es, fi, fr, it, ja, ko, nl, no, pl, pt-BR, sv, th, tr, zh-CH, zh-TW - Language *string `json:"language,omitempty"` - - - // HeaderImageId - Id of the header image appearing at the top of the form. - HeaderImageId *string `json:"headerImageId,omitempty"` - - - // HeaderImageUrl - Temporary URL for accessing header image - HeaderImageUrl *string `json:"headerImageUrl,omitempty"` - - - // Header - Markdown text for the top of the form. - Header *string `json:"header,omitempty"` - - - // Footer - Markdown text for the bottom of the form. - Footer *string `json:"footer,omitempty"` - - - // QuestionGroups - A list of question groups - QuestionGroups *[]Surveyquestiongroup `json:"questionGroups,omitempty"` - - - // PublishedVersions - List of published version of this form - PublishedVersions *Domainentitylistingsurveyform `json:"publishedVersions,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyform) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyformandscoringset.go b/build/platformclientv2/surveyformandscoringset.go deleted file mode 100644 index 697e619d9..000000000 --- a/build/platformclientv2/surveyformandscoringset.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyformandscoringset -type Surveyformandscoringset struct { - // SurveyForm - SurveyForm *Surveyform `json:"surveyForm,omitempty"` - - - // Answers - Answers *Surveyscoringset `json:"answers,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyformandscoringset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyformentitylisting.go b/build/platformclientv2/surveyformentitylisting.go deleted file mode 100644 index 57b548820..000000000 --- a/build/platformclientv2/surveyformentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyformentitylisting -type Surveyformentitylisting struct { - // Entities - Entities *[]Surveyform `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyformentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyquestion.go b/build/platformclientv2/surveyquestion.go deleted file mode 100644 index 09995fe29..000000000 --- a/build/platformclientv2/surveyquestion.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyquestion -type Surveyquestion struct { - // Id - Id *string `json:"id,omitempty"` - - - // Text - Text *string `json:"text,omitempty"` - - - // HelpText - HelpText *string `json:"helpText,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // NaEnabled - NaEnabled *bool `json:"naEnabled,omitempty"` - - - // VisibilityCondition - VisibilityCondition *Visibilitycondition `json:"visibilityCondition,omitempty"` - - - // AnswerOptions - Options from which to choose an answer for this question. Only used by Multiple Choice type questions. - AnswerOptions *[]Answeroption `json:"answerOptions,omitempty"` - - - // MaxResponseCharacters - How many characters are allowed in the text response to this question. Used by NPS and Free Text question types. - MaxResponseCharacters *int32 `json:"maxResponseCharacters,omitempty"` - - - // ExplanationPrompt - Prompt for details explaining the chosen NPS score. Used by NPS questions. - ExplanationPrompt *string `json:"explanationPrompt,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyquestion) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyquestiongroup.go b/build/platformclientv2/surveyquestiongroup.go deleted file mode 100644 index a39c45710..000000000 --- a/build/platformclientv2/surveyquestiongroup.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyquestiongroup -type Surveyquestiongroup struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // NaEnabled - NaEnabled *bool `json:"naEnabled,omitempty"` - - - // Questions - Questions *[]Surveyquestion `json:"questions,omitempty"` - - - // VisibilityCondition - VisibilityCondition *Visibilitycondition `json:"visibilityCondition,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyquestiongroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyquestiongroupscore.go b/build/platformclientv2/surveyquestiongroupscore.go deleted file mode 100644 index 32a81eec2..000000000 --- a/build/platformclientv2/surveyquestiongroupscore.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyquestiongroupscore -type Surveyquestiongroupscore struct { - // QuestionGroupId - QuestionGroupId *string `json:"questionGroupId,omitempty"` - - - // TotalScore - TotalScore *float32 `json:"totalScore,omitempty"` - - - // MaxTotalScore - MaxTotalScore *float32 `json:"maxTotalScore,omitempty"` - - - // MarkedNA - MarkedNA *bool `json:"markedNA,omitempty"` - - - // QuestionScores - QuestionScores *[]Surveyquestionscore `json:"questionScores,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyquestiongroupscore) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyquestionscore.go b/build/platformclientv2/surveyquestionscore.go deleted file mode 100644 index 72af0cfae..000000000 --- a/build/platformclientv2/surveyquestionscore.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyquestionscore -type Surveyquestionscore struct { - // QuestionId - QuestionId *string `json:"questionId,omitempty"` - - - // AnswerId - AnswerId *string `json:"answerId,omitempty"` - - - // Score - Score *int32 `json:"score,omitempty"` - - - // MarkedNA - MarkedNA *bool `json:"markedNA,omitempty"` - - - // NpsScore - NpsScore *int32 `json:"npsScore,omitempty"` - - - // NpsTextAnswer - NpsTextAnswer *string `json:"npsTextAnswer,omitempty"` - - - // FreeTextAnswer - FreeTextAnswer *string `json:"freeTextAnswer,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyquestionscore) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/surveyscoringset.go b/build/platformclientv2/surveyscoringset.go deleted file mode 100644 index bc6f0495c..000000000 --- a/build/platformclientv2/surveyscoringset.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Surveyscoringset -type Surveyscoringset struct { - // TotalScore - TotalScore *float32 `json:"totalScore,omitempty"` - - - // NpsScore - NpsScore *int32 `json:"npsScore,omitempty"` - - - // QuestionGroupScores - QuestionGroupScores *[]Surveyquestiongroupscore `json:"questionGroupScores,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Surveyscoringset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/systemmessagesystemmessage.go b/build/platformclientv2/systemmessagesystemmessage.go deleted file mode 100644 index cf8834880..000000000 --- a/build/platformclientv2/systemmessagesystemmessage.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Systemmessagesystemmessage -type Systemmessagesystemmessage struct { - // ChannelId - ChannelId *string `json:"channelId,omitempty"` - - - // SystemTopicType - SystemTopicType *string `json:"systemTopicType,omitempty"` - - - // CorrelationId - CorrelationId *string `json:"correlationId,omitempty"` - - - // OrganizationId - OrganizationId *string `json:"organizationId,omitempty"` - - - // UserId - UserId *string `json:"userId,omitempty"` - - - // OauthClientId - OauthClientId *string `json:"oauthClientId,omitempty"` - - - // Reason - Reason *string `json:"reason,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // Data - Data *map[string]interface{} `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Systemmessagesystemmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/systempresence.go b/build/platformclientv2/systempresence.go deleted file mode 100644 index ee91c56f4..000000000 --- a/build/platformclientv2/systempresence.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Systempresence -type Systempresence struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Systempresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/systemprompt.go b/build/platformclientv2/systemprompt.go deleted file mode 100644 index 1293ed427..000000000 --- a/build/platformclientv2/systemprompt.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Systemprompt -type Systemprompt struct { - // Id - The system prompt identifier - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Resources - Resources *[]Systempromptasset `json:"resources,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Systemprompt) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/systempromptasset.go b/build/platformclientv2/systempromptasset.go deleted file mode 100644 index be058294e..000000000 --- a/build/platformclientv2/systempromptasset.go +++ /dev/null @@ -1,69 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Systempromptasset -type Systempromptasset struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // PromptId - PromptId *string `json:"promptId,omitempty"` - - - // Language - The asset resource language - Language *string `json:"language,omitempty"` - - - // DurationSeconds - DurationSeconds *float64 `json:"durationSeconds,omitempty"` - - - // MediaUri - MediaUri *string `json:"mediaUri,omitempty"` - - - // TtsString - TtsString *string `json:"ttsString,omitempty"` - - - // Text - Text *string `json:"text,omitempty"` - - - // UploadUri - UploadUri *string `json:"uploadUri,omitempty"` - - - // UploadStatus - UploadStatus *string `json:"uploadStatus,omitempty"` - - - // HasDefault - HasDefault *bool `json:"hasDefault,omitempty"` - - - // LanguageDefault - LanguageDefault *bool `json:"languageDefault,omitempty"` - - - // Tags - Tags *map[string][]string `json:"tags,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Systempromptasset) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/systempromptassetentitylisting.go b/build/platformclientv2/systempromptassetentitylisting.go deleted file mode 100644 index 7ad25435b..000000000 --- a/build/platformclientv2/systempromptassetentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Systempromptassetentitylisting -type Systempromptassetentitylisting struct { - // Entities - Entities *[]Systempromptasset `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Systempromptassetentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/systempromptentitylisting.go b/build/platformclientv2/systempromptentitylisting.go deleted file mode 100644 index 94d97faef..000000000 --- a/build/platformclientv2/systempromptentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Systempromptentitylisting -type Systempromptentitylisting struct { - // Entities - Entities *[]Systemprompt `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Systempromptentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/tagqueryrequest.go b/build/platformclientv2/tagqueryrequest.go deleted file mode 100644 index bb73981c1..000000000 --- a/build/platformclientv2/tagqueryrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Tagqueryrequest -type Tagqueryrequest struct { - // Query - Query *string `json:"query,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Tagqueryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/tagvalue.go b/build/platformclientv2/tagvalue.go deleted file mode 100644 index 9904f1695..000000000 --- a/build/platformclientv2/tagvalue.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Tagvalue -type Tagvalue struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The workspace tag name. - Name *string `json:"name,omitempty"` - - - // InUse - InUse *bool `json:"inUse,omitempty"` - - - // Acl - Acl *[]string `json:"acl,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Tagvalue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/tagvalueentitylisting.go b/build/platformclientv2/tagvalueentitylisting.go deleted file mode 100644 index ea7b50f6c..000000000 --- a/build/platformclientv2/tagvalueentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Tagvalueentitylisting -type Tagvalueentitylisting struct { - // Entities - Entities *[]Tagvalue `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Tagvalueentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/telephonyapi.go b/build/platformclientv2/telephonyapi.go deleted file mode 100644 index 4905e4f0e..000000000 --- a/build/platformclientv2/telephonyapi.go +++ /dev/null @@ -1,284 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "time" -"encoding/json" -) - -// TelephonyApi provides functions for API endpoints -type TelephonyApi struct { - Configuration *Configuration -} - -// NewTelephonyApi creates an API instance using the default configuration -func NewTelephonyApi() *TelephonyApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating TelephonyApi with base path: %s", strings.ToLower(config.BasePath))) - return &TelephonyApi{ - Configuration: config, - } -} - -// NewTelephonyApiWithConfig creates an API instance using the provided configuration -func NewTelephonyApiWithConfig(config *Configuration) *TelephonyApi { - config.Debugf("Creating TelephonyApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &TelephonyApi{ - Configuration: config, - } -} - -// GetTelephonySiptraces invokes GET /api/v2/telephony/siptraces -// -// Fetch SIP metadata -// -// Fetch SIP metadata that matches a given parameter. If exactMatch is passed as a parameter only sip records that have exactly that value will be returned. For example, some records contain conversationId but not all relevant records for that call may contain the conversationId so only a partial view of the call will be reflected -func (a TelephonyApi) GetTelephonySiptraces(dateStart time.Time, dateEnd time.Time, callId string, toUser string, fromUser string, conversationId string) (*Sipsearchresult, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/siptraces" - defaultReturn := new(Sipsearchresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'dateStart' is set - if &dateStart == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dateStart' when calling TelephonyApi->GetTelephonySiptraces") - } - // verify the required parameter 'dateEnd' is set - if &dateEnd == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'dateEnd' when calling TelephonyApi->GetTelephonySiptraces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["callId"] = a.Configuration.APIClient.ParameterToString(callId, collectionFormat) - - - - - collectionFormat = "" - queryParams["toUser"] = a.Configuration.APIClient.ParameterToString(toUser, collectionFormat) - - - - - collectionFormat = "" - queryParams["fromUser"] = a.Configuration.APIClient.ParameterToString(fromUser, collectionFormat) - - - - - collectionFormat = "" - queryParams["conversationId"] = a.Configuration.APIClient.ParameterToString(conversationId, collectionFormat) - - - - - collectionFormat = "" - queryParams["dateStart"] = a.Configuration.APIClient.ParameterToString(dateStart, collectionFormat) - - - - - collectionFormat = "" - queryParams["dateEnd"] = a.Configuration.APIClient.ParameterToString(dateEnd, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Sipsearchresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonySiptracesDownloadDownloadId invokes GET /api/v2/telephony/siptraces/download/{downloadId} -// -// Get signed S3 URL for a pcap download -// -// -func (a TelephonyApi) GetTelephonySiptracesDownloadDownloadId(downloadId string) (*Signedurlresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/siptraces/download/{downloadId}" - path = strings.Replace(path, "{downloadId}", fmt.Sprintf("%v", downloadId), -1) - defaultReturn := new(Signedurlresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'downloadId' is set - if &downloadId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'downloadId' when calling TelephonyApi->GetTelephonySiptracesDownloadDownloadId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Signedurlresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonySiptracesDownload invokes POST /api/v2/telephony/siptraces/download -// -// Request a download of a pcap file to S3 -// -// -func (a TelephonyApi) PostTelephonySiptracesDownload(sIPSearchPublicRequest Sipsearchpublicrequest) (*Sipdownloadresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/siptraces/download" - defaultReturn := new(Sipdownloadresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'sIPSearchPublicRequest' is set - if &sIPSearchPublicRequest == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'sIPSearchPublicRequest' when calling TelephonyApi->PostTelephonySiptracesDownload") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &sIPSearchPublicRequest - - var successPayload *Sipdownloadresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/telephonyprovidersedgeapi.go b/build/platformclientv2/telephonyprovidersedgeapi.go deleted file mode 100644 index 679a06101..000000000 --- a/build/platformclientv2/telephonyprovidersedgeapi.go +++ /dev/null @@ -1,9973 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// TelephonyProvidersEdgeApi provides functions for API endpoints -type TelephonyProvidersEdgeApi struct { - Configuration *Configuration -} - -// NewTelephonyProvidersEdgeApi creates an API instance using the default configuration -func NewTelephonyProvidersEdgeApi() *TelephonyProvidersEdgeApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating TelephonyProvidersEdgeApi with base path: %s", strings.ToLower(config.BasePath))) - return &TelephonyProvidersEdgeApi{ - Configuration: config, - } -} - -// NewTelephonyProvidersEdgeApiWithConfig creates an API instance using the provided configuration -func NewTelephonyProvidersEdgeApiWithConfig(config *Configuration) *TelephonyProvidersEdgeApi { - config.Debugf("Creating TelephonyProvidersEdgeApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &TelephonyProvidersEdgeApi{ - Configuration: config, - } -} - -// DeleteTelephonyProvidersEdge invokes DELETE /api/v2/telephony/providers/edges/{edgeId} -// -// Delete a edge. -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdge(edgeId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdge") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgeLogicalinterface invokes DELETE /api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId} -// -// Delete an edge logical interface -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgeLogicalinterface(edgeId string, interfaceId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgeLogicalinterface") - } - // verify the required parameter 'interfaceId' is set - if &interfaceId == nil { - // - return nil, errors.New("Missing required parameter 'interfaceId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgeLogicalinterface") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgeSoftwareupdate invokes DELETE /api/v2/telephony/providers/edges/{edgeId}/softwareupdate -// -// Cancels any in-progress update for this edge. -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgeSoftwareupdate(edgeId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/softwareupdate" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgeSoftwareupdate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesCertificateauthority invokes DELETE /api/v2/telephony/providers/edges/certificateauthorities/{certificateId} -// -// Delete a certificate authority. -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesCertificateauthority(certificateId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}" - path = strings.Replace(path, "{certificateId}", fmt.Sprintf("%v", certificateId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'certificateId' is set - if &certificateId == nil { - // - return nil, errors.New("Missing required parameter 'certificateId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesCertificateauthority") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesDidpool invokes DELETE /api/v2/telephony/providers/edges/didpools/{didPoolId} -// -// Delete a DID Pool by ID. -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesDidpool(didPoolId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/didpools/{didPoolId}" - path = strings.Replace(path, "{didPoolId}", fmt.Sprintf("%v", didPoolId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'didPoolId' is set - if &didPoolId == nil { - // - return nil, errors.New("Missing required parameter 'didPoolId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesDidpool") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesEdgegroup invokes DELETE /api/v2/telephony/providers/edges/edgegroups/{edgeGroupId} -// -// Delete an edge group. -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesEdgegroup(edgeGroupId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}" - path = strings.Replace(path, "{edgeGroupId}", fmt.Sprintf("%v", edgeGroupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeGroupId' is set - if &edgeGroupId == nil { - // - return nil, errors.New("Missing required parameter 'edgeGroupId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesEdgegroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesExtensionpool invokes DELETE /api/v2/telephony/providers/edges/extensionpools/{extensionPoolId} -// -// Delete an extension pool by ID -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesExtensionpool(extensionPoolId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}" - path = strings.Replace(path, "{extensionPoolId}", fmt.Sprintf("%v", extensionPoolId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'extensionPoolId' is set - if &extensionPoolId == nil { - // - return nil, errors.New("Missing required parameter 'extensionPoolId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesExtensionpool") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesOutboundroute invokes DELETE /api/v2/telephony/providers/edges/outboundroutes/{outboundRouteId} -// -// Delete Outbound Route -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesOutboundroute(outboundRouteId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/outboundroutes/{outboundRouteId}" - path = strings.Replace(path, "{outboundRouteId}", fmt.Sprintf("%v", outboundRouteId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'outboundRouteId' is set - if &outboundRouteId == nil { - // - return nil, errors.New("Missing required parameter 'outboundRouteId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesOutboundroute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesPhone invokes DELETE /api/v2/telephony/providers/edges/phones/{phoneId} -// -// Delete a Phone by ID -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesPhone(phoneId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones/{phoneId}" - path = strings.Replace(path, "{phoneId}", fmt.Sprintf("%v", phoneId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneId' is set - if &phoneId == nil { - // - return nil, errors.New("Missing required parameter 'phoneId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesPhone") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesPhonebasesetting invokes DELETE /api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId} -// -// Delete a Phone Base Settings by ID -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesPhonebasesetting(phoneBaseId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}" - path = strings.Replace(path, "{phoneBaseId}", fmt.Sprintf("%v", phoneBaseId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneBaseId' is set - if &phoneBaseId == nil { - // - return nil, errors.New("Missing required parameter 'phoneBaseId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesPhonebasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesSite invokes DELETE /api/v2/telephony/providers/edges/sites/{siteId} -// -// Delete a Site by ID -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesSite(siteId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesSite") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesSiteOutboundroute invokes DELETE /api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId} -// -// Delete Outbound Route -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesSiteOutboundroute(siteId string, outboundRouteId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - path = strings.Replace(path, "{outboundRouteId}", fmt.Sprintf("%v", outboundRouteId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesSiteOutboundroute") - } - // verify the required parameter 'outboundRouteId' is set - if &outboundRouteId == nil { - // - return nil, errors.New("Missing required parameter 'outboundRouteId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesSiteOutboundroute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTelephonyProvidersEdgesTrunkbasesetting invokes DELETE /api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId} -// -// Delete a Trunk Base Settings object by ID -// -// -func (a TelephonyProvidersEdgeApi) DeleteTelephonyProvidersEdgesTrunkbasesetting(trunkBaseSettingsId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}" - path = strings.Replace(path, "{trunkBaseSettingsId}", fmt.Sprintf("%v", trunkBaseSettingsId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkBaseSettingsId' is set - if &trunkBaseSettingsId == nil { - // - return nil, errors.New("Missing required parameter 'trunkBaseSettingsId' when calling TelephonyProvidersEdgeApi->DeleteTelephonyProvidersEdgesTrunkbasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetConfigurationSchemasEdgesVnext invokes GET /api/v2/configuration/schemas/edges/vnext -// -// Lists available schema categories (Deprecated) -// -// -func (a TelephonyProvidersEdgeApi) GetConfigurationSchemasEdgesVnext(pageSize int32, pageNumber int32) (*Schemacategoryentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/configuration/schemas/edges/vnext" - defaultReturn := new(Schemacategoryentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schemacategoryentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConfigurationSchemasEdgesVnextSchemaCategory invokes GET /api/v2/configuration/schemas/edges/vnext/{schemaCategory} -// -// List schemas of a specific category (Deprecated) -// -// -func (a TelephonyProvidersEdgeApi) GetConfigurationSchemasEdgesVnextSchemaCategory(schemaCategory string, pageSize int32, pageNumber int32) (*Schemareferenceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}" - path = strings.Replace(path, "{schemaCategory}", fmt.Sprintf("%v", schemaCategory), -1) - defaultReturn := new(Schemareferenceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'schemaCategory' is set - if &schemaCategory == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaCategory' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategory") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schemareferenceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConfigurationSchemasEdgesVnextSchemaCategorySchemaType invokes GET /api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType} -// -// List schemas of a specific category (Deprecated) -// -// -func (a TelephonyProvidersEdgeApi) GetConfigurationSchemasEdgesVnextSchemaCategorySchemaType(schemaCategory string, schemaType string, pageSize int32, pageNumber int32) (*Schemareferenceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}" - path = strings.Replace(path, "{schemaCategory}", fmt.Sprintf("%v", schemaCategory), -1) - path = strings.Replace(path, "{schemaType}", fmt.Sprintf("%v", schemaType), -1) - defaultReturn := new(Schemareferenceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'schemaCategory' is set - if &schemaCategory == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaCategory' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaType") - } - // verify the required parameter 'schemaType' is set - if &schemaType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaType' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaType") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schemareferenceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaId invokes GET /api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}/{schemaId} -// -// Get a json schema (Deprecated) -// -// -func (a TelephonyProvidersEdgeApi) GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaId(schemaCategory string, schemaType string, schemaId string) (*Organization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}/{schemaId}" - path = strings.Replace(path, "{schemaCategory}", fmt.Sprintf("%v", schemaCategory), -1) - path = strings.Replace(path, "{schemaType}", fmt.Sprintf("%v", schemaType), -1) - path = strings.Replace(path, "{schemaId}", fmt.Sprintf("%v", schemaId), -1) - defaultReturn := new(Organization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'schemaCategory' is set - if &schemaCategory == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaCategory' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaId") - } - // verify the required parameter 'schemaType' is set - if &schemaType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaType' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaId") - } - // verify the required parameter 'schemaId' is set - if &schemaId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaId' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId invokes GET /api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}/{schemaId}/{extensionType}/{metadataId} -// -// Get metadata for a schema (Deprecated) -// -// -func (a TelephonyProvidersEdgeApi) GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId(schemaCategory string, schemaType string, schemaId string, extensionType string, metadataId string, varType string) (*Organization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/configuration/schemas/edges/vnext/{schemaCategory}/{schemaType}/{schemaId}/{extensionType}/{metadataId}" - path = strings.Replace(path, "{schemaCategory}", fmt.Sprintf("%v", schemaCategory), -1) - path = strings.Replace(path, "{schemaType}", fmt.Sprintf("%v", schemaType), -1) - path = strings.Replace(path, "{schemaId}", fmt.Sprintf("%v", schemaId), -1) - path = strings.Replace(path, "{extensionType}", fmt.Sprintf("%v", extensionType), -1) - path = strings.Replace(path, "{metadataId}", fmt.Sprintf("%v", metadataId), -1) - defaultReturn := new(Organization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'schemaCategory' is set - if &schemaCategory == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaCategory' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId") - } - // verify the required parameter 'schemaType' is set - if &schemaType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaType' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId") - } - // verify the required parameter 'schemaId' is set - if &schemaId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'schemaId' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId") - } - // verify the required parameter 'extensionType' is set - if &extensionType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'extensionType' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId") - } - // verify the required parameter 'metadataId' is set - if &metadataId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'metadataId' when calling TelephonyProvidersEdgeApi->GetConfigurationSchemasEdgesVnextSchemaCategorySchemaTypeSchemaIdExtensionTypeMetadataId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Organization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdge invokes GET /api/v2/telephony/providers/edges/{edgeId} -// -// Get edge. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdge(edgeId string, expand []string) (*Edge, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edge) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdge") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edge - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeDiagnosticNslookup invokes GET /api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup -// -// Get networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeDiagnosticNslookup(edgeId string) (*Edgenetworkdiagnosticresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnosticresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeDiagnosticNslookup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgenetworkdiagnosticresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeDiagnosticPing invokes GET /api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping -// -// Get networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeDiagnosticPing(edgeId string) (*Edgenetworkdiagnosticresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnosticresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeDiagnosticPing") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgenetworkdiagnosticresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeDiagnosticRoute invokes GET /api/v2/telephony/providers/edges/{edgeId}/diagnostic/route -// -// Get networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeDiagnosticRoute(edgeId string) (*Edgenetworkdiagnosticresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnosticresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeDiagnosticRoute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgenetworkdiagnosticresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeDiagnosticTracepath invokes GET /api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath -// -// Get networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeDiagnosticTracepath(edgeId string) (*Edgenetworkdiagnosticresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnosticresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeDiagnosticTracepath") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgenetworkdiagnosticresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeLine invokes GET /api/v2/telephony/providers/edges/{edgeId}/lines/{lineId} -// -// Get line -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeLine(edgeId string, lineId string) (*Edgeline, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/lines/{lineId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{lineId}", fmt.Sprintf("%v", lineId), -1) - defaultReturn := new(Edgeline) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLine") - } - // verify the required parameter 'lineId' is set - if &lineId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'lineId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLine") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgeline - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeLines invokes GET /api/v2/telephony/providers/edges/{edgeId}/lines -// -// Get the list of lines. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeLines(edgeId string, pageSize int32, pageNumber int32) (*Edgelineentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/lines" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgelineentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLines") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgelineentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeLogicalinterface invokes GET /api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId} -// -// Get an edge logical interface -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeLogicalinterface(edgeId string, interfaceId string, expand []string) (*Domainlogicalinterface, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceId), -1) - defaultReturn := new(Domainlogicalinterface) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLogicalinterface") - } - // verify the required parameter 'interfaceId' is set - if &interfaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'interfaceId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLogicalinterface") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainlogicalinterface - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeLogicalinterfaces invokes GET /api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces -// -// Get edge logical interfaces. -// -// Retrieve a list of all configured logical interfaces from a specific edge. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeLogicalinterfaces(edgeId string, expand []string) (*Logicalinterfaceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Logicalinterfaceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLogicalinterfaces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Logicalinterfaceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeLogsJob invokes GET /api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId} -// -// Get an Edge logs job. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeLogsJob(edgeId string, jobId string) (*Edgelogsjob, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Edgelogsjob) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLogsJob") - } - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeLogsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgelogsjob - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeMetrics invokes GET /api/v2/telephony/providers/edges/{edgeId}/metrics -// -// Get the edge metrics. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeMetrics(edgeId string) (*Edgemetrics, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/metrics" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgemetrics) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeMetrics") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgemetrics - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgePhysicalinterface invokes GET /api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces/{interfaceId} -// -// Get edge physical interface. -// -// Retrieve a physical interface from a specific edge. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgePhysicalinterface(edgeId string, interfaceId string) (*Domainphysicalinterface, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces/{interfaceId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceId), -1) - defaultReturn := new(Domainphysicalinterface) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgePhysicalinterface") - } - // verify the required parameter 'interfaceId' is set - if &interfaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'interfaceId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgePhysicalinterface") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainphysicalinterface - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgePhysicalinterfaces invokes GET /api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces -// -// Retrieve a list of all configured physical interfaces from a specific edge. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgePhysicalinterfaces(edgeId string) (*Physicalinterfaceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Physicalinterfaceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgePhysicalinterfaces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Physicalinterfaceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeSetuppackage invokes GET /api/v2/telephony/providers/edges/{edgeId}/setuppackage -// -// Get the setup package for a locally deployed edge device. This is needed to complete the setup process for the virtual edge. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeSetuppackage(edgeId string) (*Vmpairinginfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/setuppackage" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Vmpairinginfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeSetuppackage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Vmpairinginfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeSoftwareupdate invokes GET /api/v2/telephony/providers/edges/{edgeId}/softwareupdate -// -// Gets software update status information about any edge. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeSoftwareupdate(edgeId string) (*Domainedgesoftwareupdatedto, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/softwareupdate" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Domainedgesoftwareupdatedto) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeSoftwareupdate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainedgesoftwareupdatedto - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeSoftwareversions invokes GET /api/v2/telephony/providers/edges/{edgeId}/softwareversions -// -// Gets all the available software versions for this edge. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeSoftwareversions(edgeId string) (*Domainedgesoftwareversiondtoentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/softwareversions" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Domainedgesoftwareversiondtoentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeSoftwareversions") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domainedgesoftwareversiondtoentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgeTrunks invokes GET /api/v2/telephony/providers/edges/{edgeId}/trunks -// -// Get the list of available trunks for the given Edge. -// -// Trunks are created by assigning trunk base settings to an Edge or Edge Group. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgeTrunks(edgeId string, pageNumber int32, pageSize int32, sortBy string, sortOrder string, trunkBaseId string, trunkType string) (*Trunkentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/trunks" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Trunkentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgeTrunks") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["trunkBaseId"] = a.Configuration.APIClient.ParameterToString(trunkBaseId, collectionFormat) - - - - - collectionFormat = "" - queryParams["trunkType"] = a.Configuration.APIClient.ParameterToString(trunkType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdges invokes GET /api/v2/telephony/providers/edges -// -// Get the list of edges. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdges(pageSize int32, pageNumber int32, name string, siteId string, edgeGroupId string, sortBy string, managed bool) (*Edgeentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges" - defaultReturn := new(Edgeentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["siteId"] = a.Configuration.APIClient.ParameterToString(siteId, collectionFormat) - - - - - collectionFormat = "" - queryParams["edgeGroupId"] = a.Configuration.APIClient.ParameterToString(edgeGroupId, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["managed"] = a.Configuration.APIClient.ParameterToString(managed, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgeentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesAvailablelanguages invokes GET /api/v2/telephony/providers/edges/availablelanguages -// -// Get the list of available languages. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesAvailablelanguages() (*Availablelanguagelist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/availablelanguages" - defaultReturn := new(Availablelanguagelist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Availablelanguagelist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesCertificateauthorities invokes GET /api/v2/telephony/providers/edges/certificateauthorities -// -// Get the list of certificate authorities. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesCertificateauthorities() (*Certificateauthorityentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/certificateauthorities" - defaultReturn := new(Certificateauthorityentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Certificateauthorityentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesCertificateauthority invokes GET /api/v2/telephony/providers/edges/certificateauthorities/{certificateId} -// -// Get a certificate authority. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesCertificateauthority(certificateId string) (*Domaincertificateauthority, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}" - path = strings.Replace(path, "{certificateId}", fmt.Sprintf("%v", certificateId), -1) - defaultReturn := new(Domaincertificateauthority) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'certificateId' is set - if &certificateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'certificateId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesCertificateauthority") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Domaincertificateauthority - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesDid invokes GET /api/v2/telephony/providers/edges/dids/{didId} -// -// Get a DID by ID. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesDid(didId string) (*Did, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/dids/{didId}" - path = strings.Replace(path, "{didId}", fmt.Sprintf("%v", didId), -1) - defaultReturn := new(Did) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'didId' is set - if &didId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'didId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesDid") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Did - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesDidpool invokes GET /api/v2/telephony/providers/edges/didpools/{didPoolId} -// -// Get a DID Pool by ID. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesDidpool(didPoolId string) (*Didpool, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/didpools/{didPoolId}" - path = strings.Replace(path, "{didPoolId}", fmt.Sprintf("%v", didPoolId), -1) - defaultReturn := new(Didpool) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'didPoolId' is set - if &didPoolId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'didPoolId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesDidpool") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Didpool - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesDidpools invokes GET /api/v2/telephony/providers/edges/didpools -// -// Get a listing of DID Pools -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesDidpools(pageSize int32, pageNumber int32, sortBy string) (*Didpoolentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/didpools" - defaultReturn := new(Didpoolentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Didpoolentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesDids invokes GET /api/v2/telephony/providers/edges/dids -// -// Get a listing of DIDs -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesDids(pageSize int32, pageNumber int32, sortBy string, sortOrder string, phoneNumber string, ownerId string, didPoolId string) (*Didentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/dids" - defaultReturn := new(Didentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["phoneNumber"] = a.Configuration.APIClient.ParameterToString(phoneNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["ownerId"] = a.Configuration.APIClient.ParameterToString(ownerId, collectionFormat) - - - - - collectionFormat = "" - queryParams["didPoolId"] = a.Configuration.APIClient.ParameterToString(didPoolId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Didentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesEdgegroup invokes GET /api/v2/telephony/providers/edges/edgegroups/{edgeGroupId} -// -// Get edge group. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesEdgegroup(edgeGroupId string, expand []string) (*Edgegroup, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}" - path = strings.Replace(path, "{edgeGroupId}", fmt.Sprintf("%v", edgeGroupId), -1) - defaultReturn := new(Edgegroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeGroupId' is set - if &edgeGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeGroupId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesEdgegroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgegroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesEdgegroupEdgetrunkbase invokes GET /api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId} -// -// Gets the edge trunk base associated with the edge group -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesEdgegroupEdgetrunkbase(edgegroupId string, edgetrunkbaseId string) (*Edgetrunkbase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}" - path = strings.Replace(path, "{edgegroupId}", fmt.Sprintf("%v", edgegroupId), -1) - path = strings.Replace(path, "{edgetrunkbaseId}", fmt.Sprintf("%v", edgetrunkbaseId), -1) - defaultReturn := new(Edgetrunkbase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgegroupId' is set - if &edgegroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgegroupId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesEdgegroupEdgetrunkbase") - } - // verify the required parameter 'edgetrunkbaseId' is set - if &edgetrunkbaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgetrunkbaseId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesEdgegroupEdgetrunkbase") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgetrunkbase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesEdgegroups invokes GET /api/v2/telephony/providers/edges/edgegroups -// -// Get the list of edge groups. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesEdgegroups(pageSize int32, pageNumber int32, name string, sortBy string, managed bool) (*Edgegroupentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups" - defaultReturn := new(Edgegroupentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["managed"] = a.Configuration.APIClient.ParameterToString(managed, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgegroupentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesEdgeversionreport invokes GET /api/v2/telephony/providers/edges/edgeversionreport -// -// Get the edge version report. -// -// The report will not have consistent data about the edge version(s) until all edges have been reset. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesEdgeversionreport() (*Edgeversionreport, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgeversionreport" - defaultReturn := new(Edgeversionreport) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Edgeversionreport - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesExtension invokes GET /api/v2/telephony/providers/edges/extensions/{extensionId} -// -// Get an extension by ID. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesExtension(extensionId string) (*Extension, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensions/{extensionId}" - path = strings.Replace(path, "{extensionId}", fmt.Sprintf("%v", extensionId), -1) - defaultReturn := new(Extension) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'extensionId' is set - if &extensionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'extensionId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesExtension") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Extension - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesExtensionpool invokes GET /api/v2/telephony/providers/edges/extensionpools/{extensionPoolId} -// -// Get an extension pool by ID -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesExtensionpool(extensionPoolId string) (*Extensionpool, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}" - path = strings.Replace(path, "{extensionPoolId}", fmt.Sprintf("%v", extensionPoolId), -1) - defaultReturn := new(Extensionpool) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'extensionPoolId' is set - if &extensionPoolId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'extensionPoolId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesExtensionpool") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Extensionpool - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesExtensionpools invokes GET /api/v2/telephony/providers/edges/extensionpools -// -// Get a listing of extension pools -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesExtensionpools(pageSize int32, pageNumber int32, sortBy string, number string) (*Extensionpoolentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensionpools" - defaultReturn := new(Extensionpoolentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["number"] = a.Configuration.APIClient.ParameterToString(number, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Extensionpoolentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesExtensions invokes GET /api/v2/telephony/providers/edges/extensions -// -// Get a listing of extensions -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesExtensions(pageSize int32, pageNumber int32, sortBy string, sortOrder string, number string) (*Extensionentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensions" - defaultReturn := new(Extensionentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["number"] = a.Configuration.APIClient.ParameterToString(number, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Extensionentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesLine invokes GET /api/v2/telephony/providers/edges/lines/{lineId} -// -// Get a Line by ID -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesLine(lineId string) (*Line, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/lines/{lineId}" - path = strings.Replace(path, "{lineId}", fmt.Sprintf("%v", lineId), -1) - defaultReturn := new(Line) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'lineId' is set - if &lineId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'lineId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesLine") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Line - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesLinebasesetting invokes GET /api/v2/telephony/providers/edges/linebasesettings/{lineBaseId} -// -// Get a line base settings object by ID -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesLinebasesetting(lineBaseId string) (*Linebase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/linebasesettings/{lineBaseId}" - path = strings.Replace(path, "{lineBaseId}", fmt.Sprintf("%v", lineBaseId), -1) - defaultReturn := new(Linebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'lineBaseId' is set - if &lineBaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'lineBaseId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesLinebasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Linebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesLinebasesettings invokes GET /api/v2/telephony/providers/edges/linebasesettings -// -// Get a listing of line base settings objects -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesLinebasesettings(pageNumber int32, pageSize int32, sortBy string, sortOrder string) (*Linebaseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/linebasesettings" - defaultReturn := new(Linebaseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Linebaseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesLines invokes GET /api/v2/telephony/providers/edges/lines -// -// Get a list of Lines -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesLines(pageSize int32, pageNumber int32, name string, sortBy string, expand []string) (*Lineentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/lines" - defaultReturn := new(Lineentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Lineentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesLinesTemplate invokes GET /api/v2/telephony/providers/edges/lines/template -// -// Get a Line instance template based on a Line Base Settings object. This object can then be modified and saved as a new Line instance -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesLinesTemplate(lineBaseSettingsId string) (*Line, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/lines/template" - defaultReturn := new(Line) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'lineBaseSettingsId' is set - if &lineBaseSettingsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'lineBaseSettingsId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesLinesTemplate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["lineBaseSettingsId"] = a.Configuration.APIClient.ParameterToString(lineBaseSettingsId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Line - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesLogicalinterfaces invokes GET /api/v2/telephony/providers/edges/logicalinterfaces -// -// Get edge logical interfaces. -// -// Retrieve the configured logical interfaces for a list edges. Only 100 edges can be requested at a time. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesLogicalinterfaces(edgeIds string, expand []string) (*Logicalinterfaceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/logicalinterfaces" - defaultReturn := new(Logicalinterfaceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeIds' is set - if &edgeIds == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeIds' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesLogicalinterfaces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["edgeIds"] = a.Configuration.APIClient.ParameterToString(edgeIds, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Logicalinterfaceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesMetrics invokes GET /api/v2/telephony/providers/edges/metrics -// -// Get the metrics for a list of edges. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesMetrics(edgeIds string) ([]Edgemetrics, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/metrics" - defaultReturn := make([]Edgemetrics, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeIds' is set - if &edgeIds == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeIds' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesMetrics") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["edgeIds"] = a.Configuration.APIClient.ParameterToString(edgeIds, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Edgemetrics - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesOutboundroute invokes GET /api/v2/telephony/providers/edges/outboundroutes/{outboundRouteId} -// -// Get outbound route -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesOutboundroute(outboundRouteId string) (*Outboundroute, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/outboundroutes/{outboundRouteId}" - path = strings.Replace(path, "{outboundRouteId}", fmt.Sprintf("%v", outboundRouteId), -1) - defaultReturn := new(Outboundroute) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'outboundRouteId' is set - if &outboundRouteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'outboundRouteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesOutboundroute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Outboundroute - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesOutboundroutes invokes GET /api/v2/telephony/providers/edges/outboundroutes -// -// Get outbound routes -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesOutboundroutes(pageSize int32, pageNumber int32, name string, siteId string, externalTrunkBasesIds string, sortBy string) (*Outboundrouteentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/outboundroutes" - defaultReturn := new(Outboundrouteentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["siteId"] = a.Configuration.APIClient.ParameterToString(siteId, collectionFormat) - - - - - collectionFormat = "" - queryParams["externalTrunkBasesIds"] = a.Configuration.APIClient.ParameterToString(externalTrunkBasesIds, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Outboundrouteentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhone invokes GET /api/v2/telephony/providers/edges/phones/{phoneId} -// -// Get a Phone by ID -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhone(phoneId string) (*Phone, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones/{phoneId}" - path = strings.Replace(path, "{phoneId}", fmt.Sprintf("%v", phoneId), -1) - defaultReturn := new(Phone) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneId' is set - if &phoneId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesPhone") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phone - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhonebasesetting invokes GET /api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId} -// -// Get a Phone Base Settings object by ID -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhonebasesetting(phoneBaseId string) (*Phonebase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}" - path = strings.Replace(path, "{phoneBaseId}", fmt.Sprintf("%v", phoneBaseId), -1) - defaultReturn := new(Phonebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneBaseId' is set - if &phoneBaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneBaseId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesPhonebasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phonebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhonebasesettings invokes GET /api/v2/telephony/providers/edges/phonebasesettings -// -// Get a list of Phone Base Settings objects -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhonebasesettings(pageSize int32, pageNumber int32, sortBy string, sortOrder string, expand []string, name string) (*Phonebaseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings" - defaultReturn := new(Phonebaseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phonebaseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhonebasesettingsAvailablemetabases invokes GET /api/v2/telephony/providers/edges/phonebasesettings/availablemetabases -// -// Get a list of available makes and models to create a new Phone Base Settings -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhonebasesettingsAvailablemetabases(pageSize int32, pageNumber int32) (*Phonemetabaseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings/availablemetabases" - defaultReturn := new(Phonemetabaseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phonemetabaseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhonebasesettingsTemplate invokes GET /api/v2/telephony/providers/edges/phonebasesettings/template -// -// Get a Phone Base Settings instance template from a given make and model. This object can then be modified and saved as a new Phone Base Settings instance -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhonebasesettingsTemplate(phoneMetabaseId string) (*Phonebase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings/template" - defaultReturn := new(Phonebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneMetabaseId' is set - if &phoneMetabaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneMetabaseId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesPhonebasesettingsTemplate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["phoneMetabaseId"] = a.Configuration.APIClient.ParameterToString(phoneMetabaseId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phonebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhones invokes GET /api/v2/telephony/providers/edges/phones -// -// Get a list of Phone Instances -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhones(pageNumber int32, pageSize int32, sortBy string, sortOrder string, siteId string, webRtcUserId string, phoneBaseSettingsId string, linesLoggedInUserId string, linesDefaultForUserId string, phoneHardwareId string, linesId string, linesName string, name string, expand []string, fields []string) (*Phoneentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones" - defaultReturn := new(Phoneentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["siteId"] = a.Configuration.APIClient.ParameterToString(siteId, collectionFormat) - - - - - collectionFormat = "" - queryParams["webRtcUserId"] = a.Configuration.APIClient.ParameterToString(webRtcUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["phoneBaseSettingsId"] = a.Configuration.APIClient.ParameterToString(phoneBaseSettingsId, collectionFormat) - - - - - collectionFormat = "" - queryParams["linesLoggedInUserId"] = a.Configuration.APIClient.ParameterToString(linesLoggedInUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["linesDefaultForUserId"] = a.Configuration.APIClient.ParameterToString(linesDefaultForUserId, collectionFormat) - - - - - collectionFormat = "" - queryParams["phoneHardwareId"] = a.Configuration.APIClient.ParameterToString(phoneHardwareId, collectionFormat) - - - - - collectionFormat = "" - queryParams["linesId"] = a.Configuration.APIClient.ParameterToString(linesId, collectionFormat) - - - - - collectionFormat = "" - queryParams["linesName"] = a.Configuration.APIClient.ParameterToString(linesName, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range fields { - queryParams["fields"] = value - } - } else { - queryParams["fields"] = a.Configuration.APIClient.ParameterToString(fields, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phoneentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhonesTemplate invokes GET /api/v2/telephony/providers/edges/phones/template -// -// Get a Phone instance template based on a Phone Base Settings object. This object can then be modified and saved as a new Phone instance -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhonesTemplate(phoneBaseSettingsId string) (*Phone, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones/template" - defaultReturn := new(Phone) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneBaseSettingsId' is set - if &phoneBaseSettingsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneBaseSettingsId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesPhonesTemplate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["phoneBaseSettingsId"] = a.Configuration.APIClient.ParameterToString(phoneBaseSettingsId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Phone - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesPhysicalinterfaces invokes GET /api/v2/telephony/providers/edges/physicalinterfaces -// -// Get physical interfaces for edges. -// -// Retrieves a list of all configured physical interfaces for a list of edges. Only 100 edges can be requested at a time. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesPhysicalinterfaces(edgeIds string) (*Physicalinterfaceentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/physicalinterfaces" - defaultReturn := new(Physicalinterfaceentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeIds' is set - if &edgeIds == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeIds' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesPhysicalinterfaces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["edgeIds"] = a.Configuration.APIClient.ParameterToString(edgeIds, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Physicalinterfaceentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSite invokes GET /api/v2/telephony/providers/edges/sites/{siteId} -// -// Get a Site by ID. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSite(siteId string) (*Site, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := new(Site) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSite") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Site - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSiteNumberplan invokes GET /api/v2/telephony/providers/edges/sites/{siteId}/numberplans/{numberPlanId} -// -// Get a Number Plan by ID. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSiteNumberplan(siteId string, numberPlanId string) (*Numberplan, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/{numberPlanId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - path = strings.Replace(path, "{numberPlanId}", fmt.Sprintf("%v", numberPlanId), -1) - defaultReturn := new(Numberplan) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteNumberplan") - } - // verify the required parameter 'numberPlanId' is set - if &numberPlanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'numberPlanId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteNumberplan") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Numberplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSiteNumberplans invokes GET /api/v2/telephony/providers/edges/sites/{siteId}/numberplans -// -// Get the list of Number Plans for this Site. Only fetches the first 200 records. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSiteNumberplans(siteId string) ([]Numberplan, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/numberplans" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := make([]Numberplan, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteNumberplans") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Numberplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSiteNumberplansClassifications invokes GET /api/v2/telephony/providers/edges/sites/{siteId}/numberplans/classifications -// -// Get a list of Classifications for this Site -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSiteNumberplansClassifications(siteId string, classification string) ([]string, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/classifications" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteNumberplansClassifications") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["classification"] = a.Configuration.APIClient.ParameterToString(classification, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSiteOutboundroute invokes GET /api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId} -// -// Get an outbound route -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSiteOutboundroute(siteId string, outboundRouteId string) (*Outboundroutebase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - path = strings.Replace(path, "{outboundRouteId}", fmt.Sprintf("%v", outboundRouteId), -1) - defaultReturn := new(Outboundroutebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteOutboundroute") - } - // verify the required parameter 'outboundRouteId' is set - if &outboundRouteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'outboundRouteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteOutboundroute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Outboundroutebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSiteOutboundroutes invokes GET /api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes -// -// Get outbound routes -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSiteOutboundroutes(siteId string, pageSize int32, pageNumber int32, name string, externalTrunkBasesIds string, sortBy string) (*Outboundroutebaseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := new(Outboundroutebaseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesSiteOutboundroutes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["externalTrunkBasesIds"] = a.Configuration.APIClient.ParameterToString(externalTrunkBasesIds, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Outboundroutebaseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesSites invokes GET /api/v2/telephony/providers/edges/sites -// -// Get the list of Sites. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesSites(pageSize int32, pageNumber int32, sortBy string, sortOrder string, name string, locationId string, managed bool) (*Siteentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites" - defaultReturn := new(Siteentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["locationId"] = a.Configuration.APIClient.ParameterToString(locationId, collectionFormat) - - - - - collectionFormat = "" - queryParams["managed"] = a.Configuration.APIClient.ParameterToString(managed, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Siteentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTimezones invokes GET /api/v2/telephony/providers/edges/timezones -// -// Get a list of Edge-compatible time zones -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTimezones(pageSize int32, pageNumber int32) (*Timezoneentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/timezones" - defaultReturn := new(Timezoneentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timezoneentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunk invokes GET /api/v2/telephony/providers/edges/trunks/{trunkId} -// -// Get a Trunk by ID -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunk(trunkId string) (*Trunk, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunks/{trunkId}" - path = strings.Replace(path, "{trunkId}", fmt.Sprintf("%v", trunkId), -1) - defaultReturn := new(Trunk) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkId' is set - if &trunkId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trunkId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesTrunk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunk - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunkMetrics invokes GET /api/v2/telephony/providers/edges/trunks/{trunkId}/metrics -// -// Get the trunk metrics. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunkMetrics(trunkId string) (*Trunkmetrics, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunks/{trunkId}/metrics" - path = strings.Replace(path, "{trunkId}", fmt.Sprintf("%v", trunkId), -1) - defaultReturn := new(Trunkmetrics) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkId' is set - if &trunkId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trunkId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesTrunkMetrics") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkmetrics - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunkbasesetting invokes GET /api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId} -// -// Get a Trunk Base Settings object by ID -// -// Managed properties will not be returned unless the user is assigned the internal:trunk:edit permission. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunkbasesetting(trunkBaseSettingsId string, ignoreHidden bool) (*Trunkbase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}" - path = strings.Replace(path, "{trunkBaseSettingsId}", fmt.Sprintf("%v", trunkBaseSettingsId), -1) - defaultReturn := new(Trunkbase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkBaseSettingsId' is set - if &trunkBaseSettingsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trunkBaseSettingsId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesTrunkbasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["ignoreHidden"] = a.Configuration.APIClient.ParameterToString(ignoreHidden, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkbase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunkbasesettings invokes GET /api/v2/telephony/providers/edges/trunkbasesettings -// -// Get Trunk Base Settings listing -// -// Managed properties will not be returned unless the user is assigned the internal:trunk:edit permission. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunkbasesettings(pageNumber int32, pageSize int32, sortBy string, sortOrder string, recordingEnabled bool, ignoreHidden bool, managed bool, expand []string, name string) (*Trunkbaseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings" - defaultReturn := new(Trunkbaseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["recordingEnabled"] = a.Configuration.APIClient.ParameterToString(recordingEnabled, collectionFormat) - - - - - collectionFormat = "" - queryParams["ignoreHidden"] = a.Configuration.APIClient.ParameterToString(ignoreHidden, collectionFormat) - - - - - collectionFormat = "" - queryParams["managed"] = a.Configuration.APIClient.ParameterToString(managed, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkbaseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases invokes GET /api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases -// -// Get a list of available makes and models to create a new Trunk Base Settings -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(varType string, pageSize int32, pageNumber int32) (*Trunkmetabaseentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases" - defaultReturn := new(Trunkmetabaseentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkmetabaseentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunkbasesettingsTemplate invokes GET /api/v2/telephony/providers/edges/trunkbasesettings/template -// -// Get a Trunk Base Settings instance template from a given make and model. This object can then be modified and saved as a new Trunk Base Settings instance -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunkbasesettingsTemplate(trunkMetabaseId string) (*Trunkbase, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings/template" - defaultReturn := new(Trunkbase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkMetabaseId' is set - if &trunkMetabaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trunkMetabaseId' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesTrunkbasesettingsTemplate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["trunkMetabaseId"] = a.Configuration.APIClient.ParameterToString(trunkMetabaseId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkbase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunks invokes GET /api/v2/telephony/providers/edges/trunks -// -// Get the list of available trunks. -// -// Trunks are created by assigning trunk base settings to an Edge or Edge Group. -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunks(pageNumber int32, pageSize int32, sortBy string, sortOrder string, edgeId string, trunkBaseId string, trunkType string) (*Trunkentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunks" - defaultReturn := new(Trunkentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortBy"] = a.Configuration.APIClient.ParameterToString(sortBy, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["edgeId"] = a.Configuration.APIClient.ParameterToString(edgeId, collectionFormat) - - - - - collectionFormat = "" - queryParams["trunkBaseId"] = a.Configuration.APIClient.ParameterToString(trunkBaseId, collectionFormat) - - - - - collectionFormat = "" - queryParams["trunkType"] = a.Configuration.APIClient.ParameterToString(trunkType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunksMetrics invokes GET /api/v2/telephony/providers/edges/trunks/metrics -// -// Get the metrics for a list of trunks. -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunksMetrics(trunkIds string) ([]Trunkmetrics, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunks/metrics" - defaultReturn := make([]Trunkmetrics, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkIds' is set - if &trunkIds == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trunkIds' when calling TelephonyProvidersEdgeApi->GetTelephonyProvidersEdgesTrunksMetrics") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["trunkIds"] = a.Configuration.APIClient.ParameterToString(trunkIds, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Trunkmetrics - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTelephonyProvidersEdgesTrunkswithrecording invokes GET /api/v2/telephony/providers/edges/trunkswithrecording -// -// Get Counts of trunks that have recording disabled or enabled -// -// -func (a TelephonyProvidersEdgeApi) GetTelephonyProvidersEdgesTrunkswithrecording(trunkType string) (*Trunkrecordingenabledcount, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkswithrecording" - defaultReturn := new(Trunkrecordingenabledcount) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["trunkType"] = a.Configuration.APIClient.ParameterToString(trunkType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trunkrecordingenabledcount - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeDiagnosticNslookup invokes POST /api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup -// -// Nslookup request command to collect networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeDiagnosticNslookup(edgeId string, body Edgenetworkdiagnosticrequest) (*Edgenetworkdiagnostic, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnostic) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticNslookup") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticNslookup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgenetworkdiagnostic - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeDiagnosticPing invokes POST /api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping -// -// Ping Request command to collect networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeDiagnosticPing(edgeId string, body Edgenetworkdiagnosticrequest) (*Edgenetworkdiagnostic, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnostic) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticPing") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticPing") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgenetworkdiagnostic - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeDiagnosticRoute invokes POST /api/v2/telephony/providers/edges/{edgeId}/diagnostic/route -// -// Route request command to collect networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeDiagnosticRoute(edgeId string, body Edgenetworkdiagnosticrequest) (*Edgenetworkdiagnostic, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnostic) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticRoute") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticRoute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgenetworkdiagnostic - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeDiagnosticTracepath invokes POST /api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath -// -// Tracepath request command to collect networking-related information from an Edge for a target IP or host. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeDiagnosticTracepath(edgeId string, body Edgenetworkdiagnosticrequest) (*Edgenetworkdiagnostic, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgenetworkdiagnostic) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticTracepath") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeDiagnosticTracepath") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgenetworkdiagnostic - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeLogicalinterfaces invokes POST /api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces -// -// Create an edge logical interface. -// -// Create -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeLogicalinterfaces(edgeId string, body Domainlogicalinterface) (*Domainlogicalinterface, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Domainlogicalinterface) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogicalinterfaces") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogicalinterfaces") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainlogicalinterface - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeLogsJobUpload invokes POST /api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}/upload -// -// Request that the specified fileIds be uploaded from the Edge. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeLogsJobUpload(edgeId string, jobId string, body Edgelogsjobuploadrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}/upload" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogsJobUpload") - } - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return nil, errors.New("Missing required parameter 'jobId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogsJobUpload") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogsJobUpload") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostTelephonyProvidersEdgeLogsJobs invokes POST /api/v2/telephony/providers/edges/{edgeId}/logs/jobs -// -// Create a job to upload a list of Edge logs. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeLogsJobs(edgeId string, body Edgelogsjobrequest) (*Edgelogsjobresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logs/jobs" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edgelogsjobresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogsJobs") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeLogsJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgelogsjobresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeReboot invokes POST /api/v2/telephony/providers/edges/{edgeId}/reboot -// -// Reboot an Edge -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeReboot(edgeId string, body Edgerebootparameters) (*string, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/reboot" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeReboot") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeSoftwareupdate invokes POST /api/v2/telephony/providers/edges/{edgeId}/softwareupdate -// -// Starts a software update for this edge. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeSoftwareupdate(edgeId string, body Domainedgesoftwareupdatedto) (*Domainedgesoftwareupdatedto, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/softwareupdate" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Domainedgesoftwareupdatedto) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeSoftwareupdate") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeSoftwareupdate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainedgesoftwareupdatedto - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeStatuscode invokes POST /api/v2/telephony/providers/edges/{edgeId}/statuscode -// -// Take an Edge in or out of service -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeStatuscode(edgeId string, body Edgeservicestaterequest) (*string, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/statuscode" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeStatuscode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgeUnpair invokes POST /api/v2/telephony/providers/edges/{edgeId}/unpair -// -// Unpair an Edge -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgeUnpair(edgeId string) (*string, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/unpair" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(string) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgeUnpair") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdges invokes POST /api/v2/telephony/providers/edges -// -// Create an edge. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdges(body Edge) (*Edge, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges" - defaultReturn := new(Edge) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdges") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edge - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesAddressvalidation invokes POST /api/v2/telephony/providers/edges/addressvalidation -// -// Validates a street address -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesAddressvalidation(body Validateaddressrequest) (*Validateaddressresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/addressvalidation" - defaultReturn := new(Validateaddressresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesAddressvalidation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Validateaddressresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesCertificateauthorities invokes POST /api/v2/telephony/providers/edges/certificateauthorities -// -// Create a certificate authority. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesCertificateauthorities(body Domaincertificateauthority) (*Domaincertificateauthority, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/certificateauthorities" - defaultReturn := new(Domaincertificateauthority) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesCertificateauthorities") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domaincertificateauthority - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesDidpools invokes POST /api/v2/telephony/providers/edges/didpools -// -// Create a new DID pool -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesDidpools(body Didpool) (*Didpool, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/didpools" - defaultReturn := new(Didpool) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesDidpools") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Didpool - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesEdgegroups invokes POST /api/v2/telephony/providers/edges/edgegroups -// -// Create an edge group. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesEdgegroups(body Edgegroup) (*Edgegroup, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups" - defaultReturn := new(Edgegroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesEdgegroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgegroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesExtensionpools invokes POST /api/v2/telephony/providers/edges/extensionpools -// -// Create a new extension pool -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesExtensionpools(body Extensionpool) (*Extensionpool, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensionpools" - defaultReturn := new(Extensionpool) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesExtensionpools") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Extensionpool - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesOutboundroutes invokes POST /api/v2/telephony/providers/edges/outboundroutes -// -// Create outbound rule -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesOutboundroutes(body Outboundroute) (*Outboundroute, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/outboundroutes" - defaultReturn := new(Outboundroute) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesOutboundroutes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Outboundroute - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesPhoneReboot invokes POST /api/v2/telephony/providers/edges/phones/{phoneId}/reboot -// -// Reboot a Phone -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesPhoneReboot(phoneId string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones/{phoneId}/reboot" - path = strings.Replace(path, "{phoneId}", fmt.Sprintf("%v", phoneId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneId' is set - if &phoneId == nil { - // - return nil, errors.New("Missing required parameter 'phoneId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesPhoneReboot") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostTelephonyProvidersEdgesPhonebasesettings invokes POST /api/v2/telephony/providers/edges/phonebasesettings -// -// Create a new Phone Base Settings object -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesPhonebasesettings(body Phonebase) (*Phonebase, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings" - defaultReturn := new(Phonebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesPhonebasesettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Phonebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesPhones invokes POST /api/v2/telephony/providers/edges/phones -// -// Create a new Phone -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesPhones(body Phone) (*Phone, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones" - defaultReturn := new(Phone) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesPhones") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Phone - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesPhonesReboot invokes POST /api/v2/telephony/providers/edges/phones/reboot -// -// Reboot Multiple Phones -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesPhonesReboot(body Phonesreboot) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones/reboot" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesPhonesReboot") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostTelephonyProvidersEdgesSiteOutboundroutes invokes POST /api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes -// -// Create outbound route -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesSiteOutboundroutes(siteId string, body Outboundroutebase) (*Outboundroutebase, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := new(Outboundroutebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesSiteOutboundroutes") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesSiteOutboundroutes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Outboundroutebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesSiteRebalance invokes POST /api/v2/telephony/providers/edges/sites/{siteId}/rebalance -// -// Triggers the rebalance operation. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesSiteRebalance(siteId string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/rebalance" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesSiteRebalance") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostTelephonyProvidersEdgesSites invokes POST /api/v2/telephony/providers/edges/sites -// -// Create a Site. -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesSites(body Site) (*Site, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites" - defaultReturn := new(Site) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesSites") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Site - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostTelephonyProvidersEdgesTrunkbasesettings invokes POST /api/v2/telephony/providers/edges/trunkbasesettings -// -// Create a Trunk Base Settings object -// -// -func (a TelephonyProvidersEdgeApi) PostTelephonyProvidersEdgesTrunkbasesettings(body Trunkbase) (*Trunkbase, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings" - defaultReturn := new(Trunkbase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PostTelephonyProvidersEdgesTrunkbasesettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Trunkbase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdge invokes PUT /api/v2/telephony/providers/edges/{edgeId} -// -// Update a edge. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdge(edgeId string, body Edge) (*Edge, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - defaultReturn := new(Edge) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdge") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdge") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edge - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgeLine invokes PUT /api/v2/telephony/providers/edges/{edgeId}/lines/{lineId} -// -// Update a line. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgeLine(edgeId string, lineId string, body Edgeline) (*Edgeline, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/lines/{lineId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{lineId}", fmt.Sprintf("%v", lineId), -1) - defaultReturn := new(Edgeline) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgeLine") - } - // verify the required parameter 'lineId' is set - if &lineId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'lineId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgeLine") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgeLine") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgeline - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgeLogicalinterface invokes PUT /api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId} -// -// Update an edge logical interface. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgeLogicalinterface(edgeId string, interfaceId string, body Domainlogicalinterface) (*Domainlogicalinterface, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}" - path = strings.Replace(path, "{edgeId}", fmt.Sprintf("%v", edgeId), -1) - path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceId), -1) - defaultReturn := new(Domainlogicalinterface) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeId' is set - if &edgeId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgeLogicalinterface") - } - // verify the required parameter 'interfaceId' is set - if &interfaceId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'interfaceId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgeLogicalinterface") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgeLogicalinterface") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domainlogicalinterface - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesCertificateauthority invokes PUT /api/v2/telephony/providers/edges/certificateauthorities/{certificateId} -// -// Update a certificate authority. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesCertificateauthority(certificateId string, body Domaincertificateauthority) (*Domaincertificateauthority, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}" - path = strings.Replace(path, "{certificateId}", fmt.Sprintf("%v", certificateId), -1) - defaultReturn := new(Domaincertificateauthority) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'certificateId' is set - if &certificateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'certificateId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesCertificateauthority") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesCertificateauthority") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Domaincertificateauthority - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesDid invokes PUT /api/v2/telephony/providers/edges/dids/{didId} -// -// Update a DID by ID. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesDid(didId string, body Did) (*Did, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/dids/{didId}" - path = strings.Replace(path, "{didId}", fmt.Sprintf("%v", didId), -1) - defaultReturn := new(Did) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'didId' is set - if &didId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'didId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesDid") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesDid") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Did - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesDidpool invokes PUT /api/v2/telephony/providers/edges/didpools/{didPoolId} -// -// Update a DID Pool by ID. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesDidpool(didPoolId string, body Didpool) (*Didpool, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/didpools/{didPoolId}" - path = strings.Replace(path, "{didPoolId}", fmt.Sprintf("%v", didPoolId), -1) - defaultReturn := new(Didpool) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'didPoolId' is set - if &didPoolId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'didPoolId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesDidpool") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesDidpool") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Didpool - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesEdgegroup invokes PUT /api/v2/telephony/providers/edges/edgegroups/{edgeGroupId} -// -// Update an edge group. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesEdgegroup(edgeGroupId string, body Edgegroup) (*Edgegroup, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}" - path = strings.Replace(path, "{edgeGroupId}", fmt.Sprintf("%v", edgeGroupId), -1) - defaultReturn := new(Edgegroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgeGroupId' is set - if &edgeGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgeGroupId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesEdgegroup") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesEdgegroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgegroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesEdgegroupEdgetrunkbase invokes PUT /api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId} -// -// Update the edge trunk base associated with the edge group -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesEdgegroupEdgetrunkbase(edgegroupId string, edgetrunkbaseId string, body Edgetrunkbase) (*Edgetrunkbase, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}" - path = strings.Replace(path, "{edgegroupId}", fmt.Sprintf("%v", edgegroupId), -1) - path = strings.Replace(path, "{edgetrunkbaseId}", fmt.Sprintf("%v", edgetrunkbaseId), -1) - defaultReturn := new(Edgetrunkbase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'edgegroupId' is set - if &edgegroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgegroupId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesEdgegroupEdgetrunkbase") - } - // verify the required parameter 'edgetrunkbaseId' is set - if &edgetrunkbaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'edgetrunkbaseId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesEdgegroupEdgetrunkbase") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesEdgegroupEdgetrunkbase") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Edgetrunkbase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesExtension invokes PUT /api/v2/telephony/providers/edges/extensions/{extensionId} -// -// Update an extension by ID. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesExtension(extensionId string, body Extension) (*Extension, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensions/{extensionId}" - path = strings.Replace(path, "{extensionId}", fmt.Sprintf("%v", extensionId), -1) - defaultReturn := new(Extension) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'extensionId' is set - if &extensionId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'extensionId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesExtension") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesExtension") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Extension - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesExtensionpool invokes PUT /api/v2/telephony/providers/edges/extensionpools/{extensionPoolId} -// -// Update an extension pool by ID -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesExtensionpool(extensionPoolId string, body Extensionpool) (*Extensionpool, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}" - path = strings.Replace(path, "{extensionPoolId}", fmt.Sprintf("%v", extensionPoolId), -1) - defaultReturn := new(Extensionpool) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'extensionPoolId' is set - if &extensionPoolId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'extensionPoolId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesExtensionpool") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesExtensionpool") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Extensionpool - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesOutboundroute invokes PUT /api/v2/telephony/providers/edges/outboundroutes/{outboundRouteId} -// -// Update outbound route -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesOutboundroute(outboundRouteId string, body Outboundroute) (*Outboundroute, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/outboundroutes/{outboundRouteId}" - path = strings.Replace(path, "{outboundRouteId}", fmt.Sprintf("%v", outboundRouteId), -1) - defaultReturn := new(Outboundroute) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'outboundRouteId' is set - if &outboundRouteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'outboundRouteId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesOutboundroute") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesOutboundroute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Outboundroute - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesPhone invokes PUT /api/v2/telephony/providers/edges/phones/{phoneId} -// -// Update a Phone by ID -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesPhone(phoneId string, body Phone) (*Phone, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phones/{phoneId}" - path = strings.Replace(path, "{phoneId}", fmt.Sprintf("%v", phoneId), -1) - defaultReturn := new(Phone) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneId' is set - if &phoneId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesPhone") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesPhone") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Phone - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesPhonebasesetting invokes PUT /api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId} -// -// Update a Phone Base Settings by ID -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesPhonebasesetting(phoneBaseId string, body Phonebase) (*Phonebase, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}" - path = strings.Replace(path, "{phoneBaseId}", fmt.Sprintf("%v", phoneBaseId), -1) - defaultReturn := new(Phonebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'phoneBaseId' is set - if &phoneBaseId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'phoneBaseId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesPhonebasesetting") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesPhonebasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Phonebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesSite invokes PUT /api/v2/telephony/providers/edges/sites/{siteId} -// -// Update a Site by ID. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesSite(siteId string, body Site) (*Site, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := new(Site) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSite") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSite") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Site - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesSiteNumberplans invokes PUT /api/v2/telephony/providers/edges/sites/{siteId}/numberplans -// -// Update the list of Number Plans. A user can update maximum 200 number plans at a time. -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesSiteNumberplans(siteId string, body []Numberplan) ([]Numberplan, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/numberplans" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - defaultReturn := make([]Numberplan, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSiteNumberplans") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSiteNumberplans") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []Numberplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesSiteOutboundroute invokes PUT /api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId} -// -// Update outbound route -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesSiteOutboundroute(siteId string, outboundRouteId string, body Outboundroutebase) (*Outboundroutebase, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}" - path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteId), -1) - path = strings.Replace(path, "{outboundRouteId}", fmt.Sprintf("%v", outboundRouteId), -1) - defaultReturn := new(Outboundroutebase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'siteId' is set - if &siteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'siteId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSiteOutboundroute") - } - // verify the required parameter 'outboundRouteId' is set - if &outboundRouteId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'outboundRouteId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSiteOutboundroute") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesSiteOutboundroute") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Outboundroutebase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutTelephonyProvidersEdgesTrunkbasesetting invokes PUT /api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId} -// -// Update a Trunk Base Settings object by ID -// -// -func (a TelephonyProvidersEdgeApi) PutTelephonyProvidersEdgesTrunkbasesetting(trunkBaseSettingsId string, body Trunkbase) (*Trunkbase, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}" - path = strings.Replace(path, "{trunkBaseSettingsId}", fmt.Sprintf("%v", trunkBaseSettingsId), -1) - defaultReturn := new(Trunkbase) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'trunkBaseSettingsId' is set - if &trunkBaseSettingsId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'trunkBaseSettingsId' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesTrunkbasesetting") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling TelephonyProvidersEdgeApi->PutTelephonyProvidersEdgesTrunkbasesetting") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Trunkbase - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/termattribute.go b/build/platformclientv2/termattribute.go deleted file mode 100644 index e3ca3cd99..000000000 --- a/build/platformclientv2/termattribute.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Termattribute -type Termattribute struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Termattribute) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/testexecutionoperationresult.go b/build/platformclientv2/testexecutionoperationresult.go deleted file mode 100644 index 7fb91e3e6..000000000 --- a/build/platformclientv2/testexecutionoperationresult.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Testexecutionoperationresult -type Testexecutionoperationresult struct { - // Step - The step number to indicate the order in which the operation was performed - Step *int32 `json:"step,omitempty"` - - - // Name - Name of the operation performed - Name *string `json:"name,omitempty"` - - - // Success - Indicated whether or not the operation was successful - Success *bool `json:"success,omitempty"` - - - // Result - The result of the operation - Result *map[string]interface{} `json:"result,omitempty"` - - - // VarError - Error that occurred during the operation - VarError *Errorbody `json:"error,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Testexecutionoperationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/testexecutionresult.go b/build/platformclientv2/testexecutionresult.go deleted file mode 100644 index 219a9baf9..000000000 --- a/build/platformclientv2/testexecutionresult.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Testexecutionresult -type Testexecutionresult struct { - // Operations - Execution operations performed as part of the test - Operations *[]Testexecutionoperationresult `json:"operations,omitempty"` - - - // VarError - The final error encountered during the test that resulted in test failure - VarError *Errorbody `json:"error,omitempty"` - - - // FinalResult - The final result of the test. This is the response that would be returned during normal action execution - FinalResult *map[string]interface{} `json:"finalResult,omitempty"` - - - // Success - Indicates whether or not the test was a success - Success *bool `json:"success,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Testexecutionresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/textmessagelisting.go b/build/platformclientv2/textmessagelisting.go deleted file mode 100644 index 10e121dc3..000000000 --- a/build/platformclientv2/textmessagelisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Textmessagelisting -type Textmessagelisting struct { - // Entities - Entities *[]Messagedata `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Textmessagelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ticker.go b/build/platformclientv2/ticker.go deleted file mode 100644 index 6df702e42..000000000 --- a/build/platformclientv2/ticker.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ticker -type Ticker struct { - // Symbol - The ticker symbol for this organization. Example: ININ, AAPL, MSFT, etc. - Symbol *string `json:"symbol,omitempty"` - - - // Exchange - The exchange for this ticker symbol. Examples: NYSE, FTSE, NASDAQ, etc. - Exchange *string `json:"exchange,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ticker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeallowed.go b/build/platformclientv2/timeallowed.go deleted file mode 100644 index 75ee057b8..000000000 --- a/build/platformclientv2/timeallowed.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeallowed -type Timeallowed struct { - // TimeSlots - TimeSlots *[]Timeslot `json:"timeSlots,omitempty"` - - - // TimeZoneId - TimeZoneId *string `json:"timeZoneId,omitempty"` - - - // Empty - Empty *bool `json:"empty,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeallowed) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeinterval.go b/build/platformclientv2/timeinterval.go deleted file mode 100644 index bb74148ff..000000000 --- a/build/platformclientv2/timeinterval.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeinterval -type Timeinterval struct { - // Months - Months *int32 `json:"months,omitempty"` - - - // Weeks - Weeks *int32 `json:"weeks,omitempty"` - - - // Days - Days *int32 `json:"days,omitempty"` - - - // Hours - Hours *int32 `json:"hours,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeinterval) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestentitylist.go b/build/platformclientv2/timeoffrequestentitylist.go deleted file mode 100644 index 1f222e5d6..000000000 --- a/build/platformclientv2/timeoffrequestentitylist.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeoffrequestentitylist -type Timeoffrequestentitylist struct { - // Entities - Entities *[]Timeoffrequestresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestentitylist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestlist.go b/build/platformclientv2/timeoffrequestlist.go deleted file mode 100644 index 55dd39dbb..000000000 --- a/build/platformclientv2/timeoffrequestlist.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeoffrequestlist -type Timeoffrequestlist struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // TimeOffRequests - TimeOffRequests *[]Timeoffrequestresponse `json:"timeOffRequests,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestlist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestlookup.go b/build/platformclientv2/timeoffrequestlookup.go deleted file mode 100644 index 79e77a49f..000000000 --- a/build/platformclientv2/timeoffrequestlookup.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Timeoffrequestlookup -type Timeoffrequestlookup struct { - // Id - The id of the time off request - Id *string `json:"id,omitempty"` - - - // User - The user that the time off request belongs to - User *Userreference `json:"user,omitempty"` - - - // IsFullDayRequest - Whether this is a full day request (false means partial day) - IsFullDayRequest *bool `json:"isFullDayRequest,omitempty"` - - - // MarkedAsRead - Whether this request has been marked as read by the agent - MarkedAsRead *bool `json:"markedAsRead,omitempty"` - - - // ActivityCodeId - The ID of the activity code associated with this time off request. Activity code must be of the TimeOff category - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Status - The status of this time off request - Status *string `json:"status,omitempty"` - - - // PartialDayStartDateTimes - A set of start date-times in ISO-8601 format for partial day requests. Will be not empty if isFullDayRequest == false - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // FullDayManagementUnitDates - A set of dates in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. Will be not empty if isFullDayRequest == true - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - - - // DailyDurationMinutes - The daily duration of this time off request in minutes - DailyDurationMinutes *int32 `json:"dailyDurationMinutes,omitempty"` - - - // Notes - Notes about the time off request - Notes *string `json:"notes,omitempty"` - - - // SubmittedBy - The user who submitted this time off request - SubmittedBy *Userreference `json:"submittedBy,omitempty"` - - - // SubmittedDate - The timestamp when this request was submitted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SubmittedDate *time.Time `json:"submittedDate,omitempty"` - - - // ReviewedBy - The user who reviewed this time off request - ReviewedBy *Userreference `json:"reviewedBy,omitempty"` - - - // ReviewedDate - The timestamp when this request was reviewed. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReviewedDate *time.Time `json:"reviewedDate,omitempty"` - - - // Metadata - The version metadata of the time off request - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestlookup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestlookuplist.go b/build/platformclientv2/timeoffrequestlookuplist.go deleted file mode 100644 index f4acc389f..000000000 --- a/build/platformclientv2/timeoffrequestlookuplist.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeoffrequestlookuplist -type Timeoffrequestlookuplist struct { - // Entities - List of time off request look up objects - Entities *[]Timeoffrequestlookup `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestlookuplist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestnotification.go b/build/platformclientv2/timeoffrequestnotification.go deleted file mode 100644 index 5b55bda22..000000000 --- a/build/platformclientv2/timeoffrequestnotification.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Timeoffrequestnotification -type Timeoffrequestnotification struct { - // TimeOffRequestId - The ID of this time off request - TimeOffRequestId *string `json:"timeOffRequestId,omitempty"` - - - // User - The user associated with this time off request - User *Userreference `json:"user,omitempty"` - - - // IsFullDayRequest - Whether this is a full day request (false means partial day) - IsFullDayRequest *bool `json:"isFullDayRequest,omitempty"` - - - // Status - The status of this time off request - Status *string `json:"status,omitempty"` - - - // PartialDayStartDateTimes - A set of start date-times in ISO-8601 format for partial day requests. Will be not empty if isFullDayRequest == false - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // FullDayManagementUnitDates - A set of dates in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. Will be not empty if isFullDayRequest == true - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestquerybody.go b/build/platformclientv2/timeoffrequestquerybody.go deleted file mode 100644 index 35435c950..000000000 --- a/build/platformclientv2/timeoffrequestquerybody.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeoffrequestquerybody -type Timeoffrequestquerybody struct { - // UserIds - The set of user ids to filter time off requests - UserIds *[]string `json:"userIds,omitempty"` - - - // Statuses - The set of statuses to filter time off requests - Statuses *[]string `json:"statuses,omitempty"` - - - // DateRange - The inclusive range of dates to filter time off requests - DateRange *Daterange `json:"dateRange,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestquerybody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestresponse.go b/build/platformclientv2/timeoffrequestresponse.go deleted file mode 100644 index 202efa1b4..000000000 --- a/build/platformclientv2/timeoffrequestresponse.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Timeoffrequestresponse -type Timeoffrequestresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // User - The user associated with this time off request - User *Userreference `json:"user,omitempty"` - - - // IsFullDayRequest - Whether this is a full day request (false means partial day) - IsFullDayRequest *bool `json:"isFullDayRequest,omitempty"` - - - // MarkedAsRead - Whether this request has been marked as read by the agent - MarkedAsRead *bool `json:"markedAsRead,omitempty"` - - - // ActivityCodeId - The ID of the activity code associated with this time off request. Activity code must be of the TimeOff category - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Status - The status of this time off request - Status *string `json:"status,omitempty"` - - - // PartialDayStartDateTimes - A set of start date-times in ISO-8601 format for partial day requests. Will be not empty if isFullDayRequest == false - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // FullDayManagementUnitDates - A set of dates in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone. Will be not empty if isFullDayRequest == true - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - - - // DailyDurationMinutes - The daily duration of this time off request in minutes - DailyDurationMinutes *int32 `json:"dailyDurationMinutes,omitempty"` - - - // Notes - Notes about the time off request - Notes *string `json:"notes,omitempty"` - - - // SubmittedBy - The user who submitted this time off request - SubmittedBy *Userreference `json:"submittedBy,omitempty"` - - - // SubmittedDate - The timestamp when this request was submitted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - SubmittedDate *time.Time `json:"submittedDate,omitempty"` - - - // ReviewedBy - The user who reviewed this time off request - ReviewedBy *Userreference `json:"reviewedBy,omitempty"` - - - // ReviewedDate - The timestamp when this request was reviewed. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ReviewedDate *time.Time `json:"reviewedDate,omitempty"` - - - // ModifiedBy - The user who last modified this TimeOffRequestResponse - ModifiedBy *Userreference `json:"modifiedBy,omitempty"` - - - // ModifiedDate - The timestamp when this request was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // Metadata - The version metadata of the time off request - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeoffrequestsettings.go b/build/platformclientv2/timeoffrequestsettings.go deleted file mode 100644 index d2029f6c8..000000000 --- a/build/platformclientv2/timeoffrequestsettings.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeoffrequestsettings - Time Off Request Settings -type Timeoffrequestsettings struct { - // SubmissionRangeEnforced - Whether to enforce a submission range for agent time off requests - SubmissionRangeEnforced *bool `json:"submissionRangeEnforced,omitempty"` - - - // SubmissionEarliestDaysFromNow - The earliest number of days from now for which an agent can submit a time off request. Use negative numbers to indicate days in the past - SubmissionEarliestDaysFromNow *int32 `json:"submissionEarliestDaysFromNow,omitempty"` - - - // SubmissionLatestDaysFromNow - The latest number of days from now for which an agent can submit a time off request - SubmissionLatestDaysFromNow *int32 `json:"submissionLatestDaysFromNow,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeoffrequestsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timeslot.go b/build/platformclientv2/timeslot.go deleted file mode 100644 index 29179344b..000000000 --- a/build/platformclientv2/timeslot.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timeslot -type Timeslot struct { - // StartTime - start time in xx:xx:xx.xxx format - StartTime *string `json:"startTime,omitempty"` - - - // StopTime - stop time in xx:xx:xx.xxx format - StopTime *string `json:"stopTime,omitempty"` - - - // Day - Day for this time slot, Monday = 1 ... Sunday = 7 - Day *int32 `json:"day,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timeslot) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timezoneentitylisting.go b/build/platformclientv2/timezoneentitylisting.go deleted file mode 100644 index e5dd89a93..000000000 --- a/build/platformclientv2/timezoneentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timezoneentitylisting -type Timezoneentitylisting struct { - // Entities - Entities *[]Regiontimezone `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timezoneentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/timezonemappingpreview.go b/build/platformclientv2/timezonemappingpreview.go deleted file mode 100644 index a1a03ecdc..000000000 --- a/build/platformclientv2/timezonemappingpreview.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Timezonemappingpreview -type Timezonemappingpreview struct { - // ContactList - The associated ContactList - ContactList *Domainentityref `json:"contactList,omitempty"` - - - // ContactsPerTimeZone - The number of contacts per time zone that mapped to only that time zone - ContactsPerTimeZone *map[string]int64 `json:"contactsPerTimeZone,omitempty"` - - - // ContactsMappedUsingZipCode - The number of contacts per time zone that mapped to only that time zone and were mapped using the zip code column - ContactsMappedUsingZipCode *map[string]int64 `json:"contactsMappedUsingZipCode,omitempty"` - - - // ContactsMappedToASingleZone - The total number of contacts that mapped to a single time zone - ContactsMappedToASingleZone *int64 `json:"contactsMappedToASingleZone,omitempty"` - - - // ContactsMappedToASingleZoneUsingZipCode - The total number of contacts that mapped to a single time zone and were mapped using the zip code column - ContactsMappedToASingleZoneUsingZipCode *int64 `json:"contactsMappedToASingleZoneUsingZipCode,omitempty"` - - - // ContactsMappedToMultipleZones - The total number of contacts that mapped to multiple time zones - ContactsMappedToMultipleZones *int64 `json:"contactsMappedToMultipleZones,omitempty"` - - - // ContactsMappedToMultipleZonesUsingZipCode - The total number of contacts that mapped to multiple time zones and were mapped using the zip code column - ContactsMappedToMultipleZonesUsingZipCode *int64 `json:"contactsMappedToMultipleZonesUsingZipCode,omitempty"` - - - // ContactsInDefaultWindow - The total number of contacts that will be dialed during the default window - ContactsInDefaultWindow *int64 `json:"contactsInDefaultWindow,omitempty"` - - - // ContactListSize - The total number of contacts in the contact list - ContactListSize *int64 `json:"contactListSize,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Timezonemappingpreview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/tokeninfo.go b/build/platformclientv2/tokeninfo.go deleted file mode 100644 index fc21ad206..000000000 --- a/build/platformclientv2/tokeninfo.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Tokeninfo -type Tokeninfo struct { - // Organization - The current organization - Organization *Namedentity `json:"organization,omitempty"` - - - // HomeOrganization - The token's home organization - HomeOrganization *Namedentity `json:"homeOrganization,omitempty"` - - - // AuthorizedScope - The list of scopes authorized for the OAuth client - AuthorizedScope *[]string `json:"authorizedScope,omitempty"` - - - // OAuthClient - OAuthClient *Orgoauthclient `json:"OAuthClient,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Tokeninfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/tokensapi.go b/build/platformclientv2/tokensapi.go deleted file mode 100644 index 98a20aa22..000000000 --- a/build/platformclientv2/tokensapi.go +++ /dev/null @@ -1,221 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// TokensApi provides functions for API endpoints -type TokensApi struct { - Configuration *Configuration -} - -// NewTokensApi creates an API instance using the default configuration -func NewTokensApi() *TokensApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating TokensApi with base path: %s", strings.ToLower(config.BasePath))) - return &TokensApi{ - Configuration: config, - } -} - -// NewTokensApiWithConfig creates an API instance using the provided configuration -func NewTokensApiWithConfig(config *Configuration) *TokensApi { - config.Debugf("Creating TokensApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &TokensApi{ - Configuration: config, - } -} - -// DeleteToken invokes DELETE /api/v2/tokens/{userId} -// -// Delete all auth tokens for the specified user. -// -// -func (a TokensApi) DeleteToken(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/tokens/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling TokensApi->DeleteToken") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteTokensMe invokes DELETE /api/v2/tokens/me -// -// Delete auth token used to make the request. -// -// -func (a TokensApi) DeleteTokensMe() (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/tokens/me" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetTokensMe invokes GET /api/v2/tokens/me -// -// Fetch information about the current token -// -// -func (a TokensApi) GetTokensMe() (*Tokeninfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/tokens/me" - defaultReturn := new(Tokeninfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Tokeninfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/transcriptionsettings.go b/build/platformclientv2/transcriptionsettings.go deleted file mode 100644 index 312a62e7e..000000000 --- a/build/platformclientv2/transcriptionsettings.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Transcriptionsettings -type Transcriptionsettings struct { - // Transcription - Setting to enable/disable transcription capability - Transcription *string `json:"transcription,omitempty"` - - - // TranscriptionConfidenceThreshold - Configure confidence threshold. The possible values are from 1 to 100. - TranscriptionConfidenceThreshold *int32 `json:"transcriptionConfidenceThreshold,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Transcriptionsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/transcriptproperty.go b/build/platformclientv2/transcriptproperty.go deleted file mode 100644 index 611300191..000000000 --- a/build/platformclientv2/transcriptproperty.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Transcriptproperty -type Transcriptproperty struct { - // Url - The pre-signed S3 URL of the transcript - Url *string `json:"url,omitempty"` - - - // Conversation - The conversation reference - Conversation *Addressableentityref `json:"conversation,omitempty"` - - - // CommunicationId - The communication ID - CommunicationId *string `json:"communicationId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Transcriptproperty) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/transferrequest.go b/build/platformclientv2/transferrequest.go deleted file mode 100644 index 883b28c69..000000000 --- a/build/platformclientv2/transferrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Transferrequest -type Transferrequest struct { - // UserId - The user ID of the transfer target. - UserId *string `json:"userId,omitempty"` - - - // Address - The phone number or address of the transfer target. - Address *string `json:"address,omitempty"` - - - // UserName - The user name of the transfer target. - UserName *string `json:"userName,omitempty"` - - - // QueueId - The queue ID of the transfer target. - QueueId *string `json:"queueId,omitempty"` - - - // Voicemail - If true, transfer to the voicemail inbox of the participant that is being replaced. - Voicemail *bool `json:"voicemail,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Transferrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunk.go b/build/platformclientv2/trunk.go deleted file mode 100644 index 0e9eb5bd1..000000000 --- a/build/platformclientv2/trunk.go +++ /dev/null @@ -1,126 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trunk -type Trunk struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // TrunkType - The type of this trunk. - TrunkType *string `json:"trunkType,omitempty"` - - - // Edge - The Edge using this trunk. - Edge *Domainentityref `json:"edge,omitempty"` - - - // TrunkBase - The trunk base configuration used on this trunk. - TrunkBase *Domainentityref `json:"trunkBase,omitempty"` - - - // TrunkMetabase - The metabase used to create this trunk. - TrunkMetabase *Domainentityref `json:"trunkMetabase,omitempty"` - - - // EdgeGroup - The edge group associated with this trunk. - EdgeGroup *Domainentityref `json:"edgeGroup,omitempty"` - - - // InService - True if this trunk is in-service. This comes from the trunk_enabled property of the referenced trunk base. - InService *bool `json:"inService,omitempty"` - - - // Enabled - True if the Edge used by this trunk is in-service - Enabled *bool `json:"enabled,omitempty"` - - - // LogicalInterface - The Logical Interface on the Edge to which the trunk is assigned. - LogicalInterface *Domainentityref `json:"logicalInterface,omitempty"` - - - // ConnectedStatus - The connected status of the trunk - ConnectedStatus *Trunkconnectedstatus `json:"connectedStatus,omitempty"` - - - // OptionsStatus - The trunk optionsStatus - OptionsStatus *[]Trunkmetricsoptions `json:"optionsStatus,omitempty"` - - - // RegistersStatus - The trunk registersStatus - RegistersStatus *[]Trunkmetricsregisters `json:"registersStatus,omitempty"` - - - // IpStatus - The trunk ipStatus - IpStatus *Trunkmetricsnetworktypeip `json:"ipStatus,omitempty"` - - - // OptionsEnabledStatus - Returns Enabled when the trunk base supports the availability interval and it has a value greater than 0. - OptionsEnabledStatus *string `json:"optionsEnabledStatus,omitempty"` - - - // RegistersEnabledStatus - Returns Enabled when the trunk base supports the registration interval and it has a value greater than 0. - RegistersEnabledStatus *string `json:"registersEnabledStatus,omitempty"` - - - // Family - The IP Network Family of the trunk - Family *int32 `json:"family,omitempty"` - - - // ProxyAddressList - The list of proxy addresses (ports if provided) for the trunk - ProxyAddressList *[]string `json:"proxyAddressList,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunk) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkbase.go b/build/platformclientv2/trunkbase.go deleted file mode 100644 index a0aef6bf2..000000000 --- a/build/platformclientv2/trunkbase.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trunkbase -type Trunkbase struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the entity. - Name *string `json:"name,omitempty"` - - - // Description - The resource's description. - Description *string `json:"description,omitempty"` - - - // Version - The current version of the resource. - Version *int32 `json:"version,omitempty"` - - - // DateCreated - The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the resource. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - - - // State - Indicates if the resource is active, inactive, or deleted. - State *string `json:"state,omitempty"` - - - // ModifiedByApp - The application that last modified the resource. - ModifiedByApp *string `json:"modifiedByApp,omitempty"` - - - // CreatedByApp - The application that created the resource. - CreatedByApp *string `json:"createdByApp,omitempty"` - - - // TrunkMetabase - The meta-base this trunk is based on. - TrunkMetabase *Domainentityref `json:"trunkMetabase,omitempty"` - - - // Properties - Properties *map[string]interface{} `json:"properties,omitempty"` - - - // TrunkType - The type of this trunk base. - TrunkType *string `json:"trunkType,omitempty"` - - - // Managed - Is this trunk being managed remotely. This property is synchronized with the managed property of the Edge Group to which it is assigned. - Managed *bool `json:"managed,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkbase) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkbaseassignment.go b/build/platformclientv2/trunkbaseassignment.go deleted file mode 100644 index d60a5f795..000000000 --- a/build/platformclientv2/trunkbaseassignment.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkbaseassignment -type Trunkbaseassignment struct { - // Family - The address family to use with the trunk base settings. 2=IPv4, 23=IPv6 - Family *int32 `json:"family,omitempty"` - - - // TrunkBase - A trunk base settings reference. - TrunkBase *Trunkbase `json:"trunkBase,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkbaseassignment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkbaseentitylisting.go b/build/platformclientv2/trunkbaseentitylisting.go deleted file mode 100644 index ca78b30b0..000000000 --- a/build/platformclientv2/trunkbaseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkbaseentitylisting -type Trunkbaseentitylisting struct { - // Entities - Entities *[]Trunkbase `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkbaseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkconnectedstatus.go b/build/platformclientv2/trunkconnectedstatus.go deleted file mode 100644 index 015f17dfb..000000000 --- a/build/platformclientv2/trunkconnectedstatus.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trunkconnectedstatus -type Trunkconnectedstatus struct { - // Connected - Connected *bool `json:"connected,omitempty"` - - - // ConnectedStateTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedStateTime *time.Time `json:"connectedStateTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkconnectedstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkentitylisting.go b/build/platformclientv2/trunkentitylisting.go deleted file mode 100644 index ba5231127..000000000 --- a/build/platformclientv2/trunkentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkentitylisting -type Trunkentitylisting struct { - // Entities - Entities *[]Trunk `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkerrorinfo.go b/build/platformclientv2/trunkerrorinfo.go deleted file mode 100644 index 93015be74..000000000 --- a/build/platformclientv2/trunkerrorinfo.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkerrorinfo -type Trunkerrorinfo struct { - // Text - Text *string `json:"text,omitempty"` - - - // Code - Code *string `json:"code,omitempty"` - - - // Details - Details *Trunkerrorinfodetails `json:"details,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkerrorinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkerrorinfodetails.go b/build/platformclientv2/trunkerrorinfodetails.go deleted file mode 100644 index 88866e94d..000000000 --- a/build/platformclientv2/trunkerrorinfodetails.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkerrorinfodetails -type Trunkerrorinfodetails struct { - // Code - Code *string `json:"code,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // Hostname - Hostname *string `json:"hostname,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkerrorinfodetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetabaseentitylisting.go b/build/platformclientv2/trunkmetabaseentitylisting.go deleted file mode 100644 index 042fd7351..000000000 --- a/build/platformclientv2/trunkmetabaseentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkmetabaseentitylisting -type Trunkmetabaseentitylisting struct { - // Entities - Entities *[]Metabase `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetabaseentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetrics.go b/build/platformclientv2/trunkmetrics.go deleted file mode 100644 index 04e2ba2b8..000000000 --- a/build/platformclientv2/trunkmetrics.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trunkmetrics -type Trunkmetrics struct { - // EventTime - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EventTime *time.Time `json:"eventTime,omitempty"` - - - // LogicalInterface - LogicalInterface *Domainentityref `json:"logicalInterface,omitempty"` - - - // Trunk - Trunk *Domainentityref `json:"trunk,omitempty"` - - - // Calls - Calls *Trunkmetricscalls `json:"calls,omitempty"` - - - // Qos - Qos *Trunkmetricsqos `json:"qos,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetrics) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetricscalls.go b/build/platformclientv2/trunkmetricscalls.go deleted file mode 100644 index ab1871923..000000000 --- a/build/platformclientv2/trunkmetricscalls.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkmetricscalls -type Trunkmetricscalls struct { - // InboundCallCount - InboundCallCount *int32 `json:"inboundCallCount,omitempty"` - - - // OutboundCallCount - OutboundCallCount *int32 `json:"outboundCallCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetricscalls) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetricsnetworktypeip.go b/build/platformclientv2/trunkmetricsnetworktypeip.go deleted file mode 100644 index df0d8427b..000000000 --- a/build/platformclientv2/trunkmetricsnetworktypeip.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkmetricsnetworktypeip -type Trunkmetricsnetworktypeip struct { - // Address - Assigned IP Address for the interface - Address *string `json:"address,omitempty"` - - - // ErrorInfo - Information about the error. - ErrorInfo *Trunkerrorinfo `json:"errorInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetricsnetworktypeip) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetricsoptions.go b/build/platformclientv2/trunkmetricsoptions.go deleted file mode 100644 index 889997bcd..000000000 --- a/build/platformclientv2/trunkmetricsoptions.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trunkmetricsoptions -type Trunkmetricsoptions struct { - // ProxyAddress - Server proxy address that this options array element represents. - ProxyAddress *string `json:"proxyAddress,omitempty"` - - - // OptionState - OptionState *bool `json:"optionState,omitempty"` - - - // OptionStateTime - ISO 8601 format UTC absolute date & time of the last change of the option state. - OptionStateTime *time.Time `json:"optionStateTime,omitempty"` - - - // ErrorInfo - ErrorInfo *Trunkerrorinfo `json:"errorInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetricsoptions) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetricsqos.go b/build/platformclientv2/trunkmetricsqos.go deleted file mode 100644 index 7072a1b41..000000000 --- a/build/platformclientv2/trunkmetricsqos.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkmetricsqos -type Trunkmetricsqos struct { - // MismatchCount - Total number of QoS mismatches over the course of the last 24-hour period (sliding window). - MismatchCount *int32 `json:"mismatchCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetricsqos) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkmetricsregisters.go b/build/platformclientv2/trunkmetricsregisters.go deleted file mode 100644 index 6b8f11b44..000000000 --- a/build/platformclientv2/trunkmetricsregisters.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trunkmetricsregisters -type Trunkmetricsregisters struct { - // ProxyAddress - Server proxy address that this registers array element represents. - ProxyAddress *string `json:"proxyAddress,omitempty"` - - - // RegisterState - True if last REGISTER message had positive response; false if error response or no response. - RegisterState *bool `json:"registerState,omitempty"` - - - // RegisterStateTime - ISO 8601 format UTC absolute date & time of the last change of the register state. - RegisterStateTime *time.Time `json:"registerStateTime,omitempty"` - - - // ErrorInfo - ErrorInfo *Trunkerrorinfo `json:"errorInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkmetricsregisters) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trunkrecordingenabledcount.go b/build/platformclientv2/trunkrecordingenabledcount.go deleted file mode 100644 index e1cb4b379..000000000 --- a/build/platformclientv2/trunkrecordingenabledcount.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trunkrecordingenabledcount -type Trunkrecordingenabledcount struct { - // EnabledCount - The amount of trunks that have recording enabled - EnabledCount *int32 `json:"enabledCount,omitempty"` - - - // DisabledCount - The amount of trunks that do not have recording enabled - DisabledCount *int32 `json:"disabledCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trunkrecordingenabledcount) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustcreate.go b/build/platformclientv2/trustcreate.go deleted file mode 100644 index b05e2e212..000000000 --- a/build/platformclientv2/trustcreate.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustcreate -type Trustcreate struct { - // PairingId - The pairing Id created by the trustee. This is required to prove that the trustee agrees to the relationship. - PairingId *string `json:"pairingId,omitempty"` - - - // Enabled - If disabled no trustee user will have access, even if they were previously added. - Enabled *bool `json:"enabled,omitempty"` - - - // Users - The list of users and their roles to which access will be granted. The users are from the trustee and the roles are from the trustor. If no users are specified, at least one group is required. - Users *[]Trustmembercreate `json:"users,omitempty"` - - - // Groups - The list of groups and their roles to which access will be granted. The groups are from the trustee and the roles are from the trustor. If no groups are specified, at least one user is required. - Groups *[]Trustmembercreate `json:"groups,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustcreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustee.go b/build/platformclientv2/trustee.go deleted file mode 100644 index 4e21346e6..000000000 --- a/build/platformclientv2/trustee.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trustee -type Trustee struct { - // Id - Organization Id for this trust. - Id *string `json:"id,omitempty"` - - - // Enabled - If disabled no trustee user will have access, even if they were previously added. - Enabled *bool `json:"enabled,omitempty"` - - - // DateCreated - Date Trust was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // CreatedBy - User that created trust. - CreatedBy *Orguser `json:"createdBy,omitempty"` - - - // Organization - Organization associated with this trust. - Organization *Organization `json:"organization,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustee) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trusteeauditqueryrequest.go b/build/platformclientv2/trusteeauditqueryrequest.go deleted file mode 100644 index ea0914f64..000000000 --- a/build/platformclientv2/trusteeauditqueryrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trusteeauditqueryrequest -type Trusteeauditqueryrequest struct { - // TrusteeOrganizationIds - Limit returned audits to these trustee organizationIds. - TrusteeOrganizationIds *[]string `json:"trusteeOrganizationIds,omitempty"` - - - // TrusteeUserIds - Limit returned audits to these trustee userIds. - TrusteeUserIds *[]string `json:"trusteeUserIds,omitempty"` - - - // StartDate - Starting date/time for the audit search. ISO-8601 formatted date-time, UTC. - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - Ending date/time for the audit search. ISO-8601 formatted date-time, UTC. - EndDate *time.Time `json:"endDate,omitempty"` - - - // QueryPhrase - Word or phrase to look for in audit bodies. - QueryPhrase *string `json:"queryPhrase,omitempty"` - - - // Facets - Facet information to be returned with the query results. - Facets *[]Facet `json:"facets,omitempty"` - - - // Filters - Additional custom filters to be applied to the query. - Filters *[]Filter `json:"filters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trusteeauditqueryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trusteeauthorization.go b/build/platformclientv2/trusteeauthorization.go deleted file mode 100644 index 410e2a500..000000000 --- a/build/platformclientv2/trusteeauthorization.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trusteeauthorization -type Trusteeauthorization struct { - // Permissions - Permissions that the trustee user has in the trustor organization - Permissions *[]string `json:"permissions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trusteeauthorization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trusteebillingoverview.go b/build/platformclientv2/trusteebillingoverview.go deleted file mode 100644 index e642e2248..000000000 --- a/build/platformclientv2/trusteebillingoverview.go +++ /dev/null @@ -1,82 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trusteebillingoverview -type Trusteebillingoverview struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Organization - Organization - Organization *Namedentity `json:"organization,omitempty"` - - - // Currency - The currency type. - Currency *string `json:"currency,omitempty"` - - - // EnabledProducts - The charge short names for products enabled during the specified period. - EnabledProducts *[]string `json:"enabledProducts,omitempty"` - - - // SubscriptionType - The subscription type. - SubscriptionType *string `json:"subscriptionType,omitempty"` - - - // RampPeriodStartDate - Date-time the ramp period starts. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RampPeriodStartDate *time.Time `json:"rampPeriodStartDate,omitempty"` - - - // RampPeriodEndDate - Date-time the ramp period ends. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - RampPeriodEndDate *time.Time `json:"rampPeriodEndDate,omitempty"` - - - // BillingPeriodStartDate - Date-time the billing period started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - BillingPeriodStartDate *time.Time `json:"billingPeriodStartDate,omitempty"` - - - // BillingPeriodEndDate - Date-time the billing period ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - BillingPeriodEndDate *time.Time `json:"billingPeriodEndDate,omitempty"` - - - // Usages - Usages for the specified period. - Usages *[]Subscriptionoverviewusage `json:"usages,omitempty"` - - - // ContractAmendmentDate - Date-time the contract was last amended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ContractAmendmentDate *time.Time `json:"contractAmendmentDate,omitempty"` - - - // ContractEffectiveDate - Date-time the contract became effective. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ContractEffectiveDate *time.Time `json:"contractEffectiveDate,omitempty"` - - - // ContractEndDate - Date-time the contract ends. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ContractEndDate *time.Time `json:"contractEndDate,omitempty"` - - - // MinimumMonthlyAmount - Minimum amount that will be charged for the month - MinimumMonthlyAmount *string `json:"minimumMonthlyAmount,omitempty"` - - - // InRampPeriod - InRampPeriod *bool `json:"inRampPeriod,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trusteebillingoverview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustentitylisting.go b/build/platformclientv2/trustentitylisting.go deleted file mode 100644 index 4fa6f0174..000000000 --- a/build/platformclientv2/trustentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustentitylisting -type Trustentitylisting struct { - // Entities - Entities *[]Trustee `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustgroup.go b/build/platformclientv2/trustgroup.go deleted file mode 100644 index 761be398c..000000000 --- a/build/platformclientv2/trustgroup.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trustgroup -type Trustgroup struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The group name. - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // DateModified - Last modified date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // MemberCount - Number of members. - MemberCount *int64 `json:"memberCount,omitempty"` - - - // State - Active, inactive, or deleted state. - State *string `json:"state,omitempty"` - - - // Version - Current version for this resource. - Version *int32 `json:"version,omitempty"` - - - // VarType - Type of group. - VarType *string `json:"type,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Addresses - Addresses *[]Groupcontact `json:"addresses,omitempty"` - - - // RulesVisible - Are membership rules visible to the person requesting to view the group - RulesVisible *bool `json:"rulesVisible,omitempty"` - - - // Visibility - Who can view this group - Visibility *string `json:"visibility,omitempty"` - - - // Owners - Owners of the group - Owners *[]User `json:"owners,omitempty"` - - - // DateCreated - The date on which the trusted group was added. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // CreatedBy - The user that added trusted group. - CreatedBy *Orguser `json:"createdBy,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustgroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustmembercreate.go b/build/platformclientv2/trustmembercreate.go deleted file mode 100644 index fbdc3b84f..000000000 --- a/build/platformclientv2/trustmembercreate.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustmembercreate -type Trustmembercreate struct { - // Id - Trustee User or Group Id - Id *string `json:"id,omitempty"` - - - // RoleIds - The list of roles to be granted to this user or group. Roles will be granted in all divisions. - RoleIds *[]string `json:"roleIds,omitempty"` - - - // RoleDivisions - The list of trustor organization roles granting this user or group access paired with the divisions for those roles. - RoleDivisions *Roledivisiongrants `json:"roleDivisions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustmembercreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustor.go b/build/platformclientv2/trustor.go deleted file mode 100644 index 920695ac5..000000000 --- a/build/platformclientv2/trustor.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trustor -type Trustor struct { - // Id - Organization Id for this trust. - Id *string `json:"id,omitempty"` - - - // Enabled - If disabled no trustee user will have access, even if they were previously added. - Enabled *bool `json:"enabled,omitempty"` - - - // DateCreated - Date Trust was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // CreatedBy - User that created trust. - CreatedBy *Orguser `json:"createdBy,omitempty"` - - - // Organization - Organization associated with this trust. - Organization *Organization `json:"organization,omitempty"` - - - // Authorization - Authorization for the trustee user has in this trustor organization - Authorization *Trusteeauthorization `json:"authorization,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustor) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustorauditqueryrequest.go b/build/platformclientv2/trustorauditqueryrequest.go deleted file mode 100644 index f26ca034f..000000000 --- a/build/platformclientv2/trustorauditqueryrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trustorauditqueryrequest -type Trustorauditqueryrequest struct { - // TrustorOrganizationId - Limit returned audits to this trustor organizationId. - TrustorOrganizationId *string `json:"trustorOrganizationId,omitempty"` - - - // TrusteeUserIds - Limit returned audits to these trustee userIds. - TrusteeUserIds *[]string `json:"trusteeUserIds,omitempty"` - - - // StartDate - Starting date/time for the audit search. ISO-8601 formatted date-time, UTC. - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - Ending date/time for the audit search. ISO-8601 formatted date-time, UTC. - EndDate *time.Time `json:"endDate,omitempty"` - - - // QueryPhrase - Word or phrase to look for in audit bodies. - QueryPhrase *string `json:"queryPhrase,omitempty"` - - - // Facets - Facet information to be returned with the query results. - Facets *[]Facet `json:"facets,omitempty"` - - - // Filters - Additional custom filters to be applied to the query. - Filters *[]Filter `json:"filters,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustorauditqueryrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustorentitylisting.go b/build/platformclientv2/trustorentitylisting.go deleted file mode 100644 index 417bd0c8a..000000000 --- a/build/platformclientv2/trustorentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustorentitylisting -type Trustorentitylisting struct { - // Entities - Entities *[]Trustor `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustorentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustrequest.go b/build/platformclientv2/trustrequest.go deleted file mode 100644 index 6122d299f..000000000 --- a/build/platformclientv2/trustrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trustrequest -type Trustrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // CreatedBy - User who created this request. - CreatedBy *Orguser `json:"createdBy,omitempty"` - - - // DateCreated - Date request was created. There is a 48 hour expiration on all requests. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // Trustee - Trustee organization who generated this request. - Trustee *Organization `json:"trustee,omitempty"` - - - // Users - The list of trustee users that are requesting access. - Users *[]Orguser `json:"users,omitempty"` - - - // Groups - The list of trustee groups that are requesting access. - Groups *[]Trustgroup `json:"groups,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustrequestcreate.go b/build/platformclientv2/trustrequestcreate.go deleted file mode 100644 index aeb7de67c..000000000 --- a/build/platformclientv2/trustrequestcreate.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustrequestcreate -type Trustrequestcreate struct { - // UserIds - The list of trustee users that are requesting access. If no users are specified, at least one group is required. - UserIds *[]string `json:"userIds,omitempty"` - - - // GroupIds - The list of trustee groups that are requesting access. If no groups are specified, at least one user is required. - GroupIds *[]string `json:"groupIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustrequestcreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustuser.go b/build/platformclientv2/trustuser.go deleted file mode 100644 index 02d1df108..000000000 --- a/build/platformclientv2/trustuser.go +++ /dev/null @@ -1,145 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustuser -type Trustuser struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // Chat - Chat *Chat `json:"chat,omitempty"` - - - // Department - Department *string `json:"department,omitempty"` - - - // Email - Email *string `json:"email,omitempty"` - - - // PrimaryContactInfo - Auto populated from addresses. - PrimaryContactInfo *[]Contact `json:"primaryContactInfo,omitempty"` - - - // Addresses - Email addresses and phone numbers for this user - Addresses *[]Contact `json:"addresses,omitempty"` - - - // State - The current state for this user. - State *string `json:"state,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Username - Username *string `json:"username,omitempty"` - - - // Manager - Manager *User `json:"manager,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Version - Required when updating a user, this value should be the current version of the user. The current version can be obtained with a GET on the user before doing a PATCH. - Version *int32 `json:"version,omitempty"` - - - // Certifications - Certifications *[]string `json:"certifications,omitempty"` - - - // Biography - Biography *Biography `json:"biography,omitempty"` - - - // EmployerInfo - EmployerInfo *Employerinfo `json:"employerInfo,omitempty"` - - - // RoutingStatus - ACD routing status - RoutingStatus *Routingstatus `json:"routingStatus,omitempty"` - - - // Presence - Active presence - Presence *Userpresence `json:"presence,omitempty"` - - - // ConversationSummary - Summary of conversion statistics for conversation types. - ConversationSummary *Userconversationsummary `json:"conversationSummary,omitempty"` - - - // OutOfOffice - Determine if out of office is enabled - OutOfOffice *Outofoffice `json:"outOfOffice,omitempty"` - - - // Geolocation - Current geolocation position - Geolocation *Geolocation `json:"geolocation,omitempty"` - - - // Station - Effective, default, and last station information - Station *Userstations `json:"station,omitempty"` - - - // Authorization - Roles and permissions assigned to the user - Authorization *Userauthorization `json:"authorization,omitempty"` - - - // ProfileSkills - Profile skills possessed by the user - ProfileSkills *[]string `json:"profileSkills,omitempty"` - - - // Locations - The user placement at each site location. - Locations *[]Location `json:"locations,omitempty"` - - - // Groups - The groups the user is a member of - Groups *[]Group `json:"groups,omitempty"` - - - // Skills - Routing (ACD) skills possessed by the user - Skills *[]Userroutingskill `json:"skills,omitempty"` - - - // Languages - Routing (ACD) languages possessed by the user - Languages *[]Userroutinglanguage `json:"languages,omitempty"` - - - // AcdAutoAnswer - acd auto answer - AcdAutoAnswer *bool `json:"acdAutoAnswer,omitempty"` - - - // LanguagePreference - preferred language by the user - LanguagePreference *string `json:"languagePreference,omitempty"` - - - // LastTokenIssued - LastTokenIssued *Oauthlasttokenissued `json:"lastTokenIssued,omitempty"` - - - // TrustUserDetails - TrustUserDetails *Trustuserdetails `json:"trustUserDetails,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustuserdetails.go b/build/platformclientv2/trustuserdetails.go deleted file mode 100644 index 982b49920..000000000 --- a/build/platformclientv2/trustuserdetails.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Trustuserdetails -type Trustuserdetails struct { - // DateCreated - Date Trust User was added. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // CreatedBy - User that added trusted user. - CreatedBy *Orguser `json:"createdBy,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustuserdetails) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/trustuserentitylisting.go b/build/platformclientv2/trustuserentitylisting.go deleted file mode 100644 index 32bbdae8b..000000000 --- a/build/platformclientv2/trustuserentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Trustuserentitylisting -type Trustuserentitylisting struct { - // Entities - Entities *[]Trustuser `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Trustuserentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ttsengineentity.go b/build/platformclientv2/ttsengineentity.go deleted file mode 100644 index 3d0314f38..000000000 --- a/build/platformclientv2/ttsengineentity.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ttsengineentity -type Ttsengineentity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Languages - The set of languages the TTS engine supports - Languages *[]string `json:"languages,omitempty"` - - - // OutputFormats - The set of output formats the TTS engine can produce - OutputFormats *[]string `json:"outputFormats,omitempty"` - - - // Voices - The set of voices the TTS engine supports - Voices *[]Ttsvoiceentity `json:"voices,omitempty"` - - - // IsDefault - The TTS engine is the global default engine - IsDefault *bool `json:"isDefault,omitempty"` - - - // IsSecure - The TTS engine can be used in a secure call flow - IsSecure *bool `json:"isSecure,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ttsengineentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ttsengineentitylisting.go b/build/platformclientv2/ttsengineentitylisting.go deleted file mode 100644 index 374f6cdb3..000000000 --- a/build/platformclientv2/ttsengineentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ttsengineentitylisting -type Ttsengineentitylisting struct { - // Entities - Entities *[]Ttsengineentity `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ttsengineentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ttssettings.go b/build/platformclientv2/ttssettings.go deleted file mode 100644 index 8f160796e..000000000 --- a/build/platformclientv2/ttssettings.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ttssettings -type Ttssettings struct { - // DefaultEngine - ID of the global default TTS engine - DefaultEngine *string `json:"defaultEngine,omitempty"` - - - // LanguageOverrides - The list of default overrides for specific languages - LanguageOverrides *[]Languageoverride `json:"languageOverrides,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ttssettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ttsvoiceentity.go b/build/platformclientv2/ttsvoiceentity.go deleted file mode 100644 index ebf505f47..000000000 --- a/build/platformclientv2/ttsvoiceentity.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ttsvoiceentity -type Ttsvoiceentity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Gender - The gender of the TTS voice - Gender *string `json:"gender,omitempty"` - - - // Language - The language supported by the TTS voice - Language *string `json:"language,omitempty"` - - - // Engine - Ths TTS engine this voice belongs to - Engine *Ttsengineentity `json:"engine,omitempty"` - - - // IsDefault - The voice is the default voice for its language - IsDefault *bool `json:"isDefault,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ttsvoiceentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/ttsvoiceentitylisting.go b/build/platformclientv2/ttsvoiceentitylisting.go deleted file mode 100644 index c7ae9f0e1..000000000 --- a/build/platformclientv2/ttsvoiceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Ttsvoiceentitylisting -type Ttsvoiceentitylisting struct { - // Entities - Entities *[]Ttsvoiceentity `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Ttsvoiceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/twitterid.go b/build/platformclientv2/twitterid.go deleted file mode 100644 index 5decfc3de..000000000 --- a/build/platformclientv2/twitterid.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Twitterid - User information for a twitter account -type Twitterid struct { - // Id - twitter user.id_str - Id *string `json:"id,omitempty"` - - - // Name - twitter user.name - Name *string `json:"name,omitempty"` - - - // ScreenName - twitter user.screen_name - ScreenName *string `json:"screenName,omitempty"` - - - // Verified - whether this data has been verified using the twitter API - Verified *bool `json:"verified,omitempty"` - - - // ProfileUrl - url of user's twitter profile - ProfileUrl *string `json:"profileUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Twitterid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/twitterintegration.go b/build/platformclientv2/twitterintegration.go deleted file mode 100644 index 2079727a6..000000000 --- a/build/platformclientv2/twitterintegration.go +++ /dev/null @@ -1,78 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Twitterintegration -type Twitterintegration struct { - // Id - A unique Integration Id - Id *string `json:"id,omitempty"` - - - // Name - The name of the Twitter Integration - Name *string `json:"name,omitempty"` - - - // AccessTokenKey - The Access Token Key from Twitter messenger - AccessTokenKey *string `json:"accessTokenKey,omitempty"` - - - // ConsumerKey - The Consumer Key from Twitter messenger - ConsumerKey *string `json:"consumerKey,omitempty"` - - - // Username - The Username from Twitter - Username *string `json:"username,omitempty"` - - - // UserId - The UserId from Twitter - UserId *string `json:"userId,omitempty"` - - - // Status - The status of the Twitter Integration - Status *string `json:"status,omitempty"` - - - // Tier - The type of twitter account to be used for the integration - Tier *string `json:"tier,omitempty"` - - - // EnvName - The Twitter environment name, e.g.: env-beta (required for premium tier) - EnvName *string `json:"envName,omitempty"` - - - // Recipient - The recipient associated to the Twitter Integration. This recipient is used to associate a flow to an integration - Recipient *Domainentityref `json:"recipient,omitempty"` - - - // DateCreated - Date this Integration was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this Integration was modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User reference that created this Integration - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User reference that last modified this Integration - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Twitterintegration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/twitterintegrationentitylisting.go b/build/platformclientv2/twitterintegrationentitylisting.go deleted file mode 100644 index b18f79624..000000000 --- a/build/platformclientv2/twitterintegrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Twitterintegrationentitylisting -type Twitterintegrationentitylisting struct { - // Entities - Entities *[]Twitterintegration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Twitterintegrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/twitterintegrationrequest.go b/build/platformclientv2/twitterintegrationrequest.go deleted file mode 100644 index b916c2f40..000000000 --- a/build/platformclientv2/twitterintegrationrequest.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Twitterintegrationrequest -type Twitterintegrationrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the Twitter Integration - Name *string `json:"name,omitempty"` - - - // AccessTokenKey - The Access Token Key from Twitter messenger - AccessTokenKey *string `json:"accessTokenKey,omitempty"` - - - // AccessTokenSecret - The Access Token Secret from Twitter messenger - AccessTokenSecret *string `json:"accessTokenSecret,omitempty"` - - - // ConsumerKey - The Consumer Key from Twitter messenger - ConsumerKey *string `json:"consumerKey,omitempty"` - - - // ConsumerSecret - The Consumer Secret from Twitter messenger - ConsumerSecret *string `json:"consumerSecret,omitempty"` - - - // Tier - The type of twitter account to be used for the integration - Tier *string `json:"tier,omitempty"` - - - // EnvName - The Twitter environment name, e.g.: env-beta (required for premium tier) - EnvName *string `json:"envName,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Twitterintegrationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/unreadmetric.go b/build/platformclientv2/unreadmetric.go deleted file mode 100644 index e57a42763..000000000 --- a/build/platformclientv2/unreadmetric.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Unreadmetric -type Unreadmetric struct { - // Count - The count of unread alerts for a specific rule type. - Count *int32 `json:"count,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Unreadmetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/unreadstatus.go b/build/platformclientv2/unreadstatus.go deleted file mode 100644 index 2824d8867..000000000 --- a/build/platformclientv2/unreadstatus.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Unreadstatus -type Unreadstatus struct { - // Unread - Sets if the alert is read or unread. - Unread *bool `json:"unread,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Unreadstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/unscheduledagentwarning.go b/build/platformclientv2/unscheduledagentwarning.go deleted file mode 100644 index 7bb8de90b..000000000 --- a/build/platformclientv2/unscheduledagentwarning.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Unscheduledagentwarning -type Unscheduledagentwarning struct { - // Agent - The agent for which this warning applies - Agent *Userreference `json:"agent,omitempty"` - - - // UnscheduledReason - The reason this agent was not scheduled - UnscheduledReason *string `json:"unscheduledReason,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Unscheduledagentwarning) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updateactioninput.go b/build/platformclientv2/updateactioninput.go deleted file mode 100644 index dca883c61..000000000 --- a/build/platformclientv2/updateactioninput.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updateactioninput -type Updateactioninput struct { - // Category - Category of action - Category *string `json:"category,omitempty"` - - - // Name - Name of action - Name *string `json:"name,omitempty"` - - - // Config - Configuration to support request and response processing - Config *Actionconfig `json:"config,omitempty"` - - - // Version - Version of this action - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updateactioninput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updateactivitycoderequest.go b/build/platformclientv2/updateactivitycoderequest.go deleted file mode 100644 index 5b86797e1..000000000 --- a/build/platformclientv2/updateactivitycoderequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updateactivitycoderequest - Activity Code -type Updateactivitycoderequest struct { - // Name - The name of the activity code - Name *string `json:"name,omitempty"` - - - // Category - The activity code's category. Attempting to change the category of a default activity code will return an error - Category *string `json:"category,omitempty"` - - - // LengthInMinutes - The default length of the activity in minutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // CountsAsPaidTime - Whether an agent is paid while performing this activity - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // CountsAsWorkTime - Indicates whether or not the activity should be counted as work time - CountsAsWorkTime *bool `json:"countsAsWorkTime,omitempty"` - - - // AgentTimeOffSelectable - Whether an agent can select this activity code when creating or editing a time off request - AgentTimeOffSelectable *bool `json:"agentTimeOffSelectable,omitempty"` - - - // Metadata - Version metadata for the associated management unit's list of activity codes - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updateactivitycoderequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updatedraftinput.go b/build/platformclientv2/updatedraftinput.go deleted file mode 100644 index 4404caee0..000000000 --- a/build/platformclientv2/updatedraftinput.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updatedraftinput - Definition of an Action Draft to be created or updated. -type Updatedraftinput struct { - // Category - Category of action - Category *string `json:"category,omitempty"` - - - // Name - Name of action - Name *string `json:"name,omitempty"` - - - // Config - Configuration to support request and response processing - Config *Actionconfig `json:"config,omitempty"` - - - // Contract - Action contract - Contract *Actioncontractinput `json:"contract,omitempty"` - - - // Secure - Indication of whether or not the action is designed to accept sensitive data - Secure *bool `json:"secure,omitempty"` - - - // Version - Version of current Draft - Version *int32 `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updatedraftinput) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updatemanagementunitrequest.go b/build/platformclientv2/updatemanagementunitrequest.go deleted file mode 100644 index d30f5f0ec..000000000 --- a/build/platformclientv2/updatemanagementunitrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updatemanagementunitrequest -type Updatemanagementunitrequest struct { - // Name - The new name of the management unit - Name *string `json:"name,omitempty"` - - - // DivisionId - The new division id for the management unit - DivisionId *string `json:"divisionId,omitempty"` - - - // Settings - Updated settings for the management unit - Settings *Managementunitsettingsrequest `json:"settings,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updatemanagementunitrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updatenotificationresponse.go b/build/platformclientv2/updatenotificationresponse.go deleted file mode 100644 index 2ede37b87..000000000 --- a/build/platformclientv2/updatenotificationresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updatenotificationresponse -type Updatenotificationresponse struct { - // MutableGroupId - The mutableGroupId of the notification - MutableGroupId *string `json:"mutableGroupId,omitempty"` - - - // Id - The id of the notification for mapping the potentially new mutableGroupId - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updatenotificationresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updatenotificationsrequest.go b/build/platformclientv2/updatenotificationsrequest.go deleted file mode 100644 index 66e2395d5..000000000 --- a/build/platformclientv2/updatenotificationsrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updatenotificationsrequest -type Updatenotificationsrequest struct { - // Entities - The notifications to update - Entities *[]Wfmusernotification `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updatenotificationsrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updatenotificationsresponse.go b/build/platformclientv2/updatenotificationsresponse.go deleted file mode 100644 index ddd9ee7b4..000000000 --- a/build/platformclientv2/updatenotificationsresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updatenotificationsresponse -type Updatenotificationsresponse struct { - // Entities - Entities *[]Updatenotificationresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updatenotificationsresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updateschedulingrunrequest.go b/build/platformclientv2/updateschedulingrunrequest.go deleted file mode 100644 index 495ba123d..000000000 --- a/build/platformclientv2/updateschedulingrunrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updateschedulingrunrequest -type Updateschedulingrunrequest struct { - // Applied - Mark the run as applied. Request will be rejected if the value != true. Note: To discard a run without applying, you still need to mark it as applied so that other reschedule runs can be done - Applied *bool `json:"applied,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updateschedulingrunrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updateuser.go b/build/platformclientv2/updateuser.go deleted file mode 100644 index 3ac68ba84..000000000 --- a/build/platformclientv2/updateuser.go +++ /dev/null @@ -1,97 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updateuser -type Updateuser struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Chat - Chat *Chat `json:"chat,omitempty"` - - - // Department - Department *string `json:"department,omitempty"` - - - // Email - Email *string `json:"email,omitempty"` - - - // PrimaryContactInfo - The address(s) used for primary contact. Updates to the corresponding address in the addresses list will be reflected here. - PrimaryContactInfo *[]Contact `json:"primaryContactInfo,omitempty"` - - - // Addresses - Email address, phone number, and/or extension for this user. One entry is allowed per media type - Addresses *[]Contact `json:"addresses,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Username - Username *string `json:"username,omitempty"` - - - // Manager - Manager *string `json:"manager,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Version - This value should be the current version of the user. The current version can be obtained with a GET on the user before doing a PATCH. - Version *int32 `json:"version,omitempty"` - - - // ProfileSkills - Profile skills possessed by the user - ProfileSkills *[]string `json:"profileSkills,omitempty"` - - - // Locations - The user placement at each site location. - Locations *[]Location `json:"locations,omitempty"` - - - // Groups - The groups the user is a member of - Groups *[]Group `json:"groups,omitempty"` - - - // State - The state of the user. This property can be used to restore a deleted user or transition between active and inactive. If specified, it is the only modifiable field. - State *string `json:"state,omitempty"` - - - // AcdAutoAnswer - The value that denotes if acdAutoAnswer is set on the user - AcdAutoAnswer *bool `json:"acdAutoAnswer,omitempty"` - - - // Certifications - Certifications *[]string `json:"certifications,omitempty"` - - - // Biography - Biography *Biography `json:"biography,omitempty"` - - - // EmployerInfo - EmployerInfo *Employerinfo `json:"employerInfo,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updateuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/updateweekschedulerequest.go b/build/platformclientv2/updateweekschedulerequest.go deleted file mode 100644 index 2eebc7e8f..000000000 --- a/build/platformclientv2/updateweekschedulerequest.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Updateweekschedulerequest -type Updateweekschedulerequest struct { - // Description - Description of the week schedule - Description *string `json:"description,omitempty"` - - - // Published - Whether the week schedule is published - Published *bool `json:"published,omitempty"` - - - // UserSchedules - User schedules in the week - UserSchedules *map[string]Userschedule `json:"userSchedules,omitempty"` - - - // PartialUploadIds - IDs of partial uploads to include in this imported schedule. It is applicable only for large schedules where activity count in schedule is greater than 17500 - PartialUploadIds *[]string `json:"partialUploadIds,omitempty"` - - - // Metadata - Version metadata for this work plan - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // AgentSchedulesVersion - Version of agent schedules in the week schedule - AgentSchedulesVersion *int32 `json:"agentSchedulesVersion,omitempty"` - - - // ShortTermForecast - Reference to optionally point the schedule at a new short term forecast - ShortTermForecast *Shorttermforecastreference `json:"shortTermForecast,omitempty"` - - - // HeadcountForecast - The headcount forecast associated with the schedule. If not null, existing values will be irrecoverably replaced - HeadcountForecast *Headcountforecast `json:"headcountForecast,omitempty"` - - - // AgentUpdateFilter - For a published schedule, this determines whether a notification will be shown to agents in the default PureCloud user interface. The CPC notification will always be sent and the value specified here affects what data is returned in the 'updates' property. In the default PureCloud UI, \"None\" means that agents will not be notified, \"ShiftTimesOnly\" means agents will only be notified for changes to shift start and end times, and \"All\" means that agents will be notified for any change to a shift or activity (except for full day off activities). When building a custom client, use this property to specify the level of detail you need. Defaults to \"ShiftTimesOnly\". - AgentUpdateFilter *string `json:"agentUpdateFilter,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Updateweekschedulerequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usage.go b/build/platformclientv2/usage.go deleted file mode 100644 index 7eebafdfe..000000000 --- a/build/platformclientv2/usage.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usage -type Usage struct { - // Types - Types *[]Usageitem `json:"types,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usageitem.go b/build/platformclientv2/usageitem.go deleted file mode 100644 index 6dc124990..000000000 --- a/build/platformclientv2/usageitem.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usageitem -type Usageitem struct { - // VarType - VarType *string `json:"type,omitempty"` - - - // TotalDocumentByteCount - TotalDocumentByteCount *int64 `json:"totalDocumentByteCount,omitempty"` - - - // TotalDocumentCount - TotalDocumentCount *int64 `json:"totalDocumentCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usageitem) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/user.go b/build/platformclientv2/user.go deleted file mode 100644 index 42666f395..000000000 --- a/build/platformclientv2/user.go +++ /dev/null @@ -1,145 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// User -type User struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // Chat - Chat *Chat `json:"chat,omitempty"` - - - // Department - Department *string `json:"department,omitempty"` - - - // Email - Email *string `json:"email,omitempty"` - - - // PrimaryContactInfo - Auto populated from addresses. - PrimaryContactInfo *[]Contact `json:"primaryContactInfo,omitempty"` - - - // Addresses - Email addresses and phone numbers for this user - Addresses *[]Contact `json:"addresses,omitempty"` - - - // State - The current state for this user. - State *string `json:"state,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Username - Username *string `json:"username,omitempty"` - - - // Manager - Manager **User `json:"manager,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Version - Required when updating a user, this value should be the current version of the user. The current version can be obtained with a GET on the user before doing a PATCH. - Version *int32 `json:"version,omitempty"` - - - // Certifications - Certifications *[]string `json:"certifications,omitempty"` - - - // Biography - Biography *Biography `json:"biography,omitempty"` - - - // EmployerInfo - EmployerInfo *Employerinfo `json:"employerInfo,omitempty"` - - - // RoutingStatus - ACD routing status - RoutingStatus *Routingstatus `json:"routingStatus,omitempty"` - - - // Presence - Active presence - Presence *Userpresence `json:"presence,omitempty"` - - - // ConversationSummary - Summary of conversion statistics for conversation types. - ConversationSummary *Userconversationsummary `json:"conversationSummary,omitempty"` - - - // OutOfOffice - Determine if out of office is enabled - OutOfOffice **Outofoffice `json:"outOfOffice,omitempty"` - - - // Geolocation - Current geolocation position - Geolocation *Geolocation `json:"geolocation,omitempty"` - - - // Station - Effective, default, and last station information - Station **Userstations `json:"station,omitempty"` - - - // Authorization - Roles and permissions assigned to the user - Authorization *Userauthorization `json:"authorization,omitempty"` - - - // ProfileSkills - Profile skills possessed by the user - ProfileSkills *[]string `json:"profileSkills,omitempty"` - - - // Locations - The user placement at each site location. - Locations *[]Location `json:"locations,omitempty"` - - - // Groups - The groups the user is a member of - Groups *[]Group `json:"groups,omitempty"` - - - // Skills - Routing (ACD) skills possessed by the user - Skills *[]Userroutingskill `json:"skills,omitempty"` - - - // Languages - Routing (ACD) languages possessed by the user - Languages *[]Userroutinglanguage `json:"languages,omitempty"` - - - // AcdAutoAnswer - acd auto answer - AcdAutoAnswer *bool `json:"acdAutoAnswer,omitempty"` - - - // LanguagePreference - preferred language by the user - LanguagePreference *string `json:"languagePreference,omitempty"` - - - // LastTokenIssued - LastTokenIssued *Oauthlasttokenissued `json:"lastTokenIssued,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *User) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useractioncategory.go b/build/platformclientv2/useractioncategory.go deleted file mode 100644 index 354b24222..000000000 --- a/build/platformclientv2/useractioncategory.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useractioncategory -type Useractioncategory struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useractioncategory) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useractioncategoryentitylisting.go b/build/platformclientv2/useractioncategoryentitylisting.go deleted file mode 100644 index f3fc4052a..000000000 --- a/build/platformclientv2/useractioncategoryentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useractioncategoryentitylisting -type Useractioncategoryentitylisting struct { - // Entities - Entities *[]Useractioncategory `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useractioncategoryentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useragentinfo.go b/build/platformclientv2/useragentinfo.go deleted file mode 100644 index b2db0e9c4..000000000 --- a/build/platformclientv2/useragentinfo.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useragentinfo -type Useragentinfo struct { - // FirmwareVersion - The firmware version of the phone. - FirmwareVersion *string `json:"firmwareVersion,omitempty"` - - - // Manufacturer - The manufacturer of the phone. - Manufacturer *string `json:"manufacturer,omitempty"` - - - // Model - The model of the phone. - Model *string `json:"model,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useragentinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregatedatacontainer.go b/build/platformclientv2/useraggregatedatacontainer.go deleted file mode 100644 index b1f1da0b7..000000000 --- a/build/platformclientv2/useraggregatedatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregatedatacontainer -type Useraggregatedatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Statisticalresponse `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregatedatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregatequeryclause.go b/build/platformclientv2/useraggregatequeryclause.go deleted file mode 100644 index b26ff693e..000000000 --- a/build/platformclientv2/useraggregatequeryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregatequeryclause -type Useraggregatequeryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Useraggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregatequeryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregatequeryfilter.go b/build/platformclientv2/useraggregatequeryfilter.go deleted file mode 100644 index 124f31d3e..000000000 --- a/build/platformclientv2/useraggregatequeryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregatequeryfilter -type Useraggregatequeryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Useraggregatequeryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Useraggregatequerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregatequeryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregatequerypredicate.go b/build/platformclientv2/useraggregatequerypredicate.go deleted file mode 100644 index ae1ba9703..000000000 --- a/build/platformclientv2/useraggregatequerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregatequerypredicate -type Useraggregatequerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregatequerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregatequeryresponse.go b/build/platformclientv2/useraggregatequeryresponse.go deleted file mode 100644 index e091d1e0e..000000000 --- a/build/platformclientv2/useraggregatequeryresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregatequeryresponse -type Useraggregatequeryresponse struct { - // SystemToOrganizationMappings - A mapping from system presence to a list of organization presence ids - SystemToOrganizationMappings *map[string][]string `json:"systemToOrganizationMappings,omitempty"` - - - // Results - Results *[]Useraggregatedatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregatequeryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregationquery.go b/build/platformclientv2/useraggregationquery.go deleted file mode 100644 index b40d6d9b0..000000000 --- a/build/platformclientv2/useraggregationquery.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregationquery -type Useraggregationquery struct { - // Interval - Behaves like one clause in a SQL WHERE. Specifies the date and time range of data being queried. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // Granularity - Granularity aggregates metrics into subpartitions within the time interval specified. The default granularity is the same duration as the interval. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H - Granularity *string `json:"granularity,omitempty"` - - - // TimeZone - Sets the time zone for the query interval, defaults to UTC. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London - TimeZone *string `json:"timeZone,omitempty"` - - - // GroupBy - Behaves like a SQL GROUPBY. Allows for multiple levels of grouping as a list of dimensions. Partitions resulting aggregate computations into distinct named subgroups rather than across the entire result set as if it were one group. - GroupBy *[]string `json:"groupBy,omitempty"` - - - // Filter - Behaves like a SQL WHERE clause. This is ANDed with the interval parameter. Expresses boolean logical predicates as well as dimensional filters - Filter *Useraggregatequeryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // FlattenMultivaluedDimensions - Flattens any multivalued dimensions used in response groups (e.g. ['a','b','c']->'a,b,c') - FlattenMultivaluedDimensions *bool `json:"flattenMultivaluedDimensions,omitempty"` - - - // Views - Custom derived metric views - Views *[]Useraggregationview `json:"views,omitempty"` - - - // AlternateTimeDimension - Dimension to use as the alternative timestamp for data in the aggregate. Choosing \"eventTime\" uses the actual time of the data event. - AlternateTimeDimension *string `json:"alternateTimeDimension,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/useraggregationview.go b/build/platformclientv2/useraggregationview.go deleted file mode 100644 index 892b01df1..000000000 --- a/build/platformclientv2/useraggregationview.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Useraggregationview -type Useraggregationview struct { - // Target - Target metric name - Target *string `json:"target,omitempty"` - - - // Name - A unique name for this view. Must be distinct from other views and built-in metric names. - Name *string `json:"name,omitempty"` - - - // Function - Type of view you wish to create - Function *string `json:"function,omitempty"` - - - // VarRange - Range of numbers for slicing up data - VarRange *Aggregationrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Useraggregationview) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userauthorization.go b/build/platformclientv2/userauthorization.go deleted file mode 100644 index 1b69d7330..000000000 --- a/build/platformclientv2/userauthorization.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userauthorization -type Userauthorization struct { - // Roles - Roles *[]Domainrole `json:"roles,omitempty"` - - - // UnusedRoles - A collection of the roles the user is not using - UnusedRoles *[]Domainrole `json:"unusedRoles,omitempty"` - - - // Permissions - A collection of the permissions granted by all assigned roles - Permissions *[]string `json:"permissions,omitempty"` - - - // PermissionPolicies - The policies configured for assigned permissions. - PermissionPolicies *[]Resourcepermissionpolicy `json:"permissionPolicies,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userauthorization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userconversationseventmediasummary.go b/build/platformclientv2/userconversationseventmediasummary.go deleted file mode 100644 index 49220be03..000000000 --- a/build/platformclientv2/userconversationseventmediasummary.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userconversationseventmediasummary -type Userconversationseventmediasummary struct { - // ContactCenter - ContactCenter *Userconversationseventmediasummarydetail `json:"contactCenter,omitempty"` - - - // Enterprise - Enterprise *Userconversationseventmediasummarydetail `json:"enterprise,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userconversationseventmediasummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userconversationseventmediasummarydetail.go b/build/platformclientv2/userconversationseventmediasummarydetail.go deleted file mode 100644 index c8bbfc9fa..000000000 --- a/build/platformclientv2/userconversationseventmediasummarydetail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userconversationseventmediasummarydetail -type Userconversationseventmediasummarydetail struct { - // Active - Active *int32 `json:"active,omitempty"` - - - // Acw - Acw *int32 `json:"acw,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userconversationseventmediasummarydetail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userconversationseventuserconversationsummary.go b/build/platformclientv2/userconversationseventuserconversationsummary.go deleted file mode 100644 index f42687271..000000000 --- a/build/platformclientv2/userconversationseventuserconversationsummary.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userconversationseventuserconversationsummary -type Userconversationseventuserconversationsummary struct { - // UserId - UserId *string `json:"userId,omitempty"` - - - // Call - Call *Userconversationseventmediasummary `json:"call,omitempty"` - - - // Callback - Callback *Userconversationseventmediasummary `json:"callback,omitempty"` - - - // Email - Email *Userconversationseventmediasummary `json:"email,omitempty"` - - - // Message - Message *Userconversationseventmediasummary `json:"message,omitempty"` - - - // Chat - Chat *Userconversationseventmediasummary `json:"chat,omitempty"` - - - // SocialExpression - SocialExpression *Userconversationseventmediasummary `json:"socialExpression,omitempty"` - - - // Video - Video *Userconversationseventmediasummary `json:"video,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userconversationseventuserconversationsummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userconversationsummary.go b/build/platformclientv2/userconversationsummary.go deleted file mode 100644 index 5629af279..000000000 --- a/build/platformclientv2/userconversationsummary.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userconversationsummary -type Userconversationsummary struct { - // UserId - UserId *string `json:"userId,omitempty"` - - - // Call - Call *Mediasummary `json:"call,omitempty"` - - - // Callback - Callback *Mediasummary `json:"callback,omitempty"` - - - // Email - Email *Mediasummary `json:"email,omitempty"` - - - // Message - Message *Mediasummary `json:"message,omitempty"` - - - // Chat - Chat *Mediasummary `json:"chat,omitempty"` - - - // SocialExpression - SocialExpression *Mediasummary `json:"socialExpression,omitempty"` - - - // Video - Video *Mediasummary `json:"video,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userconversationsummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userdetailqueryclause.go b/build/platformclientv2/userdetailqueryclause.go deleted file mode 100644 index 88409d605..000000000 --- a/build/platformclientv2/userdetailqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userdetailqueryclause -type Userdetailqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Userdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userdetailqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userdetailqueryfilter.go b/build/platformclientv2/userdetailqueryfilter.go deleted file mode 100644 index 1ea98add5..000000000 --- a/build/platformclientv2/userdetailqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userdetailqueryfilter -type Userdetailqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Userdetailqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Userdetailquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userdetailqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userdetailquerypredicate.go b/build/platformclientv2/userdetailquerypredicate.go deleted file mode 100644 index bcce4c703..000000000 --- a/build/platformclientv2/userdetailquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userdetailquerypredicate -type Userdetailquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userdetailquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userdetailsquery.go b/build/platformclientv2/userdetailsquery.go deleted file mode 100644 index a31fbb11b..000000000 --- a/build/platformclientv2/userdetailsquery.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userdetailsquery -type Userdetailsquery struct { - // Interval - Specifies the date and time range of data being queried. Conversations MUST have started within this time range to potentially be included within the result set. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss - Interval *string `json:"interval,omitempty"` - - - // UserFilters - Filters that target the users to retrieve data for - UserFilters *[]Userdetailqueryfilter `json:"userFilters,omitempty"` - - - // PresenceFilters - Filters that target system and organization presence-level data - PresenceFilters *[]Presencedetailqueryfilter `json:"presenceFilters,omitempty"` - - - // RoutingStatusFilters - Filters that target agent routing status-level data - RoutingStatusFilters *[]Routingstatusdetailqueryfilter `json:"routingStatusFilters,omitempty"` - - - // Order - Sort the result set in ascending/descending order. Default is ascending - Order *string `json:"order,omitempty"` - - - // PresenceAggregations - Include faceted search and aggregate roll-ups of presence data in your search results. This does not function as a filter, but rather, summary data about the presence results matching your filters - PresenceAggregations *[]Analyticsqueryaggregation `json:"presenceAggregations,omitempty"` - - - // RoutingStatusAggregations - Include faceted search and aggregate roll-ups of agent routing status data in your search results. This does not function as a filter, but rather, summary data about the agent routing status results matching your filters - RoutingStatusAggregations *[]Analyticsqueryaggregation `json:"routingStatusAggregations,omitempty"` - - - // Paging - Page size and number to control iterating through large result sets. Default page size is 25 - Paging *Pagingspec `json:"paging,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userdetailsquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userdevice.go b/build/platformclientv2/userdevice.go deleted file mode 100644 index be72f9fa4..000000000 --- a/build/platformclientv2/userdevice.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userdevice -type Userdevice struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DeviceToken - device token sent by mobile clients. - DeviceToken *string `json:"deviceToken,omitempty"` - - - // NotificationId - notification id of the device. - NotificationId *string `json:"notificationId,omitempty"` - - - // Make - make of the device. - Make *string `json:"make,omitempty"` - - - // Model - Device model - Model *string `json:"model,omitempty"` - - - // AcceptNotifications - if the device accepts notifications - AcceptNotifications *bool `json:"acceptNotifications,omitempty"` - - - // VarType - type of the device; ios or android - VarType *string `json:"type,omitempty"` - - - // SessionHash - SessionHash *string `json:"sessionHash,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userdevice) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userentitylisting.go b/build/platformclientv2/userentitylisting.go deleted file mode 100644 index c468ce4ab..000000000 --- a/build/platformclientv2/userentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userentitylisting -type Userentitylisting struct { - // Entities - Entities *[]User `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userexpands.go b/build/platformclientv2/userexpands.go deleted file mode 100644 index bf720a299..000000000 --- a/build/platformclientv2/userexpands.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userexpands -type Userexpands struct { - // RoutingStatus - ACD routing status - RoutingStatus *Routingstatus `json:"routingStatus,omitempty"` - - - // Presence - Active presence - Presence *Userpresence `json:"presence,omitempty"` - - - // ConversationSummary - Summary of conversion statistics for conversation types. - ConversationSummary *Userconversationsummary `json:"conversationSummary,omitempty"` - - - // OutOfOffice - Determine if out of office is enabled - OutOfOffice *Outofoffice `json:"outOfOffice,omitempty"` - - - // Geolocation - Current geolocation position - Geolocation *Geolocation `json:"geolocation,omitempty"` - - - // Station - Effective, default, and last station information - Station *Userstations `json:"station,omitempty"` - - - // Authorization - Roles and permissions assigned to the user - Authorization *Userauthorization `json:"authorization,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userexpands) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usergreetingeventgreeting.go b/build/platformclientv2/usergreetingeventgreeting.go deleted file mode 100644 index 7b3c7a6f1..000000000 --- a/build/platformclientv2/usergreetingeventgreeting.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usergreetingeventgreeting -type Usergreetingeventgreeting struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // OwnerType - OwnerType *string `json:"ownerType,omitempty"` - - - // Owner - Owner *Usergreetingeventgreetingowner `json:"owner,omitempty"` - - - // GreetingAudioFile - GreetingAudioFile *Usergreetingeventgreetingaudiofile `json:"greetingAudioFile,omitempty"` - - - // AudioTTS - AudioTTS *string `json:"audioTTS,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usergreetingeventgreeting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usergreetingeventgreetingaudiofile.go b/build/platformclientv2/usergreetingeventgreetingaudiofile.go deleted file mode 100644 index 4157a9415..000000000 --- a/build/platformclientv2/usergreetingeventgreetingaudiofile.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usergreetingeventgreetingaudiofile -type Usergreetingeventgreetingaudiofile struct { - // DurationMilliseconds - DurationMilliseconds *int32 `json:"durationMilliseconds,omitempty"` - - - // SizeBytes - SizeBytes *int32 `json:"sizeBytes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usergreetingeventgreetingaudiofile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usergreetingeventgreetingowner.go b/build/platformclientv2/usergreetingeventgreetingowner.go deleted file mode 100644 index 9b927561c..000000000 --- a/build/platformclientv2/usergreetingeventgreetingowner.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usergreetingeventgreetingowner -type Usergreetingeventgreetingowner struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usergreetingeventgreetingowner) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userimage.go b/build/platformclientv2/userimage.go deleted file mode 100644 index 9ebecfbb1..000000000 --- a/build/platformclientv2/userimage.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userimage -type Userimage struct { - // Resolution - Height and/or width of image. ex: 640x480 or x128 - Resolution *string `json:"resolution,omitempty"` - - - // ImageUri - ImageUri *string `json:"imageUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userimage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userlanguageentitylisting.go b/build/platformclientv2/userlanguageentitylisting.go deleted file mode 100644 index 0f7701adb..000000000 --- a/build/platformclientv2/userlanguageentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userlanguageentitylisting -type Userlanguageentitylisting struct { - // Entities - Entities *[]Userroutinglanguage `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userlanguageentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userlicenses.go b/build/platformclientv2/userlicenses.go deleted file mode 100644 index 54fe918bd..000000000 --- a/build/platformclientv2/userlicenses.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userlicenses -type Userlicenses struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Licenses - Licenses *[]string `json:"licenses,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userlicenses) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userlicensesentitylisting.go b/build/platformclientv2/userlicensesentitylisting.go deleted file mode 100644 index eef6546c9..000000000 --- a/build/platformclientv2/userlicensesentitylisting.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userlicensesentitylisting -type Userlicensesentitylisting struct { - // Entities - Entities *[]Userlicenses `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userlicensesentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userlistschedulerequestbody.go b/build/platformclientv2/userlistschedulerequestbody.go deleted file mode 100644 index 0e5e10015..000000000 --- a/build/platformclientv2/userlistschedulerequestbody.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userlistschedulerequestbody - Request body for fetching the schedule for a group of users over a given time range -type Userlistschedulerequestbody struct { - // UserIds - The user ids for which to fetch schedules - UserIds *[]string `json:"userIds,omitempty"` - - - // StartDate - Beginning of the range of schedules to fetch, in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - End of the range of schedules to fetch, in ISO-8601 format - EndDate *time.Time `json:"endDate,omitempty"` - - - // LoadFullWeeks - Whether to load the full week's schedule (for the requested users) of any week overlapping the start/end date query parameters, defaults to false - LoadFullWeeks *bool `json:"loadFullWeeks,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userlistschedulerequestbody) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userme.go b/build/platformclientv2/userme.go deleted file mode 100644 index 5952d0401..000000000 --- a/build/platformclientv2/userme.go +++ /dev/null @@ -1,205 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userme -type Userme struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // Chat - Chat *Chat `json:"chat,omitempty"` - - - // Department - Department *string `json:"department,omitempty"` - - - // Email - Email *string `json:"email,omitempty"` - - - // PrimaryContactInfo - Auto populated from addresses. - PrimaryContactInfo *[]Contact `json:"primaryContactInfo,omitempty"` - - - // Addresses - Email addresses and phone numbers for this user - Addresses *[]Contact `json:"addresses,omitempty"` - - - // State - The current state for this user. - State *string `json:"state,omitempty"` - - - // Title - Title *string `json:"title,omitempty"` - - - // Username - Username *string `json:"username,omitempty"` - - - // Manager - Manager *User `json:"manager,omitempty"` - - - // Images - Images *[]Userimage `json:"images,omitempty"` - - - // Version - Required when updating a user, this value should be the current version of the user. The current version can be obtained with a GET on the user before doing a PATCH. - Version *int32 `json:"version,omitempty"` - - - // Certifications - Certifications *[]string `json:"certifications,omitempty"` - - - // Biography - Biography *Biography `json:"biography,omitempty"` - - - // EmployerInfo - EmployerInfo *Employerinfo `json:"employerInfo,omitempty"` - - - // RoutingStatus - ACD routing status - RoutingStatus *Routingstatus `json:"routingStatus,omitempty"` - - - // Presence - Active presence - Presence *Userpresence `json:"presence,omitempty"` - - - // ConversationSummary - Summary of conversion statistics for conversation types. - ConversationSummary *Userconversationsummary `json:"conversationSummary,omitempty"` - - - // OutOfOffice - Determine if out of office is enabled - OutOfOffice *Outofoffice `json:"outOfOffice,omitempty"` - - - // Geolocation - Current geolocation position - Geolocation *Geolocation `json:"geolocation,omitempty"` - - - // Station - Effective, default, and last station information - Station *Userstations `json:"station,omitempty"` - - - // Authorization - Roles and permissions assigned to the user - Authorization *Userauthorization `json:"authorization,omitempty"` - - - // ProfileSkills - Profile skills possessed by the user - ProfileSkills *[]string `json:"profileSkills,omitempty"` - - - // Locations - The user placement at each site location. - Locations *[]Location `json:"locations,omitempty"` - - - // Groups - The groups the user is a member of - Groups *[]Group `json:"groups,omitempty"` - - - // Skills - Routing (ACD) skills possessed by the user - Skills *[]Userroutingskill `json:"skills,omitempty"` - - - // Languages - Routing (ACD) languages possessed by the user - Languages *[]Userroutinglanguage `json:"languages,omitempty"` - - - // AcdAutoAnswer - acd auto answer - AcdAutoAnswer *bool `json:"acdAutoAnswer,omitempty"` - - - // LanguagePreference - preferred language by the user - LanguagePreference *string `json:"languagePreference,omitempty"` - - - // LastTokenIssued - LastTokenIssued *Oauthlasttokenissued `json:"lastTokenIssued,omitempty"` - - - // Date - The PureCloud system date time. - Date *Serverdate `json:"date,omitempty"` - - - // GeolocationSettings - Geolocation settings for user's organization. - GeolocationSettings *Geolocationsettings `json:"geolocationSettings,omitempty"` - - - // Organization - Organization details for this user. - Organization *Organization `json:"organization,omitempty"` - - - // PresenceDefinitions - The first 100 presence definitions for user's organization. - PresenceDefinitions *[]Organizationpresence `json:"presenceDefinitions,omitempty"` - - - // LocationDefinitions - The first 100 site locations for user's organization - LocationDefinitions *[]Locationdefinition `json:"locationDefinitions,omitempty"` - - - // OrgAuthorization - The first 100 organization roles, with applicable permission policies, for user's organization. - OrgAuthorization *[]Domainorganizationrole `json:"orgAuthorization,omitempty"` - - - // Favorites - The first 50 favorited users. - Favorites *[]User `json:"favorites,omitempty"` - - - // Superiors - The first 50 superiors of this user. - Superiors *[]User `json:"superiors,omitempty"` - - - // DirectReports - The first 50 direct reports to this user. - DirectReports *[]User `json:"directReports,omitempty"` - - - // Adjacents - The first 50 superiors, direct reports, and siblings of this user. Mutually exclusive with superiors and direct reports expands. - Adjacents *Adjacents `json:"adjacents,omitempty"` - - - // RoutingSkills - The first 50 routing skills for user's organizations - RoutingSkills *[]Routingskill `json:"routingSkills,omitempty"` - - - // FieldConfigs - The field config for all entities types of user's organization - FieldConfigs *Fieldconfigs `json:"fieldConfigs,omitempty"` - - - // Token - Information about the current token - Token *Tokeninfo `json:"token,omitempty"` - - - // Trustors - Organizations having this user as a trustee - Trustors *[]Trustor `json:"trustors,omitempty"` - - - // OrgProducts - Products enabled in this organization - OrgProducts *[]Domainorganizationproduct `json:"orgProducts,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userme) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userobservationdatacontainer.go b/build/platformclientv2/userobservationdatacontainer.go deleted file mode 100644 index 8329bc55c..000000000 --- a/build/platformclientv2/userobservationdatacontainer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userobservationdatacontainer -type Userobservationdatacontainer struct { - // Group - A mapping from dimension to value - Group *map[string]string `json:"group,omitempty"` - - - // Data - Data *[]Observationmetricdata `json:"data,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userobservationdatacontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userobservationquery.go b/build/platformclientv2/userobservationquery.go deleted file mode 100644 index 3a0bfb3b0..000000000 --- a/build/platformclientv2/userobservationquery.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userobservationquery -type Userobservationquery struct { - // Filter - Filter to return a subset of observations. Expresses boolean logical predicates as well as dimensional filters - Filter *Userobservationqueryfilter `json:"filter,omitempty"` - - - // Metrics - Behaves like a SQL SELECT clause. Enables retrieving only named metrics. If omitted, all metrics that are available will be returned (like SELECT *). - Metrics *[]string `json:"metrics,omitempty"` - - - // DetailMetrics - Metrics for which to include additional detailed observations - DetailMetrics *[]string `json:"detailMetrics,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userobservationquery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userobservationqueryclause.go b/build/platformclientv2/userobservationqueryclause.go deleted file mode 100644 index 8376a0a27..000000000 --- a/build/platformclientv2/userobservationqueryclause.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userobservationqueryclause -type Userobservationqueryclause struct { - // VarType - Boolean operation to apply to the provided predicates - VarType *string `json:"type,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Userobservationquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userobservationqueryclause) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userobservationqueryfilter.go b/build/platformclientv2/userobservationqueryfilter.go deleted file mode 100644 index 8ec3978ef..000000000 --- a/build/platformclientv2/userobservationqueryfilter.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userobservationqueryfilter -type Userobservationqueryfilter struct { - // VarType - Boolean operation to apply to the provided predicates and clauses - VarType *string `json:"type,omitempty"` - - - // Clauses - Boolean 'and/or' logic with up to two-levels of nesting - Clauses *[]Userobservationqueryclause `json:"clauses,omitempty"` - - - // Predicates - Like a three-word sentence: (attribute-name) (operator) (target-value). - Predicates *[]Userobservationquerypredicate `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userobservationqueryfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userobservationquerypredicate.go b/build/platformclientv2/userobservationquerypredicate.go deleted file mode 100644 index 366d11bc0..000000000 --- a/build/platformclientv2/userobservationquerypredicate.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userobservationquerypredicate -type Userobservationquerypredicate struct { - // VarType - Optional type, can usually be inferred - VarType *string `json:"type,omitempty"` - - - // Dimension - Left hand side for dimension predicates - Dimension *string `json:"dimension,omitempty"` - - - // Operator - Optional operator, default is matches - Operator *string `json:"operator,omitempty"` - - - // Value - Right hand side for dimension predicates - Value *string `json:"value,omitempty"` - - - // VarRange - Right hand side for dimension predicates - VarRange *Numericrange `json:"range,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userobservationquerypredicate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userobservationqueryresponse.go b/build/platformclientv2/userobservationqueryresponse.go deleted file mode 100644 index ae4579297..000000000 --- a/build/platformclientv2/userobservationqueryresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userobservationqueryresponse -type Userobservationqueryresponse struct { - // Results - Results *[]Userobservationdatacontainer `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userobservationqueryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userparam.go b/build/platformclientv2/userparam.go deleted file mode 100644 index 4cbf4053f..000000000 --- a/build/platformclientv2/userparam.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userparam -type Userparam struct { - // Key - Key *string `json:"key,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userparam) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userpresence.go b/build/platformclientv2/userpresence.go deleted file mode 100644 index f09865875..000000000 --- a/build/platformclientv2/userpresence.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userpresence -type Userpresence struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Source - Represents the source where the Presence was set. Some examples are: PURECLOUD, LYNC, OUTLOOK, etc. - Source *string `json:"source,omitempty"` - - - // Primary - A boolean used to tell whether or not to set this presence source as the primary on a PATCH - Primary *bool `json:"primary,omitempty"` - - - // PresenceDefinition - PresenceDefinition *Presencedefinition `json:"presenceDefinition,omitempty"` - - - // Message - Message *string `json:"message,omitempty"` - - - // ModifiedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userpresence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userprofile.go b/build/platformclientv2/userprofile.go deleted file mode 100644 index 2d27cbaef..000000000 --- a/build/platformclientv2/userprofile.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userprofile -type Userprofile struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // State - The state of the user resource - State *string `json:"state,omitempty"` - - - // DateModified - Datetime of the last modification. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - The version of the group resource - Version *int64 `json:"version,omitempty"` - - - // Expands - User information expansions - Expands *Userexpands `json:"expands,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userprofile) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userprofileentitylisting.go b/build/platformclientv2/userprofileentitylisting.go deleted file mode 100644 index fe8b012a0..000000000 --- a/build/platformclientv2/userprofileentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userprofileentitylisting -type Userprofileentitylisting struct { - // Entities - Entities *[]Userprofile `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userprofileentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userqueue.go b/build/platformclientv2/userqueue.go deleted file mode 100644 index 57a804a38..000000000 --- a/build/platformclientv2/userqueue.go +++ /dev/null @@ -1,102 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userqueue -type Userqueue struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Division - The division to which this entity belongs. - Division *Division `json:"division,omitempty"` - - - // Description - The queue description. - Description *string `json:"description,omitempty"` - - - // DateCreated - The date the queue was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - The date of the last modification to the queue. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - The ID of the user that last modified the queue. - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - The ID of the user that created the queue. - CreatedBy *string `json:"createdBy,omitempty"` - - - // MemberCount - The number of users in the queue. - MemberCount *int32 `json:"memberCount,omitempty"` - - - // MediaSettings - The media settings for the queue. Valid key values: CALL, CALLBACK, CHAT, EMAIL, MESSAGE, SOCIAL_EXPRESSION, VIDEO_COMM - MediaSettings *map[string]Mediasetting `json:"mediaSettings,omitempty"` - - - // Bullseye - The bulls-eye settings for the queue. - Bullseye *Bullseye `json:"bullseye,omitempty"` - - - // AcwSettings - The ACW settings for the queue. - AcwSettings *Acwsettings `json:"acwSettings,omitempty"` - - - // SkillEvaluationMethod - The skill evaluation method to use when routing conversations. - SkillEvaluationMethod *string `json:"skillEvaluationMethod,omitempty"` - - - // QueueFlow - The in-queue flow to use for conversations waiting in queue. - QueueFlow *Domainentityref `json:"queueFlow,omitempty"` - - - // WhisperPrompt - The prompt used for whisper on the queue, if configured. - WhisperPrompt *Domainentityref `json:"whisperPrompt,omitempty"` - - - // CallingPartyName - The name to use for caller identification for outbound calls from this queue. - CallingPartyName *string `json:"callingPartyName,omitempty"` - - - // CallingPartyNumber - The phone number to use for caller identification for outbound calls from this queue. - CallingPartyNumber *string `json:"callingPartyNumber,omitempty"` - - - // DefaultScripts - The default script Ids for the communication types. - DefaultScripts *map[string]Script `json:"defaultScripts,omitempty"` - - - // OutboundMessagingAddresses - The messaging addresses for the queue. - OutboundMessagingAddresses *Queuemessagingaddresses `json:"outboundMessagingAddresses,omitempty"` - - - // OutboundEmailAddress - OutboundEmailAddress *Queueemailaddress `json:"outboundEmailAddress,omitempty"` - - - // Joined - Joined *bool `json:"joined,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userqueue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userqueueentitylisting.go b/build/platformclientv2/userqueueentitylisting.go deleted file mode 100644 index 787ad1b53..000000000 --- a/build/platformclientv2/userqueueentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userqueueentitylisting -type Userqueueentitylisting struct { - // Entities - Entities *[]Userqueue `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userqueueentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userrecording.go b/build/platformclientv2/userrecording.go deleted file mode 100644 index b6762526b..000000000 --- a/build/platformclientv2/userrecording.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userrecording -type Userrecording struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ContentUri - ContentUri *string `json:"contentUri,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // CreatedBy - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // Conversation - Conversation *Conversation `json:"conversation,omitempty"` - - - // ContentLength - ContentLength *int64 `json:"contentLength,omitempty"` - - - // DurationMilliseconds - DurationMilliseconds *int64 `json:"durationMilliseconds,omitempty"` - - - // Thumbnails - Thumbnails *[]Documentthumbnail `json:"thumbnails,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userrecording) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userrecordingentitylisting.go b/build/platformclientv2/userrecordingentitylisting.go deleted file mode 100644 index 82f003651..000000000 --- a/build/platformclientv2/userrecordingentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userrecordingentitylisting -type Userrecordingentitylisting struct { - // Entities - Entities *[]Userrecording `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userrecordingentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userrecordingsapi.go b/build/platformclientv2/userrecordingsapi.go deleted file mode 100644 index f611fc9ae..000000000 --- a/build/platformclientv2/userrecordingsapi.go +++ /dev/null @@ -1,501 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// UserRecordingsApi provides functions for API endpoints -type UserRecordingsApi struct { - Configuration *Configuration -} - -// NewUserRecordingsApi creates an API instance using the default configuration -func NewUserRecordingsApi() *UserRecordingsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating UserRecordingsApi with base path: %s", strings.ToLower(config.BasePath))) - return &UserRecordingsApi{ - Configuration: config, - } -} - -// NewUserRecordingsApiWithConfig creates an API instance using the provided configuration -func NewUserRecordingsApiWithConfig(config *Configuration) *UserRecordingsApi { - config.Debugf("Creating UserRecordingsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &UserRecordingsApi{ - Configuration: config, - } -} - -// DeleteUserrecording invokes DELETE /api/v2/userrecordings/{recordingId} -// -// Delete a user recording. -// -// -func (a UserRecordingsApi) DeleteUserrecording(recordingId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/userrecordings/{recordingId}" - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return nil, errors.New("Missing required parameter 'recordingId' when calling UserRecordingsApi->DeleteUserrecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetUserrecording invokes GET /api/v2/userrecordings/{recordingId} -// -// Get a user recording. -// -// -func (a UserRecordingsApi) GetUserrecording(recordingId string, expand []string) (*Userrecording, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/userrecordings/{recordingId}" - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Userrecording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling UserRecordingsApi->GetUserrecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userrecording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserrecordingMedia invokes GET /api/v2/userrecordings/{recordingId}/media -// -// Download a user recording. -// -// -func (a UserRecordingsApi) GetUserrecordingMedia(recordingId string, formatId string) (*Downloadresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/userrecordings/{recordingId}/media" - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Downloadresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling UserRecordingsApi->GetUserrecordingMedia") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["formatId"] = a.Configuration.APIClient.ParameterToString(formatId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Downloadresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserrecordings invokes GET /api/v2/userrecordings -// -// Get a list of user recordings. -// -// -func (a UserRecordingsApi) GetUserrecordings(pageSize int32, pageNumber int32, expand []string) (*Userrecordingentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/userrecordings" - defaultReturn := new(Userrecordingentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userrecordingentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserrecordingsSummary invokes GET /api/v2/userrecordings/summary -// -// Get user recording summary -// -// -func (a UserRecordingsApi) GetUserrecordingsSummary() (*Faxsummary, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/userrecordings/summary" - defaultReturn := new(Faxsummary) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Faxsummary - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserrecording invokes PUT /api/v2/userrecordings/{recordingId} -// -// Update a user recording. -// -// -func (a UserRecordingsApi) PutUserrecording(recordingId string, body Userrecording, expand []string) (*Userrecording, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/userrecordings/{recordingId}" - path = strings.Replace(path, "{recordingId}", fmt.Sprintf("%v", recordingId), -1) - defaultReturn := new(Userrecording) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'recordingId' is set - if &recordingId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'recordingId' when calling UserRecordingsApi->PutUserrecording") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UserRecordingsApi->PutUserrecording") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userrecording - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/userreference.go b/build/platformclientv2/userreference.go deleted file mode 100644 index 0fcc5e61e..000000000 --- a/build/platformclientv2/userreference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userreference -type Userreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutinglanguage.go b/build/platformclientv2/userroutinglanguage.go deleted file mode 100644 index 0d3f02cb3..000000000 --- a/build/platformclientv2/userroutinglanguage.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutinglanguage - Represents an organization langauge assigned to a user. When assigning to a user specify the organization language id as the id. -type Userroutinglanguage struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Proficiency - Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular language. It is used when a queue is set to \"Best available language\" mode to allow acd interactions to target agents with higher proficiency ratings. - Proficiency *float64 `json:"proficiency,omitempty"` - - - // State - Activate or deactivate this routing langauge. - State *string `json:"state,omitempty"` - - - // LanguageUri - URI to the organization language used by this user langauge. - LanguageUri *string `json:"languageUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutinglanguage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutinglanguagepost.go b/build/platformclientv2/userroutinglanguagepost.go deleted file mode 100644 index ca49ca542..000000000 --- a/build/platformclientv2/userroutinglanguagepost.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutinglanguagepost - Represents an organization language assigned to a user. When assigning to a user specify the organization langauge id as the id. -type Userroutinglanguagepost struct { - // Id - The id of the existing routing language to add to the user - Id *string `json:"id,omitempty"` - - - // Proficiency - Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular language. It is used when a queue is set to \"Best available language\" mode to allow acd interactions to target agents with higher proficiency ratings. - Proficiency *float64 `json:"proficiency,omitempty"` - - - // LanguageUri - URI to the organization language used by this user langauge. - LanguageUri *string `json:"languageUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutinglanguagepost) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutingskill.go b/build/platformclientv2/userroutingskill.go deleted file mode 100644 index d6712e756..000000000 --- a/build/platformclientv2/userroutingskill.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutingskill - Represents an organization skill assigned to a user. When assigning to a user specify the organization skill id as the id. -type Userroutingskill struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Proficiency - Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular skill. It is used when a queue is set to \"Best available skills\" mode to allow acd interactions to target agents with higher proficiency ratings. - Proficiency *float64 `json:"proficiency,omitempty"` - - - // State - Activate or deactivate this routing skill. - State *string `json:"state,omitempty"` - - - // SkillUri - URI to the organization skill used by this user skill. - SkillUri *string `json:"skillUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutingskill) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutingskillpost.go b/build/platformclientv2/userroutingskillpost.go deleted file mode 100644 index d4243e912..000000000 --- a/build/platformclientv2/userroutingskillpost.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutingskillpost - Represents an organization skill assigned to a user. When assigning to a user specify the organization skill id as the id. -type Userroutingskillpost struct { - // Id - The id of the existing routing skill to add to the user - Id *string `json:"id,omitempty"` - - - // Proficiency - Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular skill. It is used when a queue is set to \"Best available skills\" mode to allow acd interactions to target agents with higher proficiency ratings. - Proficiency *float64 `json:"proficiency,omitempty"` - - - // SkillUri - URI to the organization skill used by this user skill. - SkillUri *string `json:"skillUri,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutingskillpost) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutingstatuserrorinfo.go b/build/platformclientv2/userroutingstatuserrorinfo.go deleted file mode 100644 index 372438405..000000000 --- a/build/platformclientv2/userroutingstatuserrorinfo.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutingstatuserrorinfo -type Userroutingstatuserrorinfo struct { - // ErrorCode - ErrorCode *string `json:"errorCode,omitempty"` - - - // Status - Status *int32 `json:"status,omitempty"` - - - // CorrelationId - CorrelationId *string `json:"correlationId,omitempty"` - - - // UserMessage - UserMessage *string `json:"userMessage,omitempty"` - - - // UserParamsMessage - UserParamsMessage *string `json:"userParamsMessage,omitempty"` - - - // UserParams - UserParams *[]Userroutingstatususerparam `json:"userParams,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutingstatuserrorinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutingstatusroutingstatus.go b/build/platformclientv2/userroutingstatusroutingstatus.go deleted file mode 100644 index 3b00aba93..000000000 --- a/build/platformclientv2/userroutingstatusroutingstatus.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userroutingstatusroutingstatus -type Userroutingstatusroutingstatus struct { - // Status - Status *string `json:"status,omitempty"` - - - // StartTime - StartTime *time.Time `json:"startTime,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutingstatusroutingstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutingstatususerparam.go b/build/platformclientv2/userroutingstatususerparam.go deleted file mode 100644 index d6bc8adbe..000000000 --- a/build/platformclientv2/userroutingstatususerparam.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutingstatususerparam -type Userroutingstatususerparam struct { - // Key - Key *string `json:"key,omitempty"` - - - // Value - Value *string `json:"value,omitempty"` - - - // AdditionalProperties - AdditionalProperties *map[string]interface{} `json:"additionalProperties,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutingstatususerparam) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userroutingstatususerroutingstatus.go b/build/platformclientv2/userroutingstatususerroutingstatus.go deleted file mode 100644 index 208277a04..000000000 --- a/build/platformclientv2/userroutingstatususerroutingstatus.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userroutingstatususerroutingstatus -type Userroutingstatususerroutingstatus struct { - // RoutingStatus - RoutingStatus *Userroutingstatusroutingstatus `json:"routingStatus,omitempty"` - - - // ErrorInfo - ErrorInfo *Userroutingstatuserrorinfo `json:"errorInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userroutingstatususerroutingstatus) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usersapi.go b/build/platformclientv2/usersapi.go deleted file mode 100644 index 2c7da6e00..000000000 --- a/build/platformclientv2/usersapi.go +++ /dev/null @@ -1,5739 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// UsersApi provides functions for API endpoints -type UsersApi struct { - Configuration *Configuration -} - -// NewUsersApi creates an API instance using the default configuration -func NewUsersApi() *UsersApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating UsersApi with base path: %s", strings.ToLower(config.BasePath))) - return &UsersApi{ - Configuration: config, - } -} - -// NewUsersApiWithConfig creates an API instance using the provided configuration -func NewUsersApiWithConfig(config *Configuration) *UsersApi { - config.Debugf("Creating UsersApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &UsersApi{ - Configuration: config, - } -} - -// DeleteAnalyticsUsersDetailsJob invokes DELETE /api/v2/analytics/users/details/jobs/{jobId} -// -// Delete/cancel an async request -// -// -func (a UsersApi) DeleteAnalyticsUsersDetailsJob(jobId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return nil, errors.New("Missing required parameter 'jobId' when calling UsersApi->DeleteAnalyticsUsersDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteAuthorizationSubjectDivisionRole invokes DELETE /api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId} -// -// Delete a grant of a role in a division -// -// -func (a UsersApi) DeleteAuthorizationSubjectDivisionRole(subjectId string, divisionId string, roleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->DeleteAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling UsersApi->DeleteAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return nil, errors.New("Missing required parameter 'roleId' when calling UsersApi->DeleteAuthorizationSubjectDivisionRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteRoutingUserUtilization invokes DELETE /api/v2/routing/users/{userId}/utilization -// -// Delete the user's max utilization settings and revert to the organization-wide default. -// -// -func (a UsersApi) DeleteRoutingUserUtilization(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteRoutingUserUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUser invokes DELETE /api/v2/users/{userId} -// -// Delete user -// -// -func (a UsersApi) DeleteUser(userId string) (*Empty, *APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Empty) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Empty - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// DeleteUserRoles invokes DELETE /api/v2/users/{userId}/roles -// -// Removes all the roles from the user. -// -// -func (a UsersApi) DeleteUserRoles(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/roles" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserRoutinglanguage invokes DELETE /api/v2/users/{userId}/routinglanguages/{languageId} -// -// Remove routing language from user -// -// -func (a UsersApi) DeleteUserRoutinglanguage(userId string, languageId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages/{languageId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteUserRoutinglanguage") - } - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return nil, errors.New("Missing required parameter 'languageId' when calling UsersApi->DeleteUserRoutinglanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserRoutingskill invokes DELETE /api/v2/users/{userId}/routingskills/{skillId} -// -// Remove routing skill from user -// -// -func (a UsersApi) DeleteUserRoutingskill(userId string, skillId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/{skillId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{skillId}", fmt.Sprintf("%v", skillId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteUserRoutingskill") - } - // verify the required parameter 'skillId' is set - if &skillId == nil { - // - return nil, errors.New("Missing required parameter 'skillId' when calling UsersApi->DeleteUserRoutingskill") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserStationAssociatedstation invokes DELETE /api/v2/users/{userId}/station/associatedstation -// -// Clear associated station -// -// -func (a UsersApi) DeleteUserStationAssociatedstation(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/station/associatedstation" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteUserStationAssociatedstation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteUserStationDefaultstation invokes DELETE /api/v2/users/{userId}/station/defaultstation -// -// Clear default station -// -// -func (a UsersApi) DeleteUserStationDefaultstation(userId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/station/defaultstation" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteUserStationDefaultstation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetAnalyticsUsersDetailsJob invokes GET /api/v2/analytics/users/details/jobs/{jobId} -// -// Get status for async query for user details -// -// -func (a UsersApi) GetAnalyticsUsersDetailsJob(jobId string) (*Asyncquerystatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Asyncquerystatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling UsersApi->GetAnalyticsUsersDetailsJob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Asyncquerystatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAnalyticsUsersDetailsJobResults invokes GET /api/v2/analytics/users/details/jobs/{jobId}/results -// -// Fetch a page of results for an async query -// -// -func (a UsersApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsuserdetailsasyncqueryresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}/results" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Analyticsuserdetailsasyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling UsersApi->GetAnalyticsUsersDetailsJobResults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Analyticsuserdetailsasyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedMe invokes GET /api/v2/authorization/divisionspermitted/me -// -// Returns which divisions the current user has the given permission in. -// -// This route is deprecated, use authorization/divisionspermitted/paged/me instead. -func (a UsersApi) GetAuthorizationDivisionspermittedMe(permission string, name string) ([]Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/me" - defaultReturn := make([]Authzdivision, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling UsersApi->GetAuthorizationDivisionspermittedMe") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedPagedMe invokes GET /api/v2/authorization/divisionspermitted/paged/me -// -// Returns which divisions the current user has the given permission in. -// -// -func (a UsersApi) GetAuthorizationDivisionspermittedPagedMe(permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/me" - defaultReturn := new(Divspermittedentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling UsersApi->GetAuthorizationDivisionspermittedPagedMe") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Divspermittedentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedPagedSubjectId invokes GET /api/v2/authorization/divisionspermitted/paged/{subjectId} -// -// Returns which divisions the specified user has the given permission in. -// -// -func (a UsersApi) GetAuthorizationDivisionspermittedPagedSubjectId(subjectId string, permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/{subjectId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - defaultReturn := new(Divspermittedentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->GetAuthorizationDivisionspermittedPagedSubjectId") - } - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling UsersApi->GetAuthorizationDivisionspermittedPagedSubjectId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Divspermittedentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationDivisionspermittedSubjectId invokes GET /api/v2/authorization/divisionspermitted/{subjectId} -// -// Returns which divisions the specified user has the given permission in. -// -// This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead. -func (a UsersApi) GetAuthorizationDivisionspermittedSubjectId(subjectId string, permission string, name string) ([]Authzdivision, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/{subjectId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - defaultReturn := make([]Authzdivision, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->GetAuthorizationDivisionspermittedSubjectId") - } - // verify the required parameter 'permission' is set - if &permission == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling UsersApi->GetAuthorizationDivisionspermittedSubjectId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["name"] = a.Configuration.APIClient.ParameterToString(name, collectionFormat) - - - - - collectionFormat = "" - queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Authzdivision - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationSubject invokes GET /api/v2/authorization/subjects/{subjectId} -// -// Returns a listing of roles and permissions for a user. -// -// -func (a UsersApi) GetAuthorizationSubject(subjectId string) (*Authzsubject, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - defaultReturn := new(Authzsubject) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->GetAuthorizationSubject") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzsubject - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetAuthorizationSubjectsMe invokes GET /api/v2/authorization/subjects/me -// -// Returns a listing of roles and permissions for the currently authenticated user. -// -// -func (a UsersApi) GetAuthorizationSubjectsMe() (*Authzsubject, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/me" - defaultReturn := new(Authzsubject) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Authzsubject - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetFieldconfig invokes GET /api/v2/fieldconfig -// -// Fetch field config for an entity type -// -// -func (a UsersApi) GetFieldconfig(varType string) (*Fieldconfig, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/fieldconfig" - defaultReturn := new(Fieldconfig) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'varType' is set - if &varType == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'varType' when calling UsersApi->GetFieldconfig") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["varType"] = a.Configuration.APIClient.ParameterToString(varType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Fieldconfig - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetProfilesUsers invokes GET /api/v2/profiles/users -// -// Get a user profile listing -// -// -func (a UsersApi) GetProfilesUsers(pageSize int32, pageNumber int32, id []string, jid []string, sortOrder string, expand []string) (*Userprofileentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/profiles/users" - defaultReturn := new(Userprofileentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range jid { - queryParams["jid"] = value - } - } else { - queryParams["jid"] = a.Configuration.APIClient.ParameterToString(jid, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userprofileentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetRoutingUserUtilization invokes GET /api/v2/routing/users/{userId}/utilization -// -// Get the user's max utilization settings. If not configured, the organization-wide default is returned. -// -// -func (a UsersApi) GetRoutingUserUtilization(userId string) (*Utilization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Utilization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetRoutingUserUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Utilization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUser invokes GET /api/v2/users/{userId} -// -// Get user. -// -// -func (a UsersApi) GetUser(userId string, expand []string, state string) (*User, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(User) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["state"] = a.Configuration.APIClient.ParameterToString(state, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *User - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserAdjacents invokes GET /api/v2/users/{userId}/adjacents -// -// Get adjacents -// -// -func (a UsersApi) GetUserAdjacents(userId string, expand []string) (*Adjacents, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/adjacents" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Adjacents) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserAdjacents") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Adjacents - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserCallforwarding invokes GET /api/v2/users/{userId}/callforwarding -// -// Get a user's CallForwarding -// -// -func (a UsersApi) GetUserCallforwarding(userId string) (*Callforwarding, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/callforwarding" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Callforwarding) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserCallforwarding") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Callforwarding - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserDirectreports invokes GET /api/v2/users/{userId}/directreports -// -// Get direct reports -// -// -func (a UsersApi) GetUserDirectreports(userId string, expand []string) ([]User, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/directreports" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := make([]User, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserDirectreports") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []User - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserFavorites invokes GET /api/v2/users/{userId}/favorites -// -// Get favorites -// -// -func (a UsersApi) GetUserFavorites(userId string, pageSize int32, pageNumber int32, sortOrder string, expand []string) (*Userentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/favorites" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserFavorites") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserGeolocation invokes GET /api/v2/users/{userId}/geolocations/{clientId} -// -// Get a user's Geolocation -// -// -func (a UsersApi) GetUserGeolocation(userId string, clientId string) (*Geolocation, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/geolocations/{clientId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Geolocation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserGeolocation") - } - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling UsersApi->GetUserGeolocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Geolocation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserOutofoffice invokes GET /api/v2/users/{userId}/outofoffice -// -// Get a OutOfOffice -// -// -func (a UsersApi) GetUserOutofoffice(userId string) (*Outofoffice, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/outofoffice" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Outofoffice) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserOutofoffice") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Outofoffice - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserProfile invokes GET /api/v2/users/{userId}/profile -// -// Get user profile -// -// -func (a UsersApi) GetUserProfile(userId string, expand []string) (*Userprofile, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/profile" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userprofile) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserProfile") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userprofile - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserProfileskills invokes GET /api/v2/users/{userId}/profileskills -// -// List profile skills for a user -// -// -func (a UsersApi) GetUserProfileskills(userId string) ([]string, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/profileskills" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserProfileskills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserQueues invokes GET /api/v2/users/{userId}/queues -// -// Get queues for user -// -// -func (a UsersApi) GetUserQueues(userId string, pageSize int32, pageNumber int32, joined bool, divisionId []string) (*Userqueueentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/queues" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userqueueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserQueues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["joined"] = a.Configuration.APIClient.ParameterToString(joined, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userqueueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoles invokes GET /api/v2/users/{userId}/roles -// -// Returns a listing of roles and permissions for a user. -// -// -func (a UsersApi) GetUserRoles(userId string) (*Userauthorization, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/roles" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoutinglanguages invokes GET /api/v2/users/{userId}/routinglanguages -// -// List routing language for user -// -// -func (a UsersApi) GetUserRoutinglanguages(userId string, pageSize int32, pageNumber int32, sortOrder string) (*Userlanguageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userlanguageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserRoutinglanguages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userlanguageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoutingskills invokes GET /api/v2/users/{userId}/routingskills -// -// List routing skills for user -// -// -func (a UsersApi) GetUserRoutingskills(userId string, pageSize int32, pageNumber int32, sortOrder string) (*Userskillentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userskillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserRoutingskills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userskillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserRoutingstatus invokes GET /api/v2/users/{userId}/routingstatus -// -// Fetch the routing status of a user -// -// -func (a UsersApi) GetUserRoutingstatus(userId string) (*Routingstatus, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingstatus" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Routingstatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserRoutingstatus") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Routingstatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserStation invokes GET /api/v2/users/{userId}/station -// -// Get station information for user -// -// -func (a UsersApi) GetUserStation(userId string) (*Userstations, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/station" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userstations) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserStation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userstations - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserSuperiors invokes GET /api/v2/users/{userId}/superiors -// -// Get superiors -// -// -func (a UsersApi) GetUserSuperiors(userId string, expand []string) ([]User, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/superiors" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := make([]User, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserSuperiors") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []User - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUserTrustors invokes GET /api/v2/users/{userId}/trustors -// -// List the organizations that have authorized/trusted the user. -// -// -func (a UsersApi) GetUserTrustors(userId string, pageSize int32, pageNumber int32) (*Trustorentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/trustors" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Trustorentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetUserTrustors") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Trustorentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUsers invokes GET /api/v2/users -// -// Get the list of available users. -// -// -func (a UsersApi) GetUsers(pageSize int32, pageNumber int32, id []string, jabberId []string, sortOrder string, expand []string, state string) (*Userentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users" - defaultReturn := new(Userentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range id { - queryParams["id"] = value - } - } else { - queryParams["id"] = a.Configuration.APIClient.ParameterToString(id, collectionFormat) - } - - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range jabberId { - queryParams["jabberId"] = value - } - } else { - queryParams["jabberId"] = a.Configuration.APIClient.ParameterToString(jabberId, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - - collectionFormat = "" - queryParams["state"] = a.Configuration.APIClient.ParameterToString(state, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUsersMe invokes GET /api/v2/users/me -// -// Get current user details. -// -// This request is not valid when using the Client Credentials OAuth grant. -func (a UsersApi) GetUsersMe(expand []string) (*Userme, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/me" - defaultReturn := new(Userme) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userme - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetUsersSearch invokes GET /api/v2/users/search -// -// Search users using the q64 value returned from a previous search -// -// -func (a UsersApi) GetUsersSearch(q64 string, expand []string) (*Userssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/search" - defaultReturn := new(Userssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling UsersApi->GetUsersSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Userssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUser invokes PATCH /api/v2/users/{userId} -// -// Update user -// -// -func (a UsersApi) PatchUser(userId string, body Updateuser) (*User, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(User) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUser") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUser") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *User - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserCallforwarding invokes PATCH /api/v2/users/{userId}/callforwarding -// -// Patch a user's CallForwarding -// -// -func (a UsersApi) PatchUserCallforwarding(userId string, body Callforwarding) (*Callforwarding, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/callforwarding" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Callforwarding) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserCallforwarding") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserCallforwarding") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Callforwarding - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserGeolocation invokes PATCH /api/v2/users/{userId}/geolocations/{clientId} -// -// Patch a user's Geolocation -// -// The geolocation object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the client as the user's primary geolocation source. Option 2: Provide the 'latitude' and 'longitude' values. This will enqueue an asynchronous update of the 'city', 'region', and 'country', generating a notification. A subsequent GET operation will include the new values for 'city', 'region' and 'country'. Option 3: Provide the 'city', 'region', 'country' values. Option 1 can be combined with Option 2 or Option 3. For example, update the client as primary and provide latitude and longitude values. -func (a UsersApi) PatchUserGeolocation(userId string, clientId string, body Geolocation) (*Geolocation, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/geolocations/{clientId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientId), -1) - defaultReturn := new(Geolocation) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserGeolocation") - } - // verify the required parameter 'clientId' is set - if &clientId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'clientId' when calling UsersApi->PatchUserGeolocation") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserGeolocation") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Geolocation - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserQueue invokes PATCH /api/v2/users/{userId}/queues/{queueId} -// -// Join or unjoin a queue for a user -// -// -func (a UsersApi) PatchUserQueue(queueId string, userId string, body Userqueue) (*Userqueue, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/queues/{queueId}" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userqueue) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling UsersApi->PatchUserQueue") - } - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserQueue") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserQueue") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userqueue - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserQueues invokes PATCH /api/v2/users/{userId}/queues -// -// Join or unjoin a set of queues for a user -// -// -func (a UsersApi) PatchUserQueues(userId string, body []Userqueue, divisionId []string) (*Userqueueentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/queues" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userqueueentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserQueues") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserQueues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userqueueentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserRoutinglanguage invokes PATCH /api/v2/users/{userId}/routinglanguages/{languageId} -// -// Update routing language proficiency or state. -// -// -func (a UsersApi) PatchUserRoutinglanguage(userId string, languageId string, body Userroutinglanguage) (*Userroutinglanguage, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages/{languageId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{languageId}", fmt.Sprintf("%v", languageId), -1) - defaultReturn := new(Userroutinglanguage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserRoutinglanguage") - } - // verify the required parameter 'languageId' is set - if &languageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'languageId' when calling UsersApi->PatchUserRoutinglanguage") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserRoutinglanguage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutinglanguage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserRoutinglanguagesBulk invokes PATCH /api/v2/users/{userId}/routinglanguages/bulk -// -// Add bulk routing language to user. Max limit 50 languages -// -// -func (a UsersApi) PatchUserRoutinglanguagesBulk(userId string, body []Userroutinglanguagepost) (*Userlanguageentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages/bulk" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userlanguageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserRoutinglanguagesBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserRoutinglanguagesBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userlanguageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUserRoutingskillsBulk invokes PATCH /api/v2/users/{userId}/routingskills/bulk -// -// Bulk add routing skills to user -// -// -func (a UsersApi) PatchUserRoutingskillsBulk(userId string, body []Userroutingskillpost) (*Userskillentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/bulk" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userskillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PatchUserRoutingskillsBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUserRoutingskillsBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userskillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchUsersBulk invokes PATCH /api/v2/users/bulk -// -// Update bulk acd autoanswer on users -// -// -func (a UsersApi) PatchUsersBulk(body []Patchuser) (*Userentitylisting, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/bulk" - defaultReturn := new(Userentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PatchUsersBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersAggregatesQuery invokes POST /api/v2/analytics/users/aggregates/query -// -// Query for user aggregates -// -// -func (a UsersApi) PostAnalyticsUsersAggregatesQuery(body Useraggregationquery) (*Useraggregatequeryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/aggregates/query" - defaultReturn := new(Useraggregatequeryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostAnalyticsUsersAggregatesQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Useraggregatequeryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersDetailsJobs invokes POST /api/v2/analytics/users/details/jobs -// -// Query for user details asynchronously -// -// -func (a UsersApi) PostAnalyticsUsersDetailsJobs(body Asyncuserdetailsquery) (*Asyncqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs" - defaultReturn := new(Asyncqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostAnalyticsUsersDetailsJobs") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersDetailsQuery invokes POST /api/v2/analytics/users/details/query -// -// Query for user details -// -// -func (a UsersApi) PostAnalyticsUsersDetailsQuery(body Userdetailsquery) (*Analyticsuserdetailsqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/details/query" - defaultReturn := new(Analyticsuserdetailsqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostAnalyticsUsersDetailsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Analyticsuserdetailsqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAnalyticsUsersObservationsQuery invokes POST /api/v2/analytics/users/observations/query -// -// Query for user observations -// -// -func (a UsersApi) PostAnalyticsUsersObservationsQuery(body Userobservationquery) (*Userobservationqueryresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/analytics/users/observations/query" - defaultReturn := new(Userobservationqueryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostAnalyticsUsersObservationsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userobservationqueryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostAuthorizationSubjectBulkadd invokes POST /api/v2/authorization/subjects/{subjectId}/bulkadd -// -// Bulk-grant roles and divisions to a subject. -// -// -func (a UsersApi) PostAuthorizationSubjectBulkadd(subjectId string, body Roledivisiongrants, subjectType string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/bulkadd" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->PostAuthorizationSubjectBulkadd") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostAuthorizationSubjectBulkadd") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["subjectType"] = a.Configuration.APIClient.ParameterToString(subjectType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationSubjectBulkremove invokes POST /api/v2/authorization/subjects/{subjectId}/bulkremove -// -// Bulk-remove grants from a subject. -// -// -func (a UsersApi) PostAuthorizationSubjectBulkremove(subjectId string, body Roledivisiongrants) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/bulkremove" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->PostAuthorizationSubjectBulkremove") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostAuthorizationSubjectBulkremove") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostAuthorizationSubjectDivisionRole invokes POST /api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId} -// -// Make a grant of a role in a division -// -// -func (a UsersApi) PostAuthorizationSubjectDivisionRole(subjectId string, divisionId string, roleId string, subjectType string) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}" - path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) - path = strings.Replace(path, "{divisionId}", fmt.Sprintf("%v", divisionId), -1) - path = strings.Replace(path, "{roleId}", fmt.Sprintf("%v", roleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'subjectId' is set - if &subjectId == nil { - // - return nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->PostAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'divisionId' is set - if &divisionId == nil { - // - return nil, errors.New("Missing required parameter 'divisionId' when calling UsersApi->PostAuthorizationSubjectDivisionRole") - } - // verify the required parameter 'roleId' is set - if &roleId == nil { - // - return nil, errors.New("Missing required parameter 'roleId' when calling UsersApi->PostAuthorizationSubjectDivisionRole") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["subjectType"] = a.Configuration.APIClient.ParameterToString(subjectType, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostUserInvite invokes POST /api/v2/users/{userId}/invite -// -// Send an activation email to the user -// -// -func (a UsersApi) PostUserInvite(userId string, force bool) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/invite" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PostUserInvite") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["force"] = a.Configuration.APIClient.ParameterToString(force, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostUserPassword invokes POST /api/v2/users/{userId}/password -// -// Change a users password -// -// -func (a UsersApi) PostUserPassword(userId string, body Changepasswordrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/password" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PostUserPassword") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostUserPassword") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostUserRoutinglanguages invokes POST /api/v2/users/{userId}/routinglanguages -// -// Add routing language to user -// -// -func (a UsersApi) PostUserRoutinglanguages(userId string, body Userroutinglanguagepost) (*Userroutinglanguage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routinglanguages" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userroutinglanguage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PostUserRoutinglanguages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostUserRoutinglanguages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutinglanguage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUserRoutingskills invokes POST /api/v2/users/{userId}/routingskills -// -// Add routing skill to user -// -// -func (a UsersApi) PostUserRoutingskills(userId string, body Userroutingskillpost) (*Userroutingskill, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userroutingskill) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PostUserRoutingskills") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostUserRoutingskills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutingskill - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUsers invokes POST /api/v2/users -// -// Create user -// -// -func (a UsersApi) PostUsers(body Createuser) (*User, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users" - defaultReturn := new(User) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *User - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostUsersMePassword invokes POST /api/v2/users/me/password -// -// Change your password -// -// -func (a UsersApi) PostUsersMePassword(body Changemypasswordrequest) (*APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/me/password" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostUsersMePassword") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PostUsersSearch invokes POST /api/v2/users/search -// -// Search users -// -// -func (a UsersApi) PostUsersSearch(body Usersearchrequest) (*Userssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/search" - defaultReturn := new(Userssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PostUsersSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutRoutingUserUtilization invokes PUT /api/v2/routing/users/{userId}/utilization -// -// Update the user's max utilization settings. Include only those media types requiring custom configuration. -// -// -func (a UsersApi) PutRoutingUserUtilization(userId string, body Utilization) (*Utilization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Utilization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutRoutingUserUtilization") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutRoutingUserUtilization") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Utilization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserCallforwarding invokes PUT /api/v2/users/{userId}/callforwarding -// -// Update a user's CallForwarding -// -// -func (a UsersApi) PutUserCallforwarding(userId string, body Callforwarding) (*Callforwarding, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/callforwarding" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Callforwarding) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserCallforwarding") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserCallforwarding") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Callforwarding - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserOutofoffice invokes PUT /api/v2/users/{userId}/outofoffice -// -// Update an OutOfOffice -// -// -func (a UsersApi) PutUserOutofoffice(userId string, body Outofoffice) (*Outofoffice, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/outofoffice" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Outofoffice) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserOutofoffice") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserOutofoffice") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Outofoffice - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserProfileskills invokes PUT /api/v2/users/{userId}/profileskills -// -// Update profile skills for a user -// -// -func (a UsersApi) PutUserProfileskills(userId string, body []string) ([]string, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/profileskills" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := make([]string, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserProfileskills") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserProfileskills") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload []string - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoles invokes PUT /api/v2/users/{userId}/roles -// -// Sets the user's roles -// -// -func (a UsersApi) PutUserRoles(userId string, body []string) (*Userauthorization, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/roles" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userauthorization) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserRoles") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserRoles") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userauthorization - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoutingskill invokes PUT /api/v2/users/{userId}/routingskills/{skillId} -// -// Update routing skill proficiency or state. -// -// -func (a UsersApi) PutUserRoutingskill(userId string, skillId string, body Userroutingskill) (*Userroutingskill, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/{skillId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{skillId}", fmt.Sprintf("%v", skillId), -1) - defaultReturn := new(Userroutingskill) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserRoutingskill") - } - // verify the required parameter 'skillId' is set - if &skillId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'skillId' when calling UsersApi->PutUserRoutingskill") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserRoutingskill") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userroutingskill - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoutingskillsBulk invokes PUT /api/v2/users/{userId}/routingskills/bulk -// -// Replace all routing skills assigned to a user -// -// -func (a UsersApi) PutUserRoutingskillsBulk(userId string, body []Userroutingskillpost) (*Userskillentitylisting, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingskills/bulk" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Userskillentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserRoutingskillsBulk") - } - // verify the required parameter 'body' is set - if &body == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserRoutingskillsBulk") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userskillentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserRoutingstatus invokes PUT /api/v2/users/{userId}/routingstatus -// -// Update the routing status of a user -// -// -func (a UsersApi) PutUserRoutingstatus(userId string, body Routingstatus) (*Routingstatus, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/routingstatus" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Routingstatus) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserRoutingstatus") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutUserRoutingstatus") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Routingstatus - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutUserStationAssociatedstationStationId invokes PUT /api/v2/users/{userId}/station/associatedstation/{stationId} -// -// Set associated station -// -// -func (a UsersApi) PutUserStationAssociatedstationStationId(userId string, stationId string) (*APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/station/associatedstation/{stationId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{stationId}", fmt.Sprintf("%v", stationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserStationAssociatedstationStationId") - } - // verify the required parameter 'stationId' is set - if &stationId == nil { - // - return nil, errors.New("Missing required parameter 'stationId' when calling UsersApi->PutUserStationAssociatedstationStationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// PutUserStationDefaultstationStationId invokes PUT /api/v2/users/{userId}/station/defaultstation/{stationId} -// -// Set default station -// -// -func (a UsersApi) PutUserStationDefaultstationStationId(userId string, stationId string) (*APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/users/{userId}/station/defaultstation/{stationId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{stationId}", fmt.Sprintf("%v", stationId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutUserStationDefaultstationStationId") - } - // verify the required parameter 'stationId' is set - if &stationId == nil { - // - return nil, errors.New("Missing required parameter 'stationId' when calling UsersApi->PutUserStationDefaultstationStationId") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - diff --git a/build/platformclientv2/usersapi_test.go b/build/platformclientv2/usersapi_test.go deleted file mode 100644 index 4c8763666..000000000 --- a/build/platformclientv2/usersapi_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 - -import ( - "fmt" - "os" -) - -func ExampleUsersApi_GetUsers() { - // Use the default config instance and retrieve settings from env vars - config := GetDefaultConfiguration() - config.SetDebug(false) - config.BasePath = "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT") // e.g. PURECLOUD_ENVIRONMENT=mypurecloud.com - clientID := os.Getenv("PURECLOUD_CLIENT_ID") - clientSecret := os.Getenv("PURECLOUD_CLIENT_SECRET") - - // Authorize the configuration - err := config.AuthorizeClientCredentials(clientID, clientSecret) - if err != nil { - panic(err) - } - - // Create an API instance using the default config - usersAPI := NewUsersApi() - - // Invoke API - _, response, err := usersAPI.GetUsers(100, 1, make([]string, 0), make([]string, 0), "", make([]string, 0), "") - if err != nil { - fmt.Printf("Error calling GetUsers: %v\n", err) - } else { - fmt.Printf("Successfully retrieved user data with status code %v\n", response.StatusCode) - } - // Output: Successfully retrieved user data with status code 200 -} diff --git a/build/platformclientv2/userschedule.go b/build/platformclientv2/userschedule.go deleted file mode 100644 index 2605b68c9..000000000 --- a/build/platformclientv2/userschedule.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userschedule - A schedule for a single user over a given time range -type Userschedule struct { - // Shifts - The shifts that belong to this schedule - Shifts *[]Userscheduleshift `json:"shifts,omitempty"` - - - // FullDayTimeOffMarkers - Markers to indicate a full day time off request, relative to the management unit time zone - FullDayTimeOffMarkers *[]Userschedulefulldaytimeoffmarker `json:"fullDayTimeOffMarkers,omitempty"` - - - // Delete - If marked true for updating an existing user schedule, it will be deleted - Delete *bool `json:"delete,omitempty"` - - - // Metadata - Version metadata for this schedule - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // WorkPlanId - ID of the work plan associated with the user during schedule creation - WorkPlanId *string `json:"workPlanId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userscheduleactivity.go b/build/platformclientv2/userscheduleactivity.go deleted file mode 100644 index 08b08499d..000000000 --- a/build/platformclientv2/userscheduleactivity.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userscheduleactivity - Represents a single activity in a user's shift -type Userscheduleactivity struct { - // ActivityCodeId - The id for the activity code. Look up a map of activity codes with the activities route - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // StartDate - Start time in UTC for this activity, in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // LengthInMinutes - Length in minutes for this activity - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // Description - Description for this activity - Description *string `json:"description,omitempty"` - - - // CountsAsPaidTime - Whether this activity is paid - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // IsDstFallback - Whether this activity spans a DST fallback - IsDstFallback *bool `json:"isDstFallback,omitempty"` - - - // TimeOffRequestId - Time off request id of this activity - TimeOffRequestId *string `json:"timeOffRequestId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userscheduleactivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userscheduleadherence.go b/build/platformclientv2/userscheduleadherence.go deleted file mode 100644 index c13224117..000000000 --- a/build/platformclientv2/userscheduleadherence.go +++ /dev/null @@ -1,86 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userscheduleadherence -type Userscheduleadherence struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // User - The user for whom this status applies - User *Userreference `json:"user,omitempty"` - - - // ManagementUnit - The management unit to which this user belongs - ManagementUnit *Managementunit `json:"managementUnit,omitempty"` - - - // ScheduledActivityCategory - Activity for which the user is scheduled - ScheduledActivityCategory *string `json:"scheduledActivityCategory,omitempty"` - - - // SystemPresence - Actual underlying system presence value - SystemPresence *string `json:"systemPresence,omitempty"` - - - // OrganizationSecondaryPresenceId - Organization Secondary Presence Id. - OrganizationSecondaryPresenceId *string `json:"organizationSecondaryPresenceId,omitempty"` - - - // RoutingStatus - Actual underlying routing status, used to determine whether a user is actually in adherence when OnQueue - RoutingStatus *string `json:"routingStatus,omitempty"` - - - // ActualActivityCategory - Activity in which the user is actually engaged - ActualActivityCategory *string `json:"actualActivityCategory,omitempty"` - - - // IsOutOfOffice - Whether the user is marked OutOfOffice - IsOutOfOffice *bool `json:"isOutOfOffice,omitempty"` - - - // AdherenceState - The user's current adherence state - AdherenceState *string `json:"adherenceState,omitempty"` - - - // Impact - The impact of the user's current adherenceState - Impact *string `json:"impact,omitempty"` - - - // TimeOfAdherenceChange - Time when the user entered the current adherenceState in ISO-8601 format - TimeOfAdherenceChange *time.Time `json:"timeOfAdherenceChange,omitempty"` - - - // PresenceUpdateTime - Time when presence was last updated. Used to calculate time in current status. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - PresenceUpdateTime *time.Time `json:"presenceUpdateTime,omitempty"` - - - // ActiveQueues - The list of queues to which this user is joined - ActiveQueues *[]Queuereference `json:"activeQueues,omitempty"` - - - // ActiveQueuesModifiedTime - Time when the list of active queues for this user was last updated. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ActiveQueuesModifiedTime *time.Time `json:"activeQueuesModifiedTime,omitempty"` - - - // RemovedFromManagementUnit - For notification purposes. Used to indicate that a user was removed from the management unit - RemovedFromManagementUnit *bool `json:"removedFromManagementUnit,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userscheduleadherence) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userschedulecontainer.go b/build/platformclientv2/userschedulecontainer.go deleted file mode 100644 index 7a8c0b770..000000000 --- a/build/platformclientv2/userschedulecontainer.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userschedulecontainer - Container object to hold a map of user schedules -type Userschedulecontainer struct { - // ManagementUnitTimeZone - The reference time zone used for the management unit - ManagementUnitTimeZone *string `json:"managementUnitTimeZone,omitempty"` - - - // PublishedSchedules - References to all published week schedules overlapping the start/end date query parameters - PublishedSchedules *[]Weekschedulereference `json:"publishedSchedules,omitempty"` - - - // UserSchedules - Map of user id to user schedule - UserSchedules *map[string]Userschedule `json:"userSchedules,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userschedulecontainer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userschedulefulldaytimeoffmarker.go b/build/platformclientv2/userschedulefulldaytimeoffmarker.go deleted file mode 100644 index 8a725a186..000000000 --- a/build/platformclientv2/userschedulefulldaytimeoffmarker.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userschedulefulldaytimeoffmarker - Marker to indicate an approved full day time off request -type Userschedulefulldaytimeoffmarker struct { - // ManagementUnitDate - The date associated with the time off request that this marker corresponds to. Date only, in ISO-8601 format. - ManagementUnitDate *string `json:"managementUnitDate,omitempty"` - - - // ActivityCodeId - The id for the activity code. Look up a map of activity codes with the activities route - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // IsPaid - Whether this is paid time off - IsPaid *bool `json:"isPaid,omitempty"` - - - // LengthInMinutes - The length in minutes of this time off marker - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // Description - The description associated with the time off request that this marker corresponds to - Description *string `json:"description,omitempty"` - - - // Delete - If marked true for updating an existing full day time off marker, it will be deleted - Delete *bool `json:"delete,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userschedulefulldaytimeoffmarker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userscheduleshift.go b/build/platformclientv2/userscheduleshift.go deleted file mode 100644 index 6af9bb92a..000000000 --- a/build/platformclientv2/userscheduleshift.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userscheduleshift - Single shift in a user's schedule -type Userscheduleshift struct { - // WeekSchedule - The schedule to which this shift belongs - WeekSchedule *Weekschedulereference `json:"weekSchedule,omitempty"` - - - // Id - ID of the schedule shift. This is only for the case of updating and deleting an existing shift - Id *string `json:"id,omitempty"` - - - // StartDate - Start time in UTC for this shift. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartDate *time.Time `json:"startDate,omitempty"` - - - // LengthInMinutes - Length of this shift in minutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // Activities - List of activities in this shift - Activities *[]Userscheduleactivity `json:"activities,omitempty"` - - - // Delete - If marked true for updating this schedule shift, it will be deleted - Delete *bool `json:"delete,omitempty"` - - - // ManuallyEdited - Whether the shift was set as manually edited - ManuallyEdited *bool `json:"manuallyEdited,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userscheduleshift) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userschedulespartialuploadrequest.go b/build/platformclientv2/userschedulespartialuploadrequest.go deleted file mode 100644 index 6592e8774..000000000 --- a/build/platformclientv2/userschedulespartialuploadrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userschedulespartialuploadrequest - Request to upload partial set of user schedules -type Userschedulespartialuploadrequest struct { - // UserSchedules - User schedules that are part of partial request - UserSchedules *map[string]Userschedule `json:"userSchedules,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userschedulespartialuploadrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usersearchcriteria.go b/build/platformclientv2/usersearchcriteria.go deleted file mode 100644 index 3af25940b..000000000 --- a/build/platformclientv2/usersearchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usersearchcriteria -type Usersearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Usersearchcriteria `json:"group,omitempty"` - - - // VarType - Search Type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usersearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usersearchrequest.go b/build/platformclientv2/usersearchrequest.go deleted file mode 100644 index 6b4e7de77..000000000 --- a/build/platformclientv2/usersearchrequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usersearchrequest -type Usersearchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // Expand - Provides more details about a specified resource - Expand *[]string `json:"expand,omitempty"` - - - // Query - Query *[]Usersearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usersearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userskillentitylisting.go b/build/platformclientv2/userskillentitylisting.go deleted file mode 100644 index a88d62d28..000000000 --- a/build/platformclientv2/userskillentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userskillentitylisting -type Userskillentitylisting struct { - // Entities - Entities *[]Userroutingskill `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userskillentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userssearchresponse.go b/build/platformclientv2/userssearchresponse.go deleted file mode 100644 index 66d0bb249..000000000 --- a/build/platformclientv2/userssearchresponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userssearchresponse -type Userssearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *[]User `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userssearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userstation.go b/build/platformclientv2/userstation.go deleted file mode 100644 index e49154ccb..000000000 --- a/build/platformclientv2/userstation.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Userstation -type Userstation struct { - // Id - A globally unique identifier for this station - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // AssociatedUser - AssociatedUser *User `json:"associatedUser,omitempty"` - - - // AssociatedDate - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - AssociatedDate *time.Time `json:"associatedDate,omitempty"` - - - // DefaultUser - DefaultUser *User `json:"defaultUser,omitempty"` - - - // ProviderInfo - Provider-specific info for this station, e.g. { \"edgeGroupId\": \"ffe7b15c-a9cc-4f4c-88f5-781327819a49\" } - ProviderInfo *map[string]string `json:"providerInfo,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userstation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userstationchangetopicuser.go b/build/platformclientv2/userstationchangetopicuser.go deleted file mode 100644 index 60ee3f8bb..000000000 --- a/build/platformclientv2/userstationchangetopicuser.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userstationchangetopicuser -type Userstationchangetopicuser struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userstationchangetopicuser) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userstationchangetopicuserstation.go b/build/platformclientv2/userstationchangetopicuserstation.go deleted file mode 100644 index 68cb49280..000000000 --- a/build/platformclientv2/userstationchangetopicuserstation.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userstationchangetopicuserstation -type Userstationchangetopicuserstation struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // AssociatedUser - AssociatedUser *Userstationchangetopicuser `json:"associatedUser,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userstationchangetopicuserstation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userstationchangetopicuserstations.go b/build/platformclientv2/userstationchangetopicuserstations.go deleted file mode 100644 index 81088f21b..000000000 --- a/build/platformclientv2/userstationchangetopicuserstations.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userstationchangetopicuserstations -type Userstationchangetopicuserstations struct { - // AssociatedStation - AssociatedStation *Userstationchangetopicuserstation `json:"associatedStation,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userstationchangetopicuserstations) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/userstations.go b/build/platformclientv2/userstations.go deleted file mode 100644 index 2b88fc077..000000000 --- a/build/platformclientv2/userstations.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Userstations -type Userstations struct { - // AssociatedStation - Current associated station for this user. - AssociatedStation *Userstation `json:"associatedStation,omitempty"` - - - // EffectiveStation - The station where the user can be reached based on their default and associated station. - EffectiveStation *Userstation `json:"effectiveStation,omitempty"` - - - // DefaultStation - Default station to be used if not associated with a station. - DefaultStation *Userstation `json:"defaultStation,omitempty"` - - - // LastAssociatedStation - Last associated station for this user. - LastAssociatedStation *Userstation `json:"lastAssociatedStation,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Userstations) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usertokenstopictokennotification.go b/build/platformclientv2/usertokenstopictokennotification.go deleted file mode 100644 index 57d9787b2..000000000 --- a/build/platformclientv2/usertokenstopictokennotification.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usertokenstopictokennotification -type Usertokenstopictokennotification struct { - // User - User *Usertokenstopicurireference `json:"user,omitempty"` - - - // IpAddress - IpAddress *string `json:"ipAddress,omitempty"` - - - // DateCreated - DateCreated *string `json:"dateCreated,omitempty"` - - - // TokenExpirationDate - TokenExpirationDate *string `json:"tokenExpirationDate,omitempty"` - - - // SessionId - SessionId *string `json:"sessionId,omitempty"` - - - // ClientId - ClientId *string `json:"clientId,omitempty"` - - - // TokenHash - TokenHash *string `json:"tokenHash,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usertokenstopictokennotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/usertokenstopicurireference.go b/build/platformclientv2/usertokenstopicurireference.go deleted file mode 100644 index e35630834..000000000 --- a/build/platformclientv2/usertokenstopicurireference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Usertokenstopicurireference -type Usertokenstopicurireference struct { - // Id - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Usertokenstopicurireference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/utilitiesapi.go b/build/platformclientv2/utilitiesapi.go deleted file mode 100644 index 7c7afaf01..000000000 --- a/build/platformclientv2/utilitiesapi.go +++ /dev/null @@ -1,306 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// UtilitiesApi provides functions for API endpoints -type UtilitiesApi struct { - Configuration *Configuration -} - -// NewUtilitiesApi creates an API instance using the default configuration -func NewUtilitiesApi() *UtilitiesApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating UtilitiesApi with base path: %s", strings.ToLower(config.BasePath))) - return &UtilitiesApi{ - Configuration: config, - } -} - -// NewUtilitiesApiWithConfig creates an API instance using the provided configuration -func NewUtilitiesApiWithConfig(config *Configuration) *UtilitiesApi { - config.Debugf("Creating UtilitiesApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &UtilitiesApi{ - Configuration: config, - } -} - -// GetDate invokes GET /api/v2/date -// -// Get the current system date/time -// -// -func (a UtilitiesApi) GetDate() (*Serverdate, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/date" - defaultReturn := new(Serverdate) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Serverdate - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetIpranges invokes GET /api/v2/ipranges -// -// Get public ip address ranges for PureCloud -// -// -func (a UtilitiesApi) GetIpranges() (*Ipaddressrangelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/ipranges" - defaultReturn := new(Ipaddressrangelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Ipaddressrangelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetTimezones invokes GET /api/v2/timezones -// -// Get time zones list -// -// -func (a UtilitiesApi) GetTimezones(pageSize int32, pageNumber int32) (*Timezoneentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/timezones" - defaultReturn := new(Timezoneentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timezoneentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostCertificateDetails invokes POST /api/v2/certificate/details -// -// Returns the information about an X509 PEM encoded certificate or certificate chain. -// -// -func (a UtilitiesApi) PostCertificateDetails(body Certificate) (*Parsedcertificate, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/certificate/details" - defaultReturn := new(Parsedcertificate) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UtilitiesApi->PostCertificateDetails") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Parsedcertificate - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/utilization.go b/build/platformclientv2/utilization.go deleted file mode 100644 index 3f22c1e12..000000000 --- a/build/platformclientv2/utilization.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Utilization -type Utilization struct { - // Utilization - Map of media type to utilization settings. Valid media types include call, callback, chat, email, and message. - Utilization *map[string]Mediautilization `json:"utilization,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Utilization) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/validateaddressrequest.go b/build/platformclientv2/validateaddressrequest.go deleted file mode 100644 index ef3e0e7c8..000000000 --- a/build/platformclientv2/validateaddressrequest.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Validateaddressrequest -type Validateaddressrequest struct { - // Address - Address schema - Address *Streetaddress `json:"address,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Validateaddressrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/validateaddressresponse.go b/build/platformclientv2/validateaddressresponse.go deleted file mode 100644 index 07a295eda..000000000 --- a/build/platformclientv2/validateaddressresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Validateaddressresponse -type Validateaddressresponse struct { - // Valid - Was the passed in address valid - Valid *bool `json:"valid,omitempty"` - - - // Response - Subscriber schema - Response *Subscriberresponse `json:"response,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Validateaddressresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/valuewrapperplanningperiodsettings.go b/build/platformclientv2/valuewrapperplanningperiodsettings.go deleted file mode 100644 index 1da160f3a..000000000 --- a/build/platformclientv2/valuewrapperplanningperiodsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Valuewrapperplanningperiodsettings - An object to provide context to nullable fields in PATCH requests -type Valuewrapperplanningperiodsettings struct { - // Value - The value for the associated field - Value *Planningperiodsettings `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Valuewrapperplanningperiodsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/vendorconnectionrequest.go b/build/platformclientv2/vendorconnectionrequest.go deleted file mode 100644 index a828f8fe7..000000000 --- a/build/platformclientv2/vendorconnectionrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Vendorconnectionrequest -type Vendorconnectionrequest struct { - // Publisher - Publisher of the integration or connector who registered the new connection. Typically, inin. - Publisher *string `json:"publisher,omitempty"` - - - // VarType - Integration or connector type that registered the new connection. Example, wfm-rta-integration - VarType *string `json:"type,omitempty"` - - - // Name - Name of the integration or connector instance that registered the new connection. Example, my-wfm - Name *string `json:"name,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Vendorconnectionrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/video.go b/build/platformclientv2/video.go deleted file mode 100644 index ab90a0d87..000000000 --- a/build/platformclientv2/video.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Video -type Video struct { - // State - The connection state of this communication. - State *string `json:"state,omitempty"` - - - // Id - A globally unique identifier for this communication. - Id *string `json:"id,omitempty"` - - - // Context - The room id context (xmpp jid) for the conference session. - Context *string `json:"context,omitempty"` - - - // AudioMuted - Indicates whether this participant has muted their outgoing audio. - AudioMuted *bool `json:"audioMuted,omitempty"` - - - // VideoMuted - Indicates whether this participant has muted/paused their outgoing video. - VideoMuted *bool `json:"videoMuted,omitempty"` - - - // SharingScreen - Indicates whether this participant is sharing their screen to the session. - SharingScreen *bool `json:"sharingScreen,omitempty"` - - - // PeerCount - The number of peer participants from the perspective of the participant in the conference. - PeerCount *int32 `json:"peerCount,omitempty"` - - - // DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. - DisconnectType *string `json:"disconnectType,omitempty"` - - - // StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"` - - - // ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ConnectedTime *time.Time `json:"connectedTime,omitempty"` - - - // DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"` - - - // Provider - The source provider for the video. - Provider *string `json:"provider,omitempty"` - - - // PeerId - The id of the peer communication corresponding to a matching leg for this communication. - PeerId *string `json:"peerId,omitempty"` - - - // Msids - List of media stream ids - Msids *[]string `json:"msids,omitempty"` - - - // Self - Address and name data for a call endpoint. - Self *Address `json:"self,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Video) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/viewfilter.go b/build/platformclientv2/viewfilter.go deleted file mode 100644 index a7c081319..000000000 --- a/build/platformclientv2/viewfilter.go +++ /dev/null @@ -1,313 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Viewfilter -type Viewfilter struct { - // MediaTypes - The media types are used to filter the view - MediaTypes *[]string `json:"mediaTypes,omitempty"` - - - // QueueIds - The queue ids are used to filter the view - QueueIds *[]string `json:"queueIds,omitempty"` - - - // SkillIds - The skill ids are used to filter the view - SkillIds *[]string `json:"skillIds,omitempty"` - - - // SkillGroups - The skill groups used to filter the view - SkillGroups *[]string `json:"skillGroups,omitempty"` - - - // LanguageIds - The language ids are used to filter the view - LanguageIds *[]string `json:"languageIds,omitempty"` - - - // LanguageGroups - The language groups used to filter the view - LanguageGroups *[]string `json:"languageGroups,omitempty"` - - - // Directions - The directions are used to filter the view - Directions *[]string `json:"directions,omitempty"` - - - // OriginatingDirections - The list of orginating directions used to filter the view - OriginatingDirections *[]string `json:"originatingDirections,omitempty"` - - - // WrapUpCodes - The wrap up codes are used to filter the view - WrapUpCodes *[]string `json:"wrapUpCodes,omitempty"` - - - // DnisList - The dnis list is used to filter the view - DnisList *[]string `json:"dnisList,omitempty"` - - - // SessionDnisList - The list of session dnis used to filter the view - SessionDnisList *[]string `json:"sessionDnisList,omitempty"` - - - // FilterQueuesByUserIds - The user ids are used to fetch associated queues for the view - FilterQueuesByUserIds *[]string `json:"filterQueuesByUserIds,omitempty"` - - - // FilterUsersByQueueIds - The queue ids are used to fetch associated users for the view - FilterUsersByQueueIds *[]string `json:"filterUsersByQueueIds,omitempty"` - - - // UserIds - The user ids are used to filter the view - UserIds *[]string `json:"userIds,omitempty"` - - - // AddressTos - The address To values are used to filter the view - AddressTos *[]string `json:"addressTos,omitempty"` - - - // AddressFroms - The address from values are used to filter the view - AddressFroms *[]string `json:"addressFroms,omitempty"` - - - // OutboundCampaignIds - The outbound campaign ids are used to filter the view - OutboundCampaignIds *[]string `json:"outboundCampaignIds,omitempty"` - - - // OutboundContactListIds - The outbound contact list ids are used to filter the view - OutboundContactListIds *[]string `json:"outboundContactListIds,omitempty"` - - - // ContactIds - The contact ids are used to filter the view - ContactIds *[]string `json:"contactIds,omitempty"` - - - // ExternalContactIds - The external contact ids are used to filter the view - ExternalContactIds *[]string `json:"externalContactIds,omitempty"` - - - // ExternalOrgIds - The external org ids are used to filter the view - ExternalOrgIds *[]string `json:"externalOrgIds,omitempty"` - - - // AniList - The ani list ids are used to filter the view - AniList *[]string `json:"aniList,omitempty"` - - - // DurationsMilliseconds - The durations in milliseconds used to filter the view - DurationsMilliseconds *[]Numericrange `json:"durationsMilliseconds,omitempty"` - - - // AcdDurationsMilliseconds - The acd durations in milliseconds used to filter the view - AcdDurationsMilliseconds *[]Numericrange `json:"acdDurationsMilliseconds,omitempty"` - - - // TalkDurationsMilliseconds - The talk durations in milliseconds used to filter the view - TalkDurationsMilliseconds *[]Numericrange `json:"talkDurationsMilliseconds,omitempty"` - - - // AcwDurationsMilliseconds - The acw durations in milliseconds used to filter the view - AcwDurationsMilliseconds *[]Numericrange `json:"acwDurationsMilliseconds,omitempty"` - - - // HandleDurationsMilliseconds - The handle durations in milliseconds used to filter the view - HandleDurationsMilliseconds *[]Numericrange `json:"handleDurationsMilliseconds,omitempty"` - - - // HoldDurationsMilliseconds - The hold durations in milliseconds used to filter the view - HoldDurationsMilliseconds *[]Numericrange `json:"holdDurationsMilliseconds,omitempty"` - - - // AbandonDurationsMilliseconds - The abandon durations in milliseconds used to filter the view - AbandonDurationsMilliseconds *[]Numericrange `json:"abandonDurationsMilliseconds,omitempty"` - - - // EvaluationScore - The evaluationScore is used to filter the view - EvaluationScore *Numericrange `json:"evaluationScore,omitempty"` - - - // EvaluationCriticalScore - The evaluationCriticalScore is used to filter the view - EvaluationCriticalScore *Numericrange `json:"evaluationCriticalScore,omitempty"` - - - // EvaluationFormIds - The evaluation form ids are used to filter the view - EvaluationFormIds *[]string `json:"evaluationFormIds,omitempty"` - - - // EvaluatedAgentIds - The evaluated agent ids are used to filter the view - EvaluatedAgentIds *[]string `json:"evaluatedAgentIds,omitempty"` - - - // EvaluatorIds - The evaluator ids are used to filter the view - EvaluatorIds *[]string `json:"evaluatorIds,omitempty"` - - - // Transferred - Indicates filtering for transfers - Transferred *bool `json:"transferred,omitempty"` - - - // Abandoned - Indicates filtering for abandons - Abandoned *bool `json:"abandoned,omitempty"` - - - // MessageTypes - The message media types used to filter the view - MessageTypes *[]string `json:"messageTypes,omitempty"` - - - // DivisionIds - The divison Ids used to filter the view - DivisionIds *[]string `json:"divisionIds,omitempty"` - - - // SurveyFormIds - The survey form ids used to filter the view - SurveyFormIds *[]string `json:"surveyFormIds,omitempty"` - - - // SurveyTotalScore - The survey total score used to filter the view - SurveyTotalScore *Numericrange `json:"surveyTotalScore,omitempty"` - - - // SurveyNpsScore - The survey NPS score used to filter the view - SurveyNpsScore *Numericrange `json:"surveyNpsScore,omitempty"` - - - // Mos - The desired range for mos values - Mos *Numericrange `json:"mos,omitempty"` - - - // SurveyQuestionGroupScore - The survey question group score used to filter the view - SurveyQuestionGroupScore *Numericrange `json:"surveyQuestionGroupScore,omitempty"` - - - // SurveyPromoterScore - The survey promoter score used to filter the view - SurveyPromoterScore *Numericrange `json:"surveyPromoterScore,omitempty"` - - - // SurveyFormContextIds - The list of survey form context ids used to filter the view - SurveyFormContextIds *[]string `json:"surveyFormContextIds,omitempty"` - - - // ConversationIds - The list of conversation ids used to filter the view - ConversationIds *[]string `json:"conversationIds,omitempty"` - - - // SipCallIds - The list of SIP call ids used to filter the view - SipCallIds *[]string `json:"sipCallIds,omitempty"` - - - // IsEnded - Indicates filtering for ended - IsEnded *bool `json:"isEnded,omitempty"` - - - // IsSurveyed - Indicates filtering for survey - IsSurveyed *bool `json:"isSurveyed,omitempty"` - - - // SurveyScores - The list of survey score ranges used to filter the view - SurveyScores *[]Numericrange `json:"surveyScores,omitempty"` - - - // PromoterScores - The list of promoter score ranges used to filter the view - PromoterScores *[]Numericrange `json:"promoterScores,omitempty"` - - - // IsCampaign - Indicates filtering for campaign - IsCampaign *bool `json:"isCampaign,omitempty"` - - - // SurveyStatuses - The list of survey statuses used to filter the view - SurveyStatuses *[]string `json:"surveyStatuses,omitempty"` - - - // ConversationProperties - A grouping of conversation level filters - ConversationProperties *Conversationproperties `json:"conversationProperties,omitempty"` - - - // IsBlindTransferred - Indicates filtering for blind transferred - IsBlindTransferred *bool `json:"isBlindTransferred,omitempty"` - - - // IsConsulted - Indicates filtering for consulted - IsConsulted *bool `json:"isConsulted,omitempty"` - - - // IsConsultTransferred - Indicates filtering for consult transferred - IsConsultTransferred *bool `json:"isConsultTransferred,omitempty"` - - - // RemoteParticipants - The list of remote participants used to filter the view - RemoteParticipants *[]string `json:"remoteParticipants,omitempty"` - - - // FlowIds - The list of flow Ids - FlowIds *[]string `json:"flowIds,omitempty"` - - - // FlowOutcomeIds - A list of outcome ids of the flow - FlowOutcomeIds *[]string `json:"flowOutcomeIds,omitempty"` - - - // FlowOutcomeValues - A list of outcome values of the flow - FlowOutcomeValues *[]string `json:"flowOutcomeValues,omitempty"` - - - // FlowDestinationTypes - The list of destination types of the flow - FlowDestinationTypes *[]string `json:"flowDestinationTypes,omitempty"` - - - // FlowDisconnectReasons - The list of reasons for the flow to disconnect - FlowDisconnectReasons *[]string `json:"flowDisconnectReasons,omitempty"` - - - // FlowTypes - A list of types of the flow - FlowTypes *[]string `json:"flowTypes,omitempty"` - - - // FlowEntryTypes - A list of types of the flow entry - FlowEntryTypes *[]string `json:"flowEntryTypes,omitempty"` - - - // FlowEntryReasons - A list of reasons of flow entry - FlowEntryReasons *[]string `json:"flowEntryReasons,omitempty"` - - - // FlowVersions - A list of versions of a flow - FlowVersions *[]string `json:"flowVersions,omitempty"` - - - // GroupIds - A list of directory group ids - GroupIds *[]string `json:"groupIds,omitempty"` - - - // HasJourneyCustomerId - Indicates filtering for journey customer id - HasJourneyCustomerId *bool `json:"hasJourneyCustomerId,omitempty"` - - - // HasJourneyActionMapId - Indicates filtering for Journey action map id - HasJourneyActionMapId *bool `json:"hasJourneyActionMapId,omitempty"` - - - // HasJourneyVisitId - Indicates filtering for Journey visit id - HasJourneyVisitId *bool `json:"hasJourneyVisitId,omitempty"` - - - // HasMedia - Indicates filtering for presence of MMS media - HasMedia *bool `json:"hasMedia,omitempty"` - - - // RoleIds - The role Ids used to filter the view - RoleIds *[]string `json:"roleIds,omitempty"` - - - // ReportsTos - The report to user IDs used to filter the view - ReportsTos *[]string `json:"reportsTos,omitempty"` - - - // LocationIds - The location Ids used to filter the view - LocationIds *[]string `json:"locationIds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Viewfilter) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/visibilitycondition.go b/build/platformclientv2/visibilitycondition.go deleted file mode 100644 index a8cae1e6c..000000000 --- a/build/platformclientv2/visibilitycondition.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Visibilitycondition -type Visibilitycondition struct { - // CombiningOperation - CombiningOperation *string `json:"combiningOperation,omitempty"` - - - // Predicates - A list of strings, each representing the location in the form of the Answer Option to depend on. In the format of \"/form/questionGroup/{questionGroupIndex}/question/{questionIndex}/answer/{answerIndex}\" or, to assume the current question group, \"../question/{questionIndex}/answer/{answerIndex}\". Note: Indexes are zero-based - Predicates *[]map[string]interface{} `json:"predicates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Visibilitycondition) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/vmpairinginfo.go b/build/platformclientv2/vmpairinginfo.go deleted file mode 100644 index 874444995..000000000 --- a/build/platformclientv2/vmpairinginfo.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Vmpairinginfo -type Vmpairinginfo struct { - // MetaData - This is to be used to complete the setup process of a locally deployed virtual edge device. - MetaData *Metadata `json:"meta-data,omitempty"` - - - // EdgeId - EdgeId *string `json:"edge-id,omitempty"` - - - // AuthToken - AuthToken *string `json:"auth-token,omitempty"` - - - // OrgId - OrgId *string `json:"org-id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Vmpairinginfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemail.go b/build/platformclientv2/voicemail.go deleted file mode 100644 index af847e846..000000000 --- a/build/platformclientv2/voicemail.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemail -type Voicemail struct { - // Id - The voicemail id - Id *string `json:"id,omitempty"` - - - // UploadStatus - current state of the voicemail upload - UploadStatus *string `json:"uploadStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemail) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailapi.go b/build/platformclientv2/voicemailapi.go deleted file mode 100644 index ae43f0c4a..000000000 --- a/build/platformclientv2/voicemailapi.go +++ /dev/null @@ -1,1778 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// VoicemailApi provides functions for API endpoints -type VoicemailApi struct { - Configuration *Configuration -} - -// NewVoicemailApi creates an API instance using the default configuration -func NewVoicemailApi() *VoicemailApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating VoicemailApi with base path: %s", strings.ToLower(config.BasePath))) - return &VoicemailApi{ - Configuration: config, - } -} - -// NewVoicemailApiWithConfig creates an API instance using the provided configuration -func NewVoicemailApiWithConfig(config *Configuration) *VoicemailApi { - config.Debugf("Creating VoicemailApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &VoicemailApi{ - Configuration: config, - } -} - -// DeleteVoicemailMessage invokes DELETE /api/v2/voicemail/messages/{messageId} -// -// Delete a voicemail message. -// -// A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission. -func (a VoicemailApi) DeleteVoicemailMessage(messageId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages/{messageId}" - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return nil, errors.New("Missing required parameter 'messageId' when calling VoicemailApi->DeleteVoicemailMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteVoicemailMessages invokes DELETE /api/v2/voicemail/messages -// -// Delete all voicemail messages -// -// -func (a VoicemailApi) DeleteVoicemailMessages() (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetVoicemailGroupMailbox invokes GET /api/v2/voicemail/groups/{groupId}/mailbox -// -// Get the group's mailbox information -// -// -func (a VoicemailApi) GetVoicemailGroupMailbox(groupId string) (*Voicemailmailboxinfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/groups/{groupId}/mailbox" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Voicemailmailboxinfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling VoicemailApi->GetVoicemailGroupMailbox") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmailboxinfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailGroupMessages invokes GET /api/v2/voicemail/groups/{groupId}/messages -// -// List voicemail messages -// -// -func (a VoicemailApi) GetVoicemailGroupMessages(groupId string, pageSize int32, pageNumber int32) (*Voicemailmessageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/groups/{groupId}/messages" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Voicemailmessageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling VoicemailApi->GetVoicemailGroupMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmessageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailGroupPolicy invokes GET /api/v2/voicemail/groups/{groupId}/policy -// -// Get a group's voicemail policy -// -// -func (a VoicemailApi) GetVoicemailGroupPolicy(groupId string) (*Voicemailgrouppolicy, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/groups/{groupId}/policy" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Voicemailgrouppolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling VoicemailApi->GetVoicemailGroupPolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailgrouppolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMailbox invokes GET /api/v2/voicemail/mailbox -// -// Get the current user's mailbox information -// -// -func (a VoicemailApi) GetVoicemailMailbox() (*Voicemailmailboxinfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/mailbox" - defaultReturn := new(Voicemailmailboxinfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmailboxinfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMeMailbox invokes GET /api/v2/voicemail/me/mailbox -// -// Get the current user's mailbox information -// -// -func (a VoicemailApi) GetVoicemailMeMailbox() (*Voicemailmailboxinfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/me/mailbox" - defaultReturn := new(Voicemailmailboxinfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmailboxinfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMeMessages invokes GET /api/v2/voicemail/me/messages -// -// List voicemail messages -// -// -func (a VoicemailApi) GetVoicemailMeMessages(pageSize int32, pageNumber int32) (*Voicemailmessageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/me/messages" - defaultReturn := new(Voicemailmessageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmessageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMePolicy invokes GET /api/v2/voicemail/me/policy -// -// Get the current user's voicemail policy -// -// -func (a VoicemailApi) GetVoicemailMePolicy() (*Voicemailuserpolicy, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/me/policy" - defaultReturn := new(Voicemailuserpolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailuserpolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMessage invokes GET /api/v2/voicemail/messages/{messageId} -// -// Get a voicemail message -// -// -func (a VoicemailApi) GetVoicemailMessage(messageId string, expand []string) (*Voicemailmessage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages/{messageId}" - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Voicemailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling VoicemailApi->GetVoicemailMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMessageMedia invokes GET /api/v2/voicemail/messages/{messageId}/media -// -// Get media playback URI for this voicemail message -// -// -func (a VoicemailApi) GetVoicemailMessageMedia(messageId string, formatId string) (*Voicemailmediainfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages/{messageId}/media" - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Voicemailmediainfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling VoicemailApi->GetVoicemailMessageMedia") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["formatId"] = a.Configuration.APIClient.ParameterToString(formatId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmediainfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailMessages invokes GET /api/v2/voicemail/messages -// -// List voicemail messages -// -// -func (a VoicemailApi) GetVoicemailMessages(ids string, expand []string) (*Voicemailmessageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages" - defaultReturn := new(Voicemailmessageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["ids"] = a.Configuration.APIClient.ParameterToString(ids, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmessageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailPolicy invokes GET /api/v2/voicemail/policy -// -// Get a policy -// -// -func (a VoicemailApi) GetVoicemailPolicy() (*Voicemailorganizationpolicy, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/policy" - defaultReturn := new(Voicemailorganizationpolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailorganizationpolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailQueueMessages invokes GET /api/v2/voicemail/queues/{queueId}/messages -// -// List voicemail messages -// -// -func (a VoicemailApi) GetVoicemailQueueMessages(queueId string, pageSize int32, pageNumber int32) (*Voicemailmessageentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/queues/{queueId}/messages" - path = strings.Replace(path, "{queueId}", fmt.Sprintf("%v", queueId), -1) - defaultReturn := new(Voicemailmessageentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'queueId' is set - if &queueId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'queueId' when calling VoicemailApi->GetVoicemailQueueMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailmessageentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailSearch invokes GET /api/v2/voicemail/search -// -// Search voicemails using the q64 value returned from a previous search -// -// -func (a VoicemailApi) GetVoicemailSearch(q64 string, expand []string) (*Voicemailssearchresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/search" - defaultReturn := new(Voicemailssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'q64' is set - if &q64 == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'q64' when calling VoicemailApi->GetVoicemailSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["q64"] = a.Configuration.APIClient.ParameterToString(q64, collectionFormat) - - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetVoicemailUserpolicy invokes GET /api/v2/voicemail/userpolicies/{userId} -// -// Get a user's voicemail policy -// -// -func (a VoicemailApi) GetVoicemailUserpolicy(userId string) (*Voicemailuserpolicy, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/userpolicies/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Voicemailuserpolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling VoicemailApi->GetVoicemailUserpolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Voicemailuserpolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchVoicemailGroupPolicy invokes PATCH /api/v2/voicemail/groups/{groupId}/policy -// -// Update a group's voicemail policy -// -// -func (a VoicemailApi) PatchVoicemailGroupPolicy(groupId string, body Voicemailgrouppolicy) (*Voicemailgrouppolicy, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/groups/{groupId}/policy" - path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupId), -1) - defaultReturn := new(Voicemailgrouppolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'groupId' is set - if &groupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'groupId' when calling VoicemailApi->PatchVoicemailGroupPolicy") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PatchVoicemailGroupPolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailgrouppolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchVoicemailMePolicy invokes PATCH /api/v2/voicemail/me/policy -// -// Update the current user's voicemail policy -// -// -func (a VoicemailApi) PatchVoicemailMePolicy(body Voicemailuserpolicy) (*Voicemailuserpolicy, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/me/policy" - defaultReturn := new(Voicemailuserpolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PatchVoicemailMePolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailuserpolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchVoicemailMessage invokes PATCH /api/v2/voicemail/messages/{messageId} -// -// Update a voicemail message -// -// A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with. -func (a VoicemailApi) PatchVoicemailMessage(messageId string, body Voicemailmessage) (*Voicemailmessage, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages/{messageId}" - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Voicemailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling VoicemailApi->PatchVoicemailMessage") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PatchVoicemailMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchVoicemailUserpolicy invokes PATCH /api/v2/voicemail/userpolicies/{userId} -// -// Update a user's voicemail policy -// -// -func (a VoicemailApi) PatchVoicemailUserpolicy(userId string, body Voicemailuserpolicy) (*Voicemailuserpolicy, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/userpolicies/{userId}" - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Voicemailuserpolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling VoicemailApi->PatchVoicemailUserpolicy") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PatchVoicemailUserpolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailuserpolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostVoicemailMessages invokes POST /api/v2/voicemail/messages -// -// Copy a voicemail message to a user or group -// -// -func (a VoicemailApi) PostVoicemailMessages(body Copyvoicemailmessage) (*Voicemailmessage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages" - defaultReturn := new(Voicemailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostVoicemailSearch invokes POST /api/v2/voicemail/search -// -// Search voicemails -// -// -func (a VoicemailApi) PostVoicemailSearch(body Voicemailsearchrequest) (*Voicemailssearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/search" - defaultReturn := new(Voicemailssearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PostVoicemailSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailssearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutVoicemailMessage invokes PUT /api/v2/voicemail/messages/{messageId} -// -// Update a voicemail message -// -// A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with. -func (a VoicemailApi) PutVoicemailMessage(messageId string, body Voicemailmessage) (*Voicemailmessage, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/messages/{messageId}" - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Voicemailmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling VoicemailApi->PutVoicemailMessage") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PutVoicemailMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutVoicemailPolicy invokes PUT /api/v2/voicemail/policy -// -// Update a policy -// -// -func (a VoicemailApi) PutVoicemailPolicy(body Voicemailorganizationpolicy) (*Voicemailorganizationpolicy, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/voicemail/policy" - defaultReturn := new(Voicemailorganizationpolicy) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling VoicemailApi->PutVoicemailPolicy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Voicemailorganizationpolicy - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/voicemailcopyrecord.go b/build/platformclientv2/voicemailcopyrecord.go deleted file mode 100644 index f76d63ec5..000000000 --- a/build/platformclientv2/voicemailcopyrecord.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Voicemailcopyrecord -type Voicemailcopyrecord struct { - // User - The user that the voicemail message was copied to/from - User *User `json:"user,omitempty"` - - - // Group - The group that the voicemail message was copied to/from - Group *Group `json:"group,omitempty"` - - - // Date - The date when the voicemail was copied. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Date *time.Time `json:"date,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailcopyrecord) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailgrouppolicy.go b/build/platformclientv2/voicemailgrouppolicy.go deleted file mode 100644 index b5844109b..000000000 --- a/build/platformclientv2/voicemailgrouppolicy.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailgrouppolicy -type Voicemailgrouppolicy struct { - // Name - Name *string `json:"name,omitempty"` - - - // Group - The group associated with the policy - Group *Group `json:"group,omitempty"` - - - // Enabled - Whether voicemail is enabled for the group - Enabled *bool `json:"enabled,omitempty"` - - - // SendEmailNotifications - Whether email notifications are sent to group members when a new voicemail is received - SendEmailNotifications *bool `json:"sendEmailNotifications,omitempty"` - - - // RotateCallsSecs - How many seconds to ring before rotating to the next member in the group - RotateCallsSecs *int32 `json:"rotateCallsSecs,omitempty"` - - - // StopRingingAfterRotations - How many rotations to go through - StopRingingAfterRotations *int32 `json:"stopRingingAfterRotations,omitempty"` - - - // OverflowGroupId - A fallback group to contact when all of the members in this group did not answer the call. - OverflowGroupId *string `json:"overflowGroupId,omitempty"` - - - // GroupAlertType - Specifies if the members in this group should be contacted randomly, in a specific order, or by round-robin. - GroupAlertType *string `json:"groupAlertType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailgrouppolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailmailboxinfo.go b/build/platformclientv2/voicemailmailboxinfo.go deleted file mode 100644 index 254a0ee3f..000000000 --- a/build/platformclientv2/voicemailmailboxinfo.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Voicemailmailboxinfo -type Voicemailmailboxinfo struct { - // UsageSizeBytes - The total number of bytes for all voicemail message audio recordings - UsageSizeBytes *int64 `json:"usageSizeBytes,omitempty"` - - - // TotalCount - The total number of voicemail messages - TotalCount *int32 `json:"totalCount,omitempty"` - - - // UnreadCount - The total number of voicemail messages marked as unread - UnreadCount *int32 `json:"unreadCount,omitempty"` - - - // DeletedCount - The total number of voicemail messages marked as deleted - DeletedCount *int32 `json:"deletedCount,omitempty"` - - - // CreatedDate - The date of the oldest voicemail message. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedDate - The date of the most recent voicemail message. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailmailboxinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailmediainfo.go b/build/platformclientv2/voicemailmediainfo.go deleted file mode 100644 index 16ac06da9..000000000 --- a/build/platformclientv2/voicemailmediainfo.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailmediainfo -type Voicemailmediainfo struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // MediaFileUri - MediaFileUri *string `json:"mediaFileUri,omitempty"` - - - // MediaImageUri - MediaImageUri *string `json:"mediaImageUri,omitempty"` - - - // WaveformData - WaveformData *[]float32 `json:"waveformData,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailmediainfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailmessage.go b/build/platformclientv2/voicemailmessage.go deleted file mode 100644 index 374b0696d..000000000 --- a/build/platformclientv2/voicemailmessage.go +++ /dev/null @@ -1,94 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Voicemailmessage -type Voicemailmessage struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Conversation - The conversation that the voicemail message is associated with - Conversation *Conversation `json:"conversation,omitempty"` - - - // Read - Whether the voicemail message is marked as read - Read *bool `json:"read,omitempty"` - - - // AudioRecordingDurationSeconds - The voicemail message's audio recording duration in seconds - AudioRecordingDurationSeconds *int32 `json:"audioRecordingDurationSeconds,omitempty"` - - - // AudioRecordingSizeBytes - The voicemail message's audio recording size in bytes - AudioRecordingSizeBytes *int64 `json:"audioRecordingSizeBytes,omitempty"` - - - // CreatedDate - The date the voicemail message was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedDate - The date the voicemail message was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // DeletedDate - The date the voicemail message deleted property was set to true. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DeletedDate *time.Time `json:"deletedDate,omitempty"` - - - // CallerAddress - The caller address - CallerAddress *string `json:"callerAddress,omitempty"` - - - // CallerName - Optionally the name of the caller that left the voicemail message if the caller was a known user - CallerName *string `json:"callerName,omitempty"` - - - // CallerUser - Optionally the user that left the voicemail message if the caller was a known user - CallerUser *User `json:"callerUser,omitempty"` - - - // Deleted - Whether the voicemail message has been marked as deleted - Deleted *bool `json:"deleted,omitempty"` - - - // Note - An optional note - Note *string `json:"note,omitempty"` - - - // User - The user that the voicemail message belongs to or null which means the voicemail message belongs to a group or queue - User *User `json:"user,omitempty"` - - - // Group - The group that the voicemail message belongs to or null which means the voicemail message belongs to a user or queue - Group *Group `json:"group,omitempty"` - - - // Queue - The queue that the voicemail message belongs to or null which means the voicemail message belongs to a user or group - Queue *Queue `json:"queue,omitempty"` - - - // CopiedFrom - Represents where this voicemail message was copied from - CopiedFrom *Voicemailcopyrecord `json:"copiedFrom,omitempty"` - - - // CopiedTo - Represents where this voicemail has been copied to - CopiedTo *[]Voicemailcopyrecord `json:"copiedTo,omitempty"` - - - // DeleteRetentionPolicy - The retention policy for this voicemail when deleted is set to true - DeleteRetentionPolicy *Voicemailretentionpolicy `json:"deleteRetentionPolicy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailmessageentitylisting.go b/build/platformclientv2/voicemailmessageentitylisting.go deleted file mode 100644 index 0ffb3b33d..000000000 --- a/build/platformclientv2/voicemailmessageentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailmessageentitylisting -type Voicemailmessageentitylisting struct { - // Entities - Entities *[]Voicemailmessage `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailmessageentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailmessagestopicvoicemailmessage.go b/build/platformclientv2/voicemailmessagestopicvoicemailmessage.go deleted file mode 100644 index 26a188e6b..000000000 --- a/build/platformclientv2/voicemailmessagestopicvoicemailmessage.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Voicemailmessagestopicvoicemailmessage -type Voicemailmessagestopicvoicemailmessage struct { - // Id - Id *string `json:"id,omitempty"` - - - // Read - Read *bool `json:"read,omitempty"` - - - // AudioRecordingDurationSeconds - AudioRecordingDurationSeconds *int32 `json:"audioRecordingDurationSeconds,omitempty"` - - - // AudioRecordingSizeBytes - AudioRecordingSizeBytes *int32 `json:"audioRecordingSizeBytes,omitempty"` - - - // CreatedDate - CreatedDate *time.Time `json:"createdDate,omitempty"` - - - // ModifiedDate - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - - - // CallerAddress - CallerAddress *string `json:"callerAddress,omitempty"` - - - // CallerName - CallerName *string `json:"callerName,omitempty"` - - - // Action - Action *string `json:"action,omitempty"` - - - // Note - Note *string `json:"note,omitempty"` - - - // Deleted - Deleted *bool `json:"deleted,omitempty"` - - - // ModifiedByUserId - ModifiedByUserId *string `json:"modifiedByUserId,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailmessagestopicvoicemailmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailorganizationpolicy.go b/build/platformclientv2/voicemailorganizationpolicy.go deleted file mode 100644 index 28f65928d..000000000 --- a/build/platformclientv2/voicemailorganizationpolicy.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Voicemailorganizationpolicy -type Voicemailorganizationpolicy struct { - // Enabled - Whether voicemail is enable for this organization - Enabled *bool `json:"enabled,omitempty"` - - - // AlertTimeoutSeconds - The organization's default number of seconds to ring a user's phone before a call is transfered to voicemail - AlertTimeoutSeconds *int32 `json:"alertTimeoutSeconds,omitempty"` - - - // PinConfiguration - The configuration for user PINs to access their voicemail from a phone - PinConfiguration *Pinconfiguration `json:"pinConfiguration,omitempty"` - - - // VoicemailExtension - The extension for voicemail retrieval. The default value is *86. - VoicemailExtension *string `json:"voicemailExtension,omitempty"` - - - // PinRequired - If this is true, a PIN is required when accessing a user's voicemail from a phone. - PinRequired *bool `json:"pinRequired,omitempty"` - - - // SendEmailNotifications - Whether email notifications are sent for new voicemails in the organization. If false, new voicemail email notifications are not be sent for the organization overriding any user or group setting. - SendEmailNotifications *bool `json:"sendEmailNotifications,omitempty"` - - - // ModifiedDate - The date the policy was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailorganizationpolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailretentionpolicy.go b/build/platformclientv2/voicemailretentionpolicy.go deleted file mode 100644 index 6228f4033..000000000 --- a/build/platformclientv2/voicemailretentionpolicy.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailretentionpolicy - Governs how the voicemail is retained -type Voicemailretentionpolicy struct { - // VoicemailRetentionPolicyType - The retention policy type - VoicemailRetentionPolicyType *string `json:"voicemailRetentionPolicyType,omitempty"` - - - // NumberOfDays - If retentionPolicyType == RETAIN_WITH_TTL, then this value represents the number of days for the TTL - NumberOfDays *int32 `json:"numberOfDays,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailretentionpolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailsearchcriteria.go b/build/platformclientv2/voicemailsearchcriteria.go deleted file mode 100644 index 28bfd27f5..000000000 --- a/build/platformclientv2/voicemailsearchcriteria.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailsearchcriteria -type Voicemailsearchcriteria struct { - // EndValue - The end value of the range. This field is used for range search types. - EndValue *string `json:"endValue,omitempty"` - - - // Values - A list of values for the search to match against - Values *[]string `json:"values,omitempty"` - - - // StartValue - The start value of the range. This field is used for range search types. - StartValue *string `json:"startValue,omitempty"` - - - // Fields - Field names to search against - Fields *[]string `json:"fields,omitempty"` - - - // Value - A value for the search to match against - Value *string `json:"value,omitempty"` - - - // Operator - How to apply this search criteria against other criteria - Operator *string `json:"operator,omitempty"` - - - // Group - Groups multiple conditions - Group *[]Voicemailsearchcriteria `json:"group,omitempty"` - - - // VarType - Search Type - VarType *string `json:"type,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailsearchcriteria) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailsearchrequest.go b/build/platformclientv2/voicemailsearchrequest.go deleted file mode 100644 index efe7932d7..000000000 --- a/build/platformclientv2/voicemailsearchrequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailsearchrequest -type Voicemailsearchrequest struct { - // SortOrder - The sort order for results - SortOrder *string `json:"sortOrder,omitempty"` - - - // SortBy - The field in the resource that you want to sort the results by - SortBy *string `json:"sortBy,omitempty"` - - - // PageSize - The number of results per page - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The page of resources you want to retrieve - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Sort - Multi-value sort order, list of multiple sort values - Sort *[]Searchsort `json:"sort,omitempty"` - - - // Expand - Provides more details about a specified resource - Expand *[]string `json:"expand,omitempty"` - - - // Query - Query *[]Voicemailsearchcriteria `json:"query,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailsearchrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailssearchresponse.go b/build/platformclientv2/voicemailssearchresponse.go deleted file mode 100644 index 9dca08fe9..000000000 --- a/build/platformclientv2/voicemailssearchresponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Voicemailssearchresponse -type Voicemailssearchresponse struct { - // Total - The total number of results found - Total *int64 `json:"total,omitempty"` - - - // PageCount - The total number of pages - PageCount *int32 `json:"pageCount,omitempty"` - - - // PageSize - The current page size - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - The current page number - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // PreviousPage - Q64 value for the previous page of results - PreviousPage *string `json:"previousPage,omitempty"` - - - // CurrentPage - Q64 value for the current page of results - CurrentPage *string `json:"currentPage,omitempty"` - - - // NextPage - Q64 value for the next page of results - NextPage *string `json:"nextPage,omitempty"` - - - // Types - Resource types the search was performed against - Types *[]string `json:"types,omitempty"` - - - // Results - Search results - Results *[]Voicemailmessage `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailssearchresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/voicemailuserpolicy.go b/build/platformclientv2/voicemailuserpolicy.go deleted file mode 100644 index 7d680ef81..000000000 --- a/build/platformclientv2/voicemailuserpolicy.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Voicemailuserpolicy -type Voicemailuserpolicy struct { - // Enabled - Whether the user has voicemail enabled - Enabled *bool `json:"enabled,omitempty"` - - - // AlertTimeoutSeconds - The number of seconds to ring the user's phone before a call is transfered to voicemail - AlertTimeoutSeconds *int32 `json:"alertTimeoutSeconds,omitempty"` - - - // Pin - The user's PIN to access their voicemail. This property is only used for updates and never provided otherwise to ensure security - Pin *string `json:"pin,omitempty"` - - - // ModifiedDate - The date the policy was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - ModifiedDate *time.Time `json:"modifiedDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Voicemailuserpolicy) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatapi.go b/build/platformclientv2/webchatapi.go deleted file mode 100644 index 4f3bc9391..000000000 --- a/build/platformclientv2/webchatapi.go +++ /dev/null @@ -1,1419 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// WebChatApi provides functions for API endpoints -type WebChatApi struct { - Configuration *Configuration -} - -// NewWebChatApi creates an API instance using the default configuration -func NewWebChatApi() *WebChatApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating WebChatApi with base path: %s", strings.ToLower(config.BasePath))) - return &WebChatApi{ - Configuration: config, - } -} - -// NewWebChatApiWithConfig creates an API instance using the provided configuration -func NewWebChatApiWithConfig(config *Configuration) *WebChatApi { - config.Debugf("Creating WebChatApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &WebChatApi{ - Configuration: config, - } -} - -// DeleteWebchatDeployment invokes DELETE /api/v2/webchat/deployments/{deploymentId} -// -// Delete a WebChat deployment -// -// -func (a WebChatApi) DeleteWebchatDeployment(deploymentId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/deployments/{deploymentId}" - path = strings.Replace(path, "{deploymentId}", fmt.Sprintf("%v", deploymentId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deploymentId' is set - if &deploymentId == nil { - // - return nil, errors.New("Missing required parameter 'deploymentId' when calling WebChatApi->DeleteWebchatDeployment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWebchatGuestConversationMember invokes DELETE /api/v2/webchat/guest/conversations/{conversationId}/members/{memberId} -// -// Remove a member from a chat conversation -// -// -func (a WebChatApi) DeleteWebchatGuestConversationMember(conversationId string, memberId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->DeleteWebchatGuestConversationMember") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return nil, errors.New("Missing required parameter 'memberId' when calling WebChatApi->DeleteWebchatGuestConversationMember") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWebchatSettings invokes DELETE /api/v2/webchat/settings -// -// Remove WebChat deployment settings -// -// -func (a WebChatApi) DeleteWebchatSettings() (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/settings" - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetWebchatDeployment invokes GET /api/v2/webchat/deployments/{deploymentId} -// -// Get a WebChat deployment -// -// -func (a WebChatApi) GetWebchatDeployment(deploymentId string) (*Webchatdeployment, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/deployments/{deploymentId}" - path = strings.Replace(path, "{deploymentId}", fmt.Sprintf("%v", deploymentId), -1) - defaultReturn := new(Webchatdeployment) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deploymentId' is set - if &deploymentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'deploymentId' when calling WebChatApi->GetWebchatDeployment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatdeployment - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatDeployments invokes GET /api/v2/webchat/deployments -// -// List WebChat deployments -// -// -func (a WebChatApi) GetWebchatDeployments() (*Webchatdeploymententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/deployments" - defaultReturn := new(Webchatdeploymententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatdeploymententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatGuestConversationMediarequest invokes GET /api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId} -// -// Get a media request in the conversation -// -// -func (a WebChatApi) GetWebchatGuestConversationMediarequest(conversationId string, mediaRequestId string) (*Webchatguestmediarequest, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{mediaRequestId}", fmt.Sprintf("%v", mediaRequestId), -1) - defaultReturn := new(Webchatguestmediarequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->GetWebchatGuestConversationMediarequest") - } - // verify the required parameter 'mediaRequestId' is set - if &mediaRequestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'mediaRequestId' when calling WebChatApi->GetWebchatGuestConversationMediarequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatguestmediarequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatGuestConversationMediarequests invokes GET /api/v2/webchat/guest/conversations/{conversationId}/mediarequests -// -// Get all media requests to the guest in the conversation -// -// -func (a WebChatApi) GetWebchatGuestConversationMediarequests(conversationId string) (*Webchatguestmediarequestentitylist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/mediarequests" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Webchatguestmediarequestentitylist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->GetWebchatGuestConversationMediarequests") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatguestmediarequestentitylist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatGuestConversationMember invokes GET /api/v2/webchat/guest/conversations/{conversationId}/members/{memberId} -// -// Get a web chat conversation member -// -// -func (a WebChatApi) GetWebchatGuestConversationMember(conversationId string, memberId string) (*Webchatmemberinfo, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - defaultReturn := new(Webchatmemberinfo) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->GetWebchatGuestConversationMember") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'memberId' when calling WebChatApi->GetWebchatGuestConversationMember") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatmemberinfo - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatGuestConversationMembers invokes GET /api/v2/webchat/guest/conversations/{conversationId}/members -// -// Get the members of a chat conversation. -// -// -func (a WebChatApi) GetWebchatGuestConversationMembers(conversationId string, pageSize int32, pageNumber int32, excludeDisconnectedMembers bool) (*Webchatmemberinfoentitylist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/members" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Webchatmemberinfoentitylist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->GetWebchatGuestConversationMembers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["excludeDisconnectedMembers"] = a.Configuration.APIClient.ParameterToString(excludeDisconnectedMembers, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatmemberinfoentitylist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatGuestConversationMessage invokes GET /api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId} -// -// Get a web chat conversation message -// -// -func (a WebChatApi) GetWebchatGuestConversationMessage(conversationId string, messageId string) (*Webchatmessage, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{messageId}", fmt.Sprintf("%v", messageId), -1) - defaultReturn := new(Webchatmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->GetWebchatGuestConversationMessage") - } - // verify the required parameter 'messageId' is set - if &messageId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'messageId' when calling WebChatApi->GetWebchatGuestConversationMessage") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatGuestConversationMessages invokes GET /api/v2/webchat/guest/conversations/{conversationId}/messages -// -// Get the messages of a chat conversation. -// -// -func (a WebChatApi) GetWebchatGuestConversationMessages(conversationId string, after string, before string, sortOrder string, maxResults int32) (*Webchatmessageentitylist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - defaultReturn := new(Webchatmessageentitylist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->GetWebchatGuestConversationMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["after"] = a.Configuration.APIClient.ParameterToString(after, collectionFormat) - - - - - collectionFormat = "" - queryParams["before"] = a.Configuration.APIClient.ParameterToString(before, collectionFormat) - - - - - collectionFormat = "" - queryParams["sortOrder"] = a.Configuration.APIClient.ParameterToString(sortOrder, collectionFormat) - - - - - collectionFormat = "" - queryParams["maxResults"] = a.Configuration.APIClient.ParameterToString(maxResults, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatmessageentitylist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWebchatSettings invokes GET /api/v2/webchat/settings -// -// Get WebChat deployment settings -// -// -func (a WebChatApi) GetWebchatSettings() (*Webchatsettings, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/settings" - defaultReturn := new(Webchatsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchatsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWebchatGuestConversationMediarequest invokes PATCH /api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId} -// -// Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED -// -// -func (a WebChatApi) PatchWebchatGuestConversationMediarequest(conversationId string, mediaRequestId string, body Webchatguestmediarequest) (*Webchatguestmediarequest, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{mediaRequestId}", fmt.Sprintf("%v", mediaRequestId), -1) - defaultReturn := new(Webchatguestmediarequest) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->PatchWebchatGuestConversationMediarequest") - } - // verify the required parameter 'mediaRequestId' is set - if &mediaRequestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'mediaRequestId' when calling WebChatApi->PatchWebchatGuestConversationMediarequest") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WebChatApi->PatchWebchatGuestConversationMediarequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Webchatguestmediarequest - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWebchatDeployments invokes POST /api/v2/webchat/deployments -// -// Create WebChat deployment -// -// -func (a WebChatApi) PostWebchatDeployments(body Webchatdeployment) (*Webchatdeployment, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/deployments" - defaultReturn := new(Webchatdeployment) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WebChatApi->PostWebchatDeployments") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Webchatdeployment - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWebchatGuestConversationMemberMessages invokes POST /api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages -// -// Send a message in a chat conversation. -// -// -func (a WebChatApi) PostWebchatGuestConversationMemberMessages(conversationId string, memberId string, body Createwebchatmessagerequest) (*Webchatmessage, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - defaultReturn := new(Webchatmessage) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->PostWebchatGuestConversationMemberMessages") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'memberId' when calling WebChatApi->PostWebchatGuestConversationMemberMessages") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WebChatApi->PostWebchatGuestConversationMemberMessages") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Webchatmessage - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWebchatGuestConversationMemberTyping invokes POST /api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing -// -// Send a typing-indicator in a chat conversation. -// -// -func (a WebChatApi) PostWebchatGuestConversationMemberTyping(conversationId string, memberId string) (*Webchattyping, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing" - path = strings.Replace(path, "{conversationId}", fmt.Sprintf("%v", conversationId), -1) - path = strings.Replace(path, "{memberId}", fmt.Sprintf("%v", memberId), -1) - defaultReturn := new(Webchattyping) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'conversationId' is set - if &conversationId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'conversationId' when calling WebChatApi->PostWebchatGuestConversationMemberTyping") - } - // verify the required parameter 'memberId' is set - if &memberId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'memberId' when calling WebChatApi->PostWebchatGuestConversationMemberTyping") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (Guest Chat JWT) required - - // set key with prefix in header - headerParams["Authorization"] = a.Configuration.GetAPIKeyWithPrefix("Authorization") - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Webchattyping - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWebchatGuestConversations invokes POST /api/v2/webchat/guest/conversations -// -// Create an ACD chat conversation from an external customer. -// -// This endpoint will create a new ACD Chat conversation under the specified Chat Deployment. The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the 'memberAuthToken' field should include his JWT as generated by the 'POST /api/v2/signeddata' resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted. The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the 'eventStreamUri' field of the response; the conversation is not routed until the event stream is attached. -func (a WebChatApi) PostWebchatGuestConversations(body Createwebchatconversationrequest) (*Createwebchatconversationresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/guest/conversations" - defaultReturn := new(Createwebchatconversationresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WebChatApi->PostWebchatGuestConversations") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Createwebchatconversationresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutWebchatDeployment invokes PUT /api/v2/webchat/deployments/{deploymentId} -// -// Update a WebChat deployment -// -// -func (a WebChatApi) PutWebchatDeployment(deploymentId string, body Webchatdeployment) (*Webchatdeployment, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/deployments/{deploymentId}" - path = strings.Replace(path, "{deploymentId}", fmt.Sprintf("%v", deploymentId), -1) - defaultReturn := new(Webchatdeployment) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deploymentId' is set - if &deploymentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'deploymentId' when calling WebChatApi->PutWebchatDeployment") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WebChatApi->PutWebchatDeployment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Webchatdeployment - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutWebchatSettings invokes PUT /api/v2/webchat/settings -// -// Update WebChat deployment settings -// -// -func (a WebChatApi) PutWebchatSettings(body Webchatsettings) (*Webchatsettings, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/webchat/settings" - defaultReturn := new(Webchatsettings) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WebChatApi->PutWebchatSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Webchatsettings - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/webchatconfig.go b/build/platformclientv2/webchatconfig.go deleted file mode 100644 index 1fa0ba04f..000000000 --- a/build/platformclientv2/webchatconfig.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatconfig -type Webchatconfig struct { - // WebChatSkin - css class to be applied to the web chat widget. - WebChatSkin *string `json:"webChatSkin,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatconversation.go b/build/platformclientv2/webchatconversation.go deleted file mode 100644 index 5846e3d98..000000000 --- a/build/platformclientv2/webchatconversation.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatconversation -type Webchatconversation struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Member - Chat Member - Member *Webchatmemberinfo `json:"member,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatconversation) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatdeployment.go b/build/platformclientv2/webchatdeployment.go deleted file mode 100644 index 7e304ed2e..000000000 --- a/build/platformclientv2/webchatdeployment.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatdeployment -type Webchatdeployment struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // AuthenticationRequired - AuthenticationRequired *bool `json:"authenticationRequired,omitempty"` - - - // AuthenticationUrl - URL for third party service authenticating web chat clients. See https://github.com/MyPureCloud/authenticated-web-chat-server-examples - AuthenticationUrl *string `json:"authenticationUrl,omitempty"` - - - // Disabled - Disabled *bool `json:"disabled,omitempty"` - - - // WebChatConfig - WebChatConfig *Webchatconfig `json:"webChatConfig,omitempty"` - - - // AllowedDomains - AllowedDomains *[]string `json:"allowedDomains,omitempty"` - - - // Flow - The URI of the Inbound Chat Flow to run when new chats are initiated under this Deployment. - Flow *Domainentityref `json:"flow,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatdeployment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatdeploymententitylisting.go b/build/platformclientv2/webchatdeploymententitylisting.go deleted file mode 100644 index 6eaf6ac31..000000000 --- a/build/platformclientv2/webchatdeploymententitylisting.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatdeploymententitylisting -type Webchatdeploymententitylisting struct { - // Total - Total *int64 `json:"total,omitempty"` - - - // Entities - Entities *[]Webchatdeployment `json:"entities,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatdeploymententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatguestmediarequest.go b/build/platformclientv2/webchatguestmediarequest.go deleted file mode 100644 index 6af982132..000000000 --- a/build/platformclientv2/webchatguestmediarequest.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatguestmediarequest - Object representing the guest model of a media request of a chat conversation. -type Webchatguestmediarequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Types - The types of media being requested. - Types *[]string `json:"types,omitempty"` - - - // State - The state of the media request, one of PENDING|ACCEPTED|DECLINED|TIMEDOUT|CANCELLED|ERRORED. - State *string `json:"state,omitempty"` - - - // CommunicationId - The ID of the new media communication, if applicable. - CommunicationId *string `json:"communicationId,omitempty"` - - - // SecurityKey - The security information related to a media request. - SecurityKey *string `json:"securityKey,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatguestmediarequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatguestmediarequestentitylist.go b/build/platformclientv2/webchatguestmediarequestentitylist.go deleted file mode 100644 index 27003d9ff..000000000 --- a/build/platformclientv2/webchatguestmediarequestentitylist.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatguestmediarequestentitylist -type Webchatguestmediarequestentitylist struct { - // Entities - Entities *[]Webchatguestmediarequest `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatguestmediarequestentitylist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatmemberinfo.go b/build/platformclientv2/webchatmemberinfo.go deleted file mode 100644 index 83044fcfe..000000000 --- a/build/platformclientv2/webchatmemberinfo.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Webchatmemberinfo -type Webchatmemberinfo struct { - // Id - The communicationId of this member. - Id *string `json:"id,omitempty"` - - - // DisplayName - The display name of the member. - DisplayName *string `json:"displayName,omitempty"` - - - // AvatarImageUrl - The url to the avatar image of the member. - AvatarImageUrl *string `json:"avatarImageUrl,omitempty"` - - - // Role - The role of the member, one of [agent, customer, acd, workflow] - Role *string `json:"role,omitempty"` - - - // JoinDate - The time the member joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - JoinDate *time.Time `json:"joinDate,omitempty"` - - - // LeaveDate - The time the member left the conversation, or null if the member is still active in the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - LeaveDate *time.Time `json:"leaveDate,omitempty"` - - - // AuthenticatedGuest - If true, the guest member is an authenticated guest. - AuthenticatedGuest *bool `json:"authenticatedGuest,omitempty"` - - - // CustomFields - Any custom fields of information pertaining to this member. - CustomFields *map[string]string `json:"customFields,omitempty"` - - - // State - The connection state of this member. - State *string `json:"state,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatmemberinfo) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatmemberinfoentitylist.go b/build/platformclientv2/webchatmemberinfoentitylist.go deleted file mode 100644 index 5d8e09e2b..000000000 --- a/build/platformclientv2/webchatmemberinfoentitylist.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatmemberinfoentitylist -type Webchatmemberinfoentitylist struct { - // Entities - Entities *[]Webchatmemberinfo `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatmemberinfoentitylist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatmessage.go b/build/platformclientv2/webchatmessage.go deleted file mode 100644 index 0306f2de4..000000000 --- a/build/platformclientv2/webchatmessage.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Webchatmessage -type Webchatmessage struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Conversation - The identifier of the conversation - Conversation *Webchatconversation `json:"conversation,omitempty"` - - - // Sender - The member who sent the message - Sender *Webchatmemberinfo `json:"sender,omitempty"` - - - // Body - The message body. - Body *string `json:"body,omitempty"` - - - // BodyType - The purpose of the message within the conversation, such as a standard text entry versus a greeting. - BodyType *string `json:"bodyType,omitempty"` - - - // Timestamp - The timestamp of the message, in ISO-8601 format - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatmessage) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatmessageentitylist.go b/build/platformclientv2/webchatmessageentitylist.go deleted file mode 100644 index 8b888f8eb..000000000 --- a/build/platformclientv2/webchatmessageentitylist.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatmessageentitylist -type Webchatmessageentitylist struct { - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // Entities - Entities *[]Webchatmessage `json:"entities,omitempty"` - - - // PreviousPage - PreviousPage *string `json:"previousPage,omitempty"` - - - // Next - Next *string `json:"next,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatmessageentitylist) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatroutingtarget.go b/build/platformclientv2/webchatroutingtarget.go deleted file mode 100644 index 50ab9dc67..000000000 --- a/build/platformclientv2/webchatroutingtarget.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatroutingtarget -type Webchatroutingtarget struct { - // TargetType - The target type of the routing target, such as 'QUEUE'. - TargetType *string `json:"targetType,omitempty"` - - - // TargetAddress - The target of the route, in the format appropriate given the 'targetType'. - TargetAddress *string `json:"targetAddress,omitempty"` - - - // Skills - The list of skill names to use for routing. - Skills *[]string `json:"skills,omitempty"` - - - // Language - The language name to use for routing. - Language *string `json:"language,omitempty"` - - - // Priority - The priority to assign to the conversation for routing. - Priority *int64 `json:"priority,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatroutingtarget) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchatsettings.go b/build/platformclientv2/webchatsettings.go deleted file mode 100644 index c370eb032..000000000 --- a/build/platformclientv2/webchatsettings.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Webchatsettings -type Webchatsettings struct { - // RequireDeployment - RequireDeployment *bool `json:"requireDeployment,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchatsettings) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/webchattyping.go b/build/platformclientv2/webchattyping.go deleted file mode 100644 index d46ff4415..000000000 --- a/build/platformclientv2/webchattyping.go +++ /dev/null @@ -1,30 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Webchattyping -type Webchattyping struct { - // Id - The event identifier of this typing indicator event (useful to guard against event re-delivery - Id *string `json:"id,omitempty"` - - - // Conversation - The identifier of the conversation - Conversation *Webchatconversation `json:"conversation,omitempty"` - - - // Sender - The member who sent the message - Sender *Webchatmemberinfo `json:"sender,omitempty"` - - - // Timestamp - The timestamp of the message, in ISO-8601 format - Timestamp *time.Time `json:"timestamp,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Webchattyping) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekschedule.go b/build/platformclientv2/weekschedule.go deleted file mode 100644 index e42f10950..000000000 --- a/build/platformclientv2/weekschedule.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Weekschedule - Week schedule information -type Weekschedule struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // WeekDate - First day of this week schedule in yyyy-MM-dd format - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - Description of the week schedule - Description *string `json:"description,omitempty"` - - - // Published - Whether the week schedule is published - Published *bool `json:"published,omitempty"` - - - // GenerationResults - Summary of the results from the schedule run - GenerationResults *Weekschedulegenerationresult `json:"generationResults,omitempty"` - - - // ShortTermForecast - Short term forecast associated with this schedule - ShortTermForecast *Shorttermforecastreference `json:"shortTermForecast,omitempty"` - - - // Metadata - Version metadata for this work plan - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // UserSchedules - User schedules in the week - UserSchedules *map[string]Userschedule `json:"userSchedules,omitempty"` - - - // HeadcountForecast - Headcount information for the week schedule - HeadcountForecast *Headcountforecast `json:"headcountForecast,omitempty"` - - - // AgentSchedulesVersion - Version of agent schedules in the week schedule - AgentSchedulesVersion *int32 `json:"agentSchedulesVersion,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekschedule) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekschedulegenerationresult.go b/build/platformclientv2/weekschedulegenerationresult.go deleted file mode 100644 index 58d827ae1..000000000 --- a/build/platformclientv2/weekschedulegenerationresult.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Weekschedulegenerationresult -type Weekschedulegenerationresult struct { - // Failed - Whether the schedule generation failed - Failed *bool `json:"failed,omitempty"` - - - // RunId - ID of the schedule run - RunId *string `json:"runId,omitempty"` - - - // AgentWarnings - Warning messages from the schedule run. This will be available only when requesting information for a single week schedule - AgentWarnings *[]Schedulegenerationwarning `json:"agentWarnings,omitempty"` - - - // AgentWarningCount - Count of warning messages from the schedule run. This will be available only when requesting multiple week schedules - AgentWarningCount *int32 `json:"agentWarningCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekschedulegenerationresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekschedulelistitemresponse.go b/build/platformclientv2/weekschedulelistitemresponse.go deleted file mode 100644 index 7aeba6a89..000000000 --- a/build/platformclientv2/weekschedulelistitemresponse.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Weekschedulelistitemresponse -type Weekschedulelistitemresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // WeekDate - First day of this week schedule in yyyy-MM-dd format - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - Description of the week schedule - Description *string `json:"description,omitempty"` - - - // Published - Whether the week schedule is published - Published *bool `json:"published,omitempty"` - - - // GenerationResults - Summary of the results from the schedule run - GenerationResults *Weekschedulegenerationresult `json:"generationResults,omitempty"` - - - // ShortTermForecast - Short term forecast associated with this schedule - ShortTermForecast *Shorttermforecastreference `json:"shortTermForecast,omitempty"` - - - // Metadata - Version metadata for this work plan - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekschedulelistitemresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekschedulelistresponse.go b/build/platformclientv2/weekschedulelistresponse.go deleted file mode 100644 index d2bd5ade3..000000000 --- a/build/platformclientv2/weekschedulelistresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Weekschedulelistresponse - Week schedule list -type Weekschedulelistresponse struct { - // Entities - Entities *[]Weekschedulelistitemresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekschedulelistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekschedulereference.go b/build/platformclientv2/weekschedulereference.go deleted file mode 100644 index 944241896..000000000 --- a/build/platformclientv2/weekschedulereference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Weekschedulereference -type Weekschedulereference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - - - // WeekDate - First day of this week schedule in yyyy-MM-dd format - WeekDate *string `json:"weekDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekschedulereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekscheduleresponse.go b/build/platformclientv2/weekscheduleresponse.go deleted file mode 100644 index 004f38f4f..000000000 --- a/build/platformclientv2/weekscheduleresponse.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Weekscheduleresponse - Response for query for week schedule for a given week in management unit -type Weekscheduleresponse struct { - // Result - The result of the request. The value will be null if response is large - Result *Weekschedule `json:"result,omitempty"` - - - // DownloadUrl - The url to fetch the result for large responses. The value is null if result contains the data - DownloadUrl *string `json:"downloadUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekscheduleresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/weekshifttradematchessummaryresponse.go b/build/platformclientv2/weekshifttradematchessummaryresponse.go deleted file mode 100644 index 49e60692f..000000000 --- a/build/platformclientv2/weekshifttradematchessummaryresponse.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Weekshifttradematchessummaryresponse -type Weekshifttradematchessummaryresponse struct { - // WeekDate - The schedule week date in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd - WeekDate *time.Time `json:"weekDate,omitempty"` - - - // Count - The number of trades in the Matched state for the given week - Count *int32 `json:"count,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Weekshifttradematchessummaryresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmabandonrate.go b/build/platformclientv2/wfmabandonrate.go deleted file mode 100644 index 817952b42..000000000 --- a/build/platformclientv2/wfmabandonrate.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmabandonrate - Service goal abandon rate configuration -type Wfmabandonrate struct { - // Include - Whether to include abandon rate in the associated configuration - Include *bool `json:"include,omitempty"` - - - // Percent - Abandon rate percent goal. Required if include == true - Percent *int32 `json:"percent,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmabandonrate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagent.go b/build/platformclientv2/wfmagent.go deleted file mode 100644 index 1070694d7..000000000 --- a/build/platformclientv2/wfmagent.go +++ /dev/null @@ -1,57 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmagent - Workforce management agent data -type Wfmagent struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // User - The user associated with this data - User *Userreference `json:"user,omitempty"` - - - // WorkPlan - The work plan associated with this agent - WorkPlan *Workplanreference `json:"workPlan,omitempty"` - - - // TimeZone - The time zone for this agent. Defaults to the time zone of the management unit to which the agent belongs - TimeZone *Wfmtimezone `json:"timeZone,omitempty"` - - - // AcceptDirectShiftTrades - Whether the agent accepts direct shift trade requests - AcceptDirectShiftTrades *bool `json:"acceptDirectShiftTrades,omitempty"` - - - // Metadata - Metadata for this agent - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // Queues - List of queues to which the agent belongs and which are defined in the service goal groups in this management unit - Queues *[]Queuereference `json:"queues,omitempty"` - - - // Languages - The list of languages - Languages *[]Languagereference `json:"languages,omitempty"` - - - // Skills - The list of skills - Skills *[]Routingskillreference `json:"skills,omitempty"` - - - // Schedulable - Whether the agent has the permission to be included in schedule generation - Schedulable *bool `json:"schedulable,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagent) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagentscheduleupdatetopicuserreference.go b/build/platformclientv2/wfmagentscheduleupdatetopicuserreference.go deleted file mode 100644 index 74467479b..000000000 --- a/build/platformclientv2/wfmagentscheduleupdatetopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmagentscheduleupdatetopicuserreference -type Wfmagentscheduleupdatetopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagentscheduleupdatetopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdate.go b/build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdate.go deleted file mode 100644 index 43d907f96..000000000 --- a/build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdate.go +++ /dev/null @@ -1,22 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmagentscheduleupdatetopicwfmagentscheduleupdate -type Wfmagentscheduleupdatetopicwfmagentscheduleupdate struct { - // UpdateType - UpdateType *string `json:"updateType,omitempty"` - - - // ShiftStartDates - ShiftStartDates *[]time.Time `json:"shiftStartDates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagentscheduleupdatetopicwfmagentscheduleupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification.go b/build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification.go deleted file mode 100644 index 0bd3a5ea5..000000000 --- a/build/platformclientv2/wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification -type Wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification struct { - // User - User *Wfmagentscheduleupdatetopicuserreference `json:"user,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - - - // Shifts - Shifts *[]Wfmagentscheduleupdatetopicwfmscheduleshift `json:"shifts,omitempty"` - - - // FullDayTimeOffMarkers - FullDayTimeOffMarkers *[]Wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker `json:"fullDayTimeOffMarkers,omitempty"` - - - // Updates - Updates *[]Wfmagentscheduleupdatetopicwfmagentscheduleupdate `json:"updates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagentscheduleupdatetopicwfmagentscheduleupdatenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker.go b/build/platformclientv2/wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker.go deleted file mode 100644 index ccb4547b9..000000000 --- a/build/platformclientv2/wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker -type Wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker struct { - // TimeOffRequestId - TimeOffRequestId *string `json:"timeOffRequestId,omitempty"` - - - // ManagementUnitDate - ManagementUnitDate *string `json:"managementUnitDate,omitempty"` - - - // ActivityCodeId - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // IsPaid - IsPaid *bool `json:"isPaid,omitempty"` - - - // LengthInMinutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Paid - Paid *bool `json:"paid,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagentscheduleupdatetopicwfmfulldaytimeoffmarker) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleactivity.go b/build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleactivity.go deleted file mode 100644 index de96e4b57..000000000 --- a/build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleactivity.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmagentscheduleupdatetopicwfmscheduleactivity -type Wfmagentscheduleupdatetopicwfmscheduleactivity struct { - // ActivityCodeId - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // CountsAsPaidTime - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // LengthInMinutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // TimeOffRequestId - TimeOffRequestId *string `json:"timeOffRequestId,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagentscheduleupdatetopicwfmscheduleactivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleshift.go b/build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleshift.go deleted file mode 100644 index 8e90ddd86..000000000 --- a/build/platformclientv2/wfmagentscheduleupdatetopicwfmscheduleshift.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmagentscheduleupdatetopicwfmscheduleshift -type Wfmagentscheduleupdatetopicwfmscheduleshift struct { - // WeekDate - WeekDate *string `json:"weekDate,omitempty"` - - - // WeekScheduleId - WeekScheduleId *string `json:"weekScheduleId,omitempty"` - - - // Id - Id *string `json:"id,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // LengthInMinutes - LengthInMinutes *int32 `json:"lengthInMinutes,omitempty"` - - - // Activities - Activities *[]Wfmagentscheduleupdatetopicwfmscheduleactivity `json:"activities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmagentscheduleupdatetopicwfmscheduleshift) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmaveragespeedofanswer.go b/build/platformclientv2/wfmaveragespeedofanswer.go deleted file mode 100644 index 76597cba2..000000000 --- a/build/platformclientv2/wfmaveragespeedofanswer.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmaveragespeedofanswer - Service goal average speed of answer configuration -type Wfmaveragespeedofanswer struct { - // Include - Whether to include average speed of answer (ASA) in the associated configuration - Include *bool `json:"include,omitempty"` - - - // Seconds - The target average speed of answer (ASA) in seconds. Required if include == true - Seconds *int32 `json:"seconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmaveragespeedofanswer) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaydatagroup.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaydatagroup.go deleted file mode 100644 index 4bb308d96..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaydatagroup.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbuintradaydatagroup -type Wfmbuintradaydataupdatetopicbuintradaydatagroup struct { - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ForecastDataSummary - ForecastDataSummary *Wfmbuintradaydataupdatetopicbuintradayforecastdata `json:"forecastDataSummary,omitempty"` - - - // ForecastDataPerInterval - ForecastDataPerInterval *[]Wfmbuintradaydataupdatetopicbuintradayforecastdata `json:"forecastDataPerInterval,omitempty"` - - - // ScheduleDataSummary - ScheduleDataSummary *Wfmbuintradaydataupdatetopicbuintradayscheduledata `json:"scheduleDataSummary,omitempty"` - - - // ScheduleDataPerInterval - ScheduleDataPerInterval *[]Wfmbuintradaydataupdatetopicbuintradayscheduledata `json:"scheduleDataPerInterval,omitempty"` - - - // PerformancePredictionDataSummary - PerformancePredictionDataSummary *Wfmbuintradaydataupdatetopicintradayperformancepredictiondata `json:"performancePredictionDataSummary,omitempty"` - - - // PerformancePredictionDataPerInterval - PerformancePredictionDataPerInterval *[]Wfmbuintradaydataupdatetopicintradayperformancepredictiondata `json:"performancePredictionDataPerInterval,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbuintradaydatagroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayforecastdata.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayforecastdata.go deleted file mode 100644 index 159683359..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayforecastdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbuintradayforecastdata -type Wfmbuintradaydataupdatetopicbuintradayforecastdata struct { - // Offered - Offered *float32 `json:"offered,omitempty"` - - - // AverageHandleTimeSeconds - AverageHandleTimeSeconds *float32 `json:"averageHandleTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbuintradayforecastdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaynotification.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaynotification.go deleted file mode 100644 index 908b71578..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradaynotification.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbuintradaynotification -type Wfmbuintradaydataupdatetopicbuintradaynotification struct { - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // Result - Result *Wfmbuintradaydataupdatetopicbuintradayresult `json:"result,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbuintradaynotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayresult.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayresult.go deleted file mode 100644 index 2f2fc90b0..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayresult.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbuintradayresult -type Wfmbuintradaydataupdatetopicbuintradayresult struct { - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - - - // IntervalLengthMinutes - IntervalLengthMinutes *int32 `json:"intervalLengthMinutes,omitempty"` - - - // IntradayDataGroupings - IntradayDataGroupings *[]Wfmbuintradaydataupdatetopicbuintradaydatagroup `json:"intradayDataGroupings,omitempty"` - - - // Categories - Categories *[]string `json:"categories,omitempty"` - - - // NoDataReason - NoDataReason *string `json:"noDataReason,omitempty"` - - - // Schedule - Schedule *Wfmbuintradaydataupdatetopicbuschedulereference `json:"schedule,omitempty"` - - - // ShortTermForecast - ShortTermForecast *Wfmbuintradaydataupdatetopicbushorttermforecastreference `json:"shortTermForecast,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbuintradayresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayscheduledata.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayscheduledata.go deleted file mode 100644 index 44ff5d7ce..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbuintradayscheduledata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbuintradayscheduledata -type Wfmbuintradaydataupdatetopicbuintradayscheduledata struct { - // OnQueueTimeSeconds - OnQueueTimeSeconds *int32 `json:"onQueueTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbuintradayscheduledata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbuschedulereference.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbuschedulereference.go deleted file mode 100644 index dd8ad856c..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbuschedulereference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbuschedulereference -type Wfmbuintradaydataupdatetopicbuschedulereference struct { - // Id - Id *string `json:"id,omitempty"` - - - // WeekDate - WeekDate *Wfmbuintradaydataupdatetopiclocaldate `json:"weekDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbuschedulereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicbushorttermforecastreference.go b/build/platformclientv2/wfmbuintradaydataupdatetopicbushorttermforecastreference.go deleted file mode 100644 index 4ce8ea905..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicbushorttermforecastreference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicbushorttermforecastreference -type Wfmbuintradaydataupdatetopicbushorttermforecastreference struct { - // Id - Id *string `json:"id,omitempty"` - - - // WeekDate - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicbushorttermforecastreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopicintradayperformancepredictiondata.go b/build/platformclientv2/wfmbuintradaydataupdatetopicintradayperformancepredictiondata.go deleted file mode 100644 index 773b60d67..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopicintradayperformancepredictiondata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopicintradayperformancepredictiondata -type Wfmbuintradaydataupdatetopicintradayperformancepredictiondata struct { - // ServiceLevelPercent - ServiceLevelPercent *float32 `json:"serviceLevelPercent,omitempty"` - - - // AverageSpeedOfAnswerSeconds - AverageSpeedOfAnswerSeconds *float32 `json:"averageSpeedOfAnswerSeconds,omitempty"` - - - // OccupancyPercent - OccupancyPercent *float32 `json:"occupancyPercent,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopicintradayperformancepredictiondata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuintradaydataupdatetopiclocaldate.go b/build/platformclientv2/wfmbuintradaydataupdatetopiclocaldate.go deleted file mode 100644 index deb535634..000000000 --- a/build/platformclientv2/wfmbuintradaydataupdatetopiclocaldate.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuintradaydataupdatetopiclocaldate -type Wfmbuintradaydataupdatetopiclocaldate struct { - // Year - Year *int32 `json:"year,omitempty"` - - - // Month - Month *int32 `json:"month,omitempty"` - - - // Day - Day *int32 `json:"day,omitempty"` - - - // LeapYear - LeapYear *bool `json:"leapYear,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuintradaydataupdatetopiclocaldate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification.go b/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification.go deleted file mode 100644 index 1274fedf0..000000000 --- a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification -type Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification struct { - // Status - Status *string `json:"status,omitempty"` - - - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // Result - Result *Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting `json:"result,omitempty"` - - - // WeekDate - WeekDate *Wfmbulkshifttradestateupdatenotificationtopiclocaldate `json:"weekDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdatenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult.go b/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult.go deleted file mode 100644 index de74c667b..000000000 --- a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult -type Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult struct { - // Id - Id *string `json:"id,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // ReviewedBy - ReviewedBy *Wfmbulkshifttradestateupdatenotificationtopicuserreference `json:"reviewedBy,omitempty"` - - - // ReviewedDate - ReviewedDate *time.Time `json:"reviewedDate,omitempty"` - - - // FailureReason - FailureReason *string `json:"failureReason,omitempty"` - - - // Metadata - Metadata *Wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting.go b/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting.go deleted file mode 100644 index bccfad1f9..000000000 --- a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting -type Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting struct { - // Entities - Entities *[]Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresult `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbulkshifttradestateupdatenotificationtopicbulkshifttradestateupdateresultlisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopiclocaldate.go b/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopiclocaldate.go deleted file mode 100644 index 83042212a..000000000 --- a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopiclocaldate.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbulkshifttradestateupdatenotificationtopiclocaldate -type Wfmbulkshifttradestateupdatenotificationtopiclocaldate struct { - // Year - Year *int32 `json:"year,omitempty"` - - - // Month - Month *int32 `json:"month,omitempty"` - - - // Day - Day *int32 `json:"day,omitempty"` - - - // LeapYear - LeapYear *bool `json:"leapYear,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbulkshifttradestateupdatenotificationtopiclocaldate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicuserreference.go b/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicuserreference.go deleted file mode 100644 index 780bc8a08..000000000 --- a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbulkshifttradestateupdatenotificationtopicuserreference -type Wfmbulkshifttradestateupdatenotificationtopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbulkshifttradestateupdatenotificationtopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata.go b/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata.go deleted file mode 100644 index 016cf9c6a..000000000 --- a/build/platformclientv2/wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata -type Wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata struct { - // Version - Version *int32 `json:"version,omitempty"` - - - // ModifiedBy - ModifiedBy *Wfmbulkshifttradestateupdatenotificationtopicuserreference `json:"modifiedBy,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbulkshifttradestateupdatenotificationtopicwfmversionedentitymetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuschedulequeryresulttopicbuschedulesearchresultnotification.go b/build/platformclientv2/wfmbuschedulequeryresulttopicbuschedulesearchresultnotification.go deleted file mode 100644 index 7054e89d1..000000000 --- a/build/platformclientv2/wfmbuschedulequeryresulttopicbuschedulesearchresultnotification.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuschedulequeryresulttopicbuschedulesearchresultnotification -type Wfmbuschedulequeryresulttopicbuschedulesearchresultnotification struct { - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // BusinessUnitId - BusinessUnitId *string `json:"businessUnitId,omitempty"` - - - // DownloadUrl - DownloadUrl *string `json:"downloadUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuschedulequeryresulttopicbuschedulesearchresultnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduleruntopicbuschedulereference.go b/build/platformclientv2/wfmbuscheduleruntopicbuschedulereference.go deleted file mode 100644 index aca3a48d3..000000000 --- a/build/platformclientv2/wfmbuscheduleruntopicbuschedulereference.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduleruntopicbuschedulereference -type Wfmbuscheduleruntopicbuschedulereference struct { - // Id - Id *string `json:"id,omitempty"` - - - // WeekDate - WeekDate *Wfmbuscheduleruntopiclocaldate `json:"weekDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduleruntopicbuschedulereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduleruntopicbuschedulerun.go b/build/platformclientv2/wfmbuscheduleruntopicbuschedulerun.go deleted file mode 100644 index b4fd75fd9..000000000 --- a/build/platformclientv2/wfmbuscheduleruntopicbuschedulerun.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduleruntopicbuschedulerun -type Wfmbuscheduleruntopicbuschedulerun struct { - // Id - Id *string `json:"id,omitempty"` - - - // PercentComplete - PercentComplete *float32 `json:"percentComplete,omitempty"` - - - // IntradayRescheduling - IntradayRescheduling *bool `json:"intradayRescheduling,omitempty"` - - - // State - State *string `json:"state,omitempty"` - - - // WeekCount - WeekCount *int32 `json:"weekCount,omitempty"` - - - // Schedule - Schedule *Wfmbuscheduleruntopicbuschedulereference `json:"schedule,omitempty"` - - - // SchedulingCanceledBy - SchedulingCanceledBy *Wfmbuscheduleruntopicuserreference `json:"schedulingCanceledBy,omitempty"` - - - // SchedulingCompletedTime - SchedulingCompletedTime *string `json:"schedulingCompletedTime,omitempty"` - - - // MessageCount - MessageCount *int32 `json:"messageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduleruntopicbuschedulerun) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduleruntopicbuschedulingrunprogressnotification.go b/build/platformclientv2/wfmbuscheduleruntopicbuschedulingrunprogressnotification.go deleted file mode 100644 index ad70eb292..000000000 --- a/build/platformclientv2/wfmbuscheduleruntopicbuschedulingrunprogressnotification.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduleruntopicbuschedulingrunprogressnotification -type Wfmbuscheduleruntopicbuschedulingrunprogressnotification struct { - // Status - Status *string `json:"status,omitempty"` - - - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // Result - Result *Wfmbuscheduleruntopicbuschedulerun `json:"result,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduleruntopicbuschedulingrunprogressnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduleruntopiclocaldate.go b/build/platformclientv2/wfmbuscheduleruntopiclocaldate.go deleted file mode 100644 index 9f6464d1e..000000000 --- a/build/platformclientv2/wfmbuscheduleruntopiclocaldate.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduleruntopiclocaldate -type Wfmbuscheduleruntopiclocaldate struct { - // Year - Year *int32 `json:"year,omitempty"` - - - // Month - Month *int32 `json:"month,omitempty"` - - - // Day - Day *int32 `json:"day,omitempty"` - - - // LeapYear - LeapYear *bool `json:"leapYear,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduleruntopiclocaldate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduleruntopicuserreference.go b/build/platformclientv2/wfmbuscheduleruntopicuserreference.go deleted file mode 100644 index 495eb2709..000000000 --- a/build/platformclientv2/wfmbuscheduleruntopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduleruntopicuserreference -type Wfmbuscheduleruntopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduleruntopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuschedulesearchresulttopicbuschedulesearchresultnotification.go b/build/platformclientv2/wfmbuschedulesearchresulttopicbuschedulesearchresultnotification.go deleted file mode 100644 index a9d57ed28..000000000 --- a/build/platformclientv2/wfmbuschedulesearchresulttopicbuschedulesearchresultnotification.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuschedulesearchresulttopicbuschedulesearchresultnotification -type Wfmbuschedulesearchresulttopicbuschedulesearchresultnotification struct { - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // BusinessUnitId - BusinessUnitId *string `json:"businessUnitId,omitempty"` - - - // DownloadUrl - DownloadUrl *string `json:"downloadUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuschedulesearchresulttopicbuschedulesearchresultnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicbumanagementunitschedulesummary.go b/build/platformclientv2/wfmbuscheduletopicbumanagementunitschedulesummary.go deleted file mode 100644 index badd070e1..000000000 --- a/build/platformclientv2/wfmbuscheduletopicbumanagementunitschedulesummary.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmbuscheduletopicbumanagementunitschedulesummary -type Wfmbuscheduletopicbumanagementunitschedulesummary struct { - // ManagementUnit - ManagementUnit *Wfmbuscheduletopicmanagementunit `json:"managementUnit,omitempty"` - - - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - - - // Agents - Agents *[]Wfmbuscheduletopicuserreference `json:"agents,omitempty"` - - - // AgentCount - AgentCount *int32 `json:"agentCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicbumanagementunitschedulesummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicbuschedulegenerationresultsummary.go b/build/platformclientv2/wfmbuscheduletopicbuschedulegenerationresultsummary.go deleted file mode 100644 index d4a58202c..000000000 --- a/build/platformclientv2/wfmbuscheduletopicbuschedulegenerationresultsummary.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopicbuschedulegenerationresultsummary -type Wfmbuscheduletopicbuschedulegenerationresultsummary struct { - // Failed - Failed *bool `json:"failed,omitempty"` - - - // RunId - RunId *string `json:"runId,omitempty"` - - - // MessageCount - MessageCount *int32 `json:"messageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicbuschedulegenerationresultsummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicbuschedulemetadata.go b/build/platformclientv2/wfmbuscheduletopicbuschedulemetadata.go deleted file mode 100644 index 0a27d847c..000000000 --- a/build/platformclientv2/wfmbuscheduletopicbuschedulemetadata.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopicbuschedulemetadata -type Wfmbuscheduletopicbuschedulemetadata struct { - // Id - Id *string `json:"id,omitempty"` - - - // WeekDate - WeekDate *Wfmbuscheduletopiclocaldate `json:"weekDate,omitempty"` - - - // WeekCount - WeekCount *int32 `json:"weekCount,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // Published - Published *bool `json:"published,omitempty"` - - - // ShortTermForecast - ShortTermForecast *Wfmbuscheduletopicbushorttermforecastreference `json:"shortTermForecast,omitempty"` - - - // ManagementUnits - ManagementUnits *[]Wfmbuscheduletopicbumanagementunitschedulesummary `json:"managementUnits,omitempty"` - - - // GenerationResults - GenerationResults *Wfmbuscheduletopicbuschedulegenerationresultsummary `json:"generationResults,omitempty"` - - - // Metadata - Metadata *Wfmbuscheduletopicwfmversionedentitymetadata `json:"metadata,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicbuschedulemetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicbuschedulenotification.go b/build/platformclientv2/wfmbuscheduletopicbuschedulenotification.go deleted file mode 100644 index fe33db9d5..000000000 --- a/build/platformclientv2/wfmbuscheduletopicbuschedulenotification.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopicbuschedulenotification -type Wfmbuscheduletopicbuschedulenotification struct { - // Status - Status *string `json:"status,omitempty"` - - - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // EventType - EventType *string `json:"eventType,omitempty"` - - - // Result - Result *Wfmbuscheduletopicbuschedulemetadata `json:"result,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicbuschedulenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicbushorttermforecastreference.go b/build/platformclientv2/wfmbuscheduletopicbushorttermforecastreference.go deleted file mode 100644 index b7eebc4ed..000000000 --- a/build/platformclientv2/wfmbuscheduletopicbushorttermforecastreference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopicbushorttermforecastreference -type Wfmbuscheduletopicbushorttermforecastreference struct { - // Id - Id *string `json:"id,omitempty"` - - - // WeekDate - WeekDate *string `json:"weekDate,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicbushorttermforecastreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopiclocaldate.go b/build/platformclientv2/wfmbuscheduletopiclocaldate.go deleted file mode 100644 index f26badc6a..000000000 --- a/build/platformclientv2/wfmbuscheduletopiclocaldate.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopiclocaldate -type Wfmbuscheduletopiclocaldate struct { - // Year - Year *int32 `json:"year,omitempty"` - - - // Month - Month *int32 `json:"month,omitempty"` - - - // Day - Day *int32 `json:"day,omitempty"` - - - // LeapYear - LeapYear *bool `json:"leapYear,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopiclocaldate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicmanagementunit.go b/build/platformclientv2/wfmbuscheduletopicmanagementunit.go deleted file mode 100644 index af028a2eb..000000000 --- a/build/platformclientv2/wfmbuscheduletopicmanagementunit.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopicmanagementunit -type Wfmbuscheduletopicmanagementunit struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicmanagementunit) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicuserreference.go b/build/platformclientv2/wfmbuscheduletopicuserreference.go deleted file mode 100644 index 4dbdce04e..000000000 --- a/build/platformclientv2/wfmbuscheduletopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmbuscheduletopicuserreference -type Wfmbuscheduletopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmbuscheduletopicwfmversionedentitymetadata.go b/build/platformclientv2/wfmbuscheduletopicwfmversionedentitymetadata.go deleted file mode 100644 index 38c0839e3..000000000 --- a/build/platformclientv2/wfmbuscheduletopicwfmversionedentitymetadata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmbuscheduletopicwfmversionedentitymetadata -type Wfmbuscheduletopicwfmversionedentitymetadata struct { - // Version - Version *int32 `json:"version,omitempty"` - - - // ModifiedBy - ModifiedBy *Wfmbuscheduletopicuserreference `json:"modifiedBy,omitempty"` - - - // DateModified - DateModified *time.Time `json:"dateModified,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmbuscheduletopicwfmversionedentitymetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmforecastmodification.go b/build/platformclientv2/wfmforecastmodification.go deleted file mode 100644 index 1fc7220d0..000000000 --- a/build/platformclientv2/wfmforecastmodification.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmforecastmodification - A modification to a short term forecast -type Wfmforecastmodification struct { - // VarType - The type of the modification - VarType *string `json:"type,omitempty"` - - - // StartIntervalIndex - The number of 15 minute intervals past referenceStartDate representing the first interval to which to apply this modification. Must be null if values is populated - StartIntervalIndex *int32 `json:"startIntervalIndex,omitempty"` - - - // EndIntervalIndex - The number of 15 minute intervals past referenceStartDate representing the last interval to which to apply this modification. Must be null if values is populated - EndIntervalIndex *int32 `json:"endIntervalIndex,omitempty"` - - - // Metric - The metric to which this modification applies - Metric *string `json:"metric,omitempty"` - - - // Value - The value of the modification. Must be null if \"values\" is populated - Value *float64 `json:"value,omitempty"` - - - // Values - The list of values to update. Only applicable for grid-type modifications. Must be null if \"value\" is populated - Values *[]Wfmforecastmodificationintervaloffsetvalue `json:"values,omitempty"` - - - // Enabled - Whether the modification is enabled for the forecast - Enabled *bool `json:"enabled,omitempty"` - - - // Attributes - The attributes defining how this modification applies to the forecast - Attributes *Wfmforecastmodificationattributes `json:"attributes,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmforecastmodification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmforecastmodificationattributes.go b/build/platformclientv2/wfmforecastmodificationattributes.go deleted file mode 100644 index 165c61995..000000000 --- a/build/platformclientv2/wfmforecastmodificationattributes.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmforecastmodificationattributes -type Wfmforecastmodificationattributes struct { - // Queues - The queues to which to apply a modification - Queues *[]Queuereference `json:"queues,omitempty"` - - - // MediaTypes - The media types to which to apply a modification - MediaTypes *[]string `json:"mediaTypes,omitempty"` - - - // Languages - The languages to which to apply a modification - Languages *[]Languagereference `json:"languages,omitempty"` - - - // SkillSets - The skill sets to which to apply a modification - SkillSets *[][]Routingskillreference `json:"skillSets,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmforecastmodificationattributes) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmforecastmodificationintervaloffsetvalue.go b/build/platformclientv2/wfmforecastmodificationintervaloffsetvalue.go deleted file mode 100644 index f4e5025ad..000000000 --- a/build/platformclientv2/wfmforecastmodificationintervaloffsetvalue.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmforecastmodificationintervaloffsetvalue - Override the value of a single interval in a forecast -type Wfmforecastmodificationintervaloffsetvalue struct { - // IntervalIndex - The number of 15 minute intervals past referenceStartDate to which to apply this modification - IntervalIndex *int32 `json:"intervalIndex,omitempty"` - - - // Value - The value to set for the given interval - Value *float64 `json:"value,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmforecastmodificationintervaloffsetvalue) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice.go b/build/platformclientv2/wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice.go deleted file mode 100644 index e444eaa89..000000000 --- a/build/platformclientv2/wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice -type Wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice struct { - // Id - Id *string `json:"id,omitempty"` - - - // DownloadUrl - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // DownloadUrls - DownloadUrls *[]string `json:"downloadUrls,omitempty"` - - - // QueryState - QueryState *string `json:"queryState,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmhistoricaladherencecalculationscompletetopicwfmhistoricaladherencecalculationscompletenotice) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmhistoricaladherencequery.go b/build/platformclientv2/wfmhistoricaladherencequery.go deleted file mode 100644 index 757e4b8f1..000000000 --- a/build/platformclientv2/wfmhistoricaladherencequery.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmhistoricaladherencequery - Query to request a historical adherence report from Workforce Management Service -type Wfmhistoricaladherencequery struct { - // StartDate - Beginning of the date range to query in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - End of the date range to query in ISO-8601 format. If it is not set, end date will be set to current time - EndDate *time.Time `json:"endDate,omitempty"` - - - // TimeZone - The time zone to use for returned results in olson format. If it is not set, the management unit time zone will be used to compute adherence - TimeZone *string `json:"timeZone,omitempty"` - - - // UserIds - The userIds to report on. If null or not set, adherence will be computed for all the users in management unit - UserIds *[]string `json:"userIds,omitempty"` - - - // IncludeExceptions - Whether user exceptions should be returned as part of the results - IncludeExceptions *bool `json:"includeExceptions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmhistoricaladherencequery) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmhistoricaladherencequeryforusers.go b/build/platformclientv2/wfmhistoricaladherencequeryforusers.go deleted file mode 100644 index f60edfcc7..000000000 --- a/build/platformclientv2/wfmhistoricaladherencequeryforusers.go +++ /dev/null @@ -1,34 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmhistoricaladherencequeryforusers - Query to request a historical adherence report for users across management units from Workforce Management Service -type Wfmhistoricaladherencequeryforusers struct { - // StartDate - Beginning of the date range to query in ISO-8601 format - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - End of the date range to query in ISO-8601 format. If it is not set, end date will be set to current time - EndDate *time.Time `json:"endDate,omitempty"` - - - // TimeZone - The time zone to use for returned results in olson format - TimeZone *string `json:"timeZone,omitempty"` - - - // UserIds - The userIds to report on - UserIds *[]string `json:"userIds,omitempty"` - - - // IncludeExceptions - Whether user exceptions should be returned as part of the results - IncludeExceptions *bool `json:"includeExceptions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmhistoricaladherencequeryforusers) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmhistoricaladherenceresponse.go b/build/platformclientv2/wfmhistoricaladherenceresponse.go deleted file mode 100644 index 170d58386..000000000 --- a/build/platformclientv2/wfmhistoricaladherenceresponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmhistoricaladherenceresponse - Response for Historical Adherence Query, intended to tell the client what to listen for on a notification topic -type Wfmhistoricaladherenceresponse struct { - // Id - The query ID to listen for - Id *string `json:"id,omitempty"` - - - // DownloadUrl - Deprecated. Use downloadUrls instead. - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // DownloadUrls - The uri list to GET the results of the Historical Adherence query. For notification purposes only - DownloadUrls *[]string `json:"downloadUrls,omitempty"` - - - // QueryState - The state of the adherence query - QueryState *string `json:"queryState,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmhistoricaladherenceresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradaydatagroup.go b/build/platformclientv2/wfmintradaydataupdatetopicintradaydatagroup.go deleted file mode 100644 index 9b2c44c86..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradaydatagroup.go +++ /dev/null @@ -1,41 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradaydatagroup -type Wfmintradaydataupdatetopicintradaydatagroup struct { - // MediaType - MediaType *string `json:"mediaType,omitempty"` - - - // ForecastDataPerInterval - ForecastDataPerInterval *[]Wfmintradaydataupdatetopicintradayforecastdata `json:"forecastDataPerInterval,omitempty"` - - - // ScheduleDataPerInterval - ScheduleDataPerInterval *[]Wfmintradaydataupdatetopicintradayscheduledata `json:"scheduleDataPerInterval,omitempty"` - - - // HistoricalAgentDataPerInterval - HistoricalAgentDataPerInterval *[]Wfmintradaydataupdatetopicintradayhistoricalagentdata `json:"historicalAgentDataPerInterval,omitempty"` - - - // HistoricalQueueDataPerInterval - HistoricalQueueDataPerInterval *[]Wfmintradaydataupdatetopicintradayhistoricalqueuedata `json:"historicalQueueDataPerInterval,omitempty"` - - - // PerformancePredictionAgentDataPerInterval - PerformancePredictionAgentDataPerInterval *[]Wfmintradaydataupdatetopicintradayperformancepredictionagentdata `json:"performancePredictionAgentDataPerInterval,omitempty"` - - - // PerformancePredictionQueueDataPerInterval - PerformancePredictionQueueDataPerInterval *[]Wfmintradaydataupdatetopicintradayperformancepredictionqueuedata `json:"performancePredictionQueueDataPerInterval,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradaydatagroup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradaydataupdate.go b/build/platformclientv2/wfmintradaydataupdatetopicintradaydataupdate.go deleted file mode 100644 index eb88feae7..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradaydataupdate.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradaydataupdate -type Wfmintradaydataupdatetopicintradaydataupdate struct { - // StartDate - StartDate *time.Time `json:"startDate,omitempty"` - - - // EndDate - EndDate *time.Time `json:"endDate,omitempty"` - - - // IntervalLengthMinutes - IntervalLengthMinutes *int32 `json:"intervalLengthMinutes,omitempty"` - - - // NumberOfIntervals - NumberOfIntervals *int32 `json:"numberOfIntervals,omitempty"` - - - // Metrics - Metrics *[]Wfmintradaydataupdatetopicintradaymetric `json:"metrics,omitempty"` - - - // QueueIds - QueueIds *[]string `json:"queueIds,omitempty"` - - - // IntradayDataGroupings - IntradayDataGroupings *[]Wfmintradaydataupdatetopicintradaydatagroup `json:"intradayDataGroupings,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradaydataupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradayforecastdata.go b/build/platformclientv2/wfmintradaydataupdatetopicintradayforecastdata.go deleted file mode 100644 index 418d07c88..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradayforecastdata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradayforecastdata -type Wfmintradaydataupdatetopicintradayforecastdata struct { - // Offered - Offered *float32 `json:"offered,omitempty"` - - - // AverageTalkTimeSeconds - AverageTalkTimeSeconds *float32 `json:"averageTalkTimeSeconds,omitempty"` - - - // AverageAfterCallWorkSeconds - AverageAfterCallWorkSeconds *float32 `json:"averageAfterCallWorkSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradayforecastdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalagentdata.go b/build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalagentdata.go deleted file mode 100644 index 0a77c529e..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalagentdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradayhistoricalagentdata -type Wfmintradaydataupdatetopicintradayhistoricalagentdata struct { - // OnQueueTimeSeconds - OnQueueTimeSeconds *float32 `json:"onQueueTimeSeconds,omitempty"` - - - // InteractingTimeSeconds - InteractingTimeSeconds *float32 `json:"interactingTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradayhistoricalagentdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalqueuedata.go b/build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalqueuedata.go deleted file mode 100644 index 50e7539a2..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradayhistoricalqueuedata.go +++ /dev/null @@ -1,45 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradayhistoricalqueuedata -type Wfmintradaydataupdatetopicintradayhistoricalqueuedata struct { - // Offered - Offered *int32 `json:"offered,omitempty"` - - - // Completed - Completed *int32 `json:"completed,omitempty"` - - - // Answered - Answered *int32 `json:"answered,omitempty"` - - - // Abandoned - Abandoned *int32 `json:"abandoned,omitempty"` - - - // AverageTalkTimeSeconds - AverageTalkTimeSeconds *float32 `json:"averageTalkTimeSeconds,omitempty"` - - - // AverageAfterCallWorkSeconds - AverageAfterCallWorkSeconds *float32 `json:"averageAfterCallWorkSeconds,omitempty"` - - - // ServiceLevelPercent - ServiceLevelPercent *float32 `json:"serviceLevelPercent,omitempty"` - - - // AverageSpeedOfAnswerSeconds - AverageSpeedOfAnswerSeconds *float32 `json:"averageSpeedOfAnswerSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradayhistoricalqueuedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradaymetric.go b/build/platformclientv2/wfmintradaydataupdatetopicintradaymetric.go deleted file mode 100644 index 88a714adf..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradaymetric.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradaymetric -type Wfmintradaydataupdatetopicintradaymetric struct { - // Category - Category *string `json:"category,omitempty"` - - - // Version - Version *string `json:"version,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradaymetric) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionagentdata.go b/build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionagentdata.go deleted file mode 100644 index f73d59f37..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionagentdata.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradayperformancepredictionagentdata -type Wfmintradaydataupdatetopicintradayperformancepredictionagentdata struct { - // InteractingTimeSeconds - InteractingTimeSeconds *float32 `json:"interactingTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradayperformancepredictionagentdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionqueuedata.go b/build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionqueuedata.go deleted file mode 100644 index eee78c1cb..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradayperformancepredictionqueuedata.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradayperformancepredictionqueuedata -type Wfmintradaydataupdatetopicintradayperformancepredictionqueuedata struct { - // ServiceLevelPercent - ServiceLevelPercent *float32 `json:"serviceLevelPercent,omitempty"` - - - // AverageSpeedOfAnswerSeconds - AverageSpeedOfAnswerSeconds *float32 `json:"averageSpeedOfAnswerSeconds,omitempty"` - - - // NumberOfInteractions - NumberOfInteractions *float32 `json:"numberOfInteractions,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradayperformancepredictionqueuedata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradaydataupdatetopicintradayscheduledata.go b/build/platformclientv2/wfmintradaydataupdatetopicintradayscheduledata.go deleted file mode 100644 index 6f2843b33..000000000 --- a/build/platformclientv2/wfmintradaydataupdatetopicintradayscheduledata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradaydataupdatetopicintradayscheduledata -type Wfmintradaydataupdatetopicintradayscheduledata struct { - // OnQueueTimeSeconds - OnQueueTimeSeconds *int32 `json:"onQueueTimeSeconds,omitempty"` - - - // ScheduledTimeSeconds - ScheduledTimeSeconds *int32 `json:"scheduledTimeSeconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradaydataupdatetopicintradayscheduledata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmintradayqueuelisting.go b/build/platformclientv2/wfmintradayqueuelisting.go deleted file mode 100644 index 28472d4d2..000000000 --- a/build/platformclientv2/wfmintradayqueuelisting.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmintradayqueuelisting - A list of IntradayQueue objects -type Wfmintradayqueuelisting struct { - // Entities - Entities *[]Intradayqueue `json:"entities,omitempty"` - - - // NoDataReason - NoDataReason *string `json:"noDataReason,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmintradayqueuelisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmmoveagentscompletetopicmanagementunit.go b/build/platformclientv2/wfmmoveagentscompletetopicmanagementunit.go deleted file mode 100644 index 229bcdf1f..000000000 --- a/build/platformclientv2/wfmmoveagentscompletetopicmanagementunit.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmmoveagentscompletetopicmanagementunit -type Wfmmoveagentscompletetopicmanagementunit struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmmoveagentscompletetopicmanagementunit) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmmoveagentscompletetopicuserreference.go b/build/platformclientv2/wfmmoveagentscompletetopicuserreference.go deleted file mode 100644 index b5fd9a166..000000000 --- a/build/platformclientv2/wfmmoveagentscompletetopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmmoveagentscompletetopicuserreference -type Wfmmoveagentscompletetopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmmoveagentscompletetopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentdata.go b/build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentdata.go deleted file mode 100644 index 1b9d77a5e..000000000 --- a/build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentdata.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmmoveagentscompletetopicwfmmoveagentdata -type Wfmmoveagentscompletetopicwfmmoveagentdata struct { - // User - User *Wfmmoveagentscompletetopicuserreference `json:"user,omitempty"` - - - // Result - Result *string `json:"result,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmmoveagentscompletetopicwfmmoveagentdata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentscomplete.go b/build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentscomplete.go deleted file mode 100644 index 6bee5e94d..000000000 --- a/build/platformclientv2/wfmmoveagentscompletetopicwfmmoveagentscomplete.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmmoveagentscompletetopicwfmmoveagentscomplete -type Wfmmoveagentscompletetopicwfmmoveagentscomplete struct { - // RequestingUser - RequestingUser *Wfmmoveagentscompletetopicuserreference `json:"requestingUser,omitempty"` - - - // DestinationManagementUnit - DestinationManagementUnit *Wfmmoveagentscompletetopicmanagementunit `json:"destinationManagementUnit,omitempty"` - - - // Results - Results *[]Wfmmoveagentscompletetopicwfmmoveagentdata `json:"results,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmmoveagentscompletetopicwfmmoveagentscomplete) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmmovemanagementunittopicbusinessunit.go b/build/platformclientv2/wfmmovemanagementunittopicbusinessunit.go deleted file mode 100644 index 8ccb9b77a..000000000 --- a/build/platformclientv2/wfmmovemanagementunittopicbusinessunit.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmmovemanagementunittopicbusinessunit -type Wfmmovemanagementunittopicbusinessunit struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmmovemanagementunittopicbusinessunit) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmmovemanagementunittopicmovemanagementunitnotification.go b/build/platformclientv2/wfmmovemanagementunittopicmovemanagementunitnotification.go deleted file mode 100644 index 5e74ae51b..000000000 --- a/build/platformclientv2/wfmmovemanagementunittopicmovemanagementunitnotification.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmmovemanagementunittopicmovemanagementunitnotification -type Wfmmovemanagementunittopicmovemanagementunitnotification struct { - // BusinessUnit - BusinessUnit *Wfmmovemanagementunittopicbusinessunit `json:"businessUnit,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmmovemanagementunittopicmovemanagementunitnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmscheduletopicwfmschedulenotification.go b/build/platformclientv2/wfmscheduletopicwfmschedulenotification.go deleted file mode 100644 index 37245c6bf..000000000 --- a/build/platformclientv2/wfmscheduletopicwfmschedulenotification.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmscheduletopicwfmschedulenotification -type Wfmscheduletopicwfmschedulenotification struct { - // Status - Status *string `json:"status,omitempty"` - - - // OperationId - OperationId *string `json:"operationId,omitempty"` - - - // DownloadUrl - DownloadUrl *string `json:"downloadUrl,omitempty"` - - - // PercentComplete - PercentComplete *int32 `json:"percentComplete,omitempty"` - - - // EventType - EventType *string `json:"eventType,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmscheduletopicwfmschedulenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmservicelevel.go b/build/platformclientv2/wfmservicelevel.go deleted file mode 100644 index 6f69888f4..000000000 --- a/build/platformclientv2/wfmservicelevel.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmservicelevel - Service goal service level configuration -type Wfmservicelevel struct { - // Include - Whether to include service level targets in the associated configuration - Include *bool `json:"include,omitempty"` - - - // Percent - Service level target percent answered. Required if include == true - Percent *int32 `json:"percent,omitempty"` - - - // Seconds - Service level target answer time. Required if include == true - Seconds *int32 `json:"seconds,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmservicelevel) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmtimeoffrequestupdatetopictimeoffrequestupdate.go b/build/platformclientv2/wfmtimeoffrequestupdatetopictimeoffrequestupdate.go deleted file mode 100644 index 44353000e..000000000 --- a/build/platformclientv2/wfmtimeoffrequestupdatetopictimeoffrequestupdate.go +++ /dev/null @@ -1,77 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmtimeoffrequestupdatetopictimeoffrequestupdate -type Wfmtimeoffrequestupdatetopictimeoffrequestupdate struct { - // Id - Id *string `json:"id,omitempty"` - - - // User - User *Wfmtimeoffrequestupdatetopicuserreference `json:"user,omitempty"` - - - // IsFullDayRequest - IsFullDayRequest *bool `json:"isFullDayRequest,omitempty"` - - - // MarkedAsRead - MarkedAsRead *bool `json:"markedAsRead,omitempty"` - - - // ActivityCodeId - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // PartialDayStartDateTimes - PartialDayStartDateTimes *[]string `json:"partialDayStartDateTimes,omitempty"` - - - // FullDayManagementUnitDates - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - - - // DailyDurationMinutes - DailyDurationMinutes *int32 `json:"dailyDurationMinutes,omitempty"` - - - // Notes - Notes *string `json:"notes,omitempty"` - - - // ReviewedDate - ReviewedDate *string `json:"reviewedDate,omitempty"` - - - // ReviewedBy - ReviewedBy *string `json:"reviewedBy,omitempty"` - - - // SubmittedDate - SubmittedDate *string `json:"submittedDate,omitempty"` - - - // SubmittedBy - SubmittedBy *string `json:"submittedBy,omitempty"` - - - // ModifiedDate - ModifiedDate *string `json:"modifiedDate,omitempty"` - - - // ModifiedBy - ModifiedBy *string `json:"modifiedBy,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmtimeoffrequestupdatetopictimeoffrequestupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmtimeoffrequestupdatetopicuserreference.go b/build/platformclientv2/wfmtimeoffrequestupdatetopicuserreference.go deleted file mode 100644 index aae040004..000000000 --- a/build/platformclientv2/wfmtimeoffrequestupdatetopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmtimeoffrequestupdatetopicuserreference -type Wfmtimeoffrequestupdatetopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmtimeoffrequestupdatetopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmtimezone.go b/build/platformclientv2/wfmtimezone.go deleted file mode 100644 index dd638c5d1..000000000 --- a/build/platformclientv2/wfmtimezone.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmtimezone - Workforce management time zone -type Wfmtimezone struct { - // Id - The Olson format time zone ID (see https://en.wikipedia.org/wiki/Tz_database) - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmtimezone) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmupdateagentdetailstopicwfmupdateagentdetailscomplete.go b/build/platformclientv2/wfmupdateagentdetailstopicwfmupdateagentdetailscomplete.go deleted file mode 100644 index 7d46e3e0b..000000000 --- a/build/platformclientv2/wfmupdateagentdetailstopicwfmupdateagentdetailscomplete.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmupdateagentdetailstopicwfmupdateagentdetailscomplete -type Wfmupdateagentdetailstopicwfmupdateagentdetailscomplete struct { - // Status - Status *string `json:"status,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmupdateagentdetailstopicwfmupdateagentdetailscomplete) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserentitylisting.go b/build/platformclientv2/wfmuserentitylisting.go deleted file mode 100644 index 9e45bdd5e..000000000 --- a/build/platformclientv2/wfmuserentitylisting.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmuserentitylisting -type Wfmuserentitylisting struct { - // Entities - Entities *[]User `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmusernotification.go b/build/platformclientv2/wfmusernotification.go deleted file mode 100644 index 46c520b99..000000000 --- a/build/platformclientv2/wfmusernotification.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmusernotification -type Wfmusernotification struct { - // Id - The immutable globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // MutableGroupId - The group ID of the notification (mutable, may change on update) - MutableGroupId *string `json:"mutableGroupId,omitempty"` - - - // Timestamp - The timestamp for this notification. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // VarType - The type of this notification - VarType *string `json:"type,omitempty"` - - - // ShiftTrade - A shift trade notification. Only set if type == ShiftTrade - ShiftTrade *Shifttradenotification `json:"shiftTrade,omitempty"` - - - // TimeOffRequest - A time off request notification. Only set if type == TimeOffRequest - TimeOffRequest *Timeoffrequestnotification `json:"timeOffRequest,omitempty"` - - - // MarkedAsRead - Whether this notification has been marked \"read\" - MarkedAsRead *bool `json:"markedAsRead,omitempty"` - - - // AgentNotification - Whether this notification is for an agent - AgentNotification *bool `json:"agentNotification,omitempty"` - - - // OtherNotificationIdsInGroup - Other notification IDs in group. This field is only populated in real-time notifications - OtherNotificationIdsInGroup *[]string `json:"otherNotificationIdsInGroup,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmusernotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmusernotificationtopicshifttradenotification.go b/build/platformclientv2/wfmusernotificationtopicshifttradenotification.go deleted file mode 100644 index 0de4f342f..000000000 --- a/build/platformclientv2/wfmusernotificationtopicshifttradenotification.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmusernotificationtopicshifttradenotification -type Wfmusernotificationtopicshifttradenotification struct { - // WeekDate - WeekDate *string `json:"weekDate,omitempty"` - - - // TradeId - TradeId *string `json:"tradeId,omitempty"` - - - // OneSided - OneSided *bool `json:"oneSided,omitempty"` - - - // NewState - NewState *string `json:"newState,omitempty"` - - - // InitiatingUser - InitiatingUser *Wfmusernotificationtopicuserreference `json:"initiatingUser,omitempty"` - - - // InitiatingShiftDate - InitiatingShiftDate *time.Time `json:"initiatingShiftDate,omitempty"` - - - // ReceivingUser - ReceivingUser *Wfmusernotificationtopicuserreference `json:"receivingUser,omitempty"` - - - // ReceivingShiftDate - ReceivingShiftDate *time.Time `json:"receivingShiftDate,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmusernotificationtopicshifttradenotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmusernotificationtopictimeoffrequestnotification.go b/build/platformclientv2/wfmusernotificationtopictimeoffrequestnotification.go deleted file mode 100644 index 74a9278f4..000000000 --- a/build/platformclientv2/wfmusernotificationtopictimeoffrequestnotification.go +++ /dev/null @@ -1,38 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmusernotificationtopictimeoffrequestnotification -type Wfmusernotificationtopictimeoffrequestnotification struct { - // TimeOffRequestId - TimeOffRequestId *string `json:"timeOffRequestId,omitempty"` - - - // User - User *Wfmusernotificationtopicuserreference `json:"user,omitempty"` - - - // IsFullDayRequest - IsFullDayRequest *bool `json:"isFullDayRequest,omitempty"` - - - // Status - Status *string `json:"status,omitempty"` - - - // PartialDayStartDateTimes - PartialDayStartDateTimes *[]time.Time `json:"partialDayStartDateTimes,omitempty"` - - - // FullDayManagementUnitDates - FullDayManagementUnitDates *[]string `json:"fullDayManagementUnitDates,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmusernotificationtopictimeoffrequestnotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmusernotificationtopicuserreference.go b/build/platformclientv2/wfmusernotificationtopicuserreference.go deleted file mode 100644 index 7bc8d9d9d..000000000 --- a/build/platformclientv2/wfmusernotificationtopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmusernotificationtopicuserreference -type Wfmusernotificationtopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmusernotificationtopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmusernotificationtopicwfmusernotification.go b/build/platformclientv2/wfmusernotificationtopicwfmusernotification.go deleted file mode 100644 index 44c283ac9..000000000 --- a/build/platformclientv2/wfmusernotificationtopicwfmusernotification.go +++ /dev/null @@ -1,50 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmusernotificationtopicwfmusernotification -type Wfmusernotificationtopicwfmusernotification struct { - // Id - Id *string `json:"id,omitempty"` - - - // MutableGroupId - MutableGroupId *string `json:"mutableGroupId,omitempty"` - - - // Timestamp - Timestamp *time.Time `json:"timestamp,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // ShiftTrade - ShiftTrade *Wfmusernotificationtopicshifttradenotification `json:"shiftTrade,omitempty"` - - - // TimeOffRequest - TimeOffRequest *Wfmusernotificationtopictimeoffrequestnotification `json:"timeOffRequest,omitempty"` - - - // AgentNotification - AgentNotification *bool `json:"agentNotification,omitempty"` - - - // OtherNotificationIdsInGroup - OtherNotificationIdsInGroup *[]string `json:"otherNotificationIdsInGroup,omitempty"` - - - // MarkedAsRead - MarkedAsRead *bool `json:"markedAsRead,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmusernotificationtopicwfmusernotification) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicqueuereference.go b/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicqueuereference.go deleted file mode 100644 index 4c820e931..000000000 --- a/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicqueuereference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmuserscheduleadherenceupdatedmutopicqueuereference -type Wfmuserscheduleadherenceupdatedmutopicqueuereference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserscheduleadherenceupdatedmutopicqueuereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserreference.go b/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserreference.go deleted file mode 100644 index b25314bec..000000000 --- a/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmuserscheduleadherenceupdatedmutopicuserreference -type Wfmuserscheduleadherenceupdatedmutopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserscheduleadherenceupdatedmutopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate.go b/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate.go deleted file mode 100644 index ed501a212..000000000 --- a/build/platformclientv2/wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate -type Wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate struct { - // User - User *Wfmuserscheduleadherenceupdatedmutopicuserreference `json:"user,omitempty"` - - - // ManagementUnitId - ManagementUnitId *string `json:"managementUnitId,omitempty"` - - - // ScheduledActivityCategory - ScheduledActivityCategory *string `json:"scheduledActivityCategory,omitempty"` - - - // SystemPresence - SystemPresence *string `json:"systemPresence,omitempty"` - - - // OrganizationSecondaryPresenceId - OrganizationSecondaryPresenceId *string `json:"organizationSecondaryPresenceId,omitempty"` - - - // RoutingStatus - RoutingStatus *string `json:"routingStatus,omitempty"` - - - // ActualActivityCategory - ActualActivityCategory *string `json:"actualActivityCategory,omitempty"` - - - // IsOutOfOffice - IsOutOfOffice *bool `json:"isOutOfOffice,omitempty"` - - - // AdherenceState - AdherenceState *string `json:"adherenceState,omitempty"` - - - // Impact - Impact *string `json:"impact,omitempty"` - - - // AdherenceChangeTime - AdherenceChangeTime *time.Time `json:"adherenceChangeTime,omitempty"` - - - // PresenceUpdateTime - PresenceUpdateTime *time.Time `json:"presenceUpdateTime,omitempty"` - - - // ActiveQueues - ActiveQueues *[]Wfmuserscheduleadherenceupdatedmutopicqueuereference `json:"activeQueues,omitempty"` - - - // ActiveQueuesModifiedTime - ActiveQueuesModifiedTime *time.Time `json:"activeQueuesModifiedTime,omitempty"` - - - // RemovedFromManagementUnit - RemovedFromManagementUnit *bool `json:"removedFromManagementUnit,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserscheduleadherenceupdatedmutopicuserscheduleadherenceupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicqueuereference.go b/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicqueuereference.go deleted file mode 100644 index ac6a5dd0e..000000000 --- a/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicqueuereference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmuserscheduleadherenceupdatedtopicqueuereference -type Wfmuserscheduleadherenceupdatedtopicqueuereference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserscheduleadherenceupdatedtopicqueuereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserreference.go b/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserreference.go deleted file mode 100644 index 3684b3e94..000000000 --- a/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserreference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wfmuserscheduleadherenceupdatedtopicuserreference -type Wfmuserscheduleadherenceupdatedtopicuserreference struct { - // Id - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserscheduleadherenceupdatedtopicuserreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate.go b/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate.go deleted file mode 100644 index 062b60006..000000000 --- a/build/platformclientv2/wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate.go +++ /dev/null @@ -1,74 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate -type Wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate struct { - // User - User *Wfmuserscheduleadherenceupdatedtopicuserreference `json:"user,omitempty"` - - - // ManagementUnitId - ManagementUnitId *string `json:"managementUnitId,omitempty"` - - - // ScheduledActivityCategory - ScheduledActivityCategory *string `json:"scheduledActivityCategory,omitempty"` - - - // SystemPresence - SystemPresence *string `json:"systemPresence,omitempty"` - - - // OrganizationSecondaryPresenceId - OrganizationSecondaryPresenceId *string `json:"organizationSecondaryPresenceId,omitempty"` - - - // RoutingStatus - RoutingStatus *string `json:"routingStatus,omitempty"` - - - // ActualActivityCategory - ActualActivityCategory *string `json:"actualActivityCategory,omitempty"` - - - // IsOutOfOffice - IsOutOfOffice *bool `json:"isOutOfOffice,omitempty"` - - - // AdherenceState - AdherenceState *string `json:"adherenceState,omitempty"` - - - // Impact - Impact *string `json:"impact,omitempty"` - - - // AdherenceChangeTime - AdherenceChangeTime *time.Time `json:"adherenceChangeTime,omitempty"` - - - // PresenceUpdateTime - PresenceUpdateTime *time.Time `json:"presenceUpdateTime,omitempty"` - - - // ActiveQueues - ActiveQueues *[]Wfmuserscheduleadherenceupdatedtopicqueuereference `json:"activeQueues,omitempty"` - - - // ActiveQueuesModifiedTime - ActiveQueuesModifiedTime *time.Time `json:"activeQueuesModifiedTime,omitempty"` - - - // RemovedFromManagementUnit - RemovedFromManagementUnit *bool `json:"removedFromManagementUnit,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmuserscheduleadherenceupdatedtopicuserscheduleadherenceupdate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wfmversionedentitymetadata.go b/build/platformclientv2/wfmversionedentitymetadata.go deleted file mode 100644 index 8173a3e0b..000000000 --- a/build/platformclientv2/wfmversionedentitymetadata.go +++ /dev/null @@ -1,26 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wfmversionedentitymetadata - Metadata to associate with a given entity -type Wfmversionedentitymetadata struct { - // Version - The version of the associated entity. Used to prevent conflicts on concurrent edits - Version *int32 `json:"version,omitempty"` - - - // ModifiedBy - The user who last modified the associated entity - ModifiedBy *Userreference `json:"modifiedBy,omitempty"` - - - // DateModified - The date the associated entity was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wfmversionedentitymetadata) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/whatsappid.go b/build/platformclientv2/whatsappid.go deleted file mode 100644 index 2fa51347d..000000000 --- a/build/platformclientv2/whatsappid.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Whatsappid - User information for a WhatsApp account -type Whatsappid struct { - // PhoneNumber - The phone number associated with this WhatsApp account - PhoneNumber *Phonenumber `json:"phoneNumber,omitempty"` - - - // DisplayName - The displayName of this person's account in WhatsApp - DisplayName *string `json:"displayName,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Whatsappid) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/whatsappintegration.go b/build/platformclientv2/whatsappintegration.go deleted file mode 100644 index 5f044a02a..000000000 --- a/build/platformclientv2/whatsappintegration.go +++ /dev/null @@ -1,66 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Whatsappintegration -type Whatsappintegration struct { - // Id - A unique Integration Id. - Id *string `json:"id,omitempty"` - - - // Name - The name of the WhatsApp integration. - Name *string `json:"name,omitempty"` - - - // PhoneNumber - The phone number associated to the whatsApp integration. - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // Status - The status of the WhatsApp Integration - Status *string `json:"status,omitempty"` - - - // Recipient - The recipient associated to the WhatsApp Integration. This recipient is used to associate a flow to an integration - Recipient *Domainentityref `json:"recipient,omitempty"` - - - // DateCreated - Date this Integration was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date this Integration was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // CreatedBy - User reference that created this Integration - CreatedBy *Domainentityref `json:"createdBy,omitempty"` - - - // ModifiedBy - User reference that last modified this Integration - ModifiedBy *Domainentityref `json:"modifiedBy,omitempty"` - - - // Version - Version number required for updates. - Version *int32 `json:"version,omitempty"` - - - // ActivationStatusCode - The status code of WhatsApp Integration activation process - ActivationStatusCode *string `json:"activationStatusCode,omitempty"` - - - // ActivationErrorInfo - The error information of WhatsApp Integration activation process - ActivationErrorInfo *Errorbody `json:"activationErrorInfo,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Whatsappintegration) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/whatsappintegrationentitylisting.go b/build/platformclientv2/whatsappintegrationentitylisting.go deleted file mode 100644 index d015eabad..000000000 --- a/build/platformclientv2/whatsappintegrationentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Whatsappintegrationentitylisting -type Whatsappintegrationentitylisting struct { - // Entities - Entities *[]Whatsappintegration `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Whatsappintegrationentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/whatsappintegrationrequest.go b/build/platformclientv2/whatsappintegrationrequest.go deleted file mode 100644 index dd7141944..000000000 --- a/build/platformclientv2/whatsappintegrationrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Whatsappintegrationrequest -type Whatsappintegrationrequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The name of the WhatsApp Integration - Name *string `json:"name,omitempty"` - - - // PhoneNumber - The phone number associated to the whatsApp integration - PhoneNumber *string `json:"phoneNumber,omitempty"` - - - // WabaCertificate - The waba(WhatsApp Business Manager) certificate associated to the WhatsApp integration phone number - WabaCertificate *string `json:"wabaCertificate,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Whatsappintegrationrequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/whatsappintegrationupdaterequest.go b/build/platformclientv2/whatsappintegrationupdaterequest.go deleted file mode 100644 index a5764b03d..000000000 --- a/build/platformclientv2/whatsappintegrationupdaterequest.go +++ /dev/null @@ -1,37 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Whatsappintegrationupdaterequest -type Whatsappintegrationupdaterequest struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - WhatsApp Integration name - Name *string `json:"name,omitempty"` - - - // Action - The action used to activate and then confirm a WhatsApp Integration. - Action *string `json:"action,omitempty"` - - - // AuthenticationMethod - The authentication method used to confirm a WhatsApp Integration activation. If action is set to Activate, then authenticationMethod is a required field. - AuthenticationMethod *string `json:"authenticationMethod,omitempty"` - - - // ConfirmationCode - The confirmation code sent by Whatsapp to you during the activation step. If action is set to Confirm, then confirmationCode is a required field. - ConfirmationCode *string `json:"confirmationCode,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Whatsappintegrationupdaterequest) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetclientconfig.go b/build/platformclientv2/widgetclientconfig.go deleted file mode 100644 index 2721a081c..000000000 --- a/build/platformclientv2/widgetclientconfig.go +++ /dev/null @@ -1,29 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetclientconfig -type Widgetclientconfig struct { - // V1 - V1 *Widgetclientconfigv1 `json:"v1,omitempty"` - - - // V2 - V2 *Widgetclientconfigv2 `json:"v2,omitempty"` - - - // V1Http - V1Http *Widgetclientconfigv1http `json:"v1-http,omitempty"` - - - // ThirdParty - ThirdParty *Widgetclientconfigthirdparty `json:"third-party,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Widgetclientconfig) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetclientconfigthirdparty.go b/build/platformclientv2/widgetclientconfigthirdparty.go deleted file mode 100644 index d475ec305..000000000 --- a/build/platformclientv2/widgetclientconfigthirdparty.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetclientconfigthirdparty -type Widgetclientconfigthirdparty struct { } - -// String returns a JSON representation of the model -func (o *Widgetclientconfigthirdparty) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetclientconfigv1.go b/build/platformclientv2/widgetclientconfigv1.go deleted file mode 100644 index c5466cd6f..000000000 --- a/build/platformclientv2/widgetclientconfigv1.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetclientconfigv1 -type Widgetclientconfigv1 struct { - // WebChatSkin - WebChatSkin *string `json:"webChatSkin,omitempty"` - - - // AuthenticationUrl - AuthenticationUrl *string `json:"authenticationUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Widgetclientconfigv1) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetclientconfigv1http.go b/build/platformclientv2/widgetclientconfigv1http.go deleted file mode 100644 index 2a0f00ca7..000000000 --- a/build/platformclientv2/widgetclientconfigv1http.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetclientconfigv1http -type Widgetclientconfigv1http struct { - // WebChatSkin - WebChatSkin *string `json:"webChatSkin,omitempty"` - - - // AuthenticationUrl - AuthenticationUrl *string `json:"authenticationUrl,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Widgetclientconfigv1http) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetclientconfigv2.go b/build/platformclientv2/widgetclientconfigv2.go deleted file mode 100644 index 8b2d15f69..000000000 --- a/build/platformclientv2/widgetclientconfigv2.go +++ /dev/null @@ -1,13 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetclientconfigv2 -type Widgetclientconfigv2 struct { } - -// String returns a JSON representation of the model -func (o *Widgetclientconfigv2) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetdeployment.go b/build/platformclientv2/widgetdeployment.go deleted file mode 100644 index 9ebe61cd9..000000000 --- a/build/platformclientv2/widgetdeployment.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetdeployment -type Widgetdeployment struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Description - A human-readable description of this Deployment. - Description *string `json:"description,omitempty"` - - - // AuthenticationRequired - When true, the customer members starting a chat must be authenticated by supplying their JWT to the create operation. - AuthenticationRequired *bool `json:"authenticationRequired,omitempty"` - - - // Disabled - When true, all create chat operations using this Deployment will be rejected. - Disabled *bool `json:"disabled,omitempty"` - - - // Flow - The URI of the Inbound Chat Flow to run when new chats are initiated under this Deployment. - Flow *Domainentityref `json:"flow,omitempty"` - - - // AllowedDomains - The list of domains that are approved to use this Deployment; the list will be added to CORS headers for ease of web use. - AllowedDomains *[]string `json:"allowedDomains,omitempty"` - - - // ClientType - The type of display widget for which this Deployment is configured, which controls the administrator settings shown. - ClientType *string `json:"clientType,omitempty"` - - - // ClientConfig - The client configuration options that should be made available to the clients of this Deployment. - ClientConfig *Widgetclientconfig `json:"clientConfig,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Widgetdeployment) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetdeploymententitylisting.go b/build/platformclientv2/widgetdeploymententitylisting.go deleted file mode 100644 index 9cf89ba6d..000000000 --- a/build/platformclientv2/widgetdeploymententitylisting.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Widgetdeploymententitylisting -type Widgetdeploymententitylisting struct { - // Total - Total *int64 `json:"total,omitempty"` - - - // Entities - Entities *[]Widgetdeployment `json:"entities,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Widgetdeploymententitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/widgetsapi.go b/build/platformclientv2/widgetsapi.go deleted file mode 100644 index e668da287..000000000 --- a/build/platformclientv2/widgetsapi.go +++ /dev/null @@ -1,378 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// WidgetsApi provides functions for API endpoints -type WidgetsApi struct { - Configuration *Configuration -} - -// NewWidgetsApi creates an API instance using the default configuration -func NewWidgetsApi() *WidgetsApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating WidgetsApi with base path: %s", strings.ToLower(config.BasePath))) - return &WidgetsApi{ - Configuration: config, - } -} - -// NewWidgetsApiWithConfig creates an API instance using the provided configuration -func NewWidgetsApiWithConfig(config *Configuration) *WidgetsApi { - config.Debugf("Creating WidgetsApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &WidgetsApi{ - Configuration: config, - } -} - -// DeleteWidgetsDeployment invokes DELETE /api/v2/widgets/deployments/{deploymentId} -// -// Delete a Widget deployment -// -// -func (a WidgetsApi) DeleteWidgetsDeployment(deploymentId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/widgets/deployments/{deploymentId}" - path = strings.Replace(path, "{deploymentId}", fmt.Sprintf("%v", deploymentId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deploymentId' is set - if &deploymentId == nil { - // - return nil, errors.New("Missing required parameter 'deploymentId' when calling WidgetsApi->DeleteWidgetsDeployment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetWidgetsDeployment invokes GET /api/v2/widgets/deployments/{deploymentId} -// -// Get a Widget deployment -// -// -func (a WidgetsApi) GetWidgetsDeployment(deploymentId string) (*Widgetdeployment, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/widgets/deployments/{deploymentId}" - path = strings.Replace(path, "{deploymentId}", fmt.Sprintf("%v", deploymentId), -1) - defaultReturn := new(Widgetdeployment) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deploymentId' is set - if &deploymentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'deploymentId' when calling WidgetsApi->GetWidgetsDeployment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Widgetdeployment - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWidgetsDeployments invokes GET /api/v2/widgets/deployments -// -// List Widget deployments -// -// -func (a WidgetsApi) GetWidgetsDeployments() (*Widgetdeploymententitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/widgets/deployments" - defaultReturn := new(Widgetdeploymententitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Widgetdeploymententitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWidgetsDeployments invokes POST /api/v2/widgets/deployments -// -// Create Widget deployment -// -// -func (a WidgetsApi) PostWidgetsDeployments(body Widgetdeployment) (*Widgetdeployment, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/widgets/deployments" - defaultReturn := new(Widgetdeployment) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WidgetsApi->PostWidgetsDeployments") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Widgetdeployment - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PutWidgetsDeployment invokes PUT /api/v2/widgets/deployments/{deploymentId} -// -// Update a Widget deployment -// -// -func (a WidgetsApi) PutWidgetsDeployment(deploymentId string, body Widgetdeployment) (*Widgetdeployment, *APIResponse, error) { - var httpMethod = "PUT" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/widgets/deployments/{deploymentId}" - path = strings.Replace(path, "{deploymentId}", fmt.Sprintf("%v", deploymentId), -1) - defaultReturn := new(Widgetdeployment) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'deploymentId' is set - if &deploymentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'deploymentId' when calling WidgetsApi->PutWidgetsDeployment") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WidgetsApi->PutWidgetsDeployment") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Widgetdeployment - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/workforcemanagementapi.go b/build/platformclientv2/workforcemanagementapi.go deleted file mode 100644 index 72a5e7508..000000000 --- a/build/platformclientv2/workforcemanagementapi.go +++ /dev/null @@ -1,5696 +0,0 @@ -package platformclientv2 - -import ( - "strings" - "fmt" - "errors" - "net/url" - "encoding/json" -) - -// WorkforceManagementApi provides functions for API endpoints -type WorkforceManagementApi struct { - Configuration *Configuration -} - -// NewWorkforceManagementApi creates an API instance using the default configuration -func NewWorkforceManagementApi() *WorkforceManagementApi { - config := GetDefaultConfiguration() - config.Debug(fmt.Sprintf("Creating WorkforceManagementApi with base path: %s", strings.ToLower(config.BasePath))) - return &WorkforceManagementApi{ - Configuration: config, - } -} - -// NewWorkforceManagementApiWithConfig creates an API instance using the provided configuration -func NewWorkforceManagementApiWithConfig(config *Configuration) *WorkforceManagementApi { - config.Debugf("Creating WorkforceManagementApi with base path: %s\n", strings.ToLower(config.BasePath)) - return &WorkforceManagementApi{ - Configuration: config, - } -} - -// DeleteWorkforcemanagementManagementunit invokes DELETE /api/v2/workforcemanagement/managementunits/{muId} -// -// Delete management unit -// -// -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunit(muId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunit") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWorkforcemanagementManagementunitActivitycode invokes DELETE /api/v2/workforcemanagement/managementunits/{muId}/activitycodes/{acId} -// -// Deletes an activity code -// -// -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunitActivitycode(muId string, acId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/activitycodes/{acId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - path = strings.Replace(path, "{acId}", fmt.Sprintf("%v", acId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitActivitycode") - } - // verify the required parameter 'acId' is set - if &acId == nil { - // - return nil, errors.New("Missing required parameter 'acId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitActivitycode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWorkforcemanagementManagementunitSchedulingRun invokes DELETE /api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId} -// -// Cancel a schedule run -// -// -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunitSchedulingRun(managementUnitId string, runId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{runId}", fmt.Sprintf("%v", runId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitSchedulingRun") - } - // verify the required parameter 'runId' is set - if &runId == nil { - // - return nil, errors.New("Missing required parameter 'runId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitSchedulingRun") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWorkforcemanagementManagementunitServicegoalgroup invokes DELETE /api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups/{serviceGoalGroupId} -// -// Delete a service goal group -// -// -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunitServicegoalgroup(managementUnitId string, serviceGoalGroupId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups/{serviceGoalGroupId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{serviceGoalGroupId}", fmt.Sprintf("%v", serviceGoalGroupId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitServicegoalgroup") - } - // verify the required parameter 'serviceGoalGroupId' is set - if &serviceGoalGroupId == nil { - // - return nil, errors.New("Missing required parameter 'serviceGoalGroupId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitServicegoalgroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWorkforcemanagementManagementunitWeekSchedule invokes DELETE /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId} -// -// Delete a schedule -// -// -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunitWeekSchedule(managementUnitId string, weekId string, scheduleId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWeekSchedule") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWeekSchedule") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return nil, errors.New("Missing required parameter 'scheduleId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWeekSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWorkforcemanagementManagementunitWeekShorttermforecast invokes DELETE /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId} -// -// Delete a short term forecast -// -// Must not be tied to any schedules -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunitWeekShorttermforecast(managementUnitId string, weekDateId string, forecastId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - path = strings.Replace(path, "{forecastId}", fmt.Sprintf("%v", forecastId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWeekShorttermforecast") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWeekShorttermforecast") - } - // verify the required parameter 'forecastId' is set - if &forecastId == nil { - // - return nil, errors.New("Missing required parameter 'forecastId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWeekShorttermforecast") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// DeleteWorkforcemanagementManagementunitWorkplan invokes DELETE /api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId} -// -// Delete a work plan -// -// -func (a WorkforceManagementApi) DeleteWorkforcemanagementManagementunitWorkplan(managementUnitId string, workPlanId string) (*APIResponse, error) { - var httpMethod = "DELETE" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{workPlanId}", fmt.Sprintf("%v", workPlanId), -1) - if true == false { - return nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWorkplan") - } - // verify the required parameter 'workPlanId' is set - if &workPlanId == nil { - // - return nil, errors.New("Missing required parameter 'workPlanId' when calling WorkforceManagementApi->DeleteWorkforcemanagementManagementunitWorkplan") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } - return response, err -} - -// GetWorkforcemanagementAdherence invokes GET /api/v2/workforcemanagement/adherence -// -// Get a list of UserScheduleAdherence records for the requested users -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementAdherence(userId []string) ([]Userscheduleadherence, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/adherence" - defaultReturn := make([]Userscheduleadherence, 0) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'userId' is set - if &userId == nil { - // true - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling WorkforceManagementApi->GetWorkforcemanagementAdherence") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range userId { - queryParams["userId"] = value - } - } else { - queryParams["userId"] = a.Configuration.APIClient.ParameterToString(userId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload []Userscheduleadherence - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementAdhocmodelingjob invokes GET /api/v2/workforcemanagement/adhocmodelingjobs/{jobId} -// -// Get status of the modeling job -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementAdhocmodelingjob(jobId string) (*Modelingstatusresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/adhocmodelingjobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Modelingstatusresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling WorkforceManagementApi->GetWorkforcemanagementAdhocmodelingjob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Modelingstatusresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunit invokes GET /api/v2/workforcemanagement/managementunits/{muId} -// -// Get management unit -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunit(muId string, expand []string) (*Managementunit, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Managementunit) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunit") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Managementunit - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitActivitycode invokes GET /api/v2/workforcemanagement/managementunits/{muId}/activitycodes/{acId} -// -// Get an activity code -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitActivitycode(muId string, acId string) (*Activitycode, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/activitycodes/{acId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - path = strings.Replace(path, "{acId}", fmt.Sprintf("%v", acId), -1) - defaultReturn := new(Activitycode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitActivitycode") - } - // verify the required parameter 'acId' is set - if &acId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'acId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitActivitycode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Activitycode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitActivitycodes invokes GET /api/v2/workforcemanagement/managementunits/{muId}/activitycodes -// -// Get activity codes -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitActivitycodes(muId string) (*Activitycodecontainer, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/activitycodes" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Activitycodecontainer) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitActivitycodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Activitycodecontainer - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitAgent invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId} -// -// Get data for agent in the management unit -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitAgent(managementUnitId string, agentId string) (*Wfmagent, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{agentId}", fmt.Sprintf("%v", agentId), -1) - defaultReturn := new(Wfmagent) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitAgent") - } - // verify the required parameter 'agentId' is set - if &agentId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'agentId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitAgent") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wfmagent - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitIntradayQueues invokes GET /api/v2/workforcemanagement/managementunits/{muId}/intraday/queues -// -// Get intraday queues for the given date -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitIntradayQueues(muId string, date string) (*Wfmintradayqueuelisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/intraday/queues" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Wfmintradayqueuelisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitIntradayQueues") - } - // verify the required parameter 'date' is set - if &date == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'date' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitIntradayQueues") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["date"] = a.Configuration.APIClient.ParameterToString(date, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wfmintradayqueuelisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitSchedulingRun invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId} -// -// Gets the status for a specific scheduling run -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitSchedulingRun(managementUnitId string, runId string) (*Schedulingrunresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{runId}", fmt.Sprintf("%v", runId), -1) - defaultReturn := new(Schedulingrunresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitSchedulingRun") - } - // verify the required parameter 'runId' is set - if &runId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'runId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitSchedulingRun") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schedulingrunresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitSchedulingRunResult invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId}/result -// -// Gets the result of a specific scheduling run -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitSchedulingRunResult(managementUnitId string, runId string) (*Rescheduleresult, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId}/result" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{runId}", fmt.Sprintf("%v", runId), -1) - defaultReturn := new(Rescheduleresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitSchedulingRunResult") - } - // verify the required parameter 'runId' is set - if &runId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'runId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitSchedulingRunResult") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Rescheduleresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitSchedulingRuns invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs -// -// Get the status of all the ongoing schedule runs -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitSchedulingRuns(managementUnitId string) (*Schedulingrunlistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - defaultReturn := new(Schedulingrunlistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitSchedulingRuns") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schedulingrunlistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitServicegoalgroup invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups/{serviceGoalGroupId} -// -// Get a service goal group -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitServicegoalgroup(managementUnitId string, serviceGoalGroupId string) (*Servicegoalgroup, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups/{serviceGoalGroupId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{serviceGoalGroupId}", fmt.Sprintf("%v", serviceGoalGroupId), -1) - defaultReturn := new(Servicegoalgroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitServicegoalgroup") - } - // verify the required parameter 'serviceGoalGroupId' is set - if &serviceGoalGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'serviceGoalGroupId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitServicegoalgroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Servicegoalgroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitServicegoalgroups invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups -// -// Get service goal groups -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitServicegoalgroups(managementUnitId string) (*Servicegoalgrouplist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - defaultReturn := new(Servicegoalgrouplist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitServicegoalgroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Servicegoalgrouplist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitSettings invokes GET /api/v2/workforcemanagement/managementunits/{muId}/settings -// -// Get the settings for the requested management unit. Deprecated, use the GET management unit route instead -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitSettings(muId string) (*Managementunitsettingsresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/settings" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Managementunitsettingsresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Managementunitsettingsresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitShifttradesMatched invokes GET /api/v2/workforcemanagement/managementunits/{muId}/shifttrades/matched -// -// Gets a summary of all shift trades in the matched state -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitShifttradesMatched(muId string) (*Shifttradematchessummaryresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/shifttrades/matched" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Shifttradematchessummaryresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitShifttradesMatched") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Shifttradematchessummaryresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitShifttradesUsers invokes GET /api/v2/workforcemanagement/managementunits/{muId}/shifttrades/users -// -// Gets list of users available for whom you can send direct shift trade requests -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitShifttradesUsers(muId string) (*Wfmuserentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/shifttrades/users" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Wfmuserentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitShifttradesUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wfmuserentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitUserTimeoffrequest invokes GET /api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests/{timeOffRequestId} -// -// Get a time off request -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitUserTimeoffrequest(muId string, userId string, timeOffRequestId string) (*Timeoffrequestresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests/{timeOffRequestId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{timeOffRequestId}", fmt.Sprintf("%v", timeOffRequestId), -1) - defaultReturn := new(Timeoffrequestresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitUserTimeoffrequest") - } - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitUserTimeoffrequest") - } - // verify the required parameter 'timeOffRequestId' is set - if &timeOffRequestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'timeOffRequestId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitUserTimeoffrequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timeoffrequestresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitUserTimeoffrequests invokes GET /api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests -// -// Get a list of time off requests for a given user -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitUserTimeoffrequests(muId string, userId string, recentlyReviewed bool) (*Timeoffrequestlist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - defaultReturn := new(Timeoffrequestlist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitUserTimeoffrequests") - } - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitUserTimeoffrequests") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["recentlyReviewed"] = a.Configuration.APIClient.ParameterToString(recentlyReviewed, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timeoffrequestlist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitUsers invokes GET /api/v2/workforcemanagement/managementunits/{muId}/users -// -// Get users in the management unit -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitUsers(muId string) (*Wfmuserentitylisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/users" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Wfmuserentitylisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitUsers") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Wfmuserentitylisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWeekSchedule invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId} -// -// Get a week schedule -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWeekSchedule(managementUnitId string, weekId string, scheduleId string, expand string, forceDownloadService bool) (*Weekscheduleresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Weekscheduleresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekSchedule") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekSchedule") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["forceDownloadService"] = a.Configuration.APIClient.ParameterToString(forceDownloadService, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Weekscheduleresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWeekScheduleGenerationresults invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}/generationresults -// -// Get week schedule generation results -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWeekScheduleGenerationresults(managementUnitId string, weekId string, scheduleId string) (*Weekschedulegenerationresult, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}/generationresults" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Weekschedulegenerationresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekScheduleGenerationresults") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekScheduleGenerationresults") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekScheduleGenerationresults") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Weekschedulegenerationresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWeekSchedules invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules -// -// Get the list of schedules in a week in management unit -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWeekSchedules(managementUnitId string, weekId string, includeOnlyPublished bool, earliestWeekDate string, latestWeekDate string) (*Weekschedulelistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - defaultReturn := new(Weekschedulelistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekSchedules") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekSchedules") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["includeOnlyPublished"] = a.Configuration.APIClient.ParameterToString(includeOnlyPublished, collectionFormat) - - - - - collectionFormat = "" - queryParams["earliestWeekDate"] = a.Configuration.APIClient.ParameterToString(earliestWeekDate, collectionFormat) - - - - - collectionFormat = "" - queryParams["latestWeekDate"] = a.Configuration.APIClient.ParameterToString(latestWeekDate, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Weekschedulelistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWeekShorttermforecastFinal invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/final -// -// Get the final result of a short term forecast calculation with modifications applied -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWeekShorttermforecastFinal(managementUnitId string, weekDateId string, forecastId string, forceDownloadService bool) (*Forecastresultresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/final" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - path = strings.Replace(path, "{forecastId}", fmt.Sprintf("%v", forecastId), -1) - defaultReturn := new(Forecastresultresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekShorttermforecastFinal") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekShorttermforecastFinal") - } - // verify the required parameter 'forecastId' is set - if &forecastId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'forecastId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekShorttermforecastFinal") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceDownloadService"] = a.Configuration.APIClient.ParameterToString(forceDownloadService, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Forecastresultresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWeekShorttermforecasts invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts -// -// Get short term forecasts -// -// Use \"recent\" for the `weekDateId` path parameter to fetch all forecasts for +/- 26 weeks from the current date -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWeekShorttermforecasts(managementUnitId string, weekDateId string) (*Shorttermforecastlistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - defaultReturn := new(Shorttermforecastlistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekShorttermforecasts") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWeekShorttermforecasts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Shorttermforecastlistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWorkplan invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId} -// -// Get a work plan -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWorkplan(managementUnitId string, workPlanId string) (*Workplan, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{workPlanId}", fmt.Sprintf("%v", workPlanId), -1) - defaultReturn := new(Workplan) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWorkplan") - } - // verify the required parameter 'workPlanId' is set - if &workPlanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workPlanId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWorkplan") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Workplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitWorkplans invokes GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans -// -// Get work plans -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitWorkplans(managementUnitId string, expand []string) (*Workplanlistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - defaultReturn := new(Workplanlistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->GetWorkforcemanagementManagementunitWorkplans") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range expand { - queryParams["expand"] = value - } - } else { - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Workplanlistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunits invokes GET /api/v2/workforcemanagement/managementunits -// -// Get management units -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunits(pageSize int32, pageNumber int32, expand string, feature string, divisionId string) (*Managementunitlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits" - defaultReturn := new(Managementunitlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) - - - - - collectionFormat = "" - queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) - - - - - collectionFormat = "" - queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) - - - - - collectionFormat = "" - queryParams["feature"] = a.Configuration.APIClient.ParameterToString(feature, collectionFormat) - - - - - collectionFormat = "" - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Managementunitlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementManagementunitsDivisionviews invokes GET /api/v2/workforcemanagement/managementunits/divisionviews -// -// Get management units across divisions -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementManagementunitsDivisionviews(divisionId []string) (*Managementunitlisting, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/divisionviews" - defaultReturn := new(Managementunitlisting) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - collectionFormat = "multi" - if collectionFormat == "multi" { - for _, value := range divisionId { - queryParams["divisionId"] = value - } - } else { - queryParams["divisionId"] = a.Configuration.APIClient.ParameterToString(divisionId, collectionFormat) - } - - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Managementunitlisting - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementNotifications invokes GET /api/v2/workforcemanagement/notifications -// -// Get a list of notifications for the current user -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementNotifications() (*Notificationsresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/notifications" - defaultReturn := new(Notificationsresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Notificationsresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementSchedulingjob invokes GET /api/v2/workforcemanagement/schedulingjobs/{jobId} -// -// Get status of the scheduling job -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementSchedulingjob(jobId string) (*Schedulingstatusresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/schedulingjobs/{jobId}" - path = strings.Replace(path, "{jobId}", fmt.Sprintf("%v", jobId), -1) - defaultReturn := new(Schedulingstatusresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'jobId' is set - if &jobId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'jobId' when calling WorkforceManagementApi->GetWorkforcemanagementSchedulingjob") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Schedulingstatusresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementShifttrades invokes GET /api/v2/workforcemanagement/shifttrades -// -// Gets all of my shift trades -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementShifttrades() (*Shifttradelistresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/shifttrades" - defaultReturn := new(Shifttradelistresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Shifttradelistresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementTimeoffrequest invokes GET /api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId} -// -// Get a time off request for the current user -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementTimeoffrequest(timeOffRequestId string) (*Timeoffrequestresponse, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}" - path = strings.Replace(path, "{timeOffRequestId}", fmt.Sprintf("%v", timeOffRequestId), -1) - defaultReturn := new(Timeoffrequestresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'timeOffRequestId' is set - if &timeOffRequestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'timeOffRequestId' when calling WorkforceManagementApi->GetWorkforcemanagementTimeoffrequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timeoffrequestresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// GetWorkforcemanagementTimeoffrequests invokes GET /api/v2/workforcemanagement/timeoffrequests -// -// Get a list of time off requests for the current user -// -// -func (a WorkforceManagementApi) GetWorkforcemanagementTimeoffrequests(recentlyReviewed bool) (*Timeoffrequestlist, *APIResponse, error) { - var httpMethod = "GET" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/timeoffrequests" - defaultReturn := new(Timeoffrequestlist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["recentlyReviewed"] = a.Configuration.APIClient.ParameterToString(recentlyReviewed, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload *Timeoffrequestlist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunit invokes PATCH /api/v2/workforcemanagement/managementunits/{muId} -// -// Update the requested management unit -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunit(muId string, body Updatemanagementunitrequest) (*Managementunit, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Managementunit) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunit") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Managementunit - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitActivitycode invokes PATCH /api/v2/workforcemanagement/managementunits/{muId}/activitycodes/{acId} -// -// Update an activity code -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitActivitycode(muId string, acId string, body Updateactivitycoderequest) (*Activitycode, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/activitycodes/{acId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - path = strings.Replace(path, "{acId}", fmt.Sprintf("%v", acId), -1) - defaultReturn := new(Activitycode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitActivitycode") - } - // verify the required parameter 'acId' is set - if &acId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'acId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitActivitycode") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Activitycode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitSchedulingRun invokes PATCH /api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId} -// -// Marks a specific scheduling run as applied, allowing a new rescheduling run to be started -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitSchedulingRun(managementUnitId string, runId string, body Updateschedulingrunrequest) (*Rescheduleresult, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/scheduling/runs/{runId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{runId}", fmt.Sprintf("%v", runId), -1) - defaultReturn := new(Rescheduleresult) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitSchedulingRun") - } - // verify the required parameter 'runId' is set - if &runId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'runId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitSchedulingRun") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Rescheduleresult - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitServicegoalgroup invokes PATCH /api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups/{serviceGoalGroupId} -// -// Update a service goal group -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitServicegoalgroup(managementUnitId string, serviceGoalGroupId string, body Servicegoalgroup) (*Servicegoalgroup, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups/{serviceGoalGroupId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{serviceGoalGroupId}", fmt.Sprintf("%v", serviceGoalGroupId), -1) - defaultReturn := new(Servicegoalgroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitServicegoalgroup") - } - // verify the required parameter 'serviceGoalGroupId' is set - if &serviceGoalGroupId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'serviceGoalGroupId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitServicegoalgroup") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Servicegoalgroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitSettings invokes PATCH /api/v2/workforcemanagement/managementunits/{muId}/settings -// -// Update the settings for the requested management unit -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitSettings(muId string, body Managementunitsettingsrequest) (*Managementunitsettingsresponse, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/settings" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Managementunitsettingsresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitSettings") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Managementunitsettingsresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitUserTimeoffrequest invokes PATCH /api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests/{timeOffRequestId} -// -// Update a time off request -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitUserTimeoffrequest(muId string, userId string, timeOffRequestId string, body Admintimeoffrequestpatch) (*Timeoffrequestresponse, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests/{timeOffRequestId}" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) - path = strings.Replace(path, "{timeOffRequestId}", fmt.Sprintf("%v", timeOffRequestId), -1) - defaultReturn := new(Timeoffrequestresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitUserTimeoffrequest") - } - // verify the required parameter 'userId' is set - if &userId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitUserTimeoffrequest") - } - // verify the required parameter 'timeOffRequestId' is set - if &timeOffRequestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'timeOffRequestId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitUserTimeoffrequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Timeoffrequestresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitWeekSchedule invokes PATCH /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId} -// -// Update a week schedule -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitWeekSchedule(managementUnitId string, weekId string, scheduleId string, forceAsync bool, forceDownloadService bool, body Updateweekschedulerequest) (*Asyncweekscheduleresponse, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Asyncweekscheduleresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitWeekSchedule") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitWeekSchedule") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitWeekSchedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - - collectionFormat = "" - queryParams["forceDownloadService"] = a.Configuration.APIClient.ParameterToString(forceDownloadService, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncweekscheduleresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementManagementunitWorkplan invokes PATCH /api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId} -// -// Update a work plan -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementManagementunitWorkplan(managementUnitId string, workPlanId string, body Workplan) (*Workplan, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{workPlanId}", fmt.Sprintf("%v", workPlanId), -1) - defaultReturn := new(Workplan) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitWorkplan") - } - // verify the required parameter 'workPlanId' is set - if &workPlanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workPlanId' when calling WorkforceManagementApi->PatchWorkforcemanagementManagementunitWorkplan") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Workplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PatchWorkforcemanagementTimeoffrequest invokes PATCH /api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId} -// -// Update a time off request for the current user -// -// -func (a WorkforceManagementApi) PatchWorkforcemanagementTimeoffrequest(timeOffRequestId string, body Agenttimeoffrequestpatch) (*Timeoffrequestresponse, *APIResponse, error) { - var httpMethod = "PATCH" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}" - path = strings.Replace(path, "{timeOffRequestId}", fmt.Sprintf("%v", timeOffRequestId), -1) - defaultReturn := new(Timeoffrequestresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'timeOffRequestId' is set - if &timeOffRequestId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'timeOffRequestId' when calling WorkforceManagementApi->PatchWorkforcemanagementTimeoffrequest") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Timeoffrequestresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementAdherenceHistorical invokes POST /api/v2/workforcemanagement/adherence/historical -// -// Request a historical adherence report for users across management units -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementAdherenceHistorical(body Wfmhistoricaladherencequeryforusers) (*Wfmhistoricaladherenceresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/adherence/historical" - defaultReturn := new(Wfmhistoricaladherenceresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Wfmhistoricaladherenceresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitActivitycodes invokes POST /api/v2/workforcemanagement/managementunits/{muId}/activitycodes -// -// Create a new activity code -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitActivitycodes(muId string, body Createactivitycoderequest) (*Activitycode, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/activitycodes" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Activitycode) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitActivitycodes") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Activitycode - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitAgentschedulesSearch invokes POST /api/v2/workforcemanagement/managementunits/{muId}/agentschedules/search -// -// Query published schedules for given given time range for set of users -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitAgentschedulesSearch(muId string, body Busearchagentschedulesrequest, forceAsync bool, forceDownloadService bool) (*Buasyncagentschedulessearchresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/agentschedules/search" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Buasyncagentschedulessearchresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitAgentschedulesSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - - collectionFormat = "" - queryParams["forceDownloadService"] = a.Configuration.APIClient.ParameterToString(forceDownloadService, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Buasyncagentschedulessearchresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitHistoricaladherencequery invokes POST /api/v2/workforcemanagement/managementunits/{muId}/historicaladherencequery -// -// Request a historical adherence report -// -// The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitHistoricaladherencequery(muId string, body Wfmhistoricaladherencequery) (*Wfmhistoricaladherenceresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/historicaladherencequery" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Wfmhistoricaladherenceresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitHistoricaladherencequery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Wfmhistoricaladherenceresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitIntraday invokes POST /api/v2/workforcemanagement/managementunits/{muId}/intraday -// -// Get intraday data for the given date for the requested queueIds -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitIntraday(muId string, body Intradayquerydatacommand) (*Intradayresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/intraday" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Intradayresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitIntraday") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Intradayresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitMove invokes POST /api/v2/workforcemanagement/managementunits/{muId}/move -// -// Move the requested management unit to a new business unit -// -// Returns status 200 if the management unit is already in the requested business unit -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitMove(muId string, body Movemanagementunitrequest) (*Movemanagementunitresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/move" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Movemanagementunitresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitMove") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Movemanagementunitresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitSchedulesSearch invokes POST /api/v2/workforcemanagement/managementunits/{muId}/schedules/search -// -// Query published schedules for given given time range for set of users -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitSchedulesSearch(muId string, body Userlistschedulerequestbody) (*Userschedulecontainer, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/schedules/search" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Userschedulecontainer) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitSchedulesSearch") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userschedulecontainer - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitServicegoalgroups invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups -// -// Create a new service goal group -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitServicegoalgroups(managementUnitId string, body Createservicegoalgrouprequest) (*Servicegoalgroup, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/servicegoalgroups" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - defaultReturn := new(Servicegoalgroup) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitServicegoalgroups") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Servicegoalgroup - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitTimeoffrequests invokes POST /api/v2/workforcemanagement/managementunits/{muId}/timeoffrequests -// -// Create a new time off request -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitTimeoffrequests(muId string, body Createadmintimeoffrequest) (*Timeoffrequestlist, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/timeoffrequests" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Timeoffrequestlist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitTimeoffrequests") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Timeoffrequestlist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitTimeoffrequestsFetchdetails invokes POST /api/v2/workforcemanagement/managementunits/{muId}/timeoffrequests/fetchdetails -// -// Gets a list of time off requests from lookup ids -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitTimeoffrequestsFetchdetails(muId string, body Timeoffrequestlookuplist) (*Timeoffrequestentitylist, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/timeoffrequests/fetchdetails" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Timeoffrequestentitylist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitTimeoffrequestsFetchdetails") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Timeoffrequestentitylist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitTimeoffrequestsQuery invokes POST /api/v2/workforcemanagement/managementunits/{muId}/timeoffrequests/query -// -// Gets the lookup ids to fetch the specified set of requests -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitTimeoffrequestsQuery(muId string, body Timeoffrequestquerybody) (*Timeoffrequestlookuplist, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/timeoffrequests/query" - path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Timeoffrequestlookuplist) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'muId' is set - if &muId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'muId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitTimeoffrequestsQuery") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Timeoffrequestlookuplist - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekScheduleCopy invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}/copy -// -// Copy a week schedule -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekScheduleCopy(managementUnitId string, weekId string, scheduleId string, forceAsync bool, forceDownloadService bool, body Copyweekschedulerequest) (*Asyncweekscheduleresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}/copy" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Asyncweekscheduleresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekScheduleCopy") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekScheduleCopy") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekScheduleCopy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - - collectionFormat = "" - queryParams["forceDownloadService"] = a.Configuration.APIClient.ParameterToString(forceDownloadService, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncweekscheduleresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekScheduleReschedule invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule -// -// Start a scheduling run to compute the reschedule. When the scheduling run finishes, a client can get the reschedule changes and then the client can apply them to the schedule, save the schedule, and mark the scheduling run as applied -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekScheduleReschedule(managementUnitId string, weekId string, scheduleId string, body Reschedulerequest) (*Asyncweekscheduleresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - path = strings.Replace(path, "{scheduleId}", fmt.Sprintf("%v", scheduleId), -1) - defaultReturn := new(Asyncweekscheduleresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekScheduleReschedule") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekScheduleReschedule") - } - // verify the required parameter 'scheduleId' is set - if &scheduleId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'scheduleId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekScheduleReschedule") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncweekscheduleresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekSchedules invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules -// -// Add a schedule for a week in management unit using imported data. Use partial uploads of user schedules if activity count in schedule is greater than 17500 -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekSchedules(managementUnitId string, weekId string, forceAsync bool, forceDownloadService bool, body Importweekschedulerequest) (*Asyncweekscheduleresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - defaultReturn := new(Asyncweekscheduleresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekSchedules") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekSchedules") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - - collectionFormat = "" - queryParams["forceDownloadService"] = a.Configuration.APIClient.ParameterToString(forceDownloadService, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Asyncweekscheduleresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekSchedulesGenerate invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/generate -// -// Generate a week schedule -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekSchedulesGenerate(managementUnitId string, weekId string, body Generateweekschedulerequest) (*Generateweekscheduleresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/generate" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - defaultReturn := new(Generateweekscheduleresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekSchedulesGenerate") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekSchedulesGenerate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Generateweekscheduleresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekSchedulesPartialupload invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/partialupload -// -// Partial upload of user schedules where activity count is greater than 17500 -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekSchedulesPartialupload(managementUnitId string, weekId string, body Userschedulespartialuploadrequest) (*Partialuploadresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/partialupload" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekId}", fmt.Sprintf("%v", weekId), -1) - defaultReturn := new(Partialuploadresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekSchedulesPartialupload") - } - // verify the required parameter 'weekId' is set - if &weekId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekSchedulesPartialupload") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Partialuploadresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekShorttermforecastCopy invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/copy -// -// Copy a short term forecast -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekShorttermforecastCopy(managementUnitId string, weekDateId string, forecastId string, body Copyshorttermforecastrequest, forceAsync bool) (*Shorttermforecastresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/copy" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - path = strings.Replace(path, "{forecastId}", fmt.Sprintf("%v", forecastId), -1) - defaultReturn := new(Shorttermforecastresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastCopy") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastCopy") - } - // verify the required parameter 'forecastId' is set - if &forecastId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'forecastId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastCopy") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastCopy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Shorttermforecastresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekShorttermforecasts invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts -// -// Import a short term forecast -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekShorttermforecasts(managementUnitId string, weekDateId string, body Importshorttermforecastrequest, forceAsync bool) (*Shorttermforecastresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - defaultReturn := new(Shorttermforecastresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecasts") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecasts") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecasts") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Shorttermforecastresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekShorttermforecastsGenerate invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/generate -// -// Generate a short term forecast -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekShorttermforecastsGenerate(managementUnitId string, weekDateId string, body Generateshorttermforecastrequest, forceAsync bool) (*Generateshorttermforecastresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/generate" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - defaultReturn := new(Generateshorttermforecastresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastsGenerate") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastsGenerate") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastsGenerate") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - var collectionFormat string - - - - collectionFormat = "" - queryParams["forceAsync"] = a.Configuration.APIClient.ParameterToString(forceAsync, collectionFormat) - - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Generateshorttermforecastresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWeekShorttermforecastsPartialupload invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/partialupload -// -// Import a short term forecast -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWeekShorttermforecastsPartialupload(managementUnitId string, weekDateId string, body Routegrouplist) (*Partialuploadresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shorttermforecasts/partialupload" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{weekDateId}", fmt.Sprintf("%v", weekDateId), -1) - defaultReturn := new(Partialuploadresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastsPartialupload") - } - // verify the required parameter 'weekDateId' is set - if &weekDateId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'weekDateId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastsPartialupload") - } - // verify the required parameter 'body' is set - if &body == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWeekShorttermforecastsPartialupload") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Partialuploadresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWorkplanCopy invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy -// -// Create a copy of work plan -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWorkplanCopy(managementUnitId string, workPlanId string, body Copyworkplan) (*Workplan, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - path = strings.Replace(path, "{workPlanId}", fmt.Sprintf("%v", workPlanId), -1) - defaultReturn := new(Workplan) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWorkplanCopy") - } - // verify the required parameter 'workPlanId' is set - if &workPlanId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'workPlanId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWorkplanCopy") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Workplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunitWorkplans invokes POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans -// -// Create a new work plan -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitWorkplans(managementUnitId string, body Createworkplan) (*Workplan, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans" - path = strings.Replace(path, "{managementUnitId}", fmt.Sprintf("%v", managementUnitId), -1) - defaultReturn := new(Workplan) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - // verify the required parameter 'managementUnitId' is set - if &managementUnitId == nil { - // - return defaultReturn, nil, errors.New("Missing required parameter 'managementUnitId' when calling WorkforceManagementApi->PostWorkforcemanagementManagementunitWorkplans") - } - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Workplan - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementManagementunits invokes POST /api/v2/workforcemanagement/managementunits -// -// Add a management unit -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunits(body Createmanagementunitapirequest) (*Managementunit, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits" - defaultReturn := new(Managementunit) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Managementunit - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementNotificationsUpdate invokes POST /api/v2/workforcemanagement/notifications/update -// -// Mark a list of notifications as read or unread -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementNotificationsUpdate(body Updatenotificationsrequest) (*Updatenotificationsresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/notifications/update" - defaultReturn := new(Updatenotificationsresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Updatenotificationsresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementSchedules invokes POST /api/v2/workforcemanagement/schedules -// -// Get published schedule for the current user -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementSchedules(body Currentuserschedulerequestbody) (*Userschedulecontainer, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/schedules" - defaultReturn := new(Userschedulecontainer) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Userschedulecontainer - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - -// PostWorkforcemanagementTimeoffrequests invokes POST /api/v2/workforcemanagement/timeoffrequests -// -// Create a time off request for the current user -// -// -func (a WorkforceManagementApi) PostWorkforcemanagementTimeoffrequests(body Createagenttimeoffrequest) (*Timeoffrequestresponse, *APIResponse, error) { - var httpMethod = "POST" - // create path and map variables - path := a.Configuration.BasePath + "/api/v2/workforcemanagement/timeoffrequests" - defaultReturn := new(Timeoffrequestresponse) - if true == false { - return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") - } - - - headerParams := make(map[string]string) - queryParams := make(map[string]string) - formParams := url.Values{} - var postBody interface{} - var postFileName string - var fileBytes []byte - // authentication (PureCloud OAuth) required - - // oauth required - if a.Configuration.AccessToken != ""{ - headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken - } - // add default headers if any - for key := range a.Configuration.DefaultHeader { - headerParams[key] = a.Configuration.DefaultHeader[key] - } - - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - headerParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - "application/json", - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - headerParams["Accept"] = localVarHttpHeaderAccept - } - // body params - postBody = &body - - var successPayload *Timeoffrequestresponse - response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) - if err != nil { - // Nothing special to do here, but do avoid processing the response - } else if err == nil && response.Error != nil { - err = errors.New(response.ErrorMessage) - } else { - err = json.Unmarshal([]byte(response.RawBody), &successPayload) - } - return successPayload, response, err -} - diff --git a/build/platformclientv2/workplan.go b/build/platformclientv2/workplan.go deleted file mode 100644 index c49892f54..000000000 --- a/build/platformclientv2/workplan.go +++ /dev/null @@ -1,93 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workplan - Work plan information -type Workplan struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Enabled - Whether the work plan is enabled for scheduling - Enabled *bool `json:"enabled,omitempty"` - - - // ConstrainWeeklyPaidTime - Whether the weekly paid time constraint is enabled for this work plan - ConstrainWeeklyPaidTime *bool `json:"constrainWeeklyPaidTime,omitempty"` - - - // FlexibleWeeklyPaidTime - Whether the weekly paid time constraint is flexible for this work plan - FlexibleWeeklyPaidTime *bool `json:"flexibleWeeklyPaidTime,omitempty"` - - - // WeeklyExactPaidMinutes - Exact weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == false - WeeklyExactPaidMinutes *int32 `json:"weeklyExactPaidMinutes,omitempty"` - - - // WeeklyMinimumPaidMinutes - Minimum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true - WeeklyMinimumPaidMinutes *int32 `json:"weeklyMinimumPaidMinutes,omitempty"` - - - // WeeklyMaximumPaidMinutes - Maximum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true - WeeklyMaximumPaidMinutes *int32 `json:"weeklyMaximumPaidMinutes,omitempty"` - - - // ConstrainPaidTimeGranularity - Whether paid time granularity is constrained for this workplan - ConstrainPaidTimeGranularity *bool `json:"constrainPaidTimeGranularity,omitempty"` - - - // PaidTimeGranularityMinutes - Granularity in minutes allowed for shift paid time in this work plan. Used if constrainPaidTimeGranularity == true - PaidTimeGranularityMinutes *int32 `json:"paidTimeGranularityMinutes,omitempty"` - - - // ConstrainMinimumTimeBetweenShifts - Whether the minimum time between shifts constraint is enabled for this work plan - ConstrainMinimumTimeBetweenShifts *bool `json:"constrainMinimumTimeBetweenShifts,omitempty"` - - - // MinimumTimeBetweenShiftsMinutes - Minimum time between shifts in minutes defined in this work plan. Used if constrainMinimumTimeBetweenShifts == true - MinimumTimeBetweenShiftsMinutes *int32 `json:"minimumTimeBetweenShiftsMinutes,omitempty"` - - - // MaximumDays - Maximum number days in a week allowed to be scheduled for this work plan - MaximumDays *int32 `json:"maximumDays,omitempty"` - - - // MinimumWorkingDaysPerWeek - The minimum number of days that agents assigned to a work plan must work per week - MinimumWorkingDaysPerWeek *int32 `json:"minimumWorkingDaysPerWeek,omitempty"` - - - // OptionalDays - Optional days to schedule for this work plan - OptionalDays *Setwrapperdayofweek `json:"optionalDays,omitempty"` - - - // ShiftStartVariances - Variance in minutes among start times of shifts in this work plan - ShiftStartVariances *Listwrappershiftstartvariance `json:"shiftStartVariances,omitempty"` - - - // Shifts - Shifts in this work plan - Shifts *[]Workplanshift `json:"shifts,omitempty"` - - - // Agents - Agents in this work plan - Agents *[]Deletableuserreference `json:"agents,omitempty"` - - - // Metadata - Version metadata for this work plan - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workplan) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workplanactivity.go b/build/platformclientv2/workplanactivity.go deleted file mode 100644 index 3788b0901..000000000 --- a/build/platformclientv2/workplanactivity.go +++ /dev/null @@ -1,65 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workplanactivity - Activity configured for shift in work plan -type Workplanactivity struct { - // ActivityCodeId - ID of the activity code associated with this activity - ActivityCodeId *string `json:"activityCodeId,omitempty"` - - - // Description - Description of the activity - Description *string `json:"description,omitempty"` - - - // LengthMinutes - Length of the activity in minutes - LengthMinutes *int32 `json:"lengthMinutes,omitempty"` - - - // StartTimeIsRelativeToShiftStart - Whether the start time of the activity is relative to the start time of the shift it belongs to - StartTimeIsRelativeToShiftStart *bool `json:"startTimeIsRelativeToShiftStart,omitempty"` - - - // FlexibleStartTime - Whether the start time of the activity is flexible - FlexibleStartTime *bool `json:"flexibleStartTime,omitempty"` - - - // EarliestStartTimeMinutes - Earliest activity start in offset minutes relative to shift start time if startTimeIsRelativeToShiftStart == true else its based on midnight. Used if flexibleStartTime == true - EarliestStartTimeMinutes *int32 `json:"earliestStartTimeMinutes,omitempty"` - - - // LatestStartTimeMinutes - Latest activity start in offset minutes relative to shift start time if startTimeIsRelativeToShiftStart == true else its based on midnight. Used if flexibleStartTime == true - LatestStartTimeMinutes *int32 `json:"latestStartTimeMinutes,omitempty"` - - - // ExactStartTimeMinutes - Exact activity start in offset minutes relative to shift start time if startTimeIsRelativeToShiftStart == true else its based on midnight. Used if flexibleStartTime == false - ExactStartTimeMinutes *int32 `json:"exactStartTimeMinutes,omitempty"` - - - // StartTimeIncrementMinutes - Increment in offset minutes that would contribute to different possible start times for the activity - StartTimeIncrementMinutes *int32 `json:"startTimeIncrementMinutes,omitempty"` - - - // CountsAsPaidTime - Whether the activity is paid - CountsAsPaidTime *bool `json:"countsAsPaidTime,omitempty"` - - - // CountsAsContiguousWorkTime - Whether the activity duration is counted towards contiguous work time - CountsAsContiguousWorkTime *bool `json:"countsAsContiguousWorkTime,omitempty"` - - - // Id - ID of the activity. This is required only for the case of updating an existing activity - Id *string `json:"id,omitempty"` - - - // Delete - If marked true for updating an existing activity, the activity will be permanently deleted - Delete *bool `json:"delete,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workplanactivity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workplanlistitemresponse.go b/build/platformclientv2/workplanlistitemresponse.go deleted file mode 100644 index b92c95bdd..000000000 --- a/build/platformclientv2/workplanlistitemresponse.go +++ /dev/null @@ -1,97 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workplanlistitemresponse - Work plan information -type Workplanlistitemresponse struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Enabled - Whether the work plan is enabled for scheduling - Enabled *bool `json:"enabled,omitempty"` - - - // ConstrainWeeklyPaidTime - Whether the weekly paid time constraint is enabled for this work plan - ConstrainWeeklyPaidTime *bool `json:"constrainWeeklyPaidTime,omitempty"` - - - // FlexibleWeeklyPaidTime - Whether the weekly paid time constraint is flexible for this work plan - FlexibleWeeklyPaidTime *bool `json:"flexibleWeeklyPaidTime,omitempty"` - - - // WeeklyExactPaidMinutes - Exact weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == false - WeeklyExactPaidMinutes *int32 `json:"weeklyExactPaidMinutes,omitempty"` - - - // WeeklyMinimumPaidMinutes - Minimum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true - WeeklyMinimumPaidMinutes *int32 `json:"weeklyMinimumPaidMinutes,omitempty"` - - - // WeeklyMaximumPaidMinutes - Maximum weekly paid time in minutes for this work plan. Used if flexibleWeeklyPaidTime == true - WeeklyMaximumPaidMinutes *int32 `json:"weeklyMaximumPaidMinutes,omitempty"` - - - // ConstrainPaidTimeGranularity - Whether paid time granularity is constrained for this workplan - ConstrainPaidTimeGranularity *bool `json:"constrainPaidTimeGranularity,omitempty"` - - - // PaidTimeGranularityMinutes - Granularity in minutes allowed for shift paid time in this work plan. Used if constrainPaidTimeGranularity == true - PaidTimeGranularityMinutes *int32 `json:"paidTimeGranularityMinutes,omitempty"` - - - // ConstrainMinimumTimeBetweenShifts - Whether the minimum time between shifts constraint is enabled for this work plan - ConstrainMinimumTimeBetweenShifts *bool `json:"constrainMinimumTimeBetweenShifts,omitempty"` - - - // MinimumTimeBetweenShiftsMinutes - Minimum time between shifts in minutes defined in this work plan. Used if constrainMinimumTimeBetweenShifts == true - MinimumTimeBetweenShiftsMinutes *int32 `json:"minimumTimeBetweenShiftsMinutes,omitempty"` - - - // MaximumDays - Maximum number days in a week allowed to be scheduled for this work plan - MaximumDays *int32 `json:"maximumDays,omitempty"` - - - // MinimumWorkingDaysPerWeek - The minimum number of days that agents assigned to a work plan must work per week - MinimumWorkingDaysPerWeek *int32 `json:"minimumWorkingDaysPerWeek,omitempty"` - - - // OptionalDays - Optional days to schedule for this work plan. Populate with expand=details - OptionalDays *Setwrapperdayofweek `json:"optionalDays,omitempty"` - - - // ShiftStartVariances - Variance in minutes among start times of shifts in this work plan. Populate with expand=details - ShiftStartVariances *Listwrappershiftstartvariance `json:"shiftStartVariances,omitempty"` - - - // Shifts - Shifts in this work plan. Populate with expand=details (defaults to empty list) - Shifts *[]Workplanshift `json:"shifts,omitempty"` - - - // Agents - Agents in this work plan. Populate with expand=details (defaults to empty list) - Agents *[]Deletableuserreference `json:"agents,omitempty"` - - - // Metadata - Version metadata for this work plan - Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"` - - - // AgentCount - Number of agents in this work plan. Populate with expand=agentCount - AgentCount *int32 `json:"agentCount,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workplanlistitemresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workplanlistresponse.go b/build/platformclientv2/workplanlistresponse.go deleted file mode 100644 index ae4281257..000000000 --- a/build/platformclientv2/workplanlistresponse.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workplanlistresponse -type Workplanlistresponse struct { - // Entities - Entities *[]Workplanlistitemresponse `json:"entities,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workplanlistresponse) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workplanreference.go b/build/platformclientv2/workplanreference.go deleted file mode 100644 index 9d85ff335..000000000 --- a/build/platformclientv2/workplanreference.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workplanreference - Work plan information -type Workplanreference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // ManagementUnit - The management unit to which this work plan belongs. Nullable in some routes - ManagementUnit *Managementunitreference `json:"managementUnit,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workplanreference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workplanshift.go b/build/platformclientv2/workplanshift.go deleted file mode 100644 index da9869890..000000000 --- a/build/platformclientv2/workplanshift.go +++ /dev/null @@ -1,93 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workplanshift - Shift in a work plan -type Workplanshift struct { - // Name - Name of the shift - Name *string `json:"name,omitempty"` - - - // Days - Days of the week applicable for this shift - Days *Setwrapperdayofweek `json:"days,omitempty"` - - - // FlexibleStartTime - Whether the start time of the shift is flexible - FlexibleStartTime *bool `json:"flexibleStartTime,omitempty"` - - - // ExactStartTimeMinutesFromMidnight - Exact start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == false - ExactStartTimeMinutesFromMidnight *int32 `json:"exactStartTimeMinutesFromMidnight,omitempty"` - - - // EarliestStartTimeMinutesFromMidnight - Earliest start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == true - EarliestStartTimeMinutesFromMidnight *int32 `json:"earliestStartTimeMinutesFromMidnight,omitempty"` - - - // LatestStartTimeMinutesFromMidnight - Latest start time of the shift defined as offset minutes from midnight. Used if flexibleStartTime == true - LatestStartTimeMinutesFromMidnight *int32 `json:"latestStartTimeMinutesFromMidnight,omitempty"` - - - // ConstrainStopTime - Whether the latest stop time constraint for the shift is enabled. Deprecated, use constrainLatestStopTime instead - ConstrainStopTime *bool `json:"constrainStopTime,omitempty"` - - - // ConstrainLatestStopTime - Whether the latest stop time constraint for the shift is enabled - ConstrainLatestStopTime *bool `json:"constrainLatestStopTime,omitempty"` - - - // LatestStopTimeMinutesFromMidnight - Latest stop time of the shift defined as offset minutes from midnight. Used if constrainStopTime == true - LatestStopTimeMinutesFromMidnight *int32 `json:"latestStopTimeMinutesFromMidnight,omitempty"` - - - // StartIncrementMinutes - Increment in offset minutes that would contribute to different possible start times for the shift. Used if flexibleStartTime == true - StartIncrementMinutes *int32 `json:"startIncrementMinutes,omitempty"` - - - // FlexiblePaidTime - Whether the paid time setting for the shift is flexible - FlexiblePaidTime *bool `json:"flexiblePaidTime,omitempty"` - - - // ExactPaidTimeMinutes - Exact paid time in minutes configured for the shift. Used if flexiblePaidTime == false - ExactPaidTimeMinutes *int32 `json:"exactPaidTimeMinutes,omitempty"` - - - // MinimumPaidTimeMinutes - Minimum paid time in minutes configured for the shift. Used if flexiblePaidTime == true - MinimumPaidTimeMinutes *int32 `json:"minimumPaidTimeMinutes,omitempty"` - - - // MaximumPaidTimeMinutes - Maximum paid time in minutes configured for the shift. Used if flexiblePaidTime == true - MaximumPaidTimeMinutes *int32 `json:"maximumPaidTimeMinutes,omitempty"` - - - // ConstrainContiguousWorkTime - Whether the contiguous time constraint for the shift is enabled - ConstrainContiguousWorkTime *bool `json:"constrainContiguousWorkTime,omitempty"` - - - // MinimumContiguousWorkTimeMinutes - Minimum contiguous time in minutes configured for the shift. Used if constrainContiguousWorkTime == true - MinimumContiguousWorkTimeMinutes *int32 `json:"minimumContiguousWorkTimeMinutes,omitempty"` - - - // MaximumContiguousWorkTimeMinutes - Maximum contiguous time in minutes configured for the shift. Used if constrainContiguousWorkTime == true - MaximumContiguousWorkTimeMinutes *int32 `json:"maximumContiguousWorkTimeMinutes,omitempty"` - - - // Activities - Activities configured for this shift - Activities *[]Workplanactivity `json:"activities,omitempty"` - - - // Id - ID of the shift. This is required only for the case of updating an existing shift - Id *string `json:"id,omitempty"` - - - // Delete - If marked true for updating an existing shift, the shift will be permanently deleted - Delete *bool `json:"delete,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workplanshift) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workspace.go b/build/platformclientv2/workspace.go deleted file mode 100644 index d3fdf8a93..000000000 --- a/build/platformclientv2/workspace.go +++ /dev/null @@ -1,62 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Workspace -type Workspace struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The current name of the workspace. - Name *string `json:"name,omitempty"` - - - // VarType - VarType *string `json:"type,omitempty"` - - - // IsCurrentUserWorkspace - IsCurrentUserWorkspace *bool `json:"isCurrentUserWorkspace,omitempty"` - - - // User - User *Domainentityref `json:"user,omitempty"` - - - // Bucket - Bucket *string `json:"bucket,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Summary - Summary *Workspacesummary `json:"summary,omitempty"` - - - // Acl - Acl *[]string `json:"acl,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workspace) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workspacecreate.go b/build/platformclientv2/workspacecreate.go deleted file mode 100644 index 450e9766a..000000000 --- a/build/platformclientv2/workspacecreate.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workspacecreate -type Workspacecreate struct { - // Name - The workspace name - Name *string `json:"name,omitempty"` - - - // Bucket - Bucket *string `json:"bucket,omitempty"` - - - // Description - Description *string `json:"description,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workspacecreate) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workspaceentitylisting.go b/build/platformclientv2/workspaceentitylisting.go deleted file mode 100644 index 067443eef..000000000 --- a/build/platformclientv2/workspaceentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workspaceentitylisting -type Workspaceentitylisting struct { - // Entities - Entities *[]Workspace `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workspaceentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workspacemember.go b/build/platformclientv2/workspacemember.go deleted file mode 100644 index e6790c41e..000000000 --- a/build/platformclientv2/workspacemember.go +++ /dev/null @@ -1,49 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workspacemember -type Workspacemember struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // Workspace - Workspace *Domainentityref `json:"workspace,omitempty"` - - - // MemberType - The workspace member type. - MemberType *string `json:"memberType,omitempty"` - - - // Member - Member *Domainentityref `json:"member,omitempty"` - - - // User - User *User `json:"user,omitempty"` - - - // Group - Group *Group `json:"group,omitempty"` - - - // SecurityProfile - SecurityProfile *Securityprofile `json:"securityProfile,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workspacemember) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workspacememberentitylisting.go b/build/platformclientv2/workspacememberentitylisting.go deleted file mode 100644 index 581e99931..000000000 --- a/build/platformclientv2/workspacememberentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workspacememberentitylisting -type Workspacememberentitylisting struct { - // Entities - Entities *[]Workspacemember `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workspacememberentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/workspacesummary.go b/build/platformclientv2/workspacesummary.go deleted file mode 100644 index 3b3d7b2ef..000000000 --- a/build/platformclientv2/workspacesummary.go +++ /dev/null @@ -1,21 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Workspacesummary -type Workspacesummary struct { - // TotalDocumentCount - TotalDocumentCount *int64 `json:"totalDocumentCount,omitempty"` - - - // TotalDocumentByteCount - TotalDocumentByteCount *int64 `json:"totalDocumentByteCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Workspacesummary) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wrapup.go b/build/platformclientv2/wrapup.go deleted file mode 100644 index 1f6e3accb..000000000 --- a/build/platformclientv2/wrapup.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wrapup -type Wrapup struct { - // Code - The user configured wrap up code id. - Code *string `json:"code,omitempty"` - - - // Name - The user configured wrap up code name. - Name *string `json:"name,omitempty"` - - - // Notes - Text entered by the agent to describe the call or disposition. - Notes *string `json:"notes,omitempty"` - - - // Tags - List of tags selected by the agent to describe the call or disposition. - Tags *[]string `json:"tags,omitempty"` - - - // DurationSeconds - The length of time in seconds that the agent spent doing after call work. - DurationSeconds *int32 `json:"durationSeconds,omitempty"` - - - // EndTime - The timestamp when the wrapup was finished. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - EndTime *time.Time `json:"endTime,omitempty"` - - - // Provisional - Indicates if this is a pending save and should not require a code to be specified. This allows someone to save some temporary wrapup that will be used later. - Provisional *bool `json:"provisional,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wrapup) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wrapupcode.go b/build/platformclientv2/wrapupcode.go deleted file mode 100644 index e2d05876b..000000000 --- a/build/platformclientv2/wrapupcode.go +++ /dev/null @@ -1,42 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wrapupcode -type Wrapupcode struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - The wrap-up code name. - Name *string `json:"name,omitempty"` - - - // DateCreated - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // ModifiedBy - ModifiedBy *string `json:"modifiedBy,omitempty"` - - - // CreatedBy - CreatedBy *string `json:"createdBy,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wrapupcode) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wrapupcodeentitylisting.go b/build/platformclientv2/wrapupcodeentitylisting.go deleted file mode 100644 index bc9e3c48f..000000000 --- a/build/platformclientv2/wrapupcodeentitylisting.go +++ /dev/null @@ -1,53 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wrapupcodeentitylisting -type Wrapupcodeentitylisting struct { - // Entities - Entities *[]Wrapupcode `json:"entities,omitempty"` - - - // PageSize - PageSize *int32 `json:"pageSize,omitempty"` - - - // PageNumber - PageNumber *int32 `json:"pageNumber,omitempty"` - - - // Total - Total *int64 `json:"total,omitempty"` - - - // FirstUri - FirstUri *string `json:"firstUri,omitempty"` - - - // SelfUri - SelfUri *string `json:"selfUri,omitempty"` - - - // NextUri - NextUri *string `json:"nextUri,omitempty"` - - - // PreviousUri - PreviousUri *string `json:"previousUri,omitempty"` - - - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - - // PageCount - PageCount *int32 `json:"pageCount,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wrapupcodeentitylisting) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wrapupcodemapping.go b/build/platformclientv2/wrapupcodemapping.go deleted file mode 100644 index 01b4c8f42..000000000 --- a/build/platformclientv2/wrapupcodemapping.go +++ /dev/null @@ -1,46 +0,0 @@ -package platformclientv2 -import ( - "time" - "encoding/json" -) - -// Wrapupcodemapping -type Wrapupcodemapping struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // DateCreated - Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateCreated *time.Time `json:"dateCreated,omitempty"` - - - // DateModified - Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ - DateModified *time.Time `json:"dateModified,omitempty"` - - - // Version - Required for updates, must match the version number of the most recent update - Version *int32 `json:"version,omitempty"` - - - // DefaultSet - The default set of wrap-up flags. These will be used if there is no entry for a given wrap-up code in the mapping. - DefaultSet *[]string `json:"defaultSet,omitempty"` - - - // Mapping - A map from wrap-up code identifiers to a set of wrap-up flags. - Mapping *map[string][]string `json:"mapping,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wrapupcodemapping) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/wrapupcodereference.go b/build/platformclientv2/wrapupcodereference.go deleted file mode 100644 index 6d297a0dc..000000000 --- a/build/platformclientv2/wrapupcodereference.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Wrapupcodereference -type Wrapupcodereference struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Wrapupcodereference) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/writabledialercontact.go b/build/platformclientv2/writabledialercontact.go deleted file mode 100644 index 5be4bf685..000000000 --- a/build/platformclientv2/writabledialercontact.go +++ /dev/null @@ -1,33 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Writabledialercontact -type Writabledialercontact struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // ContactListId - The identifier of the contact list containing this contact. - ContactListId *string `json:"contactListId,omitempty"` - - - // Data - An ordered map of the contact's columns and corresponding values. - Data *map[string]interface{} `json:"data,omitempty"` - - - // Callable - Indicates whether or not the contact can be called. - Callable *bool `json:"callable,omitempty"` - - - // PhoneNumberStatus - A map of phone number columns to PhoneNumberStatuses, which indicate if the phone number is callable or not. - PhoneNumberStatus *map[string]Phonenumberstatus `json:"phoneNumberStatus,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Writabledialercontact) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/writabledivision.go b/build/platformclientv2/writabledivision.go deleted file mode 100644 index 85728585f..000000000 --- a/build/platformclientv2/writabledivision.go +++ /dev/null @@ -1,25 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Writabledivision -type Writabledivision struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - - - // Name - Name *string `json:"name,omitempty"` - - - // SelfUri - The URI for this object - SelfUri *string `json:"selfUri,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Writabledivision) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/platformclientv2/writableentity.go b/build/platformclientv2/writableentity.go deleted file mode 100644 index eb8f52b11..000000000 --- a/build/platformclientv2/writableentity.go +++ /dev/null @@ -1,17 +0,0 @@ -package platformclientv2 -import ( - "encoding/json" -) - -// Writableentity -type Writableentity struct { - // Id - The globally unique identifier for the object. - Id *string `json:"id,omitempty"` - -} - -// String returns a JSON representation of the model -func (o *Writableentity) String() string { - j, _ := json.Marshal(o) - return string(j) -} diff --git a/build/docs/index.md b/docs/index.md similarity index 98% rename from build/docs/index.md rename to docs/index.md index d6a61d8c4..af9613f42 100644 --- a/build/docs/index.md +++ b/docs/index.md @@ -4,7 +4,7 @@ title: Platform API Client SDK - Go A Go package to interface with the Genesys Cloud Platform API. View the documentation on the [pkg.go.dev](https://pkg.go.dev/github.com/MyPureCloud/platform-client-sdk-go/platformclientv2). Browse the source code on [Github](https://github.com/MyPureCloud/platform-client-sdk-go). -Latest version: 3.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]() +Latest version: 4.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]() ## Get SDK Package diff --git a/platformclientv2/actionentitylisting.go b/platformclientv2/actionentitylisting.go index 713b6a476..6ce5c6e19 100644 --- a/platformclientv2/actionentitylisting.go +++ b/platformclientv2/actionentitylisting.go @@ -33,14 +33,14 @@ type Actionentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/agentactivityentitylisting.go b/platformclientv2/agentactivityentitylisting.go index 37c2df890..577686212 100644 --- a/platformclientv2/agentactivityentitylisting.go +++ b/platformclientv2/agentactivityentitylisting.go @@ -33,14 +33,14 @@ type Agentactivityentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/analyticsapi.go b/platformclientv2/analyticsapi.go index c51765867..19d558e3a 100644 --- a/platformclientv2/analyticsapi.go +++ b/platformclientv2/analyticsapi.go @@ -448,7 +448,7 @@ func (a AnalyticsApi) GetAnalyticsConversationsDetailsJob(jobId string) (*Asyncq // Fetch a page of results for an async query // // -func (a AnalyticsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, cursor string) (*Analyticsconversationasyncqueryresponse, *APIResponse, error) { +func (a AnalyticsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsconversationasyncqueryresponse, *APIResponse, error) { var httpMethod = "GET" // create path and map variables path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}/results" @@ -489,6 +489,12 @@ func (a AnalyticsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, c queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + // to determine the Content-Type header localVarHttpContentTypes := []string{ "application/json", } @@ -1379,7 +1385,7 @@ func (a AnalyticsApi) GetAnalyticsUsersDetailsJob(jobId string) (*Asyncquerystat // Fetch a page of results for an async query // // -func (a AnalyticsApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string) (*Analyticsuserdetailsasyncqueryresponse, *APIResponse, error) { +func (a AnalyticsApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsuserdetailsasyncqueryresponse, *APIResponse, error) { var httpMethod = "GET" // create path and map variables path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}/results" @@ -1420,6 +1426,12 @@ func (a AnalyticsApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor st queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + // to determine the Content-Type header localVarHttpContentTypes := []string{ "application/json", } diff --git a/platformclientv2/analyticsconversationasyncqueryresponse.go b/platformclientv2/analyticsconversationasyncqueryresponse.go index 6e3262ec0..aa24ef290 100644 --- a/platformclientv2/analyticsconversationasyncqueryresponse.go +++ b/platformclientv2/analyticsconversationasyncqueryresponse.go @@ -5,13 +5,13 @@ import ( // Analyticsconversationasyncqueryresponse type Analyticsconversationasyncqueryresponse struct { - // Conversations - Conversations *[]Analyticsconversation `json:"conversations,omitempty"` - - // Cursor - Optional cursor to indicate where to resume the results Cursor *string `json:"cursor,omitempty"` + + // Conversations + Conversations *[]Analyticsconversation `json:"conversations,omitempty"` + } // String returns a JSON representation of the model diff --git a/platformclientv2/analyticsconversationqueryresponse.go b/platformclientv2/analyticsconversationqueryresponse.go index 1edc4fec4..d3bc6a17f 100644 --- a/platformclientv2/analyticsconversationqueryresponse.go +++ b/platformclientv2/analyticsconversationqueryresponse.go @@ -5,13 +5,13 @@ import ( // Analyticsconversationqueryresponse type Analyticsconversationqueryresponse struct { - // Conversations - Conversations *[]Analyticsconversation `json:"conversations,omitempty"` - - // Aggregations Aggregations *[]Aggregationresult `json:"aggregations,omitempty"` + + // Conversations + Conversations *[]Analyticsconversationwithoutattributes `json:"conversations,omitempty"` + } // String returns a JSON representation of the model diff --git a/platformclientv2/analyticsparticipant.go b/platformclientv2/analyticsparticipant.go index 0731d5fb2..7685284bf 100644 --- a/platformclientv2/analyticsparticipant.go +++ b/platformclientv2/analyticsparticipant.go @@ -33,6 +33,10 @@ type Analyticsparticipant struct { FlaggedReason *string `json:"flaggedReason,omitempty"` + // TeamId - The team id the user is a member of + TeamId *string `json:"teamId,omitempty"` + + // Sessions - List of sessions associated to this participant Sessions *[]Analyticssession `json:"sessions,omitempty"` diff --git a/platformclientv2/analyticsparticipantwithoutattributes.go b/platformclientv2/analyticsparticipantwithoutattributes.go index 9f6492cc2..6982d525f 100644 --- a/platformclientv2/analyticsparticipantwithoutattributes.go +++ b/platformclientv2/analyticsparticipantwithoutattributes.go @@ -33,6 +33,10 @@ type Analyticsparticipantwithoutattributes struct { FlaggedReason *string `json:"flaggedReason,omitempty"` + // TeamId - The team id the user is a member of + TeamId *string `json:"teamId,omitempty"` + + // Sessions - List of sessions associated to this participant Sessions *[]Analyticssession `json:"sessions,omitempty"` diff --git a/platformclientv2/architectapi.go b/platformclientv2/architectapi.go index debfc281a..c6b5a0650 100644 --- a/platformclientv2/architectapi.go +++ b/platformclientv2/architectapi.go @@ -4264,6 +4264,239 @@ func (a ArchitectApi) GetFlowsDatatable(datatableId string, expand string) (*Dat return successPayload, response, err } +// GetFlowsDatatableExportJob invokes GET /api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId} +// +// Returns the state information about an export job +// +// Returns the state information about an export job. +func (a ArchitectApi) GetFlowsDatatableExportJob(datatableId string, exportJobId string) (*Datatableexportjob, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}" + path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) + path = strings.Replace(path, "{exportJobId}", fmt.Sprintf("%v", exportJobId), -1) + defaultReturn := new(Datatableexportjob) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'datatableId' is set + if &datatableId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableExportJob") + } + // verify the required parameter 'exportJobId' is set + if &exportJobId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'exportJobId' when calling ArchitectApi->GetFlowsDatatableExportJob") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Datatableexportjob + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// GetFlowsDatatableImportJob invokes GET /api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId} +// +// Returns the state information about an import job +// +// Returns the state information about an import job. +func (a ArchitectApi) GetFlowsDatatableImportJob(datatableId string, importJobId string) (*Datatableimportjob, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}" + path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) + path = strings.Replace(path, "{importJobId}", fmt.Sprintf("%v", importJobId), -1) + defaultReturn := new(Datatableimportjob) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'datatableId' is set + if &datatableId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableImportJob") + } + // verify the required parameter 'importJobId' is set + if &importJobId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'importJobId' when calling ArchitectApi->GetFlowsDatatableImportJob") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Datatableimportjob + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// GetFlowsDatatableImportJobs invokes GET /api/v2/flows/datatables/{datatableId}/import/jobs +// +// Get all recent import jobs +// +// Get all recent import jobs +func (a ArchitectApi) GetFlowsDatatableImportJobs(datatableId string, pageNumber int32, pageSize int32) (*Entitylisting, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/import/jobs" + path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) + defaultReturn := new(Entitylisting) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'datatableId' is set + if &datatableId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->GetFlowsDatatableImportJobs") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + var collectionFormat string + + + + collectionFormat = "" + queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Entitylisting + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // GetFlowsDatatableRow invokes GET /api/v2/flows/datatables/{datatableId}/rows/{rowId} // // Returns a specific row for the datatable @@ -6191,6 +6424,152 @@ func (a ArchitectApi) PostFlowsActionsUnlock(flow string) (*Flow, *APIResponse, return successPayload, response, err } +// PostFlowsDatatableExportJobs invokes POST /api/v2/flows/datatables/{datatableId}/export/jobs +// +// Begin an export process for exporting all rows from a datatable +// +// Create an export job for exporting rows. The caller can then poll for status of the export using the token returned in the response +func (a ArchitectApi) PostFlowsDatatableExportJobs(datatableId string) (*Datatableexportjob, *APIResponse, error) { + var httpMethod = "POST" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/export/jobs" + path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) + defaultReturn := new(Datatableexportjob) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'datatableId' is set + if &datatableId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PostFlowsDatatableExportJobs") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Datatableexportjob + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// PostFlowsDatatableImportJobs invokes POST /api/v2/flows/datatables/{datatableId}/import/jobs +// +// Begin an import process for importing rows into a datatable +// +// Create an import job for importing rows. The caller can then poll for status of the import using the token returned in the response +func (a ArchitectApi) PostFlowsDatatableImportJobs(datatableId string, body Datatableimportjob) (*Datatableimportjob, *APIResponse, error) { + var httpMethod = "POST" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/flows/datatables/{datatableId}/import/jobs" + path = strings.Replace(path, "{datatableId}", fmt.Sprintf("%v", datatableId), -1) + defaultReturn := new(Datatableimportjob) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'datatableId' is set + if &datatableId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'datatableId' when calling ArchitectApi->PostFlowsDatatableImportJobs") + } + // verify the required parameter 'body' is set + if &body == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling ArchitectApi->PostFlowsDatatableImportJobs") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + // body params + postBody = &body + + var successPayload *Datatableimportjob + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // PostFlowsDatatableRows invokes POST /api/v2/flows/datatables/{datatableId}/rows // // Create a new row entry for the datatable. diff --git a/platformclientv2/arraynode.go b/platformclientv2/arraynode.go index 5a2d68a2c..0736dde33 100644 --- a/platformclientv2/arraynode.go +++ b/platformclientv2/arraynode.go @@ -37,18 +37,14 @@ type Arraynode struct { MissingNode *bool `json:"missingNode,omitempty"` - // Pojo - Pojo *bool `json:"pojo,omitempty"` + // IntegralNumber + IntegralNumber *bool `json:"integralNumber,omitempty"` // FloatingPointNumber FloatingPointNumber *bool `json:"floatingPointNumber,omitempty"` - // IntegralNumber - IntegralNumber *bool `json:"integralNumber,omitempty"` - - // Short Short *bool `json:"short,omitempty"` @@ -81,6 +77,10 @@ type Arraynode struct { Binary *bool `json:"binary,omitempty"` + // Pojo + Pojo *bool `json:"pojo,omitempty"` + + // Array Array *bool `json:"array,omitempty"` diff --git a/platformclientv2/attemptlimitsentitylisting.go b/platformclientv2/attemptlimitsentitylisting.go index 0452d3bd8..873d3ea57 100644 --- a/platformclientv2/attemptlimitsentitylisting.go +++ b/platformclientv2/attemptlimitsentitylisting.go @@ -33,14 +33,14 @@ type Attemptlimitsentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/auditapi.go b/platformclientv2/auditapi.go index 16c1e2a76..86cb4d725 100644 --- a/platformclientv2/auditapi.go +++ b/platformclientv2/auditapi.go @@ -104,7 +104,7 @@ func (a AuditApi) GetAuditsQueryTransactionId(transactionId string) (*Auditquery // Get results of audit query // // -func (a AuditApi) GetAuditsQueryTransactionIdResults(transactionId string, cursor string, pageSize int32) (*Auditqueryexecutionresultsresponse, *APIResponse, error) { +func (a AuditApi) GetAuditsQueryTransactionIdResults(transactionId string, cursor string, pageSize int32, expand []string) (*Auditqueryexecutionresultsresponse, *APIResponse, error) { var httpMethod = "GET" // create path and map variables path := a.Configuration.BasePath + "/api/v2/audits/query/{transactionId}/results" @@ -151,6 +151,18 @@ func (a AuditApi) GetAuditsQueryTransactionIdResults(transactionId string, curso queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + collectionFormat = "multi" + if collectionFormat == "multi" { + for _, value := range expand { + queryParams["expand"] = value + } + } else { + queryParams["expand"] = a.Configuration.APIClient.ParameterToString(expand, collectionFormat) + } + + + // to determine the Content-Type header localVarHttpContentTypes := []string{ "application/json", } diff --git a/platformclientv2/auditlogmessage.go b/platformclientv2/auditlogmessage.go index 0c408c11c..6acdebcb1 100644 --- a/platformclientv2/auditlogmessage.go +++ b/platformclientv2/auditlogmessage.go @@ -11,7 +11,7 @@ type Auditlogmessage struct { // User - User associated with this audit message. - User *Addressableentityref `json:"user,omitempty"` + User *Domainentityref `json:"user,omitempty"` // Client - Client associated with this audit message. diff --git a/platformclientv2/authorizationapi.go b/platformclientv2/authorizationapi.go index 562a113dd..dbc11967b 100644 --- a/platformclientv2/authorizationapi.go +++ b/platformclientv2/authorizationapi.go @@ -650,9 +650,9 @@ func (a AuthorizationApi) GetAuthorizationDivisionsLimit() (*int32, *APIResponse // GetAuthorizationDivisionspermittedMe invokes GET /api/v2/authorization/divisionspermitted/me // -// Returns whether or not current user can perform the specified action(s). +// Returns which divisions the current user has the given permission in. // -// +// This route is deprecated, use authorization/divisionspermitted/paged/me instead. func (a AuthorizationApi) GetAuthorizationDivisionspermittedMe(permission string, name string) ([]Authzdivision, *APIResponse, error) { var httpMethod = "GET" // create path and map variables @@ -730,11 +730,193 @@ func (a AuthorizationApi) GetAuthorizationDivisionspermittedMe(permission string return successPayload, response, err } -// GetAuthorizationDivisionspermittedSubjectId invokes GET /api/v2/authorization/divisionspermitted/{subjectId} +// GetAuthorizationDivisionspermittedPagedMe invokes GET /api/v2/authorization/divisionspermitted/paged/me // -// Returns whether or not specified user can perform the specified action(s). +// Returns which divisions the current user has the given permission in. // // +func (a AuthorizationApi) GetAuthorizationDivisionspermittedPagedMe(permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/me" + defaultReturn := new(Divspermittedentitylisting) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'permission' is set + if &permission == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling AuthorizationApi->GetAuthorizationDivisionspermittedPagedMe") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + var collectionFormat string + + + + collectionFormat = "" + queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Divspermittedentitylisting + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// GetAuthorizationDivisionspermittedPagedSubjectId invokes GET /api/v2/authorization/divisionspermitted/paged/{subjectId} +// +// Returns which divisions the specified user has the given permission in. +// +// +func (a AuthorizationApi) GetAuthorizationDivisionspermittedPagedSubjectId(subjectId string, permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/{subjectId}" + path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) + defaultReturn := new(Divspermittedentitylisting) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'subjectId' is set + if &subjectId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling AuthorizationApi->GetAuthorizationDivisionspermittedPagedSubjectId") + } + // verify the required parameter 'permission' is set + if &permission == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling AuthorizationApi->GetAuthorizationDivisionspermittedPagedSubjectId") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + var collectionFormat string + + + + collectionFormat = "" + queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Divspermittedentitylisting + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// GetAuthorizationDivisionspermittedSubjectId invokes GET /api/v2/authorization/divisionspermitted/{subjectId} +// +// Returns which divisions the specified user has the given permission in. +// +// This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead. func (a AuthorizationApi) GetAuthorizationDivisionspermittedSubjectId(subjectId string, permission string, name string) ([]Authzdivision, *APIResponse, error) { var httpMethod = "GET" // create path and map variables diff --git a/platformclientv2/authzdivisionentitylisting.go b/platformclientv2/authzdivisionentitylisting.go index 056dad460..8f0c5e5f7 100644 --- a/platformclientv2/authzdivisionentitylisting.go +++ b/platformclientv2/authzdivisionentitylisting.go @@ -33,14 +33,14 @@ type Authzdivisionentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/availabletopic.go b/platformclientv2/availabletopic.go index 5227dc7a5..480e0b59c 100644 --- a/platformclientv2/availabletopic.go +++ b/platformclientv2/availabletopic.go @@ -13,13 +13,21 @@ type Availabletopic struct { Id *string `json:"id,omitempty"` - // RequiresPermissions + // RequiresPermissions - Permissions required to subscribe to the topic RequiresPermissions *[]string `json:"requiresPermissions,omitempty"` // Schema Schema *map[string]interface{} `json:"schema,omitempty"` + + // RequiresCurrentUser - True if the topic user ID is required to match the subscribing user ID + RequiresCurrentUser *bool `json:"requiresCurrentUser,omitempty"` + + + // RequiresCurrentUserOrPermission - True if permissions are only required when the topic user ID does not match the subscribing user ID + RequiresCurrentUserOrPermission *bool `json:"requiresCurrentUserOrPermission,omitempty"` + } // String returns a JSON representation of the model diff --git a/build/platformclientv2/buagentscheduleactivity.go b/platformclientv2/buagentscheduleactivity.go similarity index 100% rename from build/platformclientv2/buagentscheduleactivity.go rename to platformclientv2/buagentscheduleactivity.go diff --git a/build/platformclientv2/buagentschedulepublishedschedulereference.go b/platformclientv2/buagentschedulepublishedschedulereference.go similarity index 100% rename from build/platformclientv2/buagentschedulepublishedschedulereference.go rename to platformclientv2/buagentschedulepublishedschedulereference.go diff --git a/build/platformclientv2/buagentschedulesearchresponse.go b/platformclientv2/buagentschedulesearchresponse.go similarity index 100% rename from build/platformclientv2/buagentschedulesearchresponse.go rename to platformclientv2/buagentschedulesearchresponse.go diff --git a/build/platformclientv2/buagentscheduleshift.go b/platformclientv2/buagentscheduleshift.go similarity index 100% rename from build/platformclientv2/buagentscheduleshift.go rename to platformclientv2/buagentscheduleshift.go diff --git a/build/platformclientv2/buagentschedulessearchresponse.go b/platformclientv2/buagentschedulessearchresponse.go similarity index 100% rename from build/platformclientv2/buagentschedulessearchresponse.go rename to platformclientv2/buagentschedulessearchresponse.go diff --git a/build/platformclientv2/buasyncagentschedulessearchresponse.go b/platformclientv2/buasyncagentschedulessearchresponse.go similarity index 100% rename from build/platformclientv2/buasyncagentschedulessearchresponse.go rename to platformclientv2/buasyncagentschedulessearchresponse.go diff --git a/build/platformclientv2/bufulldaytimeoffmarker.go b/platformclientv2/bufulldaytimeoffmarker.go similarity index 100% rename from build/platformclientv2/bufulldaytimeoffmarker.go rename to platformclientv2/bufulldaytimeoffmarker.go diff --git a/build/platformclientv2/buschedulereference.go b/platformclientv2/buschedulereference.go similarity index 100% rename from build/platformclientv2/buschedulereference.go rename to platformclientv2/buschedulereference.go diff --git a/platformclientv2/calibrationentitylisting.go b/platformclientv2/calibrationentitylisting.go index 0e80fe0b5..7b8806a49 100644 --- a/platformclientv2/calibrationentitylisting.go +++ b/platformclientv2/calibrationentitylisting.go @@ -33,14 +33,14 @@ type Calibrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/callabletimesetentitylisting.go b/platformclientv2/callabletimesetentitylisting.go index a431983b3..db6359ad3 100644 --- a/platformclientv2/callabletimesetentitylisting.go +++ b/platformclientv2/callabletimesetentitylisting.go @@ -33,14 +33,14 @@ type Callabletimesetentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/callbackconversationentitylisting.go b/platformclientv2/callbackconversationentitylisting.go index 10d616dd8..7b33264fb 100644 --- a/platformclientv2/callbackconversationentitylisting.go +++ b/platformclientv2/callbackconversationentitylisting.go @@ -33,14 +33,14 @@ type Callbackconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/callconversationentitylisting.go b/platformclientv2/callconversationentitylisting.go index 09432f9c3..59a7fa03d 100644 --- a/platformclientv2/callconversationentitylisting.go +++ b/platformclientv2/callconversationentitylisting.go @@ -33,14 +33,14 @@ type Callconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/callhistoryconversationentitylisting.go b/platformclientv2/callhistoryconversationentitylisting.go index 5e58143ff..a2437185d 100644 --- a/platformclientv2/callhistoryconversationentitylisting.go +++ b/platformclientv2/callhistoryconversationentitylisting.go @@ -33,14 +33,14 @@ type Callhistoryconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/campaigndivisionviewlisting.go b/platformclientv2/campaigndivisionviewlisting.go index 5f28a3bdb..5361f16a2 100644 --- a/platformclientv2/campaigndivisionviewlisting.go +++ b/platformclientv2/campaigndivisionviewlisting.go @@ -33,14 +33,14 @@ type Campaigndivisionviewlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/campaignentitylisting.go b/platformclientv2/campaignentitylisting.go index 2373d32ec..5f58f8c35 100644 --- a/platformclientv2/campaignentitylisting.go +++ b/platformclientv2/campaignentitylisting.go @@ -33,14 +33,14 @@ type Campaignentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/campaignprogress.go b/platformclientv2/campaignprogress.go index b2aca5afb..37ac02c71 100644 --- a/platformclientv2/campaignprogress.go +++ b/platformclientv2/campaignprogress.go @@ -13,10 +13,14 @@ type Campaignprogress struct { ContactList *Domainentityref `json:"contactList,omitempty"` - // NumberOfContactsCalled - Number of contacts processed during the campaign + // NumberOfContactsCalled - Number of contacts called during the campaign NumberOfContactsCalled *int64 `json:"numberOfContactsCalled,omitempty"` + // NumberOfContactsMessaged - Number of contacts messaged during the campaign + NumberOfContactsMessaged *int64 `json:"numberOfContactsMessaged,omitempty"` + + // TotalNumberOfContacts - Total number of contacts in the campaign TotalNumberOfContacts *int64 `json:"totalNumberOfContacts,omitempty"` diff --git a/platformclientv2/campaignruleentitylisting.go b/platformclientv2/campaignruleentitylisting.go index 6656d5fc5..3cf1c7375 100644 --- a/platformclientv2/campaignruleentitylisting.go +++ b/platformclientv2/campaignruleentitylisting.go @@ -33,14 +33,14 @@ type Campaignruleentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/campaignsequenceentitylisting.go b/platformclientv2/campaignsequenceentitylisting.go index 4dceb512b..c9266a269 100644 --- a/platformclientv2/campaignsequenceentitylisting.go +++ b/platformclientv2/campaignsequenceentitylisting.go @@ -33,14 +33,14 @@ type Campaignsequenceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/certificateauthorityentitylisting.go b/platformclientv2/certificateauthorityentitylisting.go index a7dd23f13..d4807c86c 100644 --- a/platformclientv2/certificateauthorityentitylisting.go +++ b/platformclientv2/certificateauthorityentitylisting.go @@ -33,14 +33,14 @@ type Certificateauthorityentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/chatconversationentitylisting.go b/platformclientv2/chatconversationentitylisting.go index b38d6a1e2..a7180663f 100644 --- a/platformclientv2/chatconversationentitylisting.go +++ b/platformclientv2/chatconversationentitylisting.go @@ -33,14 +33,14 @@ type Chatconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/clientappentitylisting.go b/platformclientv2/clientappentitylisting.go index 693ee2de5..f3a5504e3 100644 --- a/platformclientv2/clientappentitylisting.go +++ b/platformclientv2/clientappentitylisting.go @@ -33,14 +33,14 @@ type Clientappentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/cobrowseconversationentitylisting.go b/platformclientv2/cobrowseconversationentitylisting.go index ed9d5f1e8..4034c26eb 100644 --- a/platformclientv2/cobrowseconversationentitylisting.go +++ b/platformclientv2/cobrowseconversationentitylisting.go @@ -33,14 +33,14 @@ type Cobrowseconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/commandstatusentitylisting.go b/platformclientv2/commandstatusentitylisting.go index 35b69deb4..4f3a6fb77 100644 --- a/platformclientv2/commandstatusentitylisting.go +++ b/platformclientv2/commandstatusentitylisting.go @@ -33,14 +33,14 @@ type Commandstatusentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/consumedresourcesentitylisting.go b/platformclientv2/consumedresourcesentitylisting.go index 8e946e423..f954890d2 100644 --- a/platformclientv2/consumedresourcesentitylisting.go +++ b/platformclientv2/consumedresourcesentitylisting.go @@ -33,14 +33,14 @@ type Consumedresourcesentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/consumingresourcesentitylisting.go b/platformclientv2/consumingresourcesentitylisting.go index b180d41ab..1c1aab282 100644 --- a/platformclientv2/consumingresourcesentitylisting.go +++ b/platformclientv2/consumingresourcesentitylisting.go @@ -33,14 +33,14 @@ type Consumingresourcesentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/contactlistdivisionviewlisting.go b/platformclientv2/contactlistdivisionviewlisting.go index 52b8b824f..680ea4b80 100644 --- a/platformclientv2/contactlistdivisionviewlisting.go +++ b/platformclientv2/contactlistdivisionviewlisting.go @@ -33,14 +33,14 @@ type Contactlistdivisionviewlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/contactlistentitylisting.go b/platformclientv2/contactlistentitylisting.go index 0f6ae7894..f4a0543d3 100644 --- a/platformclientv2/contactlistentitylisting.go +++ b/platformclientv2/contactlistentitylisting.go @@ -33,14 +33,14 @@ type Contactlistentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/contactlistfilterentitylisting.go b/platformclientv2/contactlistfilterentitylisting.go index 9ac1881a3..b86018cb1 100644 --- a/platformclientv2/contactlistfilterentitylisting.go +++ b/platformclientv2/contactlistfilterentitylisting.go @@ -33,14 +33,14 @@ type Contactlistfilterentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/contactlisting.go b/platformclientv2/contactlisting.go index 1eee2bff5..ba12fcbc7 100644 --- a/platformclientv2/contactlisting.go +++ b/platformclientv2/contactlisting.go @@ -33,14 +33,14 @@ type Contactlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/conversationentitylisting.go b/platformclientv2/conversationentitylisting.go index 06942d356..11daa4deb 100644 --- a/platformclientv2/conversationentitylisting.go +++ b/platformclientv2/conversationentitylisting.go @@ -33,14 +33,14 @@ type Conversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/conversationsapi.go b/platformclientv2/conversationsapi.go index 653b8263a..794b75405 100644 --- a/platformclientv2/conversationsapi.go +++ b/platformclientv2/conversationsapi.go @@ -877,7 +877,7 @@ func (a ConversationsApi) GetAnalyticsConversationsDetailsJob(jobId string) (*As // Fetch a page of results for an async query // // -func (a ConversationsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, cursor string) (*Analyticsconversationasyncqueryresponse, *APIResponse, error) { +func (a ConversationsApi) GetAnalyticsConversationsDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsconversationasyncqueryresponse, *APIResponse, error) { var httpMethod = "GET" // create path and map variables path := a.Configuration.BasePath + "/api/v2/analytics/conversations/details/jobs/{jobId}/results" @@ -918,6 +918,12 @@ func (a ConversationsApi) GetAnalyticsConversationsDetailsJobResults(jobId strin queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + // to determine the Content-Type header localVarHttpContentTypes := []string{ "application/json", } diff --git a/platformclientv2/credentialinfolisting.go b/platformclientv2/credentialinfolisting.go index 1c7013d57..7729c569b 100644 --- a/platformclientv2/credentialinfolisting.go +++ b/platformclientv2/credentialinfolisting.go @@ -33,14 +33,14 @@ type Credentialinfolisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/credentialtypelisting.go b/platformclientv2/credentialtypelisting.go index 80a52d5f2..a6fb8741f 100644 --- a/platformclientv2/credentialtypelisting.go +++ b/platformclientv2/credentialtypelisting.go @@ -33,14 +33,14 @@ type Credentialtypelisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/build/platformclientv2/datatableexportjob.go b/platformclientv2/datatableexportjob.go similarity index 100% rename from build/platformclientv2/datatableexportjob.go rename to platformclientv2/datatableexportjob.go diff --git a/build/platformclientv2/datatableimportjob.go b/platformclientv2/datatableimportjob.go similarity index 100% rename from build/platformclientv2/datatableimportjob.go rename to platformclientv2/datatableimportjob.go diff --git a/platformclientv2/datatablerowentitylisting.go b/platformclientv2/datatablerowentitylisting.go index 83d602ead..4986b4db2 100644 --- a/platformclientv2/datatablerowentitylisting.go +++ b/platformclientv2/datatablerowentitylisting.go @@ -33,14 +33,14 @@ type Datatablerowentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/datatablesdomainentitylisting.go b/platformclientv2/datatablesdomainentitylisting.go index 3d0c36b0d..db0463d9d 100644 --- a/platformclientv2/datatablesdomainentitylisting.go +++ b/platformclientv2/datatablesdomainentitylisting.go @@ -33,14 +33,14 @@ type Datatablesdomainentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/dependencyobjectentitylisting.go b/platformclientv2/dependencyobjectentitylisting.go index 82f8a33c3..b597e37df 100644 --- a/platformclientv2/dependencyobjectentitylisting.go +++ b/platformclientv2/dependencyobjectentitylisting.go @@ -33,14 +33,14 @@ type Dependencyobjectentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/dependencytypeentitylisting.go b/platformclientv2/dependencytypeentitylisting.go index 815caca39..6aafc3993 100644 --- a/platformclientv2/dependencytypeentitylisting.go +++ b/platformclientv2/dependencytypeentitylisting.go @@ -33,14 +33,14 @@ type Dependencytypeentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/dialercampaignprogresseventcampaignprogress.go b/platformclientv2/dialercampaignprogresseventcampaignprogress.go index 812122fbe..c9fda353e 100644 --- a/platformclientv2/dialercampaignprogresseventcampaignprogress.go +++ b/platformclientv2/dialercampaignprogresseventcampaignprogress.go @@ -13,6 +13,10 @@ type Dialercampaignprogresseventcampaignprogress struct { NumberOfContactsCalled *float32 `json:"numberOfContactsCalled,omitempty"` + // NumberOfContactsMessaged + NumberOfContactsMessaged *float32 `json:"numberOfContactsMessaged,omitempty"` + + // TotalNumberOfContacts TotalNumberOfContacts *float32 `json:"totalNumberOfContacts,omitempty"` diff --git a/platformclientv2/dialerevententitylisting.go b/platformclientv2/dialerevententitylisting.go index 291cb5620..86b25522d 100644 --- a/platformclientv2/dialerevententitylisting.go +++ b/platformclientv2/dialerevententitylisting.go @@ -33,14 +33,14 @@ type Dialerevententitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/dialogflowagentsummaryentitylisting.go b/platformclientv2/dialogflowagentsummaryentitylisting.go index 7fc948b77..0de0e842c 100644 --- a/platformclientv2/dialogflowagentsummaryentitylisting.go +++ b/platformclientv2/dialogflowagentsummaryentitylisting.go @@ -33,14 +33,14 @@ type Dialogflowagentsummaryentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/didentitylisting.go b/platformclientv2/didentitylisting.go index adb7ecb09..453e1d088 100644 --- a/platformclientv2/didentitylisting.go +++ b/platformclientv2/didentitylisting.go @@ -33,14 +33,14 @@ type Didentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/didpoolentitylisting.go b/platformclientv2/didpoolentitylisting.go index 50b3a18aa..cd6b955a3 100644 --- a/platformclientv2/didpoolentitylisting.go +++ b/platformclientv2/didpoolentitylisting.go @@ -33,14 +33,14 @@ type Didpoolentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/directoryuserdeviceslisting.go b/platformclientv2/directoryuserdeviceslisting.go index 9cd7a30d7..bbceae8b2 100644 --- a/platformclientv2/directoryuserdeviceslisting.go +++ b/platformclientv2/directoryuserdeviceslisting.go @@ -33,14 +33,14 @@ type Directoryuserdeviceslisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/build/platformclientv2/divspermittedentitylisting.go b/platformclientv2/divspermittedentitylisting.go similarity index 100% rename from build/platformclientv2/divspermittedentitylisting.go rename to platformclientv2/divspermittedentitylisting.go diff --git a/platformclientv2/dnclistdivisionviewlisting.go b/platformclientv2/dnclistdivisionviewlisting.go index 365e31af0..745d3ebce 100644 --- a/platformclientv2/dnclistdivisionviewlisting.go +++ b/platformclientv2/dnclistdivisionviewlisting.go @@ -33,14 +33,14 @@ type Dnclistdivisionviewlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/dnclistentitylisting.go b/platformclientv2/dnclistentitylisting.go index 22e9f150c..f16ad434a 100644 --- a/platformclientv2/dnclistentitylisting.go +++ b/platformclientv2/dnclistentitylisting.go @@ -33,14 +33,14 @@ type Dnclistentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/documentauditentitylisting.go b/platformclientv2/documentauditentitylisting.go index 2c22d7971..3ba199560 100644 --- a/platformclientv2/documentauditentitylisting.go +++ b/platformclientv2/documentauditentitylisting.go @@ -33,14 +33,14 @@ type Documentauditentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/documententitylisting.go b/platformclientv2/documententitylisting.go index d2265b1b1..ad66e4058 100644 --- a/platformclientv2/documententitylisting.go +++ b/platformclientv2/documententitylisting.go @@ -33,14 +33,14 @@ type Documententitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/domainedgesoftwareversiondtoentitylisting.go b/platformclientv2/domainedgesoftwareversiondtoentitylisting.go index 041c2c31d..57f6d263b 100644 --- a/platformclientv2/domainedgesoftwareversiondtoentitylisting.go +++ b/platformclientv2/domainedgesoftwareversiondtoentitylisting.go @@ -33,14 +33,14 @@ type Domainedgesoftwareversiondtoentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/domainentitylisting.go b/platformclientv2/domainentitylisting.go index c82f05889..aafab1173 100644 --- a/platformclientv2/domainentitylisting.go +++ b/platformclientv2/domainentitylisting.go @@ -33,14 +33,14 @@ type Domainentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/domainentitylistingevaluationform.go b/platformclientv2/domainentitylistingevaluationform.go index abe446eb8..2bae99af2 100644 --- a/platformclientv2/domainentitylistingevaluationform.go +++ b/platformclientv2/domainentitylistingevaluationform.go @@ -33,14 +33,14 @@ type Domainentitylistingevaluationform struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/domainentitylistingqueryresult.go b/platformclientv2/domainentitylistingqueryresult.go index 2a40168a4..f78ba4285 100644 --- a/platformclientv2/domainentitylistingqueryresult.go +++ b/platformclientv2/domainentitylistingqueryresult.go @@ -33,14 +33,14 @@ type Domainentitylistingqueryresult struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/domainentitylistingsurveyform.go b/platformclientv2/domainentitylistingsurveyform.go index 96cbf6b82..0805f393a 100644 --- a/platformclientv2/domainentitylistingsurveyform.go +++ b/platformclientv2/domainentitylistingsurveyform.go @@ -33,14 +33,14 @@ type Domainentitylistingsurveyform struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/edgeentitylisting.go b/platformclientv2/edgeentitylisting.go index e8f4a2e99..c0f9f11da 100644 --- a/platformclientv2/edgeentitylisting.go +++ b/platformclientv2/edgeentitylisting.go @@ -33,14 +33,14 @@ type Edgeentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/edgegroupentitylisting.go b/platformclientv2/edgegroupentitylisting.go index a5e6b7ae7..5c1faee97 100644 --- a/platformclientv2/edgegroupentitylisting.go +++ b/platformclientv2/edgegroupentitylisting.go @@ -33,14 +33,14 @@ type Edgegroupentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/edgelineentitylisting.go b/platformclientv2/edgelineentitylisting.go index 2fba08bcd..fc2fc169b 100644 --- a/platformclientv2/edgelineentitylisting.go +++ b/platformclientv2/edgelineentitylisting.go @@ -33,14 +33,14 @@ type Edgelineentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/emailconversationentitylisting.go b/platformclientv2/emailconversationentitylisting.go index 535912ba9..e966f0981 100644 --- a/platformclientv2/emailconversationentitylisting.go +++ b/platformclientv2/emailconversationentitylisting.go @@ -33,14 +33,14 @@ type Emailconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/emailmessagelisting.go b/platformclientv2/emailmessagelisting.go index a8f57e317..f70d1c369 100644 --- a/platformclientv2/emailmessagelisting.go +++ b/platformclientv2/emailmessagelisting.go @@ -33,14 +33,14 @@ type Emailmessagelisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/emergencygrouplisting.go b/platformclientv2/emergencygrouplisting.go index bff60be75..2a1553c49 100644 --- a/platformclientv2/emergencygrouplisting.go +++ b/platformclientv2/emergencygrouplisting.go @@ -33,14 +33,14 @@ type Emergencygrouplisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/encryptionkeyentitylisting.go b/platformclientv2/encryptionkeyentitylisting.go index 3b5049ad5..f9c5fbd41 100644 --- a/platformclientv2/encryptionkeyentitylisting.go +++ b/platformclientv2/encryptionkeyentitylisting.go @@ -33,14 +33,14 @@ type Encryptionkeyentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/build/platformclientv2/entitylisting.go b/platformclientv2/entitylisting.go similarity index 100% rename from build/platformclientv2/entitylisting.go rename to platformclientv2/entitylisting.go diff --git a/platformclientv2/evaluation.go b/platformclientv2/evaluation.go index aa2ccdcd0..758e1c616 100644 --- a/platformclientv2/evaluation.go +++ b/platformclientv2/evaluation.go @@ -74,6 +74,10 @@ type Evaluation struct { ConversationDate *time.Time `json:"conversationDate,omitempty"` + // ConversationEndDate - End date of conversation if it had completed before evaluation creation. Null if created before the conversation ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + ConversationEndDate *time.Time `json:"conversationEndDate,omitempty"` + + // NeverRelease - Signifies if the evaluation is never to be released. This cannot be set true if release date is also set. NeverRelease *bool `json:"neverRelease,omitempty"` diff --git a/platformclientv2/evaluationentitylisting.go b/platformclientv2/evaluationentitylisting.go index 03681c316..234b6186b 100644 --- a/platformclientv2/evaluationentitylisting.go +++ b/platformclientv2/evaluationentitylisting.go @@ -33,14 +33,14 @@ type Evaluationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/evaluationformentitylisting.go b/platformclientv2/evaluationformentitylisting.go index 2d3eeb674..5ef993c86 100644 --- a/platformclientv2/evaluationformentitylisting.go +++ b/platformclientv2/evaluationformentitylisting.go @@ -33,14 +33,14 @@ type Evaluationformentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/evaluationquestiongroupscore.go b/platformclientv2/evaluationquestiongroupscore.go index 489da35fc..e19c00409 100644 --- a/platformclientv2/evaluationquestiongroupscore.go +++ b/platformclientv2/evaluationquestiongroupscore.go @@ -29,6 +29,14 @@ type Evaluationquestiongroupscore struct { MaxTotalCriticalScore *float32 `json:"maxTotalCriticalScore,omitempty"` + // TotalNonCriticalScore + TotalNonCriticalScore *float32 `json:"totalNonCriticalScore,omitempty"` + + + // MaxTotalNonCriticalScore + MaxTotalNonCriticalScore *float32 `json:"maxTotalNonCriticalScore,omitempty"` + + // TotalScoreUnweighted TotalScoreUnweighted *float32 `json:"totalScoreUnweighted,omitempty"` @@ -45,6 +53,14 @@ type Evaluationquestiongroupscore struct { MaxTotalCriticalScoreUnweighted *float32 `json:"maxTotalCriticalScoreUnweighted,omitempty"` + // TotalNonCriticalScoreUnweighted + TotalNonCriticalScoreUnweighted *float32 `json:"totalNonCriticalScoreUnweighted,omitempty"` + + + // MaxTotalNonCriticalScoreUnweighted + MaxTotalNonCriticalScoreUnweighted *float32 `json:"maxTotalNonCriticalScoreUnweighted,omitempty"` + + // QuestionScores QuestionScores *[]Evaluationquestionscore `json:"questionScores,omitempty"` diff --git a/platformclientv2/evaluationscoringset.go b/platformclientv2/evaluationscoringset.go index f68ed4619..c144a4483 100644 --- a/platformclientv2/evaluationscoringset.go +++ b/platformclientv2/evaluationscoringset.go @@ -13,6 +13,10 @@ type Evaluationscoringset struct { TotalCriticalScore *float32 `json:"totalCriticalScore,omitempty"` + // TotalNonCriticalScore + TotalNonCriticalScore *float32 `json:"totalNonCriticalScore,omitempty"` + + // QuestionGroupScores QuestionGroupScores *[]Evaluationquestiongroupscore `json:"questionGroupScores,omitempty"` diff --git a/platformclientv2/evaluatoractivityentitylisting.go b/platformclientv2/evaluatoractivityentitylisting.go index 5aa68d705..509f9d149 100644 --- a/platformclientv2/evaluatoractivityentitylisting.go +++ b/platformclientv2/evaluatoractivityentitylisting.go @@ -33,14 +33,14 @@ type Evaluatoractivityentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/extensionentitylisting.go b/platformclientv2/extensionentitylisting.go index c3d193285..26ae9aa1d 100644 --- a/platformclientv2/extensionentitylisting.go +++ b/platformclientv2/extensionentitylisting.go @@ -33,14 +33,14 @@ type Extensionentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/extensionpoolentitylisting.go b/platformclientv2/extensionpoolentitylisting.go index e3fcdd02d..be10420c4 100644 --- a/platformclientv2/extensionpoolentitylisting.go +++ b/platformclientv2/extensionpoolentitylisting.go @@ -33,14 +33,14 @@ type Extensionpoolentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/externalorganizationlisting.go b/platformclientv2/externalorganizationlisting.go index 2ab905cee..11a7c29d2 100644 --- a/platformclientv2/externalorganizationlisting.go +++ b/platformclientv2/externalorganizationlisting.go @@ -33,14 +33,14 @@ type Externalorganizationlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/facebookintegrationentitylisting.go b/platformclientv2/facebookintegrationentitylisting.go index 01014b829..6438641e1 100644 --- a/platformclientv2/facebookintegrationentitylisting.go +++ b/platformclientv2/facebookintegrationentitylisting.go @@ -33,14 +33,14 @@ type Facebookintegrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/facebookintegrationrequest.go b/platformclientv2/facebookintegrationrequest.go index c2350de71..7759b2352 100644 --- a/platformclientv2/facebookintegrationrequest.go +++ b/platformclientv2/facebookintegrationrequest.go @@ -25,11 +25,11 @@ type Facebookintegrationrequest struct { PageId *string `json:"pageId,omitempty"` - // AppId - The app Id of a facebook app + // AppId - The app Id of a facebook app. The appId is required when a customer wants to use their own approved facebook app. AppId *string `json:"appId,omitempty"` - // AppSecret - The app Secret of a facebook app + // AppSecret - The app Secret of a facebook app. The appSecret is required when appId is provided. AppSecret *string `json:"appSecret,omitempty"` diff --git a/platformclientv2/faxdocumententitylisting.go b/platformclientv2/faxdocumententitylisting.go index 91083fb99..2a965f9a2 100644 --- a/platformclientv2/faxdocumententitylisting.go +++ b/platformclientv2/faxdocumententitylisting.go @@ -33,14 +33,14 @@ type Faxdocumententitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/flowdivisionviewentitylisting.go b/platformclientv2/flowdivisionviewentitylisting.go index 56243f5d0..8b3463524 100644 --- a/platformclientv2/flowdivisionviewentitylisting.go +++ b/platformclientv2/flowdivisionviewentitylisting.go @@ -33,14 +33,14 @@ type Flowdivisionviewentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/flowentitylisting.go b/platformclientv2/flowentitylisting.go index 64d2db21e..79e36db79 100644 --- a/platformclientv2/flowentitylisting.go +++ b/platformclientv2/flowentitylisting.go @@ -33,14 +33,14 @@ type Flowentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/flowoutcomelisting.go b/platformclientv2/flowoutcomelisting.go index e8d04c43e..46d118ac5 100644 --- a/platformclientv2/flowoutcomelisting.go +++ b/platformclientv2/flowoutcomelisting.go @@ -33,14 +33,14 @@ type Flowoutcomelisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/flowversionentitylisting.go b/platformclientv2/flowversionentitylisting.go index 230dc93ba..7d65cdbbf 100644 --- a/platformclientv2/flowversionentitylisting.go +++ b/platformclientv2/flowversionentitylisting.go @@ -33,14 +33,14 @@ type Flowversionentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/gdprjourneycustomer.go b/platformclientv2/gdprjourneycustomer.go index bd4da0e83..bc16f14bd 100644 --- a/platformclientv2/gdprjourneycustomer.go +++ b/platformclientv2/gdprjourneycustomer.go @@ -5,11 +5,11 @@ import ( // Gdprjourneycustomer type Gdprjourneycustomer struct { - // VarType - The type of the customerId within the Journey System (e.g. cookie). + // VarType - The type of the customerId within the Journey System (e.g. cookie). Required if `id` is defined. VarType *string `json:"type,omitempty"` - // Id - An ID of a customer within the Journey System at a point-in-time. + // Id - An ID of a customer within the Journey System at a point-in-time. Required if `type` is defined. Id *string `json:"id,omitempty"` } diff --git a/platformclientv2/gdprrequestentitylisting.go b/platformclientv2/gdprrequestentitylisting.go index e1990b699..184606ba5 100644 --- a/platformclientv2/gdprrequestentitylisting.go +++ b/platformclientv2/gdprrequestentitylisting.go @@ -33,14 +33,14 @@ type Gdprrequestentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/gdprsubjectentitylisting.go b/platformclientv2/gdprsubjectentitylisting.go index f525a4deb..446b30fb7 100644 --- a/platformclientv2/gdprsubjectentitylisting.go +++ b/platformclientv2/gdprsubjectentitylisting.go @@ -33,14 +33,14 @@ type Gdprsubjectentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/greetinglisting.go b/platformclientv2/greetinglisting.go index fbcea7503..75a719339 100644 --- a/platformclientv2/greetinglisting.go +++ b/platformclientv2/greetinglisting.go @@ -33,14 +33,14 @@ type Greetinglisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/groupentitylisting.go b/platformclientv2/groupentitylisting.go index f63f38d06..bd2280db1 100644 --- a/platformclientv2/groupentitylisting.go +++ b/platformclientv2/groupentitylisting.go @@ -33,14 +33,14 @@ type Groupentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/groupprofileentitylisting.go b/platformclientv2/groupprofileentitylisting.go index 115a4f734..65cfb53c1 100644 --- a/platformclientv2/groupprofileentitylisting.go +++ b/platformclientv2/groupprofileentitylisting.go @@ -33,14 +33,14 @@ type Groupprofileentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/inbounddomainentitylisting.go b/platformclientv2/inbounddomainentitylisting.go index 072df6783..9973fe818 100644 --- a/platformclientv2/inbounddomainentitylisting.go +++ b/platformclientv2/inbounddomainentitylisting.go @@ -33,14 +33,14 @@ type Inbounddomainentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/inboundrouteentitylisting.go b/platformclientv2/inboundrouteentitylisting.go index 366547ffa..a41b1d596 100644 --- a/platformclientv2/inboundrouteentitylisting.go +++ b/platformclientv2/inboundrouteentitylisting.go @@ -33,14 +33,14 @@ type Inboundrouteentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/integrationentitylisting.go b/platformclientv2/integrationentitylisting.go index 88159fdc8..8608fb02f 100644 --- a/platformclientv2/integrationentitylisting.go +++ b/platformclientv2/integrationentitylisting.go @@ -33,14 +33,14 @@ type Integrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/integrationevententitylisting.go b/platformclientv2/integrationevententitylisting.go index 0428829e1..4dcee2061 100644 --- a/platformclientv2/integrationevententitylisting.go +++ b/platformclientv2/integrationevententitylisting.go @@ -33,14 +33,14 @@ type Integrationevententitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/integrationtypeentitylisting.go b/platformclientv2/integrationtypeentitylisting.go index c4a0ebe7b..0e8c8b23b 100644 --- a/platformclientv2/integrationtypeentitylisting.go +++ b/platformclientv2/integrationtypeentitylisting.go @@ -33,14 +33,14 @@ type Integrationtypeentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/interactionstatsalertcontainer.go b/platformclientv2/interactionstatsalertcontainer.go index 5eed48315..26ca3ed79 100644 --- a/platformclientv2/interactionstatsalertcontainer.go +++ b/platformclientv2/interactionstatsalertcontainer.go @@ -33,14 +33,14 @@ type Interactionstatsalertcontainer struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/interactionstatsrulecontainer.go b/platformclientv2/interactionstatsrulecontainer.go index 9f93ac95a..88ce62926 100644 --- a/platformclientv2/interactionstatsrulecontainer.go +++ b/platformclientv2/interactionstatsrulecontainer.go @@ -33,14 +33,14 @@ type Interactionstatsrulecontainer struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/ivrentitylisting.go b/platformclientv2/ivrentitylisting.go index 762778c9f..5b401a894 100644 --- a/platformclientv2/ivrentitylisting.go +++ b/platformclientv2/ivrentitylisting.go @@ -33,14 +33,14 @@ type Ivrentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/jsonnode.go b/platformclientv2/jsonnode.go index 7cb3709b6..6080ae78a 100644 --- a/platformclientv2/jsonnode.go +++ b/platformclientv2/jsonnode.go @@ -37,18 +37,14 @@ type Jsonnode struct { MissingNode *bool `json:"missingNode,omitempty"` - // Pojo - Pojo *bool `json:"pojo,omitempty"` + // IntegralNumber + IntegralNumber *bool `json:"integralNumber,omitempty"` // FloatingPointNumber FloatingPointNumber *bool `json:"floatingPointNumber,omitempty"` - // IntegralNumber - IntegralNumber *bool `json:"integralNumber,omitempty"` - - // Short Short *bool `json:"short,omitempty"` @@ -81,6 +77,10 @@ type Jsonnode struct { Binary *bool `json:"binary,omitempty"` + // Pojo + Pojo *bool `json:"pojo,omitempty"` + + // Array Array *bool `json:"array,omitempty"` diff --git a/platformclientv2/keywordsetentitylisting.go b/platformclientv2/keywordsetentitylisting.go index adbb0f624..7635a5685 100644 --- a/platformclientv2/keywordsetentitylisting.go +++ b/platformclientv2/keywordsetentitylisting.go @@ -33,14 +33,14 @@ type Keywordsetentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/languageentitylisting.go b/platformclientv2/languageentitylisting.go index 0e9375843..5b0eda7b5 100644 --- a/platformclientv2/languageentitylisting.go +++ b/platformclientv2/languageentitylisting.go @@ -33,14 +33,14 @@ type Languageentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/lexbotaliasentitylisting.go b/platformclientv2/lexbotaliasentitylisting.go index eb992ff70..91aee79a7 100644 --- a/platformclientv2/lexbotaliasentitylisting.go +++ b/platformclientv2/lexbotaliasentitylisting.go @@ -33,14 +33,14 @@ type Lexbotaliasentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/lexbotentitylisting.go b/platformclientv2/lexbotentitylisting.go index 0dcd773fe..91b6b88ce 100644 --- a/platformclientv2/lexbotentitylisting.go +++ b/platformclientv2/lexbotentitylisting.go @@ -33,14 +33,14 @@ type Lexbotentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/libraryentitylisting.go b/platformclientv2/libraryentitylisting.go index 488365758..b8e69ab67 100644 --- a/platformclientv2/libraryentitylisting.go +++ b/platformclientv2/libraryentitylisting.go @@ -33,14 +33,14 @@ type Libraryentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/licenseapi.go b/platformclientv2/licenseapi.go index 1cd9605ac..97b48216d 100644 --- a/platformclientv2/licenseapi.go +++ b/platformclientv2/licenseapi.go @@ -377,6 +377,72 @@ func (a LicenseApi) GetLicenseUsers(pageSize int32, pageNumber int32) (*Userlice return successPayload, response, err } +// PostLicenseInfer invokes POST /api/v2/license/infer +// +// Get a list of licenses inferred based on a list of roleIds +// +// +func (a LicenseApi) PostLicenseInfer(body []string) ([]string, *APIResponse, error) { + var httpMethod = "POST" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/license/infer" + defaultReturn := make([]string, 0) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + // body params + postBody = &body + + var successPayload []string + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // PostLicenseOrganization invokes POST /api/v2/license/organization // // Update the organization's license assignments in a batch. diff --git a/platformclientv2/linebaseentitylisting.go b/platformclientv2/linebaseentitylisting.go index 5cfb86673..f0c18c911 100644 --- a/platformclientv2/linebaseentitylisting.go +++ b/platformclientv2/linebaseentitylisting.go @@ -33,14 +33,14 @@ type Linebaseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/lineentitylisting.go b/platformclientv2/lineentitylisting.go index dd42474ec..9f349665f 100644 --- a/platformclientv2/lineentitylisting.go +++ b/platformclientv2/lineentitylisting.go @@ -33,14 +33,14 @@ type Lineentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/lineintegrationentitylisting.go b/platformclientv2/lineintegrationentitylisting.go index 6cff22b15..458c0479e 100644 --- a/platformclientv2/lineintegrationentitylisting.go +++ b/platformclientv2/lineintegrationentitylisting.go @@ -33,14 +33,14 @@ type Lineintegrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/locationentitylisting.go b/platformclientv2/locationentitylisting.go index 7ae1b9b8a..20b6202cf 100644 --- a/platformclientv2/locationentitylisting.go +++ b/platformclientv2/locationentitylisting.go @@ -33,14 +33,14 @@ type Locationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/logicalinterfaceentitylisting.go b/platformclientv2/logicalinterfaceentitylisting.go index fbe511300..ef8b8bc9e 100644 --- a/platformclientv2/logicalinterfaceentitylisting.go +++ b/platformclientv2/logicalinterfaceentitylisting.go @@ -33,14 +33,14 @@ type Logicalinterfaceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/managementunitlisting.go b/platformclientv2/managementunitlisting.go index 2a464b239..55d16205a 100644 --- a/platformclientv2/managementunitlisting.go +++ b/platformclientv2/managementunitlisting.go @@ -33,14 +33,14 @@ type Managementunitlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/messageconversationentitylisting.go b/platformclientv2/messageconversationentitylisting.go index 68e9bc062..3b6c0f6e0 100644 --- a/platformclientv2/messageconversationentitylisting.go +++ b/platformclientv2/messageconversationentitylisting.go @@ -33,14 +33,14 @@ type Messageconversationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/messagingintegrationentitylisting.go b/platformclientv2/messagingintegrationentitylisting.go index 1b7e9203d..d3ec5448c 100644 --- a/platformclientv2/messagingintegrationentitylisting.go +++ b/platformclientv2/messagingintegrationentitylisting.go @@ -33,14 +33,14 @@ type Messagingintegrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/messagingstickerentitylisting.go b/platformclientv2/messagingstickerentitylisting.go index c8d722549..6cdeb29ef 100644 --- a/platformclientv2/messagingstickerentitylisting.go +++ b/platformclientv2/messagingstickerentitylisting.go @@ -33,14 +33,14 @@ type Messagingstickerentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/notelisting.go b/platformclientv2/notelisting.go index e7fb19a98..72a70282b 100644 --- a/platformclientv2/notelisting.go +++ b/platformclientv2/notelisting.go @@ -33,14 +33,14 @@ type Notelisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/oauthcliententitylisting.go b/platformclientv2/oauthcliententitylisting.go index 0e64c5bfa..e2ab77aed 100644 --- a/platformclientv2/oauthcliententitylisting.go +++ b/platformclientv2/oauthcliententitylisting.go @@ -33,14 +33,14 @@ type Oauthcliententitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/oauthproviderentitylisting.go b/platformclientv2/oauthproviderentitylisting.go index 022c7b286..ccf067795 100644 --- a/platformclientv2/oauthproviderentitylisting.go +++ b/platformclientv2/oauthproviderentitylisting.go @@ -33,14 +33,14 @@ type Oauthproviderentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/observationvalue.go b/platformclientv2/observationvalue.go index 4d4a308c4..fb1b1a4b4 100644 --- a/platformclientv2/observationvalue.go +++ b/platformclientv2/observationvalue.go @@ -66,6 +66,10 @@ type Observationvalue struct { Dnis *string `json:"dnis,omitempty"` + // TeamId - The team Id the user is a member of + TeamId *string `json:"teamId,omitempty"` + + // ScoredAgents ScoredAgents *[]Analyticsscoredagent `json:"scoredAgents,omitempty"` diff --git a/platformclientv2/organization.go b/platformclientv2/organization.go index 61c61de19..cb7cd8ca1 100644 --- a/platformclientv2/organization.go +++ b/platformclientv2/organization.go @@ -53,6 +53,10 @@ type Organization struct { VoicemailEnabled *bool `json:"voicemailEnabled,omitempty"` + // ProductPlatform - Organizations Originating Platform. + ProductPlatform *string `json:"productPlatform,omitempty"` + + // SelfUri - The URI for this object SelfUri *string `json:"selfUri,omitempty"` diff --git a/platformclientv2/organizationpresenceentitylisting.go b/platformclientv2/organizationpresenceentitylisting.go index 25bdc81f5..bfce79c7d 100644 --- a/platformclientv2/organizationpresenceentitylisting.go +++ b/platformclientv2/organizationpresenceentitylisting.go @@ -33,14 +33,14 @@ type Organizationpresenceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/organizationroleentitylisting.go b/platformclientv2/organizationroleentitylisting.go index 1f9b93039..9434d9ee6 100644 --- a/platformclientv2/organizationroleentitylisting.go +++ b/platformclientv2/organizationroleentitylisting.go @@ -33,14 +33,14 @@ type Organizationroleentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/orphanrecordinglisting.go b/platformclientv2/orphanrecordinglisting.go index a5b32bda8..6f615fc7e 100644 --- a/platformclientv2/orphanrecordinglisting.go +++ b/platformclientv2/orphanrecordinglisting.go @@ -33,14 +33,14 @@ type Orphanrecordinglisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go b/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go index ec1826e5c..b2a6540f1 100644 --- a/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go +++ b/platformclientv2/outboundmessagingmessagingcampaignprogresseventcampaignprogress.go @@ -13,6 +13,10 @@ type Outboundmessagingmessagingcampaignprogresseventcampaignprogress struct { NumberOfContactsCalled *float32 `json:"numberOfContactsCalled,omitempty"` + // NumberOfContactsMessaged + NumberOfContactsMessaged *float32 `json:"numberOfContactsMessaged,omitempty"` + + // TotalNumberOfContacts TotalNumberOfContacts *float32 `json:"totalNumberOfContacts,omitempty"` diff --git a/platformclientv2/outboundroutebaseentitylisting.go b/platformclientv2/outboundroutebaseentitylisting.go index 7398e89bb..1ef36482c 100644 --- a/platformclientv2/outboundroutebaseentitylisting.go +++ b/platformclientv2/outboundroutebaseentitylisting.go @@ -33,14 +33,14 @@ type Outboundroutebaseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/outboundrouteentitylisting.go b/platformclientv2/outboundrouteentitylisting.go index 3140adf61..c4eb4abd0 100644 --- a/platformclientv2/outboundrouteentitylisting.go +++ b/platformclientv2/outboundrouteentitylisting.go @@ -33,14 +33,14 @@ type Outboundrouteentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/permissioncollectionentitylisting.go b/platformclientv2/permissioncollectionentitylisting.go index aebb6bdf4..1c7c37a9d 100644 --- a/platformclientv2/permissioncollectionentitylisting.go +++ b/platformclientv2/permissioncollectionentitylisting.go @@ -33,14 +33,14 @@ type Permissioncollectionentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/phonebaseentitylisting.go b/platformclientv2/phonebaseentitylisting.go index b9cebebdb..27a4b6b69 100644 --- a/platformclientv2/phonebaseentitylisting.go +++ b/platformclientv2/phonebaseentitylisting.go @@ -33,14 +33,14 @@ type Phonebaseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/phoneentitylisting.go b/platformclientv2/phoneentitylisting.go index e5e67012e..fbac75efe 100644 --- a/platformclientv2/phoneentitylisting.go +++ b/platformclientv2/phoneentitylisting.go @@ -33,14 +33,14 @@ type Phoneentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/phonemetabaseentitylisting.go b/platformclientv2/phonemetabaseentitylisting.go index f0e477d27..2718cedab 100644 --- a/platformclientv2/phonemetabaseentitylisting.go +++ b/platformclientv2/phonemetabaseentitylisting.go @@ -33,14 +33,14 @@ type Phonemetabaseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/physicalinterfaceentitylisting.go b/platformclientv2/physicalinterfaceentitylisting.go index b0b1ef70c..6298082eb 100644 --- a/platformclientv2/physicalinterfaceentitylisting.go +++ b/platformclientv2/physicalinterfaceentitylisting.go @@ -33,14 +33,14 @@ type Physicalinterfaceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/platformclientv2_test.go b/platformclientv2/platformclientv2_test.go index 4a8009f28..c88ca57bc 100644 --- a/platformclientv2/platformclientv2_test.go +++ b/platformclientv2/platformclientv2_test.go @@ -1,4 +1,4 @@ -package platformclientv2_test +package platformclientv2 import ( "encoding/json" @@ -7,7 +7,6 @@ import ( "reflect" "testing" - "github.com/MyPureCloud/platform-client-sdk-go/platformclientv2" "github.com/google/uuid" ) @@ -17,7 +16,7 @@ type testConfig struct { clientSecret string debug bool userEmail string - usersAPI *platformclientv2.UsersApi + usersAPI *UsersApi userID string userName string userDepartment string @@ -73,9 +72,9 @@ func TestEnvVars(t *testing.T) { } // Setup - platformclientv2.GetDefaultConfiguration().BasePath = config.environment - platformclientv2.GetDefaultConfiguration().SetDebug(config.debug) - config.usersAPI = platformclientv2.NewUsersApi() + GetDefaultConfiguration().BasePath = config.environment + GetDefaultConfiguration().SetDebug(config.debug) + config.usersAPI = NewUsersApi() // Log t.Logf("Enviornment: %v", config.environment) @@ -91,15 +90,15 @@ func TestDefaultValueSerialization(t *testing.T) { v := testSerializationStruct{ IntProp: 0, IntPropArr: make([]int32, 0), - IntPropPtr: platformclientv2.Int32(0), + IntPropPtr: Int32(0), IntPropArrPtr: &intPropArrPtr, StringProp: "", StringPropArr: make([]string, 0), - StringPropPtr: platformclientv2.String(""), + StringPropPtr: String(""), StringPropArrPtr: &stringPropArrPtr, BoolProp: false, BoolPropArr: make([]bool, 0), - BoolPropPtr: platformclientv2.Bool(false), + BoolPropPtr: Bool(false), BoolPropArrPtr: &boolPropArrPtr, } j, _ := json.Marshal(v) @@ -120,15 +119,15 @@ func TestValueSerialization(t *testing.T) { v := testSerializationStruct{ IntProp: 10, IntPropArr: make([]int32, 2), - IntPropPtr: platformclientv2.Int32(10), + IntPropPtr: Int32(10), IntPropArrPtr: &intPropArrPtr, StringProp: "asdf", StringPropArr: make([]string, 2), - StringPropPtr: platformclientv2.String("asdf"), + StringPropPtr: String("asdf"), StringPropArrPtr: &stringPropArrPtr, BoolProp: true, BoolPropArr: make([]bool, 2), - BoolPropPtr: platformclientv2.Bool(true), + BoolPropPtr: Bool(true), BoolPropArrPtr: &boolPropArrPtr, } j, _ := json.Marshal(v) @@ -142,7 +141,7 @@ func TestValueSerialization(t *testing.T) { } func TestAuthentication(t *testing.T) { - err := platformclientv2.GetDefaultConfiguration().AuthorizeClientCredentials(config.clientID, config.clientSecret) + err := GetDefaultConfiguration().AuthorizeClientCredentials(config.clientID, config.clientSecret) if err != nil { t.Error(err) } @@ -151,7 +150,7 @@ func TestAuthentication(t *testing.T) { func TestCreateUser(t *testing.T) { // Create user password := uuid.New().String() + "!@#$1234asdfASDF" - newUser := platformclientv2.Createuser{Name: &config.userName, Email: &config.userEmail, Password: &password} + newUser := Createuser{Name: &config.userName, Email: &config.userEmail, Password: &password} user, response, err := config.usersAPI.PostUsers(newUser) if err != nil { @@ -175,7 +174,7 @@ func TestCreateUser(t *testing.T) { func TestUpdateUser(t *testing.T) { // Update user - updateUser := platformclientv2.Updateuser{Department: &config.userDepartment, Version: platformclientv2.Int32(1)} + updateUser := Updateuser{Department: &config.userDepartment, Version: Int32(1)} user, response, err := config.usersAPI.PatchUser(config.userID, updateUser) if err != nil { @@ -249,7 +248,7 @@ func TestDeleteUser(t *testing.T) { func Example_authorizeDefaultConfiguration() { // Use the default config instance and retrieve settings from env vars - config := platformclientv2.GetDefaultConfiguration() + config := GetDefaultConfiguration() config.BasePath = "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT") // e.g. PURECLOUD_ENVIRONMENT=mypurecloud.com clientID := os.Getenv("PURECLOUD_CLIENT_ID") clientSecret := os.Getenv("PURECLOUD_CLIENT_SECRET") @@ -261,7 +260,7 @@ func Example_authorizeDefaultConfiguration() { } // Create an API instance using the default config - usersAPI := platformclientv2.NewUsersApi() + usersAPI := NewUsersApi() fmt.Printf("Users API type: %v", reflect.TypeOf(usersAPI).String()) // Output: Users API type: UsersAPI @@ -270,7 +269,7 @@ func Example_authorizeDefaultConfiguration() { func Example_authorizeNewConfiguration() { // Create a new config instance and retrieve settings from env vars - config := platformclientv2.NewConfiguration() + config := NewConfiguration() config.BasePath = "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT") // e.g. PURECLOUD_ENVIRONMENT=mypurecloud.com clientID := os.Getenv("PURECLOUD_CLIENT_ID") clientSecret := os.Getenv("PURECLOUD_CLIENT_SECRET") @@ -282,7 +281,7 @@ func Example_authorizeNewConfiguration() { } // Create an API instance using the config instance - usersAPI := platformclientv2.NewUsersApiWithConfig(config) + usersAPI := NewUsersApiWithConfig(config) fmt.Printf("Users API type: %v", reflect.TypeOf(usersAPI).String()) // Output: Users API type: UsersAPI diff --git a/platformclientv2/policyentitylisting.go b/platformclientv2/policyentitylisting.go index 570c69aef..0c050d53e 100644 --- a/platformclientv2/policyentitylisting.go +++ b/platformclientv2/policyentitylisting.go @@ -33,14 +33,14 @@ type Policyentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/promptassetentitylisting.go b/platformclientv2/promptassetentitylisting.go index 8dce111b0..68229b1b3 100644 --- a/platformclientv2/promptassetentitylisting.go +++ b/platformclientv2/promptassetentitylisting.go @@ -33,14 +33,14 @@ type Promptassetentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/promptentitylisting.go b/platformclientv2/promptentitylisting.go index 55b917596..4154e283f 100644 --- a/platformclientv2/promptentitylisting.go +++ b/platformclientv2/promptentitylisting.go @@ -33,14 +33,14 @@ type Promptentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/qualityapi.go b/platformclientv2/qualityapi.go index 02f6cfdfe..6c8c5fb39 100644 --- a/platformclientv2/qualityapi.go +++ b/platformclientv2/qualityapi.go @@ -3228,6 +3228,11 @@ func (a QualityApi) GetQualitySurveysScorable(customerSurveyUrl string) (*Scorab return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") } + // verify the required parameter 'customerSurveyUrl' is set + if &customerSurveyUrl == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'customerSurveyUrl' when calling QualityApi->GetQualitySurveysScorable") + } headerParams := make(map[string]string) queryParams := make(map[string]string) diff --git a/platformclientv2/qualityauditpage.go b/platformclientv2/qualityauditpage.go index a0009b875..8ec65449f 100644 --- a/platformclientv2/qualityauditpage.go +++ b/platformclientv2/qualityauditpage.go @@ -33,14 +33,14 @@ type Qualityauditpage struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/queueentitylisting.go b/platformclientv2/queueentitylisting.go index 0df733972..ace29c4c8 100644 --- a/platformclientv2/queueentitylisting.go +++ b/platformclientv2/queueentitylisting.go @@ -33,14 +33,14 @@ type Queueentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/queuememberentitylisting.go b/platformclientv2/queuememberentitylisting.go index 212ec6b1b..2619271b5 100644 --- a/platformclientv2/queuememberentitylisting.go +++ b/platformclientv2/queuememberentitylisting.go @@ -33,14 +33,14 @@ type Queuememberentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/recipientlisting.go b/platformclientv2/recipientlisting.go index cb5313c5e..8e53e98e7 100644 --- a/platformclientv2/recipientlisting.go +++ b/platformclientv2/recipientlisting.go @@ -33,14 +33,14 @@ type Recipientlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/recordingjobentitylisting.go b/platformclientv2/recordingjobentitylisting.go index 0c7952711..91a0588be 100644 --- a/platformclientv2/recordingjobentitylisting.go +++ b/platformclientv2/recordingjobentitylisting.go @@ -33,14 +33,14 @@ type Recordingjobentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/relationshiplisting.go b/platformclientv2/relationshiplisting.go index 406306d02..7b8682d8b 100644 --- a/platformclientv2/relationshiplisting.go +++ b/platformclientv2/relationshiplisting.go @@ -33,14 +33,14 @@ type Relationshiplisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/reportingexportjoblisting.go b/platformclientv2/reportingexportjoblisting.go index 6147eb9de..7775273f9 100644 --- a/platformclientv2/reportingexportjoblisting.go +++ b/platformclientv2/reportingexportjoblisting.go @@ -33,14 +33,14 @@ type Reportingexportjoblisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/reportingexportmetadatajoblisting.go b/platformclientv2/reportingexportmetadatajoblisting.go index 757b17efc..ff9159944 100644 --- a/platformclientv2/reportingexportmetadatajoblisting.go +++ b/platformclientv2/reportingexportmetadatajoblisting.go @@ -33,14 +33,14 @@ type Reportingexportmetadatajoblisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/reportmetadataentitylisting.go b/platformclientv2/reportmetadataentitylisting.go index 120684492..f0b433f40 100644 --- a/platformclientv2/reportmetadataentitylisting.go +++ b/platformclientv2/reportmetadataentitylisting.go @@ -33,14 +33,14 @@ type Reportmetadataentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/reportrunentryentitydomainlisting.go b/platformclientv2/reportrunentryentitydomainlisting.go index 4226cacf8..b6ce42ceb 100644 --- a/platformclientv2/reportrunentryentitydomainlisting.go +++ b/platformclientv2/reportrunentryentitydomainlisting.go @@ -33,14 +33,14 @@ type Reportrunentryentitydomainlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/reportscheduleentitylisting.go b/platformclientv2/reportscheduleentitylisting.go index e7b8be326..95135e790 100644 --- a/platformclientv2/reportscheduleentitylisting.go +++ b/platformclientv2/reportscheduleentitylisting.go @@ -33,14 +33,14 @@ type Reportscheduleentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/responseentitylist.go b/platformclientv2/responseentitylist.go index d7d7356fe..75ecab3b0 100644 --- a/platformclientv2/responseentitylist.go +++ b/platformclientv2/responseentitylist.go @@ -33,14 +33,14 @@ type Responseentitylist struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/responseentitylisting.go b/platformclientv2/responseentitylisting.go index c57584c75..b57faf54d 100644 --- a/platformclientv2/responseentitylisting.go +++ b/platformclientv2/responseentitylisting.go @@ -33,14 +33,14 @@ type Responseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/responsesetentitylisting.go b/platformclientv2/responsesetentitylisting.go index c1ba75769..f5709c117 100644 --- a/platformclientv2/responsesetentitylisting.go +++ b/platformclientv2/responsesetentitylisting.go @@ -33,14 +33,14 @@ type Responsesetentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/routingapi.go b/platformclientv2/routingapi.go index 7c7654563..825a18657 100644 --- a/platformclientv2/routingapi.go +++ b/platformclientv2/routingapi.go @@ -578,6 +578,72 @@ func (a RoutingApi) DeleteRoutingSmsPhonenumber(addressId string) (*APIResponse, return response, err } +// DeleteRoutingUserUtilization invokes DELETE /api/v2/routing/users/{userId}/utilization +// +// Delete the user's max utilization settings and revert to the organization-wide default. +// +// +func (a RoutingApi) DeleteRoutingUserUtilization(userId string) (*APIResponse, error) { + var httpMethod = "DELETE" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" + path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) + if true == false { + return nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'userId' is set + if &userId == nil { + // + return nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->DeleteRoutingUserUtilization") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } + return response, err +} + // DeleteRoutingUtilization invokes DELETE /api/v2/routing/utilization // // Delete the organization-wide max utilization settings and revert to the system default. @@ -3133,6 +3199,75 @@ func (a RoutingApi) GetRoutingSmsPhonenumbers(phoneNumber string, phoneNumberTyp return successPayload, response, err } +// GetRoutingUserUtilization invokes GET /api/v2/routing/users/{userId}/utilization +// +// Get the user's max utilization settings. If not configured, the organization-wide default is returned. +// +// +func (a RoutingApi) GetRoutingUserUtilization(userId string) (*Utilization, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" + path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) + defaultReturn := new(Utilization) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'userId' is set + if &userId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->GetRoutingUserUtilization") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Utilization + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // GetRoutingUtilization invokes GET /api/v2/routing/utilization // // Get the organization-wide max utilization settings. @@ -5689,6 +5824,83 @@ func (a RoutingApi) PutRoutingSmsPhonenumber(addressId string, body Smsphonenumb return successPayload, response, err } +// PutRoutingUserUtilization invokes PUT /api/v2/routing/users/{userId}/utilization +// +// Update the user's max utilization settings. Include only those media types requiring custom configuration. +// +// +func (a RoutingApi) PutRoutingUserUtilization(userId string, body Utilization) (*Utilization, *APIResponse, error) { + var httpMethod = "PUT" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" + path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) + defaultReturn := new(Utilization) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'userId' is set + if &userId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling RoutingApi->PutRoutingUserUtilization") + } + // verify the required parameter 'body' is set + if &body == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling RoutingApi->PutRoutingUserUtilization") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + // body params + postBody = &body + + var successPayload *Utilization + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // PutRoutingUtilization invokes PUT /api/v2/routing/utilization // // Update the organization-wide max utilization settings. Include only those media types requiring custom configuration. diff --git a/platformclientv2/rulesetentitylisting.go b/platformclientv2/rulesetentitylisting.go index 8ab7fc56d..995a83dfb 100644 --- a/platformclientv2/rulesetentitylisting.go +++ b/platformclientv2/rulesetentitylisting.go @@ -33,14 +33,14 @@ type Rulesetentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/scheduleentitylisting.go b/platformclientv2/scheduleentitylisting.go index a8b1cfe70..66f34802f 100644 --- a/platformclientv2/scheduleentitylisting.go +++ b/platformclientv2/scheduleentitylisting.go @@ -33,14 +33,14 @@ type Scheduleentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/schedulegroupentitylisting.go b/platformclientv2/schedulegroupentitylisting.go index 34b14fc87..d135408a9 100644 --- a/platformclientv2/schedulegroupentitylisting.go +++ b/platformclientv2/schedulegroupentitylisting.go @@ -33,14 +33,14 @@ type Schedulegroupentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/schemacategoryentitylisting.go b/platformclientv2/schemacategoryentitylisting.go index bf0b261b2..8ffd13217 100644 --- a/platformclientv2/schemacategoryentitylisting.go +++ b/platformclientv2/schemacategoryentitylisting.go @@ -33,14 +33,14 @@ type Schemacategoryentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/schemareferenceentitylisting.go b/platformclientv2/schemareferenceentitylisting.go index f5a348682..c04389092 100644 --- a/platformclientv2/schemareferenceentitylisting.go +++ b/platformclientv2/schemareferenceentitylisting.go @@ -33,14 +33,14 @@ type Schemareferenceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/scimuserextensions.go b/platformclientv2/scimuserextensions.go index 9266bdbc6..b9d7e3437 100644 --- a/platformclientv2/scimuserextensions.go +++ b/platformclientv2/scimuserextensions.go @@ -5,11 +5,11 @@ import ( // Scimuserextensions - SCIM PureCloud extensions of user. type Scimuserextensions struct { - // RoutingSkills - Routing Skills assigned to user. + // RoutingSkills - Routing Skills assigned to user. No more than 50 skills may be assigned to a user. RoutingSkills *[]Scimuserroutingskill `json:"routingSkills,omitempty"` - // RoutingLanguages - Routing Languages assigned to user + // RoutingLanguages - Routing Languages assigned to user. No more than 50 languages may be assigned to a user. RoutingLanguages *[]Scimuserroutinglanguage `json:"routingLanguages,omitempty"` } diff --git a/platformclientv2/scimv2createuser.go b/platformclientv2/scimv2createuser.go index e96e7fd88..e69f8be10 100644 --- a/platformclientv2/scimv2createuser.go +++ b/platformclientv2/scimv2createuser.go @@ -37,10 +37,6 @@ type Scimv2createuser struct { Emails *[]Scimemail `json:"emails,omitempty"` - // Photos - The list of the user's photos. - Photos *[]Photo `json:"photos,omitempty"` - - // ExternalId - The external ID of the user. Set by the provisioning client. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readWrite\". ExternalId *string `json:"externalId,omitempty"` diff --git a/platformclientv2/scimv2user.go b/platformclientv2/scimv2user.go index 090596347..2a584fc44 100644 --- a/platformclientv2/scimv2user.go +++ b/platformclientv2/scimv2user.go @@ -41,10 +41,6 @@ type Scimv2user struct { Emails *[]Scimemail `json:"emails,omitempty"` - // Photos - The list of the user's photos. - Photos *[]Photo `json:"photos,omitempty"` - - // ExternalId - The external ID of the user. Set by the provisioning client. \"caseExact\" is set to \"true\". \"mutability\" is set to \"readWrite\". ExternalId *string `json:"externalId,omitempty"` diff --git a/platformclientv2/screenrecordingsessionlisting.go b/platformclientv2/screenrecordingsessionlisting.go index aff31e398..5d79b0b9b 100644 --- a/platformclientv2/screenrecordingsessionlisting.go +++ b/platformclientv2/screenrecordingsessionlisting.go @@ -33,14 +33,14 @@ type Screenrecordingsessionlisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/scriptentitylisting.go b/platformclientv2/scriptentitylisting.go index 192c00f80..b31b1934c 100644 --- a/platformclientv2/scriptentitylisting.go +++ b/platformclientv2/scriptentitylisting.go @@ -33,14 +33,14 @@ type Scriptentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/securityprofileentitylisting.go b/platformclientv2/securityprofileentitylisting.go index ff31b3178..9533f3144 100644 --- a/platformclientv2/securityprofileentitylisting.go +++ b/platformclientv2/securityprofileentitylisting.go @@ -33,14 +33,14 @@ type Securityprofileentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/shareentitylisting.go b/platformclientv2/shareentitylisting.go index b270f538d..7e2447744 100644 --- a/platformclientv2/shareentitylisting.go +++ b/platformclientv2/shareentitylisting.go @@ -33,14 +33,14 @@ type Shareentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/siteentitylisting.go b/platformclientv2/siteentitylisting.go index 7cca2d079..e3489deb2 100644 --- a/platformclientv2/siteentitylisting.go +++ b/platformclientv2/siteentitylisting.go @@ -33,14 +33,14 @@ type Siteentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/skillentitylisting.go b/platformclientv2/skillentitylisting.go index 867430127..2b660e722 100644 --- a/platformclientv2/skillentitylisting.go +++ b/platformclientv2/skillentitylisting.go @@ -33,14 +33,14 @@ type Skillentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/smsaddressentitylisting.go b/platformclientv2/smsaddressentitylisting.go index 5df5fbfb0..efc30e311 100644 --- a/platformclientv2/smsaddressentitylisting.go +++ b/platformclientv2/smsaddressentitylisting.go @@ -33,14 +33,14 @@ type Smsaddressentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/smsphonenumberentitylisting.go b/platformclientv2/smsphonenumberentitylisting.go index 75093f94d..ca2b86f0c 100644 --- a/platformclientv2/smsphonenumberentitylisting.go +++ b/platformclientv2/smsphonenumberentitylisting.go @@ -33,14 +33,14 @@ type Smsphonenumberentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/stationentitylisting.go b/platformclientv2/stationentitylisting.go index 83c666d26..e736b335c 100644 --- a/platformclientv2/stationentitylisting.go +++ b/platformclientv2/stationentitylisting.go @@ -33,14 +33,14 @@ type Stationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/subjectdivisiongrantsentitylisting.go b/platformclientv2/subjectdivisiongrantsentitylisting.go index 64af478d1..5d04babc1 100644 --- a/platformclientv2/subjectdivisiongrantsentitylisting.go +++ b/platformclientv2/subjectdivisiongrantsentitylisting.go @@ -33,14 +33,14 @@ type Subjectdivisiongrantsentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/surveyformentitylisting.go b/platformclientv2/surveyformentitylisting.go index 7eed5de54..57b548820 100644 --- a/platformclientv2/surveyformentitylisting.go +++ b/platformclientv2/surveyformentitylisting.go @@ -33,14 +33,14 @@ type Surveyformentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/systempromptassetentitylisting.go b/platformclientv2/systempromptassetentitylisting.go index c87ba35c5..7ad25435b 100644 --- a/platformclientv2/systempromptassetentitylisting.go +++ b/platformclientv2/systempromptassetentitylisting.go @@ -33,14 +33,14 @@ type Systempromptassetentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/systempromptentitylisting.go b/platformclientv2/systempromptentitylisting.go index 51da58378..94d97faef 100644 --- a/platformclientv2/systempromptentitylisting.go +++ b/platformclientv2/systempromptentitylisting.go @@ -33,14 +33,14 @@ type Systempromptentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/tagvalueentitylisting.go b/platformclientv2/tagvalueentitylisting.go index 4a3766c2d..ea7b50f6c 100644 --- a/platformclientv2/tagvalueentitylisting.go +++ b/platformclientv2/tagvalueentitylisting.go @@ -33,14 +33,14 @@ type Tagvalueentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/textmessagelisting.go b/platformclientv2/textmessagelisting.go index c270c09c8..10e121dc3 100644 --- a/platformclientv2/textmessagelisting.go +++ b/platformclientv2/textmessagelisting.go @@ -33,14 +33,14 @@ type Textmessagelisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/timezoneentitylisting.go b/platformclientv2/timezoneentitylisting.go index 6296bd180..e5dd89a93 100644 --- a/platformclientv2/timezoneentitylisting.go +++ b/platformclientv2/timezoneentitylisting.go @@ -33,14 +33,14 @@ type Timezoneentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/trunkbaseentitylisting.go b/platformclientv2/trunkbaseentitylisting.go index 68fc7cf56..ca78b30b0 100644 --- a/platformclientv2/trunkbaseentitylisting.go +++ b/platformclientv2/trunkbaseentitylisting.go @@ -33,14 +33,14 @@ type Trunkbaseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/trunkentitylisting.go b/platformclientv2/trunkentitylisting.go index 565f7fae7..ba5231127 100644 --- a/platformclientv2/trunkentitylisting.go +++ b/platformclientv2/trunkentitylisting.go @@ -33,14 +33,14 @@ type Trunkentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/trunkmetabaseentitylisting.go b/platformclientv2/trunkmetabaseentitylisting.go index b8f3b8455..042fd7351 100644 --- a/platformclientv2/trunkmetabaseentitylisting.go +++ b/platformclientv2/trunkmetabaseentitylisting.go @@ -33,14 +33,14 @@ type Trunkmetabaseentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/trustentitylisting.go b/platformclientv2/trustentitylisting.go index bd05e371a..4fa6f0174 100644 --- a/platformclientv2/trustentitylisting.go +++ b/platformclientv2/trustentitylisting.go @@ -33,14 +33,14 @@ type Trustentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/trustorentitylisting.go b/platformclientv2/trustorentitylisting.go index 6c8b62461..417bd0c8a 100644 --- a/platformclientv2/trustorentitylisting.go +++ b/platformclientv2/trustorentitylisting.go @@ -33,14 +33,14 @@ type Trustorentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/trustuserentitylisting.go b/platformclientv2/trustuserentitylisting.go index 4e756a50c..32bbdae8b 100644 --- a/platformclientv2/trustuserentitylisting.go +++ b/platformclientv2/trustuserentitylisting.go @@ -33,14 +33,14 @@ type Trustuserentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/ttsengineentitylisting.go b/platformclientv2/ttsengineentitylisting.go index 5cceca3a2..374f6cdb3 100644 --- a/platformclientv2/ttsengineentitylisting.go +++ b/platformclientv2/ttsengineentitylisting.go @@ -33,14 +33,14 @@ type Ttsengineentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/ttsvoiceentitylisting.go b/platformclientv2/ttsvoiceentitylisting.go index b23d1fda6..c7ae9f0e1 100644 --- a/platformclientv2/ttsvoiceentitylisting.go +++ b/platformclientv2/ttsvoiceentitylisting.go @@ -33,14 +33,14 @@ type Ttsvoiceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/twitterintegrationentitylisting.go b/platformclientv2/twitterintegrationentitylisting.go index 4dffa1814..b18f79624 100644 --- a/platformclientv2/twitterintegrationentitylisting.go +++ b/platformclientv2/twitterintegrationentitylisting.go @@ -33,14 +33,14 @@ type Twitterintegrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/useractioncategoryentitylisting.go b/platformclientv2/useractioncategoryentitylisting.go index 852d3eff4..f3fc4052a 100644 --- a/platformclientv2/useractioncategoryentitylisting.go +++ b/platformclientv2/useractioncategoryentitylisting.go @@ -33,14 +33,14 @@ type Useractioncategoryentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/userentitylisting.go b/platformclientv2/userentitylisting.go index 162826246..c468ce4ab 100644 --- a/platformclientv2/userentitylisting.go +++ b/platformclientv2/userentitylisting.go @@ -33,14 +33,14 @@ type Userentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/userlanguageentitylisting.go b/platformclientv2/userlanguageentitylisting.go index 18f43fa91..0f7701adb 100644 --- a/platformclientv2/userlanguageentitylisting.go +++ b/platformclientv2/userlanguageentitylisting.go @@ -33,14 +33,14 @@ type Userlanguageentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/userprofileentitylisting.go b/platformclientv2/userprofileentitylisting.go index 9328d4fd2..fe8b012a0 100644 --- a/platformclientv2/userprofileentitylisting.go +++ b/platformclientv2/userprofileentitylisting.go @@ -33,14 +33,14 @@ type Userprofileentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/userqueueentitylisting.go b/platformclientv2/userqueueentitylisting.go index 4d456c817..787ad1b53 100644 --- a/platformclientv2/userqueueentitylisting.go +++ b/platformclientv2/userqueueentitylisting.go @@ -33,14 +33,14 @@ type Userqueueentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/userrecordingentitylisting.go b/platformclientv2/userrecordingentitylisting.go index ba87ef837..82f003651 100644 --- a/platformclientv2/userrecordingentitylisting.go +++ b/platformclientv2/userrecordingentitylisting.go @@ -33,14 +33,14 @@ type Userrecordingentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/usersapi.go b/platformclientv2/usersapi.go index 64f275244..2c7da6e00 100644 --- a/platformclientv2/usersapi.go +++ b/platformclientv2/usersapi.go @@ -174,6 +174,72 @@ func (a UsersApi) DeleteAuthorizationSubjectDivisionRole(subjectId string, divis return response, err } +// DeleteRoutingUserUtilization invokes DELETE /api/v2/routing/users/{userId}/utilization +// +// Delete the user's max utilization settings and revert to the organization-wide default. +// +// +func (a UsersApi) DeleteRoutingUserUtilization(userId string) (*APIResponse, error) { + var httpMethod = "DELETE" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" + path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) + if true == false { + return nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'userId' is set + if &userId == nil { + // + return nil, errors.New("Missing required parameter 'userId' when calling UsersApi->DeleteRoutingUserUtilization") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } + return response, err +} + // DeleteUser invokes DELETE /api/v2/users/{userId} // // Delete user @@ -659,7 +725,7 @@ func (a UsersApi) GetAnalyticsUsersDetailsJob(jobId string) (*Asyncquerystatus, // Fetch a page of results for an async query // // -func (a UsersApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string) (*Analyticsuserdetailsasyncqueryresponse, *APIResponse, error) { +func (a UsersApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string, pageSize int32) (*Analyticsuserdetailsasyncqueryresponse, *APIResponse, error) { var httpMethod = "GET" // create path and map variables path := a.Configuration.BasePath + "/api/v2/analytics/users/details/jobs/{jobId}/results" @@ -700,6 +766,12 @@ func (a UsersApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string queryParams["cursor"] = a.Configuration.APIClient.ParameterToString(cursor, collectionFormat) + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + // to determine the Content-Type header localVarHttpContentTypes := []string{ "application/json", } @@ -733,9 +805,9 @@ func (a UsersApi) GetAnalyticsUsersDetailsJobResults(jobId string, cursor string // GetAuthorizationDivisionspermittedMe invokes GET /api/v2/authorization/divisionspermitted/me // -// Returns whether or not current user can perform the specified action(s). +// Returns which divisions the current user has the given permission in. // -// +// This route is deprecated, use authorization/divisionspermitted/paged/me instead. func (a UsersApi) GetAuthorizationDivisionspermittedMe(permission string, name string) ([]Authzdivision, *APIResponse, error) { var httpMethod = "GET" // create path and map variables @@ -813,11 +885,193 @@ func (a UsersApi) GetAuthorizationDivisionspermittedMe(permission string, name s return successPayload, response, err } -// GetAuthorizationDivisionspermittedSubjectId invokes GET /api/v2/authorization/divisionspermitted/{subjectId} +// GetAuthorizationDivisionspermittedPagedMe invokes GET /api/v2/authorization/divisionspermitted/paged/me +// +// Returns which divisions the current user has the given permission in. +// +// +func (a UsersApi) GetAuthorizationDivisionspermittedPagedMe(permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/me" + defaultReturn := new(Divspermittedentitylisting) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'permission' is set + if &permission == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling UsersApi->GetAuthorizationDivisionspermittedPagedMe") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + var collectionFormat string + + + + collectionFormat = "" + queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Divspermittedentitylisting + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// GetAuthorizationDivisionspermittedPagedSubjectId invokes GET /api/v2/authorization/divisionspermitted/paged/{subjectId} // -// Returns whether or not specified user can perform the specified action(s). +// Returns which divisions the specified user has the given permission in. // // +func (a UsersApi) GetAuthorizationDivisionspermittedPagedSubjectId(subjectId string, permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/authorization/divisionspermitted/paged/{subjectId}" + path = strings.Replace(path, "{subjectId}", fmt.Sprintf("%v", subjectId), -1) + defaultReturn := new(Divspermittedentitylisting) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'subjectId' is set + if &subjectId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'subjectId' when calling UsersApi->GetAuthorizationDivisionspermittedPagedSubjectId") + } + // verify the required parameter 'permission' is set + if &permission == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'permission' when calling UsersApi->GetAuthorizationDivisionspermittedPagedSubjectId") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + var collectionFormat string + + + + collectionFormat = "" + queryParams["permission"] = a.Configuration.APIClient.ParameterToString(permission, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageNumber"] = a.Configuration.APIClient.ParameterToString(pageNumber, collectionFormat) + + + + + collectionFormat = "" + queryParams["pageSize"] = a.Configuration.APIClient.ParameterToString(pageSize, collectionFormat) + + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Divspermittedentitylisting + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + +// GetAuthorizationDivisionspermittedSubjectId invokes GET /api/v2/authorization/divisionspermitted/{subjectId} +// +// Returns which divisions the specified user has the given permission in. +// +// This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead. func (a UsersApi) GetAuthorizationDivisionspermittedSubjectId(subjectId string, permission string, name string) ([]Authzdivision, *APIResponse, error) { var httpMethod = "GET" // create path and map variables @@ -1228,6 +1482,75 @@ func (a UsersApi) GetProfilesUsers(pageSize int32, pageNumber int32, id []string return successPayload, response, err } +// GetRoutingUserUtilization invokes GET /api/v2/routing/users/{userId}/utilization +// +// Get the user's max utilization settings. If not configured, the organization-wide default is returned. +// +// +func (a UsersApi) GetRoutingUserUtilization(userId string) (*Utilization, *APIResponse, error) { + var httpMethod = "GET" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" + path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) + defaultReturn := new(Utilization) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'userId' is set + if &userId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->GetRoutingUserUtilization") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + var successPayload *Utilization + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // GetUser invokes GET /api/v2/users/{userId} // // Get user. @@ -4648,6 +4971,83 @@ func (a UsersApi) PostUsersSearch(body Usersearchrequest) (*Userssearchresponse, return successPayload, response, err } +// PutRoutingUserUtilization invokes PUT /api/v2/routing/users/{userId}/utilization +// +// Update the user's max utilization settings. Include only those media types requiring custom configuration. +// +// +func (a UsersApi) PutRoutingUserUtilization(userId string, body Utilization) (*Utilization, *APIResponse, error) { + var httpMethod = "PUT" + // create path and map variables + path := a.Configuration.BasePath + "/api/v2/routing/users/{userId}/utilization" + path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userId), -1) + defaultReturn := new(Utilization) + if true == false { + return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") + } + + // verify the required parameter 'userId' is set + if &userId == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'userId' when calling UsersApi->PutRoutingUserUtilization") + } + // verify the required parameter 'body' is set + if &body == nil { + // + return defaultReturn, nil, errors.New("Missing required parameter 'body' when calling UsersApi->PutRoutingUserUtilization") + } + + headerParams := make(map[string]string) + queryParams := make(map[string]string) + formParams := url.Values{} + var postBody interface{} + var postFileName string + var fileBytes []byte + // authentication (PureCloud OAuth) required + + // oauth required + if a.Configuration.AccessToken != ""{ + headerParams["Authorization"] = "Bearer " + a.Configuration.AccessToken + } + // add default headers if any + for key := range a.Configuration.DefaultHeader { + headerParams[key] = a.Configuration.DefaultHeader[key] + } + + + // to determine the Content-Type header + localVarHttpContentTypes := []string{ "application/json", } + + // set Content-Type header + localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + headerParams["Content-Type"] = localVarHttpContentType + } + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + headerParams["Accept"] = localVarHttpHeaderAccept + } + // body params + postBody = &body + + var successPayload *Utilization + response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) + if err != nil { + // Nothing special to do here, but do avoid processing the response + } else if err == nil && response.Error != nil { + err = errors.New(response.ErrorMessage) + } else { + err = json.Unmarshal([]byte(response.RawBody), &successPayload) + } + return successPayload, response, err +} + // PutUserCallforwarding invokes PUT /api/v2/users/{userId}/callforwarding // // Update a user's CallForwarding diff --git a/platformclientv2/usersapi_test.go b/platformclientv2/usersapi_test.go index 905abb0ae..4c8763666 100644 --- a/platformclientv2/usersapi_test.go +++ b/platformclientv2/usersapi_test.go @@ -1,15 +1,13 @@ -package platformclientv2_test +package platformclientv2 import ( "fmt" "os" - - "github.com/MyPureCloud/platform-client-sdk-go/platformclientv2" ) func ExampleUsersApi_GetUsers() { // Use the default config instance and retrieve settings from env vars - config := platformclientv2.GetDefaultConfiguration() + config := GetDefaultConfiguration() config.SetDebug(false) config.BasePath = "https://api." + os.Getenv("PURECLOUD_ENVIRONMENT") // e.g. PURECLOUD_ENVIRONMENT=mypurecloud.com clientID := os.Getenv("PURECLOUD_CLIENT_ID") @@ -22,7 +20,7 @@ func ExampleUsersApi_GetUsers() { } // Create an API instance using the default config - usersAPI := platformclientv2.NewUsersApi() + usersAPI := NewUsersApi() // Invoke API _, response, err := usersAPI.GetUsers(100, 1, make([]string, 0), make([]string, 0), "", make([]string, 0), "") diff --git a/platformclientv2/userskillentitylisting.go b/platformclientv2/userskillentitylisting.go index dace31949..a88d62d28 100644 --- a/platformclientv2/userskillentitylisting.go +++ b/platformclientv2/userskillentitylisting.go @@ -33,14 +33,14 @@ type Userskillentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/viewfilter.go b/platformclientv2/viewfilter.go index 6e4a3b123..a7c081319 100644 --- a/platformclientv2/viewfilter.go +++ b/platformclientv2/viewfilter.go @@ -169,34 +169,6 @@ type Viewfilter struct { SurveyNpsScore *Numericrange `json:"surveyNpsScore,omitempty"` - // ShowSecondaryStatus - Indicates if the Secondary Status should be shown - ShowSecondaryStatus *bool `json:"showSecondaryStatus,omitempty"` - - - // AgentDurationSortOrder - Provides the agent duration sort order - AgentDurationSortOrder *string `json:"agentDurationSortOrder,omitempty"` - - - // WaitingDurationSortOrder - Provides the waiting duration sort order - WaitingDurationSortOrder *string `json:"waitingDurationSortOrder,omitempty"` - - - // InteractingDurationSortOrder - Provides the interacting duration sort order - InteractingDurationSortOrder *string `json:"interactingDurationSortOrder,omitempty"` - - - // AgentName - Displays the Agent name as provided by the user - AgentName *string `json:"agentName,omitempty"` - - - // SkillsList - The list of skill strings as free form text - SkillsList *[]string `json:"skillsList,omitempty"` - - - // LanguageList - The list of language strings as free form text - LanguageList *[]string `json:"languageList,omitempty"` - - // Mos - The desired range for mos values Mos *Numericrange `json:"mos,omitempty"` @@ -265,10 +237,6 @@ type Viewfilter struct { RemoteParticipants *[]string `json:"remoteParticipants,omitempty"` - // StatusList - A list of status for the configuration view - StatusList *[]string `json:"statusList,omitempty"` - - // FlowIds - The list of flow Ids FlowIds *[]string `json:"flowIds,omitempty"` @@ -321,14 +289,6 @@ type Viewfilter struct { HasJourneyVisitId *bool `json:"hasJourneyVisitId,omitempty"` - // OauthClientIds - A list of OAuth client IDs - OauthClientIds *[]string `json:"oauthClientIds,omitempty"` - - - // ApiOperations - A list of API operations (ex: [\"GET /api/v2/users/{userId}/queues\"]) - ApiOperations *[]string `json:"apiOperations,omitempty"` - - // HasMedia - Indicates filtering for presence of MMS media HasMedia *bool `json:"hasMedia,omitempty"` diff --git a/platformclientv2/voicemailmessageentitylisting.go b/platformclientv2/voicemailmessageentitylisting.go index 715ca05dd..0ffb3b33d 100644 --- a/platformclientv2/voicemailmessageentitylisting.go +++ b/platformclientv2/voicemailmessageentitylisting.go @@ -33,14 +33,14 @@ type Voicemailmessageentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/webchatmemberinfoentitylist.go b/platformclientv2/webchatmemberinfoentitylist.go index 17e654676..5d8e09e2b 100644 --- a/platformclientv2/webchatmemberinfoentitylist.go +++ b/platformclientv2/webchatmemberinfoentitylist.go @@ -33,14 +33,14 @@ type Webchatmemberinfoentitylist struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/build/platformclientv2/wemcoachingappointmenttopiccoachingappointmentconversation.go b/platformclientv2/wemcoachingappointmenttopiccoachingappointmentconversation.go similarity index 100% rename from build/platformclientv2/wemcoachingappointmenttopiccoachingappointmentconversation.go rename to platformclientv2/wemcoachingappointmenttopiccoachingappointmentconversation.go diff --git a/build/platformclientv2/wemcoachingappointmenttopiccoachingappointmentdocument.go b/platformclientv2/wemcoachingappointmenttopiccoachingappointmentdocument.go similarity index 100% rename from build/platformclientv2/wemcoachingappointmenttopiccoachingappointmentdocument.go rename to platformclientv2/wemcoachingappointmenttopiccoachingappointmentdocument.go diff --git a/build/platformclientv2/wemcoachingappointmenttopiccoachingappointmentnotification.go b/platformclientv2/wemcoachingappointmenttopiccoachingappointmentnotification.go similarity index 100% rename from build/platformclientv2/wemcoachingappointmenttopiccoachingappointmentnotification.go rename to platformclientv2/wemcoachingappointmenttopiccoachingappointmentnotification.go diff --git a/build/platformclientv2/wemcoachingappointmenttopicuserreference.go b/platformclientv2/wemcoachingappointmenttopicuserreference.go similarity index 100% rename from build/platformclientv2/wemcoachingappointmenttopicuserreference.go rename to platformclientv2/wemcoachingappointmenttopicuserreference.go diff --git a/platformclientv2/whatsappintegrationentitylisting.go b/platformclientv2/whatsappintegrationentitylisting.go index 246e80841..d015eabad 100644 --- a/platformclientv2/whatsappintegrationentitylisting.go +++ b/platformclientv2/whatsappintegrationentitylisting.go @@ -33,14 +33,14 @@ type Whatsappintegrationentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/workforcemanagementapi.go b/platformclientv2/workforcemanagementapi.go index 9b34e7581..72a5e7508 100644 --- a/platformclientv2/workforcemanagementapi.go +++ b/platformclientv2/workforcemanagementapi.go @@ -3831,12 +3831,12 @@ func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitActivitycod // Query published schedules for given given time range for set of users // // -func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitAgentschedulesSearch(muId string, body Busearchagentschedulesrequest, forceAsync bool, forceDownloadService bool) (*Userschedulecontainer, *APIResponse, error) { +func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitAgentschedulesSearch(muId string, body Busearchagentschedulesrequest, forceAsync bool, forceDownloadService bool) (*Buasyncagentschedulessearchresponse, *APIResponse, error) { var httpMethod = "POST" // create path and map variables path := a.Configuration.BasePath + "/api/v2/workforcemanagement/managementunits/{muId}/agentschedules/search" path = strings.Replace(path, "{muId}", fmt.Sprintf("%v", muId), -1) - defaultReturn := new(Userschedulecontainer) + defaultReturn := new(Buasyncagentschedulessearchresponse) if true == false { return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken") } @@ -3900,7 +3900,7 @@ func (a WorkforceManagementApi) PostWorkforcemanagementManagementunitAgentschedu // body params postBody = &body - var successPayload *Userschedulecontainer + var successPayload *Buasyncagentschedulessearchresponse response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes) if err != nil { // Nothing special to do here, but do avoid processing the response diff --git a/platformclientv2/workspaceentitylisting.go b/platformclientv2/workspaceentitylisting.go index a856d4acd..067443eef 100644 --- a/platformclientv2/workspaceentitylisting.go +++ b/platformclientv2/workspaceentitylisting.go @@ -33,14 +33,14 @@ type Workspaceentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/workspacememberentitylisting.go b/platformclientv2/workspacememberentitylisting.go index 27fac334b..581e99931 100644 --- a/platformclientv2/workspacememberentitylisting.go +++ b/platformclientv2/workspacememberentitylisting.go @@ -33,14 +33,14 @@ type Workspacememberentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/platformclientv2/wrapupcodeentitylisting.go b/platformclientv2/wrapupcodeentitylisting.go index b082119d6..bc9e3c48f 100644 --- a/platformclientv2/wrapupcodeentitylisting.go +++ b/platformclientv2/wrapupcodeentitylisting.go @@ -33,14 +33,14 @@ type Wrapupcodeentitylisting struct { NextUri *string `json:"nextUri,omitempty"` - // LastUri - LastUri *string `json:"lastUri,omitempty"` - - // PreviousUri PreviousUri *string `json:"previousUri,omitempty"` + // LastUri + LastUri *string `json:"lastUri,omitempty"` + + // PageCount PageCount *int32 `json:"pageCount,omitempty"` diff --git a/version.json b/version.json index 6ce6db08d..cac7069d5 100644 --- a/version.json +++ b/version.json @@ -1,9 +1,9 @@ { - "major": 3, + "major": 4, "minor": 0, "point": 0, "prerelease": "", "apiVersion": 0, - "display": "3.0.0", - "displayFull": "3.0.0" + "display": "4.0.0", + "displayFull": "4.0.0" } \ No newline at end of file