|
77 | 77 | from ..models import DashboardUser |
78 | 78 | from ..models import DashboardUserListing |
79 | 79 | from ..models import DataAvailabilityResponse |
| 80 | +from ..models import DataExtractionFileSchemaListing |
| 81 | +from ..models import DataExtractionFileUrlListing |
| 82 | +from ..models import DownloadServiceRequest |
80 | 83 | from ..models import ErrorBody |
81 | 84 | from ..models import EvaluationAggregateQueryResponse |
82 | 85 | from ..models import EvaluationAggregationQuery |
@@ -2906,6 +2909,176 @@ def get_analytics_conversations_details_jobs_availability(self, **kwargs) -> 'Da |
2906 | 2909 | callback=params.get('callback')) |
2907 | 2910 | return response |
2908 | 2911 |
|
| 2912 | + def get_analytics_dataextraction_download(self, download_id: str, **kwargs) -> None: |
| 2913 | + """ |
| 2914 | + Get analytics data warehouse file download |
| 2915 | + |
| 2916 | + get_analytics_dataextraction_download is a preview method and is subject to both breaking and non-breaking changes at any time without notice |
| 2917 | +
|
| 2918 | + This method makes a synchronous HTTP request by default. To make an |
| 2919 | + asynchronous HTTP request, please define a `callback` function |
| 2920 | + to be invoked when receiving the response. |
| 2921 | + >>> def callback_function(response): |
| 2922 | + >>> pprint(response) |
| 2923 | + >>> |
| 2924 | + >>> thread = api.get_analytics_dataextraction_download(download_id, callback=callback_function) |
| 2925 | +
|
| 2926 | + :param callback function: The callback function |
| 2927 | + for asynchronous request. (optional) |
| 2928 | + :param str download_id: Unique file Id to download (required) |
| 2929 | + :return: None |
| 2930 | + If the method is called asynchronously, |
| 2931 | + returns the request thread. |
| 2932 | + """ |
| 2933 | + |
| 2934 | + all_params = ['download_id'] |
| 2935 | + all_params.append('callback') |
| 2936 | + |
| 2937 | + params = locals() |
| 2938 | + for key, val in params['kwargs'].items(): |
| 2939 | + if key not in all_params: |
| 2940 | + raise TypeError( |
| 2941 | + "Got an unexpected keyword argument '%s'" |
| 2942 | + " to method get_analytics_dataextraction_download" % key |
| 2943 | + ) |
| 2944 | + params[key] = val |
| 2945 | + del params['kwargs'] |
| 2946 | + |
| 2947 | + # verify the required parameter 'download_id' is set |
| 2948 | + if ('download_id' not in params) or (params['download_id'] is None): |
| 2949 | + raise ValueError("Missing the required parameter `download_id` when calling `get_analytics_dataextraction_download`") |
| 2950 | + |
| 2951 | + |
| 2952 | + resource_path = '/api/v2/analytics/dataextraction/downloads/{downloadId}'.replace('{format}', 'json') |
| 2953 | + path_params = {} |
| 2954 | + if 'download_id' in params: |
| 2955 | + path_params['downloadId'] = params['download_id'] |
| 2956 | + |
| 2957 | + query_params = {} |
| 2958 | + |
| 2959 | + header_params = {} |
| 2960 | + |
| 2961 | + form_params = [] |
| 2962 | + local_var_files = {} |
| 2963 | + |
| 2964 | + body_params = None |
| 2965 | + |
| 2966 | + # HTTP header `Accept` |
| 2967 | + header_params['Accept'] = self.api_client.\ |
| 2968 | + select_header_accept(['application/json']) |
| 2969 | + if not header_params['Accept']: |
| 2970 | + del header_params['Accept'] |
| 2971 | + |
| 2972 | + # HTTP header `Content-Type` |
| 2973 | + header_params['Content-Type'] = self.api_client.\ |
| 2974 | + select_header_content_type(['application/json']) |
| 2975 | + |
| 2976 | + # Authentication setting |
| 2977 | + auth_settings = ['PureCloud OAuth'] |
| 2978 | + |
| 2979 | + response = self.api_client.call_api(resource_path, 'GET', |
| 2980 | + path_params, |
| 2981 | + query_params, |
| 2982 | + header_params, |
| 2983 | + body=body_params, |
| 2984 | + post_params=form_params, |
| 2985 | + files=local_var_files, |
| 2986 | + response_type=None, |
| 2987 | + auth_settings=auth_settings, |
| 2988 | + callback=params.get('callback')) |
| 2989 | + return response |
| 2990 | + |
| 2991 | + def get_analytics_dataextraction_downloads_metadata(self, **kwargs) -> 'DataExtractionFileSchemaListing': |
| 2992 | + """ |
| 2993 | + Get metadata on files available for extraction |
| 2994 | + |
| 2995 | + get_analytics_dataextraction_downloads_metadata is a preview method and is subject to both breaking and non-breaking changes at any time without notice |
| 2996 | +
|
| 2997 | + This method makes a synchronous HTTP request by default. To make an |
| 2998 | + asynchronous HTTP request, please define a `callback` function |
| 2999 | + to be invoked when receiving the response. |
| 3000 | + >>> def callback_function(response): |
| 3001 | + >>> pprint(response) |
| 3002 | + >>> |
| 3003 | + >>> thread = api.get_analytics_dataextraction_downloads_metadata(callback=callback_function) |
| 3004 | +
|
| 3005 | + :param callback function: The callback function |
| 3006 | + for asynchronous request. (optional) |
| 3007 | + :param str before: The cursor that points to the start of the set of entities that has been returned. |
| 3008 | + :param str after: The cursor that points to the end of the set of entities that has been returned. |
| 3009 | + :param str page_size: Number of entities to return. Maximum of 200. |
| 3010 | + :param str data_schema: Data schema like conversations |
| 3011 | + :param datetime date_start: Start DateTime filter. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z |
| 3012 | + :param datetime date_end: End DateTime filter. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z |
| 3013 | + :return: DataExtractionFileSchemaListing |
| 3014 | + If the method is called asynchronously, |
| 3015 | + returns the request thread. |
| 3016 | + """ |
| 3017 | + |
| 3018 | + all_params = ['before', 'after', 'page_size', 'data_schema', 'date_start', 'date_end'] |
| 3019 | + all_params.append('callback') |
| 3020 | + |
| 3021 | + params = locals() |
| 3022 | + for key, val in params['kwargs'].items(): |
| 3023 | + if key not in all_params: |
| 3024 | + raise TypeError( |
| 3025 | + "Got an unexpected keyword argument '%s'" |
| 3026 | + " to method get_analytics_dataextraction_downloads_metadata" % key |
| 3027 | + ) |
| 3028 | + params[key] = val |
| 3029 | + del params['kwargs'] |
| 3030 | + |
| 3031 | + |
| 3032 | + |
| 3033 | + resource_path = '/api/v2/analytics/dataextraction/downloads/metadata'.replace('{format}', 'json') |
| 3034 | + path_params = {} |
| 3035 | + |
| 3036 | + query_params = {} |
| 3037 | + if 'before' in params: |
| 3038 | + query_params['before'] = params['before'] |
| 3039 | + if 'after' in params: |
| 3040 | + query_params['after'] = params['after'] |
| 3041 | + if 'page_size' in params: |
| 3042 | + query_params['pageSize'] = params['page_size'] |
| 3043 | + if 'data_schema' in params: |
| 3044 | + query_params['dataSchema'] = params['data_schema'] |
| 3045 | + if 'date_start' in params: |
| 3046 | + query_params['dateStart'] = params['date_start'] |
| 3047 | + if 'date_end' in params: |
| 3048 | + query_params['dateEnd'] = params['date_end'] |
| 3049 | + |
| 3050 | + header_params = {} |
| 3051 | + |
| 3052 | + form_params = [] |
| 3053 | + local_var_files = {} |
| 3054 | + |
| 3055 | + body_params = None |
| 3056 | + |
| 3057 | + # HTTP header `Accept` |
| 3058 | + header_params['Accept'] = self.api_client.\ |
| 3059 | + select_header_accept(['application/json']) |
| 3060 | + if not header_params['Accept']: |
| 3061 | + del header_params['Accept'] |
| 3062 | + |
| 3063 | + # HTTP header `Content-Type` |
| 3064 | + header_params['Content-Type'] = self.api_client.\ |
| 3065 | + select_header_content_type(['application/json']) |
| 3066 | + |
| 3067 | + # Authentication setting |
| 3068 | + auth_settings = ['PureCloud OAuth'] |
| 3069 | + |
| 3070 | + response = self.api_client.call_api(resource_path, 'GET', |
| 3071 | + path_params, |
| 3072 | + query_params, |
| 3073 | + header_params, |
| 3074 | + body=body_params, |
| 3075 | + post_params=form_params, |
| 3076 | + files=local_var_files, |
| 3077 | + response_type='DataExtractionFileSchemaListing', |
| 3078 | + auth_settings=auth_settings, |
| 3079 | + callback=params.get('callback')) |
| 3080 | + return response |
| 3081 | + |
2909 | 3082 | def get_analytics_dataretention_settings(self, **kwargs) -> 'AnalyticsDataRetentionResponse': |
2910 | 3083 | """ |
2911 | 3084 | Get analytics data retention setting |
@@ -6757,6 +6930,85 @@ def post_analytics_conversations_details_query(self, body: 'ConversationQuery', |
6757 | 6930 | callback=params.get('callback')) |
6758 | 6931 | return response |
6759 | 6932 |
|
| 6933 | + def post_analytics_dataextraction_downloads_bulk(self, body: 'DownloadServiceRequest', **kwargs) -> 'DataExtractionFileUrlListing': |
| 6934 | + """ |
| 6935 | + Get download URLs for analytics data warehouse files |
| 6936 | + |
| 6937 | + post_analytics_dataextraction_downloads_bulk is a preview method and is subject to both breaking and non-breaking changes at any time without notice |
| 6938 | +
|
| 6939 | + This method makes a synchronous HTTP request by default. To make an |
| 6940 | + asynchronous HTTP request, please define a `callback` function |
| 6941 | + to be invoked when receiving the response. |
| 6942 | + >>> def callback_function(response): |
| 6943 | + >>> pprint(response) |
| 6944 | + >>> |
| 6945 | + >>> thread = api.post_analytics_dataextraction_downloads_bulk(body, callback=callback_function) |
| 6946 | +
|
| 6947 | + :param callback function: The callback function |
| 6948 | + for asynchronous request. (optional) |
| 6949 | + :param DownloadServiceRequest body: request (required) |
| 6950 | + :return: DataExtractionFileUrlListing |
| 6951 | + If the method is called asynchronously, |
| 6952 | + returns the request thread. |
| 6953 | + """ |
| 6954 | + |
| 6955 | + all_params = ['body'] |
| 6956 | + all_params.append('callback') |
| 6957 | + |
| 6958 | + params = locals() |
| 6959 | + for key, val in params['kwargs'].items(): |
| 6960 | + if key not in all_params: |
| 6961 | + raise TypeError( |
| 6962 | + "Got an unexpected keyword argument '%s'" |
| 6963 | + " to method post_analytics_dataextraction_downloads_bulk" % key |
| 6964 | + ) |
| 6965 | + params[key] = val |
| 6966 | + del params['kwargs'] |
| 6967 | + |
| 6968 | + # verify the required parameter 'body' is set |
| 6969 | + if ('body' not in params) or (params['body'] is None): |
| 6970 | + raise ValueError("Missing the required parameter `body` when calling `post_analytics_dataextraction_downloads_bulk`") |
| 6971 | + |
| 6972 | + |
| 6973 | + resource_path = '/api/v2/analytics/dataextraction/downloads/bulk'.replace('{format}', 'json') |
| 6974 | + path_params = {} |
| 6975 | + |
| 6976 | + query_params = {} |
| 6977 | + |
| 6978 | + header_params = {} |
| 6979 | + |
| 6980 | + form_params = [] |
| 6981 | + local_var_files = {} |
| 6982 | + |
| 6983 | + body_params = None |
| 6984 | + if 'body' in params: |
| 6985 | + body_params = params['body'] |
| 6986 | + |
| 6987 | + # HTTP header `Accept` |
| 6988 | + header_params['Accept'] = self.api_client.\ |
| 6989 | + select_header_accept(['application/json']) |
| 6990 | + if not header_params['Accept']: |
| 6991 | + del header_params['Accept'] |
| 6992 | + |
| 6993 | + # HTTP header `Content-Type` |
| 6994 | + header_params['Content-Type'] = self.api_client.\ |
| 6995 | + select_header_content_type(['application/json']) |
| 6996 | + |
| 6997 | + # Authentication setting |
| 6998 | + auth_settings = ['PureCloud OAuth'] |
| 6999 | + |
| 7000 | + response = self.api_client.call_api(resource_path, 'POST', |
| 7001 | + path_params, |
| 7002 | + query_params, |
| 7003 | + header_params, |
| 7004 | + body=body_params, |
| 7005 | + post_params=form_params, |
| 7006 | + files=local_var_files, |
| 7007 | + response_type='DataExtractionFileUrlListing', |
| 7008 | + auth_settings=auth_settings, |
| 7009 | + callback=params.get('callback')) |
| 7010 | + return response |
| 7011 | + |
6760 | 7012 | def post_analytics_evaluations_aggregates_jobs(self, body: 'EvaluationAsyncAggregationQuery', **kwargs) -> 'AsyncQueryResponse': |
6761 | 7013 | """ |
6762 | 7014 | Query for evaluation aggregates asynchronously |
|
0 commit comments