@@ -595,6 +595,78 @@ def get_analytics_conversations_details_job_results(self, job_id, **kwargs):
595595 callback = params .get ('callback' ))
596596 return response
597597
598+ def get_analytics_conversations_details_jobs_availability (self , ** kwargs ):
599+ """
600+ Lookup the datalake availability date and time
601+
602+
603+ This method makes a synchronous HTTP request by default. To make an
604+ asynchronous HTTP request, please define a `callback` function
605+ to be invoked when receiving the response.
606+ >>> def callback_function(response):
607+ >>> pprint(response)
608+ >>>
609+ >>> thread = api.get_analytics_conversations_details_jobs_availability(callback=callback_function)
610+
611+ :param callback function: The callback function
612+ for asynchronous request. (optional)
613+ :return: DataAvailabilityResponse
614+ If the method is called asynchronously,
615+ returns the request thread.
616+ """
617+
618+ all_params = []
619+ all_params .append ('callback' )
620+
621+ params = locals ()
622+ for key , val in iteritems (params ['kwargs' ]):
623+ if key not in all_params :
624+ raise TypeError (
625+ "Got an unexpected keyword argument '%s'"
626+ " to method get_analytics_conversations_details_jobs_availability" % key
627+ )
628+ params [key ] = val
629+ del params ['kwargs' ]
630+
631+
632+
633+ resource_path = '/api/v2/analytics/conversations/details/jobs/availability' .replace ('{format}' , 'json' )
634+ path_params = {}
635+
636+ query_params = {}
637+
638+ header_params = {}
639+
640+ form_params = []
641+ local_var_files = {}
642+
643+ body_params = None
644+
645+ # HTTP header `Accept`
646+ header_params ['Accept' ] = self .api_client .\
647+ select_header_accept (['application/json' ])
648+ if not header_params ['Accept' ]:
649+ del header_params ['Accept' ]
650+
651+ # HTTP header `Content-Type`
652+ header_params ['Content-Type' ] = self .api_client .\
653+ select_header_content_type (['application/json' ])
654+
655+ # Authentication setting
656+ auth_settings = ['PureCloud OAuth' ]
657+
658+ response = self .api_client .call_api (resource_path , 'GET' ,
659+ path_params ,
660+ query_params ,
661+ header_params ,
662+ body = body_params ,
663+ post_params = form_params ,
664+ files = local_var_files ,
665+ response_type = 'DataAvailabilityResponse' ,
666+ auth_settings = auth_settings ,
667+ callback = params .get ('callback' ))
668+ return response
669+
598670 def get_analytics_reporting_exports (self , ** kwargs ):
599671 """
600672 Get all view export requests for a user
@@ -1615,6 +1687,78 @@ def get_analytics_users_details_job_results(self, job_id, **kwargs):
16151687 callback = params .get ('callback' ))
16161688 return response
16171689
1690+ def get_analytics_users_details_jobs_availability (self , ** kwargs ):
1691+ """
1692+ Lookup the datalake availability date and time
1693+
1694+
1695+ This method makes a synchronous HTTP request by default. To make an
1696+ asynchronous HTTP request, please define a `callback` function
1697+ to be invoked when receiving the response.
1698+ >>> def callback_function(response):
1699+ >>> pprint(response)
1700+ >>>
1701+ >>> thread = api.get_analytics_users_details_jobs_availability(callback=callback_function)
1702+
1703+ :param callback function: The callback function
1704+ for asynchronous request. (optional)
1705+ :return: DataAvailabilityResponse
1706+ If the method is called asynchronously,
1707+ returns the request thread.
1708+ """
1709+
1710+ all_params = []
1711+ all_params .append ('callback' )
1712+
1713+ params = locals ()
1714+ for key , val in iteritems (params ['kwargs' ]):
1715+ if key not in all_params :
1716+ raise TypeError (
1717+ "Got an unexpected keyword argument '%s'"
1718+ " to method get_analytics_users_details_jobs_availability" % key
1719+ )
1720+ params [key ] = val
1721+ del params ['kwargs' ]
1722+
1723+
1724+
1725+ resource_path = '/api/v2/analytics/users/details/jobs/availability' .replace ('{format}' , 'json' )
1726+ path_params = {}
1727+
1728+ query_params = {}
1729+
1730+ header_params = {}
1731+
1732+ form_params = []
1733+ local_var_files = {}
1734+
1735+ body_params = None
1736+
1737+ # HTTP header `Accept`
1738+ header_params ['Accept' ] = self .api_client .\
1739+ select_header_accept (['application/json' ])
1740+ if not header_params ['Accept' ]:
1741+ del header_params ['Accept' ]
1742+
1743+ # HTTP header `Content-Type`
1744+ header_params ['Content-Type' ] = self .api_client .\
1745+ select_header_content_type (['application/json' ])
1746+
1747+ # Authentication setting
1748+ auth_settings = ['PureCloud OAuth' ]
1749+
1750+ response = self .api_client .call_api (resource_path , 'GET' ,
1751+ path_params ,
1752+ query_params ,
1753+ header_params ,
1754+ body = body_params ,
1755+ post_params = form_params ,
1756+ files = local_var_files ,
1757+ response_type = 'DataAvailabilityResponse' ,
1758+ auth_settings = auth_settings ,
1759+ callback = params .get ('callback' ))
1760+ return response
1761+
16181762 def post_analytics_conversation_details_properties (self , conversation_id , body , ** kwargs ):
16191763 """
16201764 Index conversation properties
@@ -2635,6 +2779,84 @@ def post_analytics_surveys_aggregates_query(self, body, **kwargs):
26352779 callback = params .get ('callback' ))
26362780 return response
26372781
2782+ def post_analytics_transcripts_aggregates_query (self , body , ** kwargs ):
2783+ """
2784+ Query for transcript aggregates
2785+
2786+
2787+ This method makes a synchronous HTTP request by default. To make an
2788+ asynchronous HTTP request, please define a `callback` function
2789+ to be invoked when receiving the response.
2790+ >>> def callback_function(response):
2791+ >>> pprint(response)
2792+ >>>
2793+ >>> thread = api.post_analytics_transcripts_aggregates_query(body, callback=callback_function)
2794+
2795+ :param callback function: The callback function
2796+ for asynchronous request. (optional)
2797+ :param TranscriptAggregationQuery body: query (required)
2798+ :return: TranscriptAggregateQueryResponse
2799+ If the method is called asynchronously,
2800+ returns the request thread.
2801+ """
2802+
2803+ all_params = ['body' ]
2804+ all_params .append ('callback' )
2805+
2806+ params = locals ()
2807+ for key , val in iteritems (params ['kwargs' ]):
2808+ if key not in all_params :
2809+ raise TypeError (
2810+ "Got an unexpected keyword argument '%s'"
2811+ " to method post_analytics_transcripts_aggregates_query" % key
2812+ )
2813+ params [key ] = val
2814+ del params ['kwargs' ]
2815+
2816+ # verify the required parameter 'body' is set
2817+ if ('body' not in params ) or (params ['body' ] is None ):
2818+ raise ValueError ("Missing the required parameter `body` when calling `post_analytics_transcripts_aggregates_query`" )
2819+
2820+
2821+ resource_path = '/api/v2/analytics/transcripts/aggregates/query' .replace ('{format}' , 'json' )
2822+ path_params = {}
2823+
2824+ query_params = {}
2825+
2826+ header_params = {}
2827+
2828+ form_params = []
2829+ local_var_files = {}
2830+
2831+ body_params = None
2832+ if 'body' in params :
2833+ body_params = params ['body' ]
2834+
2835+ # HTTP header `Accept`
2836+ header_params ['Accept' ] = self .api_client .\
2837+ select_header_accept (['application/json' ])
2838+ if not header_params ['Accept' ]:
2839+ del header_params ['Accept' ]
2840+
2841+ # HTTP header `Content-Type`
2842+ header_params ['Content-Type' ] = self .api_client .\
2843+ select_header_content_type (['application/json' ])
2844+
2845+ # Authentication setting
2846+ auth_settings = ['PureCloud OAuth' ]
2847+
2848+ response = self .api_client .call_api (resource_path , 'POST' ,
2849+ path_params ,
2850+ query_params ,
2851+ header_params ,
2852+ body = body_params ,
2853+ post_params = form_params ,
2854+ files = local_var_files ,
2855+ response_type = 'TranscriptAggregateQueryResponse' ,
2856+ auth_settings = auth_settings ,
2857+ callback = params .get ('callback' ))
2858+ return response
2859+
26382860 def post_analytics_users_aggregates_query (self , body , ** kwargs ):
26392861 """
26402862 Query for user aggregates
0 commit comments