ultracart-rest-sdk 4.1.14__py3-none-any.whl → 4.1.16__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.
- ultracart/__init__.py +1 -1
- ultracart/api/datawarehouse_api.py +1134 -48
- ultracart/api/order_api.py +198 -111
- ultracart/api/webhook_api.py +0 -48
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/cart_upsell_after.py +10 -2
- ultracart/model/conversation_virtual_agent_capabilities.py +14 -0
- ultracart/model/custom_report.py +310 -0
- ultracart/model/custom_report_account_config.py +296 -0
- ultracart/model/custom_report_account_config_response.py +292 -0
- ultracart/model/custom_report_execution_parameter.py +272 -0
- ultracart/model/custom_report_execution_request.py +270 -0
- ultracart/model/custom_report_parameter.py +290 -0
- ultracart/model/custom_report_parameter_option.py +268 -0
- ultracart/model/custom_report_query.py +284 -0
- ultracart/model/custom_report_response.py +292 -0
- ultracart/model/custom_report_tooltip.py +268 -0
- ultracart/model/custom_reports_response.py +292 -0
- ultracart/model/item.py +2 -2
- ultracart/models/__init__.py +11 -0
- {ultracart_rest_sdk-4.1.14.dist-info → ultracart_rest_sdk-4.1.16.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.14.dist-info → ultracart_rest_sdk-4.1.16.dist-info}/RECORD +26 -15
- {ultracart_rest_sdk-4.1.14.dist-info → ultracart_rest_sdk-4.1.16.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.14.dist-info → ultracart_rest_sdk-4.1.16.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.14.dist-info → ultracart_rest_sdk-4.1.16.dist-info}/top_level.txt +0 -0
|
@@ -22,6 +22,12 @@ 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
|
|
30
|
+
from ultracart.model.custom_reports_response import CustomReportsResponse
|
|
25
31
|
from ultracart.model.error_response import ErrorResponse
|
|
26
32
|
from ultracart.model.report import Report
|
|
27
33
|
from ultracart.model.report_auth_response import ReportAuthResponse
|
|
@@ -56,6 +62,58 @@ class DatawarehouseApi(object):
|
|
|
56
62
|
if api_client is None:
|
|
57
63
|
api_client = ApiClient()
|
|
58
64
|
self.api_client = api_client
|
|
65
|
+
self.delete_custom_report_endpoint = _Endpoint(
|
|
66
|
+
settings={
|
|
67
|
+
'response_type': None,
|
|
68
|
+
'auth': [
|
|
69
|
+
'ultraCartOauth',
|
|
70
|
+
'ultraCartSimpleApiKey'
|
|
71
|
+
],
|
|
72
|
+
'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
|
|
73
|
+
'operation_id': 'delete_custom_report',
|
|
74
|
+
'http_method': 'DELETE',
|
|
75
|
+
'servers': None,
|
|
76
|
+
},
|
|
77
|
+
params_map={
|
|
78
|
+
'all': [
|
|
79
|
+
'custom_report_oid',
|
|
80
|
+
],
|
|
81
|
+
'required': [
|
|
82
|
+
'custom_report_oid',
|
|
83
|
+
],
|
|
84
|
+
'nullable': [
|
|
85
|
+
],
|
|
86
|
+
'enum': [
|
|
87
|
+
],
|
|
88
|
+
'validation': [
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
root_map={
|
|
92
|
+
'validations': {
|
|
93
|
+
},
|
|
94
|
+
'allowed_values': {
|
|
95
|
+
},
|
|
96
|
+
'openapi_types': {
|
|
97
|
+
'custom_report_oid':
|
|
98
|
+
(int,),
|
|
99
|
+
},
|
|
100
|
+
'attribute_map': {
|
|
101
|
+
'custom_report_oid': 'custom_report_oid',
|
|
102
|
+
},
|
|
103
|
+
'location_map': {
|
|
104
|
+
'custom_report_oid': 'path',
|
|
105
|
+
},
|
|
106
|
+
'collection_format_map': {
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
headers_map={
|
|
110
|
+
'accept': [
|
|
111
|
+
'application/json'
|
|
112
|
+
],
|
|
113
|
+
'content_type': [],
|
|
114
|
+
},
|
|
115
|
+
api_client=api_client
|
|
116
|
+
)
|
|
59
117
|
self.delete_report_endpoint = _Endpoint(
|
|
60
118
|
settings={
|
|
61
119
|
'response_type': None,
|
|
@@ -161,6 +219,65 @@ class DatawarehouseApi(object):
|
|
|
161
219
|
},
|
|
162
220
|
api_client=api_client
|
|
163
221
|
)
|
|
222
|
+
self.execute_custom_report_endpoint = _Endpoint(
|
|
223
|
+
settings={
|
|
224
|
+
'response_type': (CustomReportResponse,),
|
|
225
|
+
'auth': [
|
|
226
|
+
'ultraCartOauth',
|
|
227
|
+
'ultraCartSimpleApiKey'
|
|
228
|
+
],
|
|
229
|
+
'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}/execute',
|
|
230
|
+
'operation_id': 'execute_custom_report',
|
|
231
|
+
'http_method': 'PUT',
|
|
232
|
+
'servers': None,
|
|
233
|
+
},
|
|
234
|
+
params_map={
|
|
235
|
+
'all': [
|
|
236
|
+
'custom_report_oid',
|
|
237
|
+
'execution_request',
|
|
238
|
+
],
|
|
239
|
+
'required': [
|
|
240
|
+
'custom_report_oid',
|
|
241
|
+
'execution_request',
|
|
242
|
+
],
|
|
243
|
+
'nullable': [
|
|
244
|
+
],
|
|
245
|
+
'enum': [
|
|
246
|
+
],
|
|
247
|
+
'validation': [
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
root_map={
|
|
251
|
+
'validations': {
|
|
252
|
+
},
|
|
253
|
+
'allowed_values': {
|
|
254
|
+
},
|
|
255
|
+
'openapi_types': {
|
|
256
|
+
'custom_report_oid':
|
|
257
|
+
(int,),
|
|
258
|
+
'execution_request':
|
|
259
|
+
(CustomReportExecutionRequest,),
|
|
260
|
+
},
|
|
261
|
+
'attribute_map': {
|
|
262
|
+
'custom_report_oid': 'custom_report_oid',
|
|
263
|
+
},
|
|
264
|
+
'location_map': {
|
|
265
|
+
'custom_report_oid': 'path',
|
|
266
|
+
'execution_request': 'body',
|
|
267
|
+
},
|
|
268
|
+
'collection_format_map': {
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
headers_map={
|
|
272
|
+
'accept': [
|
|
273
|
+
'application/json'
|
|
274
|
+
],
|
|
275
|
+
'content_type': [
|
|
276
|
+
'application/json; charset=UTF-8'
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
api_client=api_client
|
|
280
|
+
)
|
|
164
281
|
self.execute_report_queries_endpoint = _Endpoint(
|
|
165
282
|
settings={
|
|
166
283
|
'response_type': None,
|
|
@@ -214,6 +331,148 @@ class DatawarehouseApi(object):
|
|
|
214
331
|
},
|
|
215
332
|
api_client=api_client
|
|
216
333
|
)
|
|
334
|
+
self.get_custom_report_endpoint = _Endpoint(
|
|
335
|
+
settings={
|
|
336
|
+
'response_type': (CustomReportResponse,),
|
|
337
|
+
'auth': [
|
|
338
|
+
'ultraCartOauth',
|
|
339
|
+
'ultraCartSimpleApiKey'
|
|
340
|
+
],
|
|
341
|
+
'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
|
|
342
|
+
'operation_id': 'get_custom_report',
|
|
343
|
+
'http_method': 'GET',
|
|
344
|
+
'servers': None,
|
|
345
|
+
},
|
|
346
|
+
params_map={
|
|
347
|
+
'all': [
|
|
348
|
+
'custom_report_oid',
|
|
349
|
+
],
|
|
350
|
+
'required': [
|
|
351
|
+
'custom_report_oid',
|
|
352
|
+
],
|
|
353
|
+
'nullable': [
|
|
354
|
+
],
|
|
355
|
+
'enum': [
|
|
356
|
+
],
|
|
357
|
+
'validation': [
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
root_map={
|
|
361
|
+
'validations': {
|
|
362
|
+
},
|
|
363
|
+
'allowed_values': {
|
|
364
|
+
},
|
|
365
|
+
'openapi_types': {
|
|
366
|
+
'custom_report_oid':
|
|
367
|
+
(int,),
|
|
368
|
+
},
|
|
369
|
+
'attribute_map': {
|
|
370
|
+
'custom_report_oid': 'custom_report_oid',
|
|
371
|
+
},
|
|
372
|
+
'location_map': {
|
|
373
|
+
'custom_report_oid': 'path',
|
|
374
|
+
},
|
|
375
|
+
'collection_format_map': {
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
headers_map={
|
|
379
|
+
'accept': [
|
|
380
|
+
'application/json'
|
|
381
|
+
],
|
|
382
|
+
'content_type': [],
|
|
383
|
+
},
|
|
384
|
+
api_client=api_client
|
|
385
|
+
)
|
|
386
|
+
self.get_custom_report_account_config_endpoint = _Endpoint(
|
|
387
|
+
settings={
|
|
388
|
+
'response_type': (CustomReportAccountConfigResponse,),
|
|
389
|
+
'auth': [
|
|
390
|
+
'ultraCartOauth',
|
|
391
|
+
'ultraCartSimpleApiKey'
|
|
392
|
+
],
|
|
393
|
+
'endpoint_path': '/datawarehouse/custom_reports/account_config',
|
|
394
|
+
'operation_id': 'get_custom_report_account_config',
|
|
395
|
+
'http_method': 'GET',
|
|
396
|
+
'servers': None,
|
|
397
|
+
},
|
|
398
|
+
params_map={
|
|
399
|
+
'all': [
|
|
400
|
+
],
|
|
401
|
+
'required': [],
|
|
402
|
+
'nullable': [
|
|
403
|
+
],
|
|
404
|
+
'enum': [
|
|
405
|
+
],
|
|
406
|
+
'validation': [
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
root_map={
|
|
410
|
+
'validations': {
|
|
411
|
+
},
|
|
412
|
+
'allowed_values': {
|
|
413
|
+
},
|
|
414
|
+
'openapi_types': {
|
|
415
|
+
},
|
|
416
|
+
'attribute_map': {
|
|
417
|
+
},
|
|
418
|
+
'location_map': {
|
|
419
|
+
},
|
|
420
|
+
'collection_format_map': {
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
headers_map={
|
|
424
|
+
'accept': [
|
|
425
|
+
'application/json'
|
|
426
|
+
],
|
|
427
|
+
'content_type': [],
|
|
428
|
+
},
|
|
429
|
+
api_client=api_client
|
|
430
|
+
)
|
|
431
|
+
self.get_custom_reports_endpoint = _Endpoint(
|
|
432
|
+
settings={
|
|
433
|
+
'response_type': (CustomReportsResponse,),
|
|
434
|
+
'auth': [
|
|
435
|
+
'ultraCartOauth',
|
|
436
|
+
'ultraCartSimpleApiKey'
|
|
437
|
+
],
|
|
438
|
+
'endpoint_path': '/datawarehouse/custom_reports',
|
|
439
|
+
'operation_id': 'get_custom_reports',
|
|
440
|
+
'http_method': 'GET',
|
|
441
|
+
'servers': None,
|
|
442
|
+
},
|
|
443
|
+
params_map={
|
|
444
|
+
'all': [
|
|
445
|
+
],
|
|
446
|
+
'required': [],
|
|
447
|
+
'nullable': [
|
|
448
|
+
],
|
|
449
|
+
'enum': [
|
|
450
|
+
],
|
|
451
|
+
'validation': [
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
root_map={
|
|
455
|
+
'validations': {
|
|
456
|
+
},
|
|
457
|
+
'allowed_values': {
|
|
458
|
+
},
|
|
459
|
+
'openapi_types': {
|
|
460
|
+
},
|
|
461
|
+
'attribute_map': {
|
|
462
|
+
},
|
|
463
|
+
'location_map': {
|
|
464
|
+
},
|
|
465
|
+
'collection_format_map': {
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
headers_map={
|
|
469
|
+
'accept': [
|
|
470
|
+
'application/json'
|
|
471
|
+
],
|
|
472
|
+
'content_type': [],
|
|
473
|
+
},
|
|
474
|
+
api_client=api_client
|
|
475
|
+
)
|
|
217
476
|
self.get_report_endpoint = _Endpoint(
|
|
218
477
|
settings={
|
|
219
478
|
'response_type': (ReportResponse,),
|
|
@@ -466,15 +725,15 @@ class DatawarehouseApi(object):
|
|
|
466
725
|
},
|
|
467
726
|
api_client=api_client
|
|
468
727
|
)
|
|
469
|
-
self.
|
|
728
|
+
self.insert_custom_report_endpoint = _Endpoint(
|
|
470
729
|
settings={
|
|
471
|
-
'response_type': (
|
|
730
|
+
'response_type': (CustomReportResponse,),
|
|
472
731
|
'auth': [
|
|
473
732
|
'ultraCartOauth',
|
|
474
733
|
'ultraCartSimpleApiKey'
|
|
475
734
|
],
|
|
476
|
-
'endpoint_path': '/datawarehouse/
|
|
477
|
-
'operation_id': '
|
|
735
|
+
'endpoint_path': '/datawarehouse/custom_reports',
|
|
736
|
+
'operation_id': 'insert_custom_report',
|
|
478
737
|
'http_method': 'POST',
|
|
479
738
|
'servers': None,
|
|
480
739
|
},
|
|
@@ -499,7 +758,7 @@ class DatawarehouseApi(object):
|
|
|
499
758
|
},
|
|
500
759
|
'openapi_types': {
|
|
501
760
|
'report':
|
|
502
|
-
(
|
|
761
|
+
(CustomReport,),
|
|
503
762
|
},
|
|
504
763
|
'attribute_map': {
|
|
505
764
|
},
|
|
@@ -519,25 +778,23 @@ class DatawarehouseApi(object):
|
|
|
519
778
|
},
|
|
520
779
|
api_client=api_client
|
|
521
780
|
)
|
|
522
|
-
self.
|
|
781
|
+
self.insert_report_endpoint = _Endpoint(
|
|
523
782
|
settings={
|
|
524
783
|
'response_type': (ReportResponse,),
|
|
525
784
|
'auth': [
|
|
526
785
|
'ultraCartOauth',
|
|
527
786
|
'ultraCartSimpleApiKey'
|
|
528
787
|
],
|
|
529
|
-
'endpoint_path': '/datawarehouse/reports
|
|
530
|
-
'operation_id': '
|
|
531
|
-
'http_method': '
|
|
788
|
+
'endpoint_path': '/datawarehouse/reports',
|
|
789
|
+
'operation_id': 'insert_report',
|
|
790
|
+
'http_method': 'POST',
|
|
532
791
|
'servers': None,
|
|
533
792
|
},
|
|
534
793
|
params_map={
|
|
535
794
|
'all': [
|
|
536
|
-
'report_oid',
|
|
537
795
|
'report',
|
|
538
796
|
],
|
|
539
797
|
'required': [
|
|
540
|
-
'report_oid',
|
|
541
798
|
'report',
|
|
542
799
|
],
|
|
543
800
|
'nullable': [
|
|
@@ -553,16 +810,12 @@ class DatawarehouseApi(object):
|
|
|
553
810
|
'allowed_values': {
|
|
554
811
|
},
|
|
555
812
|
'openapi_types': {
|
|
556
|
-
'report_oid':
|
|
557
|
-
(int,),
|
|
558
813
|
'report':
|
|
559
814
|
(Report,),
|
|
560
815
|
},
|
|
561
816
|
'attribute_map': {
|
|
562
|
-
'report_oid': 'report_oid',
|
|
563
817
|
},
|
|
564
818
|
'location_map': {
|
|
565
|
-
'report_oid': 'path',
|
|
566
819
|
'report': 'body',
|
|
567
820
|
},
|
|
568
821
|
'collection_format_map': {
|
|
@@ -578,23 +831,613 @@ class DatawarehouseApi(object):
|
|
|
578
831
|
},
|
|
579
832
|
api_client=api_client
|
|
580
833
|
)
|
|
581
|
-
|
|
582
|
-
|
|
834
|
+
self.update_custom_report_endpoint = _Endpoint(
|
|
835
|
+
settings={
|
|
836
|
+
'response_type': (CustomReportResponse,),
|
|
837
|
+
'auth': [
|
|
838
|
+
'ultraCartOauth',
|
|
839
|
+
'ultraCartSimpleApiKey'
|
|
840
|
+
],
|
|
841
|
+
'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
|
|
842
|
+
'operation_id': 'update_custom_report',
|
|
843
|
+
'http_method': 'PUT',
|
|
844
|
+
'servers': None,
|
|
845
|
+
},
|
|
846
|
+
params_map={
|
|
847
|
+
'all': [
|
|
848
|
+
'custom_report_oid',
|
|
849
|
+
'report',
|
|
850
|
+
],
|
|
851
|
+
'required': [
|
|
852
|
+
'custom_report_oid',
|
|
853
|
+
'report',
|
|
854
|
+
],
|
|
855
|
+
'nullable': [
|
|
856
|
+
],
|
|
857
|
+
'enum': [
|
|
858
|
+
],
|
|
859
|
+
'validation': [
|
|
860
|
+
]
|
|
861
|
+
},
|
|
862
|
+
root_map={
|
|
863
|
+
'validations': {
|
|
864
|
+
},
|
|
865
|
+
'allowed_values': {
|
|
866
|
+
},
|
|
867
|
+
'openapi_types': {
|
|
868
|
+
'custom_report_oid':
|
|
869
|
+
(int,),
|
|
870
|
+
'report':
|
|
871
|
+
(CustomReport,),
|
|
872
|
+
},
|
|
873
|
+
'attribute_map': {
|
|
874
|
+
'custom_report_oid': 'custom_report_oid',
|
|
875
|
+
},
|
|
876
|
+
'location_map': {
|
|
877
|
+
'custom_report_oid': 'path',
|
|
878
|
+
'report': 'body',
|
|
879
|
+
},
|
|
880
|
+
'collection_format_map': {
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
headers_map={
|
|
884
|
+
'accept': [
|
|
885
|
+
'application/json'
|
|
886
|
+
],
|
|
887
|
+
'content_type': [
|
|
888
|
+
'application/json; charset=UTF-8'
|
|
889
|
+
]
|
|
890
|
+
},
|
|
891
|
+
api_client=api_client
|
|
892
|
+
)
|
|
893
|
+
self.update_custom_report_account_config_endpoint = _Endpoint(
|
|
894
|
+
settings={
|
|
895
|
+
'response_type': (CustomReportAccountConfigResponse,),
|
|
896
|
+
'auth': [
|
|
897
|
+
'ultraCartOauth',
|
|
898
|
+
'ultraCartSimpleApiKey'
|
|
899
|
+
],
|
|
900
|
+
'endpoint_path': '/datawarehouse/custom_reports/account_config',
|
|
901
|
+
'operation_id': 'update_custom_report_account_config',
|
|
902
|
+
'http_method': 'PUT',
|
|
903
|
+
'servers': None,
|
|
904
|
+
},
|
|
905
|
+
params_map={
|
|
906
|
+
'all': [
|
|
907
|
+
'account_config',
|
|
908
|
+
],
|
|
909
|
+
'required': [
|
|
910
|
+
'account_config',
|
|
911
|
+
],
|
|
912
|
+
'nullable': [
|
|
913
|
+
],
|
|
914
|
+
'enum': [
|
|
915
|
+
],
|
|
916
|
+
'validation': [
|
|
917
|
+
]
|
|
918
|
+
},
|
|
919
|
+
root_map={
|
|
920
|
+
'validations': {
|
|
921
|
+
},
|
|
922
|
+
'allowed_values': {
|
|
923
|
+
},
|
|
924
|
+
'openapi_types': {
|
|
925
|
+
'account_config':
|
|
926
|
+
(CustomReportAccountConfig,),
|
|
927
|
+
},
|
|
928
|
+
'attribute_map': {
|
|
929
|
+
},
|
|
930
|
+
'location_map': {
|
|
931
|
+
'account_config': 'body',
|
|
932
|
+
},
|
|
933
|
+
'collection_format_map': {
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
headers_map={
|
|
937
|
+
'accept': [
|
|
938
|
+
'application/json'
|
|
939
|
+
],
|
|
940
|
+
'content_type': [
|
|
941
|
+
'application/json; charset=UTF-8'
|
|
942
|
+
]
|
|
943
|
+
},
|
|
944
|
+
api_client=api_client
|
|
945
|
+
)
|
|
946
|
+
self.update_report_endpoint = _Endpoint(
|
|
947
|
+
settings={
|
|
948
|
+
'response_type': (ReportResponse,),
|
|
949
|
+
'auth': [
|
|
950
|
+
'ultraCartOauth',
|
|
951
|
+
'ultraCartSimpleApiKey'
|
|
952
|
+
],
|
|
953
|
+
'endpoint_path': '/datawarehouse/reports/{report_oid}',
|
|
954
|
+
'operation_id': 'update_report',
|
|
955
|
+
'http_method': 'PUT',
|
|
956
|
+
'servers': None,
|
|
957
|
+
},
|
|
958
|
+
params_map={
|
|
959
|
+
'all': [
|
|
960
|
+
'report_oid',
|
|
961
|
+
'report',
|
|
962
|
+
],
|
|
963
|
+
'required': [
|
|
964
|
+
'report_oid',
|
|
965
|
+
'report',
|
|
966
|
+
],
|
|
967
|
+
'nullable': [
|
|
968
|
+
],
|
|
969
|
+
'enum': [
|
|
970
|
+
],
|
|
971
|
+
'validation': [
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
root_map={
|
|
975
|
+
'validations': {
|
|
976
|
+
},
|
|
977
|
+
'allowed_values': {
|
|
978
|
+
},
|
|
979
|
+
'openapi_types': {
|
|
980
|
+
'report_oid':
|
|
981
|
+
(int,),
|
|
982
|
+
'report':
|
|
983
|
+
(Report,),
|
|
984
|
+
},
|
|
985
|
+
'attribute_map': {
|
|
986
|
+
'report_oid': 'report_oid',
|
|
987
|
+
},
|
|
988
|
+
'location_map': {
|
|
989
|
+
'report_oid': 'path',
|
|
990
|
+
'report': 'body',
|
|
991
|
+
},
|
|
992
|
+
'collection_format_map': {
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
headers_map={
|
|
996
|
+
'accept': [
|
|
997
|
+
'application/json'
|
|
998
|
+
],
|
|
999
|
+
'content_type': [
|
|
1000
|
+
'application/json; charset=UTF-8'
|
|
1001
|
+
]
|
|
1002
|
+
},
|
|
1003
|
+
api_client=api_client
|
|
1004
|
+
)
|
|
1005
|
+
|
|
1006
|
+
def delete_custom_report(
|
|
1007
|
+
self,
|
|
1008
|
+
custom_report_oid,
|
|
1009
|
+
**kwargs
|
|
1010
|
+
):
|
|
1011
|
+
"""Delete a custom report # noqa: E501
|
|
1012
|
+
|
|
1013
|
+
Delete a custom report on the UltraCart account. # noqa: E501
|
|
1014
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1015
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1016
|
+
|
|
1017
|
+
>>> thread = api.delete_custom_report(custom_report_oid, async_req=True)
|
|
1018
|
+
>>> result = thread.get()
|
|
1019
|
+
|
|
1020
|
+
Args:
|
|
1021
|
+
custom_report_oid (int): The report oid to delete.
|
|
1022
|
+
|
|
1023
|
+
Keyword Args:
|
|
1024
|
+
_return_http_data_only (bool): response data without head status
|
|
1025
|
+
code and headers. Default is True.
|
|
1026
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1027
|
+
will be returned without reading/decoding response data.
|
|
1028
|
+
Default is True.
|
|
1029
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1030
|
+
one number provided, it will be total request timeout. It can also
|
|
1031
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1032
|
+
Default is None.
|
|
1033
|
+
_check_input_type (bool): specifies if type checking
|
|
1034
|
+
should be done one the data sent to the server.
|
|
1035
|
+
Default is True.
|
|
1036
|
+
_check_return_type (bool): specifies if type checking
|
|
1037
|
+
should be done one the data received from the server.
|
|
1038
|
+
Default is True.
|
|
1039
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1040
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1041
|
+
False if the variable names in the input data
|
|
1042
|
+
are pythonic names, e.g. snake case (default)
|
|
1043
|
+
_content_type (str/None): force body content-type.
|
|
1044
|
+
Default is None and content-type will be predicted by allowed
|
|
1045
|
+
content-types and body.
|
|
1046
|
+
_host_index (int/None): specifies the index of the server
|
|
1047
|
+
that we want to use.
|
|
1048
|
+
Default is read from the configuration.
|
|
1049
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1050
|
+
request; this effectively ignores the authentication
|
|
1051
|
+
in the spec for a single request.
|
|
1052
|
+
Default is None
|
|
1053
|
+
async_req (bool): execute request asynchronously
|
|
1054
|
+
|
|
1055
|
+
Returns:
|
|
1056
|
+
None
|
|
1057
|
+
If the method is called asynchronously, returns the request
|
|
1058
|
+
thread.
|
|
1059
|
+
"""
|
|
1060
|
+
kwargs['async_req'] = kwargs.get(
|
|
1061
|
+
'async_req', False
|
|
1062
|
+
)
|
|
1063
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1064
|
+
'_return_http_data_only', True
|
|
1065
|
+
)
|
|
1066
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1067
|
+
'_preload_content', True
|
|
1068
|
+
)
|
|
1069
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1070
|
+
'_request_timeout', None
|
|
1071
|
+
)
|
|
1072
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1073
|
+
'_check_input_type', True
|
|
1074
|
+
)
|
|
1075
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1076
|
+
'_check_return_type', True
|
|
1077
|
+
)
|
|
1078
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1079
|
+
'_spec_property_naming', False
|
|
1080
|
+
)
|
|
1081
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1082
|
+
'_content_type')
|
|
1083
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1084
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1085
|
+
kwargs['custom_report_oid'] = \
|
|
1086
|
+
custom_report_oid
|
|
1087
|
+
return self.delete_custom_report_endpoint.call_with_http_info(**kwargs)
|
|
1088
|
+
|
|
1089
|
+
def delete_report(
|
|
1090
|
+
self,
|
|
1091
|
+
report_oid,
|
|
1092
|
+
**kwargs
|
|
1093
|
+
):
|
|
1094
|
+
"""Delete a report # noqa: E501
|
|
1095
|
+
|
|
1096
|
+
Delete a report on the UltraCart account. # noqa: E501
|
|
1097
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1098
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1099
|
+
|
|
1100
|
+
>>> thread = api.delete_report(report_oid, async_req=True)
|
|
1101
|
+
>>> result = thread.get()
|
|
1102
|
+
|
|
1103
|
+
Args:
|
|
1104
|
+
report_oid (int): The report oid to delete.
|
|
1105
|
+
|
|
1106
|
+
Keyword Args:
|
|
1107
|
+
_return_http_data_only (bool): response data without head status
|
|
1108
|
+
code and headers. Default is True.
|
|
1109
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1110
|
+
will be returned without reading/decoding response data.
|
|
1111
|
+
Default is True.
|
|
1112
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1113
|
+
one number provided, it will be total request timeout. It can also
|
|
1114
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1115
|
+
Default is None.
|
|
1116
|
+
_check_input_type (bool): specifies if type checking
|
|
1117
|
+
should be done one the data sent to the server.
|
|
1118
|
+
Default is True.
|
|
1119
|
+
_check_return_type (bool): specifies if type checking
|
|
1120
|
+
should be done one the data received from the server.
|
|
1121
|
+
Default is True.
|
|
1122
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1123
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1124
|
+
False if the variable names in the input data
|
|
1125
|
+
are pythonic names, e.g. snake case (default)
|
|
1126
|
+
_content_type (str/None): force body content-type.
|
|
1127
|
+
Default is None and content-type will be predicted by allowed
|
|
1128
|
+
content-types and body.
|
|
1129
|
+
_host_index (int/None): specifies the index of the server
|
|
1130
|
+
that we want to use.
|
|
1131
|
+
Default is read from the configuration.
|
|
1132
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1133
|
+
request; this effectively ignores the authentication
|
|
1134
|
+
in the spec for a single request.
|
|
1135
|
+
Default is None
|
|
1136
|
+
async_req (bool): execute request asynchronously
|
|
1137
|
+
|
|
1138
|
+
Returns:
|
|
1139
|
+
None
|
|
1140
|
+
If the method is called asynchronously, returns the request
|
|
1141
|
+
thread.
|
|
1142
|
+
"""
|
|
1143
|
+
kwargs['async_req'] = kwargs.get(
|
|
1144
|
+
'async_req', False
|
|
1145
|
+
)
|
|
1146
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1147
|
+
'_return_http_data_only', True
|
|
1148
|
+
)
|
|
1149
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1150
|
+
'_preload_content', True
|
|
1151
|
+
)
|
|
1152
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1153
|
+
'_request_timeout', None
|
|
1154
|
+
)
|
|
1155
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1156
|
+
'_check_input_type', True
|
|
1157
|
+
)
|
|
1158
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1159
|
+
'_check_return_type', True
|
|
1160
|
+
)
|
|
1161
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1162
|
+
'_spec_property_naming', False
|
|
1163
|
+
)
|
|
1164
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1165
|
+
'_content_type')
|
|
1166
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1167
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1168
|
+
kwargs['report_oid'] = \
|
|
1169
|
+
report_oid
|
|
1170
|
+
return self.delete_report_endpoint.call_with_http_info(**kwargs)
|
|
1171
|
+
|
|
1172
|
+
def dry_run_report_queries(
|
|
1173
|
+
self,
|
|
1174
|
+
query_request,
|
|
1175
|
+
**kwargs
|
|
1176
|
+
):
|
|
1177
|
+
"""Dry run the report queries # noqa: E501
|
|
1178
|
+
|
|
1179
|
+
Dry run the report queries # noqa: E501
|
|
1180
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1181
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1182
|
+
|
|
1183
|
+
>>> thread = api.dry_run_report_queries(query_request, async_req=True)
|
|
1184
|
+
>>> result = thread.get()
|
|
1185
|
+
|
|
1186
|
+
Args:
|
|
1187
|
+
query_request (ReportDryRunQueriesRequest): Dry run request
|
|
1188
|
+
|
|
1189
|
+
Keyword Args:
|
|
1190
|
+
_return_http_data_only (bool): response data without head status
|
|
1191
|
+
code and headers. Default is True.
|
|
1192
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1193
|
+
will be returned without reading/decoding response data.
|
|
1194
|
+
Default is True.
|
|
1195
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1196
|
+
one number provided, it will be total request timeout. It can also
|
|
1197
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1198
|
+
Default is None.
|
|
1199
|
+
_check_input_type (bool): specifies if type checking
|
|
1200
|
+
should be done one the data sent to the server.
|
|
1201
|
+
Default is True.
|
|
1202
|
+
_check_return_type (bool): specifies if type checking
|
|
1203
|
+
should be done one the data received from the server.
|
|
1204
|
+
Default is True.
|
|
1205
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1206
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1207
|
+
False if the variable names in the input data
|
|
1208
|
+
are pythonic names, e.g. snake case (default)
|
|
1209
|
+
_content_type (str/None): force body content-type.
|
|
1210
|
+
Default is None and content-type will be predicted by allowed
|
|
1211
|
+
content-types and body.
|
|
1212
|
+
_host_index (int/None): specifies the index of the server
|
|
1213
|
+
that we want to use.
|
|
1214
|
+
Default is read from the configuration.
|
|
1215
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1216
|
+
request; this effectively ignores the authentication
|
|
1217
|
+
in the spec for a single request.
|
|
1218
|
+
Default is None
|
|
1219
|
+
async_req (bool): execute request asynchronously
|
|
1220
|
+
|
|
1221
|
+
Returns:
|
|
1222
|
+
ReportDryRunQueriesResponse
|
|
1223
|
+
If the method is called asynchronously, returns the request
|
|
1224
|
+
thread.
|
|
1225
|
+
"""
|
|
1226
|
+
kwargs['async_req'] = kwargs.get(
|
|
1227
|
+
'async_req', False
|
|
1228
|
+
)
|
|
1229
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1230
|
+
'_return_http_data_only', True
|
|
1231
|
+
)
|
|
1232
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1233
|
+
'_preload_content', True
|
|
1234
|
+
)
|
|
1235
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1236
|
+
'_request_timeout', None
|
|
1237
|
+
)
|
|
1238
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1239
|
+
'_check_input_type', True
|
|
1240
|
+
)
|
|
1241
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1242
|
+
'_check_return_type', True
|
|
1243
|
+
)
|
|
1244
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1245
|
+
'_spec_property_naming', False
|
|
1246
|
+
)
|
|
1247
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1248
|
+
'_content_type')
|
|
1249
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1250
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1251
|
+
kwargs['query_request'] = \
|
|
1252
|
+
query_request
|
|
1253
|
+
return self.dry_run_report_queries_endpoint.call_with_http_info(**kwargs)
|
|
1254
|
+
|
|
1255
|
+
def execute_custom_report(
|
|
1256
|
+
self,
|
|
1257
|
+
custom_report_oid,
|
|
1258
|
+
execution_request,
|
|
1259
|
+
**kwargs
|
|
1260
|
+
):
|
|
1261
|
+
"""Execute a custom report # noqa: E501
|
|
1262
|
+
|
|
1263
|
+
Execute a custom report on the UltraCart account. # noqa: E501
|
|
1264
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1265
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1266
|
+
|
|
1267
|
+
>>> thread = api.execute_custom_report(custom_report_oid, execution_request, async_req=True)
|
|
1268
|
+
>>> result = thread.get()
|
|
1269
|
+
|
|
1270
|
+
Args:
|
|
1271
|
+
custom_report_oid (int): The report oid to execute.
|
|
1272
|
+
execution_request (CustomReportExecutionRequest): Request to execute custom report
|
|
1273
|
+
|
|
1274
|
+
Keyword Args:
|
|
1275
|
+
_return_http_data_only (bool): response data without head status
|
|
1276
|
+
code and headers. Default is True.
|
|
1277
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1278
|
+
will be returned without reading/decoding response data.
|
|
1279
|
+
Default is True.
|
|
1280
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1281
|
+
one number provided, it will be total request timeout. It can also
|
|
1282
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1283
|
+
Default is None.
|
|
1284
|
+
_check_input_type (bool): specifies if type checking
|
|
1285
|
+
should be done one the data sent to the server.
|
|
1286
|
+
Default is True.
|
|
1287
|
+
_check_return_type (bool): specifies if type checking
|
|
1288
|
+
should be done one the data received from the server.
|
|
1289
|
+
Default is True.
|
|
1290
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1291
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1292
|
+
False if the variable names in the input data
|
|
1293
|
+
are pythonic names, e.g. snake case (default)
|
|
1294
|
+
_content_type (str/None): force body content-type.
|
|
1295
|
+
Default is None and content-type will be predicted by allowed
|
|
1296
|
+
content-types and body.
|
|
1297
|
+
_host_index (int/None): specifies the index of the server
|
|
1298
|
+
that we want to use.
|
|
1299
|
+
Default is read from the configuration.
|
|
1300
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1301
|
+
request; this effectively ignores the authentication
|
|
1302
|
+
in the spec for a single request.
|
|
1303
|
+
Default is None
|
|
1304
|
+
async_req (bool): execute request asynchronously
|
|
1305
|
+
|
|
1306
|
+
Returns:
|
|
1307
|
+
CustomReportResponse
|
|
1308
|
+
If the method is called asynchronously, returns the request
|
|
1309
|
+
thread.
|
|
1310
|
+
"""
|
|
1311
|
+
kwargs['async_req'] = kwargs.get(
|
|
1312
|
+
'async_req', False
|
|
1313
|
+
)
|
|
1314
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1315
|
+
'_return_http_data_only', True
|
|
1316
|
+
)
|
|
1317
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1318
|
+
'_preload_content', True
|
|
1319
|
+
)
|
|
1320
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1321
|
+
'_request_timeout', None
|
|
1322
|
+
)
|
|
1323
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1324
|
+
'_check_input_type', True
|
|
1325
|
+
)
|
|
1326
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1327
|
+
'_check_return_type', True
|
|
1328
|
+
)
|
|
1329
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1330
|
+
'_spec_property_naming', False
|
|
1331
|
+
)
|
|
1332
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1333
|
+
'_content_type')
|
|
1334
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1335
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1336
|
+
kwargs['custom_report_oid'] = \
|
|
1337
|
+
custom_report_oid
|
|
1338
|
+
kwargs['execution_request'] = \
|
|
1339
|
+
execution_request
|
|
1340
|
+
return self.execute_custom_report_endpoint.call_with_http_info(**kwargs)
|
|
1341
|
+
|
|
1342
|
+
def execute_report_queries(
|
|
1343
|
+
self,
|
|
1344
|
+
query_request,
|
|
1345
|
+
**kwargs
|
|
1346
|
+
):
|
|
1347
|
+
"""Execute the report queries # noqa: E501
|
|
1348
|
+
|
|
1349
|
+
Execute the report queries # noqa: E501
|
|
1350
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1351
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1352
|
+
|
|
1353
|
+
>>> thread = api.execute_report_queries(query_request, async_req=True)
|
|
1354
|
+
>>> result = thread.get()
|
|
1355
|
+
|
|
1356
|
+
Args:
|
|
1357
|
+
query_request (ReportExecuteQueriesRequest): Query request
|
|
1358
|
+
|
|
1359
|
+
Keyword Args:
|
|
1360
|
+
_return_http_data_only (bool): response data without head status
|
|
1361
|
+
code and headers. Default is True.
|
|
1362
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1363
|
+
will be returned without reading/decoding response data.
|
|
1364
|
+
Default is True.
|
|
1365
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1366
|
+
one number provided, it will be total request timeout. It can also
|
|
1367
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1368
|
+
Default is None.
|
|
1369
|
+
_check_input_type (bool): specifies if type checking
|
|
1370
|
+
should be done one the data sent to the server.
|
|
1371
|
+
Default is True.
|
|
1372
|
+
_check_return_type (bool): specifies if type checking
|
|
1373
|
+
should be done one the data received from the server.
|
|
1374
|
+
Default is True.
|
|
1375
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1376
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1377
|
+
False if the variable names in the input data
|
|
1378
|
+
are pythonic names, e.g. snake case (default)
|
|
1379
|
+
_content_type (str/None): force body content-type.
|
|
1380
|
+
Default is None and content-type will be predicted by allowed
|
|
1381
|
+
content-types and body.
|
|
1382
|
+
_host_index (int/None): specifies the index of the server
|
|
1383
|
+
that we want to use.
|
|
1384
|
+
Default is read from the configuration.
|
|
1385
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1386
|
+
request; this effectively ignores the authentication
|
|
1387
|
+
in the spec for a single request.
|
|
1388
|
+
Default is None
|
|
1389
|
+
async_req (bool): execute request asynchronously
|
|
1390
|
+
|
|
1391
|
+
Returns:
|
|
1392
|
+
None
|
|
1393
|
+
If the method is called asynchronously, returns the request
|
|
1394
|
+
thread.
|
|
1395
|
+
"""
|
|
1396
|
+
kwargs['async_req'] = kwargs.get(
|
|
1397
|
+
'async_req', False
|
|
1398
|
+
)
|
|
1399
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1400
|
+
'_return_http_data_only', True
|
|
1401
|
+
)
|
|
1402
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1403
|
+
'_preload_content', True
|
|
1404
|
+
)
|
|
1405
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1406
|
+
'_request_timeout', None
|
|
1407
|
+
)
|
|
1408
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1409
|
+
'_check_input_type', True
|
|
1410
|
+
)
|
|
1411
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1412
|
+
'_check_return_type', True
|
|
1413
|
+
)
|
|
1414
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1415
|
+
'_spec_property_naming', False
|
|
1416
|
+
)
|
|
1417
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1418
|
+
'_content_type')
|
|
1419
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1420
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1421
|
+
kwargs['query_request'] = \
|
|
1422
|
+
query_request
|
|
1423
|
+
return self.execute_report_queries_endpoint.call_with_http_info(**kwargs)
|
|
1424
|
+
|
|
1425
|
+
def get_custom_report(
|
|
583
1426
|
self,
|
|
584
|
-
|
|
1427
|
+
custom_report_oid,
|
|
585
1428
|
**kwargs
|
|
586
1429
|
):
|
|
587
|
-
"""
|
|
1430
|
+
"""Get a custom report # noqa: E501
|
|
588
1431
|
|
|
589
|
-
|
|
1432
|
+
Retrieve a custom report # noqa: E501
|
|
590
1433
|
This method makes a synchronous HTTP request by default. To make an
|
|
591
1434
|
asynchronous HTTP request, please pass async_req=True
|
|
592
1435
|
|
|
593
|
-
>>> thread = api.
|
|
1436
|
+
>>> thread = api.get_custom_report(custom_report_oid, async_req=True)
|
|
594
1437
|
>>> result = thread.get()
|
|
595
1438
|
|
|
596
1439
|
Args:
|
|
597
|
-
|
|
1440
|
+
custom_report_oid (int):
|
|
598
1441
|
|
|
599
1442
|
Keyword Args:
|
|
600
1443
|
_return_http_data_only (bool): response data without head status
|
|
@@ -629,7 +1472,7 @@ class DatawarehouseApi(object):
|
|
|
629
1472
|
async_req (bool): execute request asynchronously
|
|
630
1473
|
|
|
631
1474
|
Returns:
|
|
632
|
-
|
|
1475
|
+
CustomReportResponse
|
|
633
1476
|
If the method is called asynchronously, returns the request
|
|
634
1477
|
thread.
|
|
635
1478
|
"""
|
|
@@ -658,26 +1501,23 @@ class DatawarehouseApi(object):
|
|
|
658
1501
|
'_content_type')
|
|
659
1502
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
660
1503
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
661
|
-
kwargs['
|
|
662
|
-
|
|
663
|
-
return self.
|
|
1504
|
+
kwargs['custom_report_oid'] = \
|
|
1505
|
+
custom_report_oid
|
|
1506
|
+
return self.get_custom_report_endpoint.call_with_http_info(**kwargs)
|
|
664
1507
|
|
|
665
|
-
def
|
|
1508
|
+
def get_custom_report_account_config(
|
|
666
1509
|
self,
|
|
667
|
-
query_request,
|
|
668
1510
|
**kwargs
|
|
669
1511
|
):
|
|
670
|
-
"""
|
|
1512
|
+
"""Get custom report account configuration # noqa: E501
|
|
671
1513
|
|
|
672
|
-
|
|
1514
|
+
Retrieve a custom report account configuration # noqa: E501
|
|
673
1515
|
This method makes a synchronous HTTP request by default. To make an
|
|
674
1516
|
asynchronous HTTP request, please pass async_req=True
|
|
675
1517
|
|
|
676
|
-
>>> thread = api.
|
|
1518
|
+
>>> thread = api.get_custom_report_account_config(async_req=True)
|
|
677
1519
|
>>> result = thread.get()
|
|
678
1520
|
|
|
679
|
-
Args:
|
|
680
|
-
query_request (ReportDryRunQueriesRequest): Dry run request
|
|
681
1521
|
|
|
682
1522
|
Keyword Args:
|
|
683
1523
|
_return_http_data_only (bool): response data without head status
|
|
@@ -712,7 +1552,7 @@ class DatawarehouseApi(object):
|
|
|
712
1552
|
async_req (bool): execute request asynchronously
|
|
713
1553
|
|
|
714
1554
|
Returns:
|
|
715
|
-
|
|
1555
|
+
CustomReportAccountConfigResponse
|
|
716
1556
|
If the method is called asynchronously, returns the request
|
|
717
1557
|
thread.
|
|
718
1558
|
"""
|
|
@@ -741,26 +1581,21 @@ class DatawarehouseApi(object):
|
|
|
741
1581
|
'_content_type')
|
|
742
1582
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
743
1583
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
744
|
-
kwargs
|
|
745
|
-
query_request
|
|
746
|
-
return self.dry_run_report_queries_endpoint.call_with_http_info(**kwargs)
|
|
1584
|
+
return self.get_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
|
|
747
1585
|
|
|
748
|
-
def
|
|
1586
|
+
def get_custom_reports(
|
|
749
1587
|
self,
|
|
750
|
-
query_request,
|
|
751
1588
|
**kwargs
|
|
752
1589
|
):
|
|
753
|
-
"""
|
|
1590
|
+
"""Get custom reports # noqa: E501
|
|
754
1591
|
|
|
755
|
-
|
|
1592
|
+
Retrieve a custom reports # noqa: E501
|
|
756
1593
|
This method makes a synchronous HTTP request by default. To make an
|
|
757
1594
|
asynchronous HTTP request, please pass async_req=True
|
|
758
1595
|
|
|
759
|
-
>>> thread = api.
|
|
1596
|
+
>>> thread = api.get_custom_reports(async_req=True)
|
|
760
1597
|
>>> result = thread.get()
|
|
761
1598
|
|
|
762
|
-
Args:
|
|
763
|
-
query_request (ReportExecuteQueriesRequest): Query request
|
|
764
1599
|
|
|
765
1600
|
Keyword Args:
|
|
766
1601
|
_return_http_data_only (bool): response data without head status
|
|
@@ -795,7 +1630,7 @@ class DatawarehouseApi(object):
|
|
|
795
1630
|
async_req (bool): execute request asynchronously
|
|
796
1631
|
|
|
797
1632
|
Returns:
|
|
798
|
-
|
|
1633
|
+
CustomReportsResponse
|
|
799
1634
|
If the method is called asynchronously, returns the request
|
|
800
1635
|
thread.
|
|
801
1636
|
"""
|
|
@@ -824,9 +1659,7 @@ class DatawarehouseApi(object):
|
|
|
824
1659
|
'_content_type')
|
|
825
1660
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
826
1661
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
827
|
-
kwargs
|
|
828
|
-
query_request
|
|
829
|
-
return self.execute_report_queries_endpoint.call_with_http_info(**kwargs)
|
|
1662
|
+
return self.get_custom_reports_endpoint.call_with_http_info(**kwargs)
|
|
830
1663
|
|
|
831
1664
|
def get_report(
|
|
832
1665
|
self,
|
|
@@ -1237,6 +2070,89 @@ class DatawarehouseApi(object):
|
|
|
1237
2070
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1238
2071
|
return self.get_reports_endpoint.call_with_http_info(**kwargs)
|
|
1239
2072
|
|
|
2073
|
+
def insert_custom_report(
|
|
2074
|
+
self,
|
|
2075
|
+
report,
|
|
2076
|
+
**kwargs
|
|
2077
|
+
):
|
|
2078
|
+
"""Create a custom report # noqa: E501
|
|
2079
|
+
|
|
2080
|
+
Create a new custom report on the UltraCart account. # noqa: E501
|
|
2081
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2082
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2083
|
+
|
|
2084
|
+
>>> thread = api.insert_custom_report(report, async_req=True)
|
|
2085
|
+
>>> result = thread.get()
|
|
2086
|
+
|
|
2087
|
+
Args:
|
|
2088
|
+
report (CustomReport): Report to create
|
|
2089
|
+
|
|
2090
|
+
Keyword Args:
|
|
2091
|
+
_return_http_data_only (bool): response data without head status
|
|
2092
|
+
code and headers. Default is True.
|
|
2093
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
2094
|
+
will be returned without reading/decoding response data.
|
|
2095
|
+
Default is True.
|
|
2096
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
2097
|
+
one number provided, it will be total request timeout. It can also
|
|
2098
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
2099
|
+
Default is None.
|
|
2100
|
+
_check_input_type (bool): specifies if type checking
|
|
2101
|
+
should be done one the data sent to the server.
|
|
2102
|
+
Default is True.
|
|
2103
|
+
_check_return_type (bool): specifies if type checking
|
|
2104
|
+
should be done one the data received from the server.
|
|
2105
|
+
Default is True.
|
|
2106
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
2107
|
+
are serialized names, as specified in the OpenAPI document.
|
|
2108
|
+
False if the variable names in the input data
|
|
2109
|
+
are pythonic names, e.g. snake case (default)
|
|
2110
|
+
_content_type (str/None): force body content-type.
|
|
2111
|
+
Default is None and content-type will be predicted by allowed
|
|
2112
|
+
content-types and body.
|
|
2113
|
+
_host_index (int/None): specifies the index of the server
|
|
2114
|
+
that we want to use.
|
|
2115
|
+
Default is read from the configuration.
|
|
2116
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
2117
|
+
request; this effectively ignores the authentication
|
|
2118
|
+
in the spec for a single request.
|
|
2119
|
+
Default is None
|
|
2120
|
+
async_req (bool): execute request asynchronously
|
|
2121
|
+
|
|
2122
|
+
Returns:
|
|
2123
|
+
CustomReportResponse
|
|
2124
|
+
If the method is called asynchronously, returns the request
|
|
2125
|
+
thread.
|
|
2126
|
+
"""
|
|
2127
|
+
kwargs['async_req'] = kwargs.get(
|
|
2128
|
+
'async_req', False
|
|
2129
|
+
)
|
|
2130
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
2131
|
+
'_return_http_data_only', True
|
|
2132
|
+
)
|
|
2133
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
2134
|
+
'_preload_content', True
|
|
2135
|
+
)
|
|
2136
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
2137
|
+
'_request_timeout', None
|
|
2138
|
+
)
|
|
2139
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
2140
|
+
'_check_input_type', True
|
|
2141
|
+
)
|
|
2142
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
2143
|
+
'_check_return_type', True
|
|
2144
|
+
)
|
|
2145
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
2146
|
+
'_spec_property_naming', False
|
|
2147
|
+
)
|
|
2148
|
+
kwargs['_content_type'] = kwargs.get(
|
|
2149
|
+
'_content_type')
|
|
2150
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
2151
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
2152
|
+
kwargs['report'] = \
|
|
2153
|
+
report
|
|
2154
|
+
return self.insert_custom_report_endpoint.call_with_http_info(**kwargs)
|
|
2155
|
+
|
|
1240
2156
|
def insert_report(
|
|
1241
2157
|
self,
|
|
1242
2158
|
report,
|
|
@@ -1320,6 +2236,176 @@ class DatawarehouseApi(object):
|
|
|
1320
2236
|
report
|
|
1321
2237
|
return self.insert_report_endpoint.call_with_http_info(**kwargs)
|
|
1322
2238
|
|
|
2239
|
+
def update_custom_report(
|
|
2240
|
+
self,
|
|
2241
|
+
custom_report_oid,
|
|
2242
|
+
report,
|
|
2243
|
+
**kwargs
|
|
2244
|
+
):
|
|
2245
|
+
"""Update a custom report # noqa: E501
|
|
2246
|
+
|
|
2247
|
+
Update a custom report on the UltraCart account. # noqa: E501
|
|
2248
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2249
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2250
|
+
|
|
2251
|
+
>>> thread = api.update_custom_report(custom_report_oid, report, async_req=True)
|
|
2252
|
+
>>> result = thread.get()
|
|
2253
|
+
|
|
2254
|
+
Args:
|
|
2255
|
+
custom_report_oid (int): The report oid to custom update.
|
|
2256
|
+
report (CustomReport): Report to custom update
|
|
2257
|
+
|
|
2258
|
+
Keyword Args:
|
|
2259
|
+
_return_http_data_only (bool): response data without head status
|
|
2260
|
+
code and headers. Default is True.
|
|
2261
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
2262
|
+
will be returned without reading/decoding response data.
|
|
2263
|
+
Default is True.
|
|
2264
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
2265
|
+
one number provided, it will be total request timeout. It can also
|
|
2266
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
2267
|
+
Default is None.
|
|
2268
|
+
_check_input_type (bool): specifies if type checking
|
|
2269
|
+
should be done one the data sent to the server.
|
|
2270
|
+
Default is True.
|
|
2271
|
+
_check_return_type (bool): specifies if type checking
|
|
2272
|
+
should be done one the data received from the server.
|
|
2273
|
+
Default is True.
|
|
2274
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
2275
|
+
are serialized names, as specified in the OpenAPI document.
|
|
2276
|
+
False if the variable names in the input data
|
|
2277
|
+
are pythonic names, e.g. snake case (default)
|
|
2278
|
+
_content_type (str/None): force body content-type.
|
|
2279
|
+
Default is None and content-type will be predicted by allowed
|
|
2280
|
+
content-types and body.
|
|
2281
|
+
_host_index (int/None): specifies the index of the server
|
|
2282
|
+
that we want to use.
|
|
2283
|
+
Default is read from the configuration.
|
|
2284
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
2285
|
+
request; this effectively ignores the authentication
|
|
2286
|
+
in the spec for a single request.
|
|
2287
|
+
Default is None
|
|
2288
|
+
async_req (bool): execute request asynchronously
|
|
2289
|
+
|
|
2290
|
+
Returns:
|
|
2291
|
+
CustomReportResponse
|
|
2292
|
+
If the method is called asynchronously, returns the request
|
|
2293
|
+
thread.
|
|
2294
|
+
"""
|
|
2295
|
+
kwargs['async_req'] = kwargs.get(
|
|
2296
|
+
'async_req', False
|
|
2297
|
+
)
|
|
2298
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
2299
|
+
'_return_http_data_only', True
|
|
2300
|
+
)
|
|
2301
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
2302
|
+
'_preload_content', True
|
|
2303
|
+
)
|
|
2304
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
2305
|
+
'_request_timeout', None
|
|
2306
|
+
)
|
|
2307
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
2308
|
+
'_check_input_type', True
|
|
2309
|
+
)
|
|
2310
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
2311
|
+
'_check_return_type', True
|
|
2312
|
+
)
|
|
2313
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
2314
|
+
'_spec_property_naming', False
|
|
2315
|
+
)
|
|
2316
|
+
kwargs['_content_type'] = kwargs.get(
|
|
2317
|
+
'_content_type')
|
|
2318
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
2319
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
2320
|
+
kwargs['custom_report_oid'] = \
|
|
2321
|
+
custom_report_oid
|
|
2322
|
+
kwargs['report'] = \
|
|
2323
|
+
report
|
|
2324
|
+
return self.update_custom_report_endpoint.call_with_http_info(**kwargs)
|
|
2325
|
+
|
|
2326
|
+
def update_custom_report_account_config(
|
|
2327
|
+
self,
|
|
2328
|
+
account_config,
|
|
2329
|
+
**kwargs
|
|
2330
|
+
):
|
|
2331
|
+
"""Update custom report account config # noqa: E501
|
|
2332
|
+
|
|
2333
|
+
Update custom report account config. # noqa: E501
|
|
2334
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2335
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2336
|
+
|
|
2337
|
+
>>> thread = api.update_custom_report_account_config(account_config, async_req=True)
|
|
2338
|
+
>>> result = thread.get()
|
|
2339
|
+
|
|
2340
|
+
Args:
|
|
2341
|
+
account_config (CustomReportAccountConfig): Account config to update
|
|
2342
|
+
|
|
2343
|
+
Keyword Args:
|
|
2344
|
+
_return_http_data_only (bool): response data without head status
|
|
2345
|
+
code and headers. Default is True.
|
|
2346
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
2347
|
+
will be returned without reading/decoding response data.
|
|
2348
|
+
Default is True.
|
|
2349
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
2350
|
+
one number provided, it will be total request timeout. It can also
|
|
2351
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
2352
|
+
Default is None.
|
|
2353
|
+
_check_input_type (bool): specifies if type checking
|
|
2354
|
+
should be done one the data sent to the server.
|
|
2355
|
+
Default is True.
|
|
2356
|
+
_check_return_type (bool): specifies if type checking
|
|
2357
|
+
should be done one the data received from the server.
|
|
2358
|
+
Default is True.
|
|
2359
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
2360
|
+
are serialized names, as specified in the OpenAPI document.
|
|
2361
|
+
False if the variable names in the input data
|
|
2362
|
+
are pythonic names, e.g. snake case (default)
|
|
2363
|
+
_content_type (str/None): force body content-type.
|
|
2364
|
+
Default is None and content-type will be predicted by allowed
|
|
2365
|
+
content-types and body.
|
|
2366
|
+
_host_index (int/None): specifies the index of the server
|
|
2367
|
+
that we want to use.
|
|
2368
|
+
Default is read from the configuration.
|
|
2369
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
2370
|
+
request; this effectively ignores the authentication
|
|
2371
|
+
in the spec for a single request.
|
|
2372
|
+
Default is None
|
|
2373
|
+
async_req (bool): execute request asynchronously
|
|
2374
|
+
|
|
2375
|
+
Returns:
|
|
2376
|
+
CustomReportAccountConfigResponse
|
|
2377
|
+
If the method is called asynchronously, returns the request
|
|
2378
|
+
thread.
|
|
2379
|
+
"""
|
|
2380
|
+
kwargs['async_req'] = kwargs.get(
|
|
2381
|
+
'async_req', False
|
|
2382
|
+
)
|
|
2383
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
2384
|
+
'_return_http_data_only', True
|
|
2385
|
+
)
|
|
2386
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
2387
|
+
'_preload_content', True
|
|
2388
|
+
)
|
|
2389
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
2390
|
+
'_request_timeout', None
|
|
2391
|
+
)
|
|
2392
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
2393
|
+
'_check_input_type', True
|
|
2394
|
+
)
|
|
2395
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
2396
|
+
'_check_return_type', True
|
|
2397
|
+
)
|
|
2398
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
2399
|
+
'_spec_property_naming', False
|
|
2400
|
+
)
|
|
2401
|
+
kwargs['_content_type'] = kwargs.get(
|
|
2402
|
+
'_content_type')
|
|
2403
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
2404
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
2405
|
+
kwargs['account_config'] = \
|
|
2406
|
+
account_config
|
|
2407
|
+
return self.update_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
|
|
2408
|
+
|
|
1323
2409
|
def update_report(
|
|
1324
2410
|
self,
|
|
1325
2411
|
report_oid,
|