ultracart-rest-sdk 4.1.13__py3-none-any.whl → 4.1.15__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ultracart-rest-sdk might be problematic. Click here for more details.

@@ -22,6 +22,11 @@ from ultracart.model_utils import ( # noqa: F401
22
22
  none_type,
23
23
  validate_and_convert_types
24
24
  )
25
+ from ultracart.model.custom_report import CustomReport
26
+ from ultracart.model.custom_report_account_config import CustomReportAccountConfig
27
+ from ultracart.model.custom_report_account_config_response import CustomReportAccountConfigResponse
28
+ from ultracart.model.custom_report_execution_request import CustomReportExecutionRequest
29
+ from ultracart.model.custom_report_response import CustomReportResponse
25
30
  from ultracart.model.error_response import ErrorResponse
26
31
  from ultracart.model.report import Report
27
32
  from ultracart.model.report_auth_response import ReportAuthResponse
@@ -56,6 +61,58 @@ class DatawarehouseApi(object):
56
61
  if api_client is None:
57
62
  api_client = ApiClient()
58
63
  self.api_client = api_client
64
+ self.delete_custom_report_endpoint = _Endpoint(
65
+ settings={
66
+ 'response_type': None,
67
+ 'auth': [
68
+ 'ultraCartOauth',
69
+ 'ultraCartSimpleApiKey'
70
+ ],
71
+ 'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
72
+ 'operation_id': 'delete_custom_report',
73
+ 'http_method': 'DELETE',
74
+ 'servers': None,
75
+ },
76
+ params_map={
77
+ 'all': [
78
+ 'custom_report_oid',
79
+ ],
80
+ 'required': [
81
+ 'custom_report_oid',
82
+ ],
83
+ 'nullable': [
84
+ ],
85
+ 'enum': [
86
+ ],
87
+ 'validation': [
88
+ ]
89
+ },
90
+ root_map={
91
+ 'validations': {
92
+ },
93
+ 'allowed_values': {
94
+ },
95
+ 'openapi_types': {
96
+ 'custom_report_oid':
97
+ (int,),
98
+ },
99
+ 'attribute_map': {
100
+ 'custom_report_oid': 'custom_report_oid',
101
+ },
102
+ 'location_map': {
103
+ 'custom_report_oid': 'path',
104
+ },
105
+ 'collection_format_map': {
106
+ }
107
+ },
108
+ headers_map={
109
+ 'accept': [
110
+ 'application/json'
111
+ ],
112
+ 'content_type': [],
113
+ },
114
+ api_client=api_client
115
+ )
59
116
  self.delete_report_endpoint = _Endpoint(
60
117
  settings={
61
118
  'response_type': None,
@@ -161,6 +218,65 @@ class DatawarehouseApi(object):
161
218
  },
162
219
  api_client=api_client
163
220
  )
221
+ self.execute_custom_report_endpoint = _Endpoint(
222
+ settings={
223
+ 'response_type': (CustomReportResponse,),
224
+ 'auth': [
225
+ 'ultraCartOauth',
226
+ 'ultraCartSimpleApiKey'
227
+ ],
228
+ 'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}/execute',
229
+ 'operation_id': 'execute_custom_report',
230
+ 'http_method': 'PUT',
231
+ 'servers': None,
232
+ },
233
+ params_map={
234
+ 'all': [
235
+ 'custom_report_oid',
236
+ 'execution_request',
237
+ ],
238
+ 'required': [
239
+ 'custom_report_oid',
240
+ 'execution_request',
241
+ ],
242
+ 'nullable': [
243
+ ],
244
+ 'enum': [
245
+ ],
246
+ 'validation': [
247
+ ]
248
+ },
249
+ root_map={
250
+ 'validations': {
251
+ },
252
+ 'allowed_values': {
253
+ },
254
+ 'openapi_types': {
255
+ 'custom_report_oid':
256
+ (int,),
257
+ 'execution_request':
258
+ (CustomReportExecutionRequest,),
259
+ },
260
+ 'attribute_map': {
261
+ 'custom_report_oid': 'custom_report_oid',
262
+ },
263
+ 'location_map': {
264
+ 'custom_report_oid': 'path',
265
+ 'execution_request': 'body',
266
+ },
267
+ 'collection_format_map': {
268
+ }
269
+ },
270
+ headers_map={
271
+ 'accept': [
272
+ 'application/json'
273
+ ],
274
+ 'content_type': [
275
+ 'application/json; charset=UTF-8'
276
+ ]
277
+ },
278
+ api_client=api_client
279
+ )
164
280
  self.execute_report_queries_endpoint = _Endpoint(
165
281
  settings={
166
282
  'response_type': None,
@@ -214,6 +330,103 @@ class DatawarehouseApi(object):
214
330
  },
215
331
  api_client=api_client
216
332
  )
333
+ self.get_custom_report_endpoint = _Endpoint(
334
+ settings={
335
+ 'response_type': (CustomReportResponse,),
336
+ 'auth': [
337
+ 'ultraCartOauth',
338
+ 'ultraCartSimpleApiKey'
339
+ ],
340
+ 'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
341
+ 'operation_id': 'get_custom_report',
342
+ 'http_method': 'GET',
343
+ 'servers': None,
344
+ },
345
+ params_map={
346
+ 'all': [
347
+ 'custom_report_oid',
348
+ ],
349
+ 'required': [
350
+ 'custom_report_oid',
351
+ ],
352
+ 'nullable': [
353
+ ],
354
+ 'enum': [
355
+ ],
356
+ 'validation': [
357
+ ]
358
+ },
359
+ root_map={
360
+ 'validations': {
361
+ },
362
+ 'allowed_values': {
363
+ },
364
+ 'openapi_types': {
365
+ 'custom_report_oid':
366
+ (int,),
367
+ },
368
+ 'attribute_map': {
369
+ 'custom_report_oid': 'custom_report_oid',
370
+ },
371
+ 'location_map': {
372
+ 'custom_report_oid': 'path',
373
+ },
374
+ 'collection_format_map': {
375
+ }
376
+ },
377
+ headers_map={
378
+ 'accept': [
379
+ 'application/json'
380
+ ],
381
+ 'content_type': [],
382
+ },
383
+ api_client=api_client
384
+ )
385
+ self.get_custom_report_account_config_endpoint = _Endpoint(
386
+ settings={
387
+ 'response_type': (CustomReportAccountConfigResponse,),
388
+ 'auth': [
389
+ 'ultraCartOauth',
390
+ 'ultraCartSimpleApiKey'
391
+ ],
392
+ 'endpoint_path': '/datawarehouse/custom_reports/account_config',
393
+ 'operation_id': 'get_custom_report_account_config',
394
+ 'http_method': 'GET',
395
+ 'servers': None,
396
+ },
397
+ params_map={
398
+ 'all': [
399
+ ],
400
+ 'required': [],
401
+ 'nullable': [
402
+ ],
403
+ 'enum': [
404
+ ],
405
+ 'validation': [
406
+ ]
407
+ },
408
+ root_map={
409
+ 'validations': {
410
+ },
411
+ 'allowed_values': {
412
+ },
413
+ 'openapi_types': {
414
+ },
415
+ 'attribute_map': {
416
+ },
417
+ 'location_map': {
418
+ },
419
+ 'collection_format_map': {
420
+ }
421
+ },
422
+ headers_map={
423
+ 'accept': [
424
+ 'application/json'
425
+ ],
426
+ 'content_type': [],
427
+ },
428
+ api_client=api_client
429
+ )
217
430
  self.get_report_endpoint = _Endpoint(
218
431
  settings={
219
432
  'response_type': (ReportResponse,),
@@ -466,6 +679,59 @@ class DatawarehouseApi(object):
466
679
  },
467
680
  api_client=api_client
468
681
  )
682
+ self.insert_custom_report_endpoint = _Endpoint(
683
+ settings={
684
+ 'response_type': (CustomReportResponse,),
685
+ 'auth': [
686
+ 'ultraCartOauth',
687
+ 'ultraCartSimpleApiKey'
688
+ ],
689
+ 'endpoint_path': '/datawarehouse/custom_reports',
690
+ 'operation_id': 'insert_custom_report',
691
+ 'http_method': 'POST',
692
+ 'servers': None,
693
+ },
694
+ params_map={
695
+ 'all': [
696
+ 'report',
697
+ ],
698
+ 'required': [
699
+ 'report',
700
+ ],
701
+ 'nullable': [
702
+ ],
703
+ 'enum': [
704
+ ],
705
+ 'validation': [
706
+ ]
707
+ },
708
+ root_map={
709
+ 'validations': {
710
+ },
711
+ 'allowed_values': {
712
+ },
713
+ 'openapi_types': {
714
+ 'report':
715
+ (CustomReport,),
716
+ },
717
+ 'attribute_map': {
718
+ },
719
+ 'location_map': {
720
+ 'report': 'body',
721
+ },
722
+ 'collection_format_map': {
723
+ }
724
+ },
725
+ headers_map={
726
+ 'accept': [
727
+ 'application/json'
728
+ ],
729
+ 'content_type': [
730
+ 'application/json; charset=UTF-8'
731
+ ]
732
+ },
733
+ api_client=api_client
734
+ )
469
735
  self.insert_report_endpoint = _Endpoint(
470
736
  settings={
471
737
  'response_type': (ReportResponse,),
@@ -519,25 +785,25 @@ class DatawarehouseApi(object):
519
785
  },
520
786
  api_client=api_client
521
787
  )
522
- self.update_report_endpoint = _Endpoint(
788
+ self.update_custom_report_endpoint = _Endpoint(
523
789
  settings={
524
- 'response_type': (ReportResponse,),
790
+ 'response_type': (CustomReportResponse,),
525
791
  'auth': [
526
792
  'ultraCartOauth',
527
793
  'ultraCartSimpleApiKey'
528
794
  ],
529
- 'endpoint_path': '/datawarehouse/reports/{report_oid}',
530
- 'operation_id': 'update_report',
795
+ 'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
796
+ 'operation_id': 'update_custom_report',
531
797
  'http_method': 'PUT',
532
798
  'servers': None,
533
799
  },
534
800
  params_map={
535
801
  'all': [
536
- 'report_oid',
802
+ 'custom_report_oid',
537
803
  'report',
538
804
  ],
539
805
  'required': [
540
- 'report_oid',
806
+ 'custom_report_oid',
541
807
  'report',
542
808
  ],
543
809
  'nullable': [
@@ -553,16 +819,16 @@ class DatawarehouseApi(object):
553
819
  'allowed_values': {
554
820
  },
555
821
  'openapi_types': {
556
- 'report_oid':
822
+ 'custom_report_oid':
557
823
  (int,),
558
824
  'report':
559
- (Report,),
825
+ (CustomReport,),
560
826
  },
561
827
  'attribute_map': {
562
- 'report_oid': 'report_oid',
828
+ 'custom_report_oid': 'custom_report_oid',
563
829
  },
564
830
  'location_map': {
565
- 'report_oid': 'path',
831
+ 'custom_report_oid': 'path',
566
832
  'report': 'body',
567
833
  },
568
834
  'collection_format_map': {
@@ -578,23 +844,471 @@ class DatawarehouseApi(object):
578
844
  },
579
845
  api_client=api_client
580
846
  )
581
-
582
- def delete_report(
583
- self,
584
- report_oid,
585
- **kwargs
586
- ):
587
- """Delete a report # noqa: E501
588
-
589
- Delete a report on the UltraCart account. # noqa: E501
847
+ self.update_custom_report_account_config_endpoint = _Endpoint(
848
+ settings={
849
+ 'response_type': (CustomReportAccountConfigResponse,),
850
+ 'auth': [
851
+ 'ultraCartOauth',
852
+ 'ultraCartSimpleApiKey'
853
+ ],
854
+ 'endpoint_path': '/datawarehouse/custom_reports/account_config',
855
+ 'operation_id': 'update_custom_report_account_config',
856
+ 'http_method': 'PUT',
857
+ 'servers': None,
858
+ },
859
+ params_map={
860
+ 'all': [
861
+ 'account_config',
862
+ ],
863
+ 'required': [
864
+ 'account_config',
865
+ ],
866
+ 'nullable': [
867
+ ],
868
+ 'enum': [
869
+ ],
870
+ 'validation': [
871
+ ]
872
+ },
873
+ root_map={
874
+ 'validations': {
875
+ },
876
+ 'allowed_values': {
877
+ },
878
+ 'openapi_types': {
879
+ 'account_config':
880
+ (CustomReportAccountConfig,),
881
+ },
882
+ 'attribute_map': {
883
+ },
884
+ 'location_map': {
885
+ 'account_config': 'body',
886
+ },
887
+ 'collection_format_map': {
888
+ }
889
+ },
890
+ headers_map={
891
+ 'accept': [
892
+ 'application/json'
893
+ ],
894
+ 'content_type': [
895
+ 'application/json; charset=UTF-8'
896
+ ]
897
+ },
898
+ api_client=api_client
899
+ )
900
+ self.update_report_endpoint = _Endpoint(
901
+ settings={
902
+ 'response_type': (ReportResponse,),
903
+ 'auth': [
904
+ 'ultraCartOauth',
905
+ 'ultraCartSimpleApiKey'
906
+ ],
907
+ 'endpoint_path': '/datawarehouse/reports/{report_oid}',
908
+ 'operation_id': 'update_report',
909
+ 'http_method': 'PUT',
910
+ 'servers': None,
911
+ },
912
+ params_map={
913
+ 'all': [
914
+ 'report_oid',
915
+ 'report',
916
+ ],
917
+ 'required': [
918
+ 'report_oid',
919
+ 'report',
920
+ ],
921
+ 'nullable': [
922
+ ],
923
+ 'enum': [
924
+ ],
925
+ 'validation': [
926
+ ]
927
+ },
928
+ root_map={
929
+ 'validations': {
930
+ },
931
+ 'allowed_values': {
932
+ },
933
+ 'openapi_types': {
934
+ 'report_oid':
935
+ (int,),
936
+ 'report':
937
+ (Report,),
938
+ },
939
+ 'attribute_map': {
940
+ 'report_oid': 'report_oid',
941
+ },
942
+ 'location_map': {
943
+ 'report_oid': 'path',
944
+ 'report': 'body',
945
+ },
946
+ 'collection_format_map': {
947
+ }
948
+ },
949
+ headers_map={
950
+ 'accept': [
951
+ 'application/json'
952
+ ],
953
+ 'content_type': [
954
+ 'application/json; charset=UTF-8'
955
+ ]
956
+ },
957
+ api_client=api_client
958
+ )
959
+
960
+ def delete_custom_report(
961
+ self,
962
+ custom_report_oid,
963
+ **kwargs
964
+ ):
965
+ """Delete a custom report # noqa: E501
966
+
967
+ Delete a custom report on the UltraCart account. # noqa: E501
968
+ This method makes a synchronous HTTP request by default. To make an
969
+ asynchronous HTTP request, please pass async_req=True
970
+
971
+ >>> thread = api.delete_custom_report(custom_report_oid, async_req=True)
972
+ >>> result = thread.get()
973
+
974
+ Args:
975
+ custom_report_oid (int): The report oid to delete.
976
+
977
+ Keyword Args:
978
+ _return_http_data_only (bool): response data without head status
979
+ code and headers. Default is True.
980
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
981
+ will be returned without reading/decoding response data.
982
+ Default is True.
983
+ _request_timeout (int/float/tuple): timeout setting for this request. If
984
+ one number provided, it will be total request timeout. It can also
985
+ be a pair (tuple) of (connection, read) timeouts.
986
+ Default is None.
987
+ _check_input_type (bool): specifies if type checking
988
+ should be done one the data sent to the server.
989
+ Default is True.
990
+ _check_return_type (bool): specifies if type checking
991
+ should be done one the data received from the server.
992
+ Default is True.
993
+ _spec_property_naming (bool): True if the variable names in the input data
994
+ are serialized names, as specified in the OpenAPI document.
995
+ False if the variable names in the input data
996
+ are pythonic names, e.g. snake case (default)
997
+ _content_type (str/None): force body content-type.
998
+ Default is None and content-type will be predicted by allowed
999
+ content-types and body.
1000
+ _host_index (int/None): specifies the index of the server
1001
+ that we want to use.
1002
+ Default is read from the configuration.
1003
+ _request_auths (list): set to override the auth_settings for an a single
1004
+ request; this effectively ignores the authentication
1005
+ in the spec for a single request.
1006
+ Default is None
1007
+ async_req (bool): execute request asynchronously
1008
+
1009
+ Returns:
1010
+ None
1011
+ If the method is called asynchronously, returns the request
1012
+ thread.
1013
+ """
1014
+ kwargs['async_req'] = kwargs.get(
1015
+ 'async_req', False
1016
+ )
1017
+ kwargs['_return_http_data_only'] = kwargs.get(
1018
+ '_return_http_data_only', True
1019
+ )
1020
+ kwargs['_preload_content'] = kwargs.get(
1021
+ '_preload_content', True
1022
+ )
1023
+ kwargs['_request_timeout'] = kwargs.get(
1024
+ '_request_timeout', None
1025
+ )
1026
+ kwargs['_check_input_type'] = kwargs.get(
1027
+ '_check_input_type', True
1028
+ )
1029
+ kwargs['_check_return_type'] = kwargs.get(
1030
+ '_check_return_type', True
1031
+ )
1032
+ kwargs['_spec_property_naming'] = kwargs.get(
1033
+ '_spec_property_naming', False
1034
+ )
1035
+ kwargs['_content_type'] = kwargs.get(
1036
+ '_content_type')
1037
+ kwargs['_host_index'] = kwargs.get('_host_index')
1038
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1039
+ kwargs['custom_report_oid'] = \
1040
+ custom_report_oid
1041
+ return self.delete_custom_report_endpoint.call_with_http_info(**kwargs)
1042
+
1043
+ def delete_report(
1044
+ self,
1045
+ report_oid,
1046
+ **kwargs
1047
+ ):
1048
+ """Delete a report # noqa: E501
1049
+
1050
+ Delete a report on the UltraCart account. # noqa: E501
1051
+ This method makes a synchronous HTTP request by default. To make an
1052
+ asynchronous HTTP request, please pass async_req=True
1053
+
1054
+ >>> thread = api.delete_report(report_oid, async_req=True)
1055
+ >>> result = thread.get()
1056
+
1057
+ Args:
1058
+ report_oid (int): The report oid to delete.
1059
+
1060
+ Keyword Args:
1061
+ _return_http_data_only (bool): response data without head status
1062
+ code and headers. Default is True.
1063
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1064
+ will be returned without reading/decoding response data.
1065
+ Default is True.
1066
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1067
+ one number provided, it will be total request timeout. It can also
1068
+ be a pair (tuple) of (connection, read) timeouts.
1069
+ Default is None.
1070
+ _check_input_type (bool): specifies if type checking
1071
+ should be done one the data sent to the server.
1072
+ Default is True.
1073
+ _check_return_type (bool): specifies if type checking
1074
+ should be done one the data received from the server.
1075
+ Default is True.
1076
+ _spec_property_naming (bool): True if the variable names in the input data
1077
+ are serialized names, as specified in the OpenAPI document.
1078
+ False if the variable names in the input data
1079
+ are pythonic names, e.g. snake case (default)
1080
+ _content_type (str/None): force body content-type.
1081
+ Default is None and content-type will be predicted by allowed
1082
+ content-types and body.
1083
+ _host_index (int/None): specifies the index of the server
1084
+ that we want to use.
1085
+ Default is read from the configuration.
1086
+ _request_auths (list): set to override the auth_settings for an a single
1087
+ request; this effectively ignores the authentication
1088
+ in the spec for a single request.
1089
+ Default is None
1090
+ async_req (bool): execute request asynchronously
1091
+
1092
+ Returns:
1093
+ None
1094
+ If the method is called asynchronously, returns the request
1095
+ thread.
1096
+ """
1097
+ kwargs['async_req'] = kwargs.get(
1098
+ 'async_req', False
1099
+ )
1100
+ kwargs['_return_http_data_only'] = kwargs.get(
1101
+ '_return_http_data_only', True
1102
+ )
1103
+ kwargs['_preload_content'] = kwargs.get(
1104
+ '_preload_content', True
1105
+ )
1106
+ kwargs['_request_timeout'] = kwargs.get(
1107
+ '_request_timeout', None
1108
+ )
1109
+ kwargs['_check_input_type'] = kwargs.get(
1110
+ '_check_input_type', True
1111
+ )
1112
+ kwargs['_check_return_type'] = kwargs.get(
1113
+ '_check_return_type', True
1114
+ )
1115
+ kwargs['_spec_property_naming'] = kwargs.get(
1116
+ '_spec_property_naming', False
1117
+ )
1118
+ kwargs['_content_type'] = kwargs.get(
1119
+ '_content_type')
1120
+ kwargs['_host_index'] = kwargs.get('_host_index')
1121
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1122
+ kwargs['report_oid'] = \
1123
+ report_oid
1124
+ return self.delete_report_endpoint.call_with_http_info(**kwargs)
1125
+
1126
+ def dry_run_report_queries(
1127
+ self,
1128
+ query_request,
1129
+ **kwargs
1130
+ ):
1131
+ """Dry run the report queries # noqa: E501
1132
+
1133
+ Dry run the report queries # noqa: E501
1134
+ This method makes a synchronous HTTP request by default. To make an
1135
+ asynchronous HTTP request, please pass async_req=True
1136
+
1137
+ >>> thread = api.dry_run_report_queries(query_request, async_req=True)
1138
+ >>> result = thread.get()
1139
+
1140
+ Args:
1141
+ query_request (ReportDryRunQueriesRequest): Dry run request
1142
+
1143
+ Keyword Args:
1144
+ _return_http_data_only (bool): response data without head status
1145
+ code and headers. Default is True.
1146
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1147
+ will be returned without reading/decoding response data.
1148
+ Default is True.
1149
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1150
+ one number provided, it will be total request timeout. It can also
1151
+ be a pair (tuple) of (connection, read) timeouts.
1152
+ Default is None.
1153
+ _check_input_type (bool): specifies if type checking
1154
+ should be done one the data sent to the server.
1155
+ Default is True.
1156
+ _check_return_type (bool): specifies if type checking
1157
+ should be done one the data received from the server.
1158
+ Default is True.
1159
+ _spec_property_naming (bool): True if the variable names in the input data
1160
+ are serialized names, as specified in the OpenAPI document.
1161
+ False if the variable names in the input data
1162
+ are pythonic names, e.g. snake case (default)
1163
+ _content_type (str/None): force body content-type.
1164
+ Default is None and content-type will be predicted by allowed
1165
+ content-types and body.
1166
+ _host_index (int/None): specifies the index of the server
1167
+ that we want to use.
1168
+ Default is read from the configuration.
1169
+ _request_auths (list): set to override the auth_settings for an a single
1170
+ request; this effectively ignores the authentication
1171
+ in the spec for a single request.
1172
+ Default is None
1173
+ async_req (bool): execute request asynchronously
1174
+
1175
+ Returns:
1176
+ ReportDryRunQueriesResponse
1177
+ If the method is called asynchronously, returns the request
1178
+ thread.
1179
+ """
1180
+ kwargs['async_req'] = kwargs.get(
1181
+ 'async_req', False
1182
+ )
1183
+ kwargs['_return_http_data_only'] = kwargs.get(
1184
+ '_return_http_data_only', True
1185
+ )
1186
+ kwargs['_preload_content'] = kwargs.get(
1187
+ '_preload_content', True
1188
+ )
1189
+ kwargs['_request_timeout'] = kwargs.get(
1190
+ '_request_timeout', None
1191
+ )
1192
+ kwargs['_check_input_type'] = kwargs.get(
1193
+ '_check_input_type', True
1194
+ )
1195
+ kwargs['_check_return_type'] = kwargs.get(
1196
+ '_check_return_type', True
1197
+ )
1198
+ kwargs['_spec_property_naming'] = kwargs.get(
1199
+ '_spec_property_naming', False
1200
+ )
1201
+ kwargs['_content_type'] = kwargs.get(
1202
+ '_content_type')
1203
+ kwargs['_host_index'] = kwargs.get('_host_index')
1204
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1205
+ kwargs['query_request'] = \
1206
+ query_request
1207
+ return self.dry_run_report_queries_endpoint.call_with_http_info(**kwargs)
1208
+
1209
+ def execute_custom_report(
1210
+ self,
1211
+ custom_report_oid,
1212
+ execution_request,
1213
+ **kwargs
1214
+ ):
1215
+ """Execute a custom report # noqa: E501
1216
+
1217
+ Execute a custom report on the UltraCart account. # noqa: E501
1218
+ This method makes a synchronous HTTP request by default. To make an
1219
+ asynchronous HTTP request, please pass async_req=True
1220
+
1221
+ >>> thread = api.execute_custom_report(custom_report_oid, execution_request, async_req=True)
1222
+ >>> result = thread.get()
1223
+
1224
+ Args:
1225
+ custom_report_oid (int): The report oid to execute.
1226
+ execution_request (CustomReportExecutionRequest): Request to execute custom report
1227
+
1228
+ Keyword Args:
1229
+ _return_http_data_only (bool): response data without head status
1230
+ code and headers. Default is True.
1231
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1232
+ will be returned without reading/decoding response data.
1233
+ Default is True.
1234
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1235
+ one number provided, it will be total request timeout. It can also
1236
+ be a pair (tuple) of (connection, read) timeouts.
1237
+ Default is None.
1238
+ _check_input_type (bool): specifies if type checking
1239
+ should be done one the data sent to the server.
1240
+ Default is True.
1241
+ _check_return_type (bool): specifies if type checking
1242
+ should be done one the data received from the server.
1243
+ Default is True.
1244
+ _spec_property_naming (bool): True if the variable names in the input data
1245
+ are serialized names, as specified in the OpenAPI document.
1246
+ False if the variable names in the input data
1247
+ are pythonic names, e.g. snake case (default)
1248
+ _content_type (str/None): force body content-type.
1249
+ Default is None and content-type will be predicted by allowed
1250
+ content-types and body.
1251
+ _host_index (int/None): specifies the index of the server
1252
+ that we want to use.
1253
+ Default is read from the configuration.
1254
+ _request_auths (list): set to override the auth_settings for an a single
1255
+ request; this effectively ignores the authentication
1256
+ in the spec for a single request.
1257
+ Default is None
1258
+ async_req (bool): execute request asynchronously
1259
+
1260
+ Returns:
1261
+ CustomReportResponse
1262
+ If the method is called asynchronously, returns the request
1263
+ thread.
1264
+ """
1265
+ kwargs['async_req'] = kwargs.get(
1266
+ 'async_req', False
1267
+ )
1268
+ kwargs['_return_http_data_only'] = kwargs.get(
1269
+ '_return_http_data_only', True
1270
+ )
1271
+ kwargs['_preload_content'] = kwargs.get(
1272
+ '_preload_content', True
1273
+ )
1274
+ kwargs['_request_timeout'] = kwargs.get(
1275
+ '_request_timeout', None
1276
+ )
1277
+ kwargs['_check_input_type'] = kwargs.get(
1278
+ '_check_input_type', True
1279
+ )
1280
+ kwargs['_check_return_type'] = kwargs.get(
1281
+ '_check_return_type', True
1282
+ )
1283
+ kwargs['_spec_property_naming'] = kwargs.get(
1284
+ '_spec_property_naming', False
1285
+ )
1286
+ kwargs['_content_type'] = kwargs.get(
1287
+ '_content_type')
1288
+ kwargs['_host_index'] = kwargs.get('_host_index')
1289
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1290
+ kwargs['custom_report_oid'] = \
1291
+ custom_report_oid
1292
+ kwargs['execution_request'] = \
1293
+ execution_request
1294
+ return self.execute_custom_report_endpoint.call_with_http_info(**kwargs)
1295
+
1296
+ def execute_report_queries(
1297
+ self,
1298
+ query_request,
1299
+ **kwargs
1300
+ ):
1301
+ """Execute the report queries # noqa: E501
1302
+
1303
+ Execute the report queries # noqa: E501
590
1304
  This method makes a synchronous HTTP request by default. To make an
591
1305
  asynchronous HTTP request, please pass async_req=True
592
1306
 
593
- >>> thread = api.delete_report(report_oid, async_req=True)
1307
+ >>> thread = api.execute_report_queries(query_request, async_req=True)
594
1308
  >>> result = thread.get()
595
1309
 
596
1310
  Args:
597
- report_oid (int): The report oid to delete.
1311
+ query_request (ReportExecuteQueriesRequest): Query request
598
1312
 
599
1313
  Keyword Args:
600
1314
  _return_http_data_only (bool): response data without head status
@@ -658,26 +1372,26 @@ class DatawarehouseApi(object):
658
1372
  '_content_type')
659
1373
  kwargs['_host_index'] = kwargs.get('_host_index')
660
1374
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
661
- kwargs['report_oid'] = \
662
- report_oid
663
- return self.delete_report_endpoint.call_with_http_info(**kwargs)
1375
+ kwargs['query_request'] = \
1376
+ query_request
1377
+ return self.execute_report_queries_endpoint.call_with_http_info(**kwargs)
664
1378
 
665
- def dry_run_report_queries(
1379
+ def get_custom_report(
666
1380
  self,
667
- query_request,
1381
+ custom_report_oid,
668
1382
  **kwargs
669
1383
  ):
670
- """Dry run the report queries # noqa: E501
1384
+ """Get a custom report # noqa: E501
671
1385
 
672
- Dry run the report queries # noqa: E501
1386
+ Retrieve a custom report # noqa: E501
673
1387
  This method makes a synchronous HTTP request by default. To make an
674
1388
  asynchronous HTTP request, please pass async_req=True
675
1389
 
676
- >>> thread = api.dry_run_report_queries(query_request, async_req=True)
1390
+ >>> thread = api.get_custom_report(custom_report_oid, async_req=True)
677
1391
  >>> result = thread.get()
678
1392
 
679
1393
  Args:
680
- query_request (ReportDryRunQueriesRequest): Dry run request
1394
+ custom_report_oid (int):
681
1395
 
682
1396
  Keyword Args:
683
1397
  _return_http_data_only (bool): response data without head status
@@ -712,7 +1426,7 @@ class DatawarehouseApi(object):
712
1426
  async_req (bool): execute request asynchronously
713
1427
 
714
1428
  Returns:
715
- ReportDryRunQueriesResponse
1429
+ CustomReportResponse
716
1430
  If the method is called asynchronously, returns the request
717
1431
  thread.
718
1432
  """
@@ -741,26 +1455,23 @@ class DatawarehouseApi(object):
741
1455
  '_content_type')
742
1456
  kwargs['_host_index'] = kwargs.get('_host_index')
743
1457
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
744
- kwargs['query_request'] = \
745
- query_request
746
- return self.dry_run_report_queries_endpoint.call_with_http_info(**kwargs)
1458
+ kwargs['custom_report_oid'] = \
1459
+ custom_report_oid
1460
+ return self.get_custom_report_endpoint.call_with_http_info(**kwargs)
747
1461
 
748
- def execute_report_queries(
1462
+ def get_custom_report_account_config(
749
1463
  self,
750
- query_request,
751
1464
  **kwargs
752
1465
  ):
753
- """Execute the report queries # noqa: E501
1466
+ """Get custom report account configuration # noqa: E501
754
1467
 
755
- Execute the report queries # noqa: E501
1468
+ Retrieve a custom report account configuration # noqa: E501
756
1469
  This method makes a synchronous HTTP request by default. To make an
757
1470
  asynchronous HTTP request, please pass async_req=True
758
1471
 
759
- >>> thread = api.execute_report_queries(query_request, async_req=True)
1472
+ >>> thread = api.get_custom_report_account_config(async_req=True)
760
1473
  >>> result = thread.get()
761
1474
 
762
- Args:
763
- query_request (ReportExecuteQueriesRequest): Query request
764
1475
 
765
1476
  Keyword Args:
766
1477
  _return_http_data_only (bool): response data without head status
@@ -795,7 +1506,7 @@ class DatawarehouseApi(object):
795
1506
  async_req (bool): execute request asynchronously
796
1507
 
797
1508
  Returns:
798
- None
1509
+ CustomReportAccountConfigResponse
799
1510
  If the method is called asynchronously, returns the request
800
1511
  thread.
801
1512
  """
@@ -824,9 +1535,7 @@ class DatawarehouseApi(object):
824
1535
  '_content_type')
825
1536
  kwargs['_host_index'] = kwargs.get('_host_index')
826
1537
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
827
- kwargs['query_request'] = \
828
- query_request
829
- return self.execute_report_queries_endpoint.call_with_http_info(**kwargs)
1538
+ return self.get_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
830
1539
 
831
1540
  def get_report(
832
1541
  self,
@@ -1237,6 +1946,89 @@ class DatawarehouseApi(object):
1237
1946
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1238
1947
  return self.get_reports_endpoint.call_with_http_info(**kwargs)
1239
1948
 
1949
+ def insert_custom_report(
1950
+ self,
1951
+ report,
1952
+ **kwargs
1953
+ ):
1954
+ """Create a custom report # noqa: E501
1955
+
1956
+ Create a new custom report on the UltraCart account. # noqa: E501
1957
+ This method makes a synchronous HTTP request by default. To make an
1958
+ asynchronous HTTP request, please pass async_req=True
1959
+
1960
+ >>> thread = api.insert_custom_report(report, async_req=True)
1961
+ >>> result = thread.get()
1962
+
1963
+ Args:
1964
+ report (CustomReport): Report to create
1965
+
1966
+ Keyword Args:
1967
+ _return_http_data_only (bool): response data without head status
1968
+ code and headers. Default is True.
1969
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1970
+ will be returned without reading/decoding response data.
1971
+ Default is True.
1972
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1973
+ one number provided, it will be total request timeout. It can also
1974
+ be a pair (tuple) of (connection, read) timeouts.
1975
+ Default is None.
1976
+ _check_input_type (bool): specifies if type checking
1977
+ should be done one the data sent to the server.
1978
+ Default is True.
1979
+ _check_return_type (bool): specifies if type checking
1980
+ should be done one the data received from the server.
1981
+ Default is True.
1982
+ _spec_property_naming (bool): True if the variable names in the input data
1983
+ are serialized names, as specified in the OpenAPI document.
1984
+ False if the variable names in the input data
1985
+ are pythonic names, e.g. snake case (default)
1986
+ _content_type (str/None): force body content-type.
1987
+ Default is None and content-type will be predicted by allowed
1988
+ content-types and body.
1989
+ _host_index (int/None): specifies the index of the server
1990
+ that we want to use.
1991
+ Default is read from the configuration.
1992
+ _request_auths (list): set to override the auth_settings for an a single
1993
+ request; this effectively ignores the authentication
1994
+ in the spec for a single request.
1995
+ Default is None
1996
+ async_req (bool): execute request asynchronously
1997
+
1998
+ Returns:
1999
+ CustomReportResponse
2000
+ If the method is called asynchronously, returns the request
2001
+ thread.
2002
+ """
2003
+ kwargs['async_req'] = kwargs.get(
2004
+ 'async_req', False
2005
+ )
2006
+ kwargs['_return_http_data_only'] = kwargs.get(
2007
+ '_return_http_data_only', True
2008
+ )
2009
+ kwargs['_preload_content'] = kwargs.get(
2010
+ '_preload_content', True
2011
+ )
2012
+ kwargs['_request_timeout'] = kwargs.get(
2013
+ '_request_timeout', None
2014
+ )
2015
+ kwargs['_check_input_type'] = kwargs.get(
2016
+ '_check_input_type', True
2017
+ )
2018
+ kwargs['_check_return_type'] = kwargs.get(
2019
+ '_check_return_type', True
2020
+ )
2021
+ kwargs['_spec_property_naming'] = kwargs.get(
2022
+ '_spec_property_naming', False
2023
+ )
2024
+ kwargs['_content_type'] = kwargs.get(
2025
+ '_content_type')
2026
+ kwargs['_host_index'] = kwargs.get('_host_index')
2027
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2028
+ kwargs['report'] = \
2029
+ report
2030
+ return self.insert_custom_report_endpoint.call_with_http_info(**kwargs)
2031
+
1240
2032
  def insert_report(
1241
2033
  self,
1242
2034
  report,
@@ -1320,6 +2112,176 @@ class DatawarehouseApi(object):
1320
2112
  report
1321
2113
  return self.insert_report_endpoint.call_with_http_info(**kwargs)
1322
2114
 
2115
+ def update_custom_report(
2116
+ self,
2117
+ custom_report_oid,
2118
+ report,
2119
+ **kwargs
2120
+ ):
2121
+ """Update a custom report # noqa: E501
2122
+
2123
+ Update a custom report on the UltraCart account. # noqa: E501
2124
+ This method makes a synchronous HTTP request by default. To make an
2125
+ asynchronous HTTP request, please pass async_req=True
2126
+
2127
+ >>> thread = api.update_custom_report(custom_report_oid, report, async_req=True)
2128
+ >>> result = thread.get()
2129
+
2130
+ Args:
2131
+ custom_report_oid (int): The report oid to custom update.
2132
+ report (CustomReport): Report to custom update
2133
+
2134
+ Keyword Args:
2135
+ _return_http_data_only (bool): response data without head status
2136
+ code and headers. Default is True.
2137
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
2138
+ will be returned without reading/decoding response data.
2139
+ Default is True.
2140
+ _request_timeout (int/float/tuple): timeout setting for this request. If
2141
+ one number provided, it will be total request timeout. It can also
2142
+ be a pair (tuple) of (connection, read) timeouts.
2143
+ Default is None.
2144
+ _check_input_type (bool): specifies if type checking
2145
+ should be done one the data sent to the server.
2146
+ Default is True.
2147
+ _check_return_type (bool): specifies if type checking
2148
+ should be done one the data received from the server.
2149
+ Default is True.
2150
+ _spec_property_naming (bool): True if the variable names in the input data
2151
+ are serialized names, as specified in the OpenAPI document.
2152
+ False if the variable names in the input data
2153
+ are pythonic names, e.g. snake case (default)
2154
+ _content_type (str/None): force body content-type.
2155
+ Default is None and content-type will be predicted by allowed
2156
+ content-types and body.
2157
+ _host_index (int/None): specifies the index of the server
2158
+ that we want to use.
2159
+ Default is read from the configuration.
2160
+ _request_auths (list): set to override the auth_settings for an a single
2161
+ request; this effectively ignores the authentication
2162
+ in the spec for a single request.
2163
+ Default is None
2164
+ async_req (bool): execute request asynchronously
2165
+
2166
+ Returns:
2167
+ CustomReportResponse
2168
+ If the method is called asynchronously, returns the request
2169
+ thread.
2170
+ """
2171
+ kwargs['async_req'] = kwargs.get(
2172
+ 'async_req', False
2173
+ )
2174
+ kwargs['_return_http_data_only'] = kwargs.get(
2175
+ '_return_http_data_only', True
2176
+ )
2177
+ kwargs['_preload_content'] = kwargs.get(
2178
+ '_preload_content', True
2179
+ )
2180
+ kwargs['_request_timeout'] = kwargs.get(
2181
+ '_request_timeout', None
2182
+ )
2183
+ kwargs['_check_input_type'] = kwargs.get(
2184
+ '_check_input_type', True
2185
+ )
2186
+ kwargs['_check_return_type'] = kwargs.get(
2187
+ '_check_return_type', True
2188
+ )
2189
+ kwargs['_spec_property_naming'] = kwargs.get(
2190
+ '_spec_property_naming', False
2191
+ )
2192
+ kwargs['_content_type'] = kwargs.get(
2193
+ '_content_type')
2194
+ kwargs['_host_index'] = kwargs.get('_host_index')
2195
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2196
+ kwargs['custom_report_oid'] = \
2197
+ custom_report_oid
2198
+ kwargs['report'] = \
2199
+ report
2200
+ return self.update_custom_report_endpoint.call_with_http_info(**kwargs)
2201
+
2202
+ def update_custom_report_account_config(
2203
+ self,
2204
+ account_config,
2205
+ **kwargs
2206
+ ):
2207
+ """Update custom report account config # noqa: E501
2208
+
2209
+ Update custom report account config. # noqa: E501
2210
+ This method makes a synchronous HTTP request by default. To make an
2211
+ asynchronous HTTP request, please pass async_req=True
2212
+
2213
+ >>> thread = api.update_custom_report_account_config(account_config, async_req=True)
2214
+ >>> result = thread.get()
2215
+
2216
+ Args:
2217
+ account_config (CustomReportAccountConfig): Account config to update
2218
+
2219
+ Keyword Args:
2220
+ _return_http_data_only (bool): response data without head status
2221
+ code and headers. Default is True.
2222
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
2223
+ will be returned without reading/decoding response data.
2224
+ Default is True.
2225
+ _request_timeout (int/float/tuple): timeout setting for this request. If
2226
+ one number provided, it will be total request timeout. It can also
2227
+ be a pair (tuple) of (connection, read) timeouts.
2228
+ Default is None.
2229
+ _check_input_type (bool): specifies if type checking
2230
+ should be done one the data sent to the server.
2231
+ Default is True.
2232
+ _check_return_type (bool): specifies if type checking
2233
+ should be done one the data received from the server.
2234
+ Default is True.
2235
+ _spec_property_naming (bool): True if the variable names in the input data
2236
+ are serialized names, as specified in the OpenAPI document.
2237
+ False if the variable names in the input data
2238
+ are pythonic names, e.g. snake case (default)
2239
+ _content_type (str/None): force body content-type.
2240
+ Default is None and content-type will be predicted by allowed
2241
+ content-types and body.
2242
+ _host_index (int/None): specifies the index of the server
2243
+ that we want to use.
2244
+ Default is read from the configuration.
2245
+ _request_auths (list): set to override the auth_settings for an a single
2246
+ request; this effectively ignores the authentication
2247
+ in the spec for a single request.
2248
+ Default is None
2249
+ async_req (bool): execute request asynchronously
2250
+
2251
+ Returns:
2252
+ CustomReportAccountConfigResponse
2253
+ If the method is called asynchronously, returns the request
2254
+ thread.
2255
+ """
2256
+ kwargs['async_req'] = kwargs.get(
2257
+ 'async_req', False
2258
+ )
2259
+ kwargs['_return_http_data_only'] = kwargs.get(
2260
+ '_return_http_data_only', True
2261
+ )
2262
+ kwargs['_preload_content'] = kwargs.get(
2263
+ '_preload_content', True
2264
+ )
2265
+ kwargs['_request_timeout'] = kwargs.get(
2266
+ '_request_timeout', None
2267
+ )
2268
+ kwargs['_check_input_type'] = kwargs.get(
2269
+ '_check_input_type', True
2270
+ )
2271
+ kwargs['_check_return_type'] = kwargs.get(
2272
+ '_check_return_type', True
2273
+ )
2274
+ kwargs['_spec_property_naming'] = kwargs.get(
2275
+ '_spec_property_naming', False
2276
+ )
2277
+ kwargs['_content_type'] = kwargs.get(
2278
+ '_content_type')
2279
+ kwargs['_host_index'] = kwargs.get('_host_index')
2280
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2281
+ kwargs['account_config'] = \
2282
+ account_config
2283
+ return self.update_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
2284
+
1323
2285
  def update_report(
1324
2286
  self,
1325
2287
  report_oid,