ultracart-rest-sdk 4.1.15__py3-none-any.whl → 4.1.17__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.
@@ -22,11 +22,18 @@ from ultracart.model_utils import ( # noqa: F401
22
22
  none_type,
23
23
  validate_and_convert_types
24
24
  )
25
+ from ultracart.model.custom_dashboard import CustomDashboard
26
+ from ultracart.model.custom_dashboard_response import CustomDashboardResponse
27
+ from ultracart.model.custom_dashboards_response import CustomDashboardsResponse
25
28
  from ultracart.model.custom_report import CustomReport
26
29
  from ultracart.model.custom_report_account_config import CustomReportAccountConfig
27
30
  from ultracart.model.custom_report_account_config_response import CustomReportAccountConfigResponse
28
31
  from ultracart.model.custom_report_execution_request import CustomReportExecutionRequest
32
+ from ultracart.model.custom_report_execution_response import CustomReportExecutionResponse
29
33
  from ultracart.model.custom_report_response import CustomReportResponse
34
+ from ultracart.model.custom_reports_execution_request import CustomReportsExecutionRequest
35
+ from ultracart.model.custom_reports_execution_response import CustomReportsExecutionResponse
36
+ from ultracart.model.custom_reports_response import CustomReportsResponse
30
37
  from ultracart.model.error_response import ErrorResponse
31
38
  from ultracart.model.report import Report
32
39
  from ultracart.model.report_auth_response import ReportAuthResponse
@@ -61,6 +68,58 @@ class DatawarehouseApi(object):
61
68
  if api_client is None:
62
69
  api_client = ApiClient()
63
70
  self.api_client = api_client
71
+ self.delete_custom_dashboard_endpoint = _Endpoint(
72
+ settings={
73
+ 'response_type': None,
74
+ 'auth': [
75
+ 'ultraCartOauth',
76
+ 'ultraCartSimpleApiKey'
77
+ ],
78
+ 'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}',
79
+ 'operation_id': 'delete_custom_dashboard',
80
+ 'http_method': 'DELETE',
81
+ 'servers': None,
82
+ },
83
+ params_map={
84
+ 'all': [
85
+ 'custom_dashboard_oid',
86
+ ],
87
+ 'required': [
88
+ 'custom_dashboard_oid',
89
+ ],
90
+ 'nullable': [
91
+ ],
92
+ 'enum': [
93
+ ],
94
+ 'validation': [
95
+ ]
96
+ },
97
+ root_map={
98
+ 'validations': {
99
+ },
100
+ 'allowed_values': {
101
+ },
102
+ 'openapi_types': {
103
+ 'custom_dashboard_oid':
104
+ (int,),
105
+ },
106
+ 'attribute_map': {
107
+ 'custom_dashboard_oid': 'custom_dashboard_oid',
108
+ },
109
+ 'location_map': {
110
+ 'custom_dashboard_oid': 'path',
111
+ },
112
+ 'collection_format_map': {
113
+ }
114
+ },
115
+ headers_map={
116
+ 'accept': [
117
+ 'application/json'
118
+ ],
119
+ 'content_type': [],
120
+ },
121
+ api_client=api_client
122
+ )
64
123
  self.delete_custom_report_endpoint = _Endpoint(
65
124
  settings={
66
125
  'response_type': None,
@@ -220,7 +279,7 @@ class DatawarehouseApi(object):
220
279
  )
221
280
  self.execute_custom_report_endpoint = _Endpoint(
222
281
  settings={
223
- 'response_type': (CustomReportResponse,),
282
+ 'response_type': (CustomReportExecutionResponse,),
224
283
  'auth': [
225
284
  'ultraCartOauth',
226
285
  'ultraCartSimpleApiKey'
@@ -277,6 +336,59 @@ class DatawarehouseApi(object):
277
336
  },
278
337
  api_client=api_client
279
338
  )
339
+ self.execute_custom_reports_endpoint = _Endpoint(
340
+ settings={
341
+ 'response_type': (CustomReportsExecutionResponse,),
342
+ 'auth': [
343
+ 'ultraCartOauth',
344
+ 'ultraCartSimpleApiKey'
345
+ ],
346
+ 'endpoint_path': '/datawarehouse/custom_reports/execute',
347
+ 'operation_id': 'execute_custom_reports',
348
+ 'http_method': 'PUT',
349
+ 'servers': None,
350
+ },
351
+ params_map={
352
+ 'all': [
353
+ 'execution_request',
354
+ ],
355
+ 'required': [
356
+ 'execution_request',
357
+ ],
358
+ 'nullable': [
359
+ ],
360
+ 'enum': [
361
+ ],
362
+ 'validation': [
363
+ ]
364
+ },
365
+ root_map={
366
+ 'validations': {
367
+ },
368
+ 'allowed_values': {
369
+ },
370
+ 'openapi_types': {
371
+ 'execution_request':
372
+ (CustomReportsExecutionRequest,),
373
+ },
374
+ 'attribute_map': {
375
+ },
376
+ 'location_map': {
377
+ 'execution_request': 'body',
378
+ },
379
+ 'collection_format_map': {
380
+ }
381
+ },
382
+ headers_map={
383
+ 'accept': [
384
+ 'application/json'
385
+ ],
386
+ 'content_type': [
387
+ 'application/json; charset=UTF-8'
388
+ ]
389
+ },
390
+ api_client=api_client
391
+ )
280
392
  self.execute_report_queries_endpoint = _Endpoint(
281
393
  settings={
282
394
  'response_type': None,
@@ -330,6 +442,103 @@ class DatawarehouseApi(object):
330
442
  },
331
443
  api_client=api_client
332
444
  )
445
+ self.get_custom_dashboard_endpoint = _Endpoint(
446
+ settings={
447
+ 'response_type': (CustomDashboardResponse,),
448
+ 'auth': [
449
+ 'ultraCartOauth',
450
+ 'ultraCartSimpleApiKey'
451
+ ],
452
+ 'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}',
453
+ 'operation_id': 'get_custom_dashboard',
454
+ 'http_method': 'GET',
455
+ 'servers': None,
456
+ },
457
+ params_map={
458
+ 'all': [
459
+ 'custom_dashboard_oid',
460
+ ],
461
+ 'required': [
462
+ 'custom_dashboard_oid',
463
+ ],
464
+ 'nullable': [
465
+ ],
466
+ 'enum': [
467
+ ],
468
+ 'validation': [
469
+ ]
470
+ },
471
+ root_map={
472
+ 'validations': {
473
+ },
474
+ 'allowed_values': {
475
+ },
476
+ 'openapi_types': {
477
+ 'custom_dashboard_oid':
478
+ (int,),
479
+ },
480
+ 'attribute_map': {
481
+ 'custom_dashboard_oid': 'custom_dashboard_oid',
482
+ },
483
+ 'location_map': {
484
+ 'custom_dashboard_oid': 'path',
485
+ },
486
+ 'collection_format_map': {
487
+ }
488
+ },
489
+ headers_map={
490
+ 'accept': [
491
+ 'application/json'
492
+ ],
493
+ 'content_type': [],
494
+ },
495
+ api_client=api_client
496
+ )
497
+ self.get_custom_dashboards_endpoint = _Endpoint(
498
+ settings={
499
+ 'response_type': (CustomDashboardsResponse,),
500
+ 'auth': [
501
+ 'ultraCartOauth',
502
+ 'ultraCartSimpleApiKey'
503
+ ],
504
+ 'endpoint_path': '/datawarehouse/custom_dashboards',
505
+ 'operation_id': 'get_custom_dashboards',
506
+ 'http_method': 'GET',
507
+ 'servers': None,
508
+ },
509
+ params_map={
510
+ 'all': [
511
+ ],
512
+ 'required': [],
513
+ 'nullable': [
514
+ ],
515
+ 'enum': [
516
+ ],
517
+ 'validation': [
518
+ ]
519
+ },
520
+ root_map={
521
+ 'validations': {
522
+ },
523
+ 'allowed_values': {
524
+ },
525
+ 'openapi_types': {
526
+ },
527
+ 'attribute_map': {
528
+ },
529
+ 'location_map': {
530
+ },
531
+ 'collection_format_map': {
532
+ }
533
+ },
534
+ headers_map={
535
+ 'accept': [
536
+ 'application/json'
537
+ ],
538
+ 'content_type': [],
539
+ },
540
+ api_client=api_client
541
+ )
333
542
  self.get_custom_report_endpoint = _Endpoint(
334
543
  settings={
335
544
  'response_type': (CustomReportResponse,),
@@ -427,6 +636,51 @@ class DatawarehouseApi(object):
427
636
  },
428
637
  api_client=api_client
429
638
  )
639
+ self.get_custom_reports_endpoint = _Endpoint(
640
+ settings={
641
+ 'response_type': (CustomReportsResponse,),
642
+ 'auth': [
643
+ 'ultraCartOauth',
644
+ 'ultraCartSimpleApiKey'
645
+ ],
646
+ 'endpoint_path': '/datawarehouse/custom_reports',
647
+ 'operation_id': 'get_custom_reports',
648
+ 'http_method': 'GET',
649
+ 'servers': None,
650
+ },
651
+ params_map={
652
+ 'all': [
653
+ ],
654
+ 'required': [],
655
+ 'nullable': [
656
+ ],
657
+ 'enum': [
658
+ ],
659
+ 'validation': [
660
+ ]
661
+ },
662
+ root_map={
663
+ 'validations': {
664
+ },
665
+ 'allowed_values': {
666
+ },
667
+ 'openapi_types': {
668
+ },
669
+ 'attribute_map': {
670
+ },
671
+ 'location_map': {
672
+ },
673
+ 'collection_format_map': {
674
+ }
675
+ },
676
+ headers_map={
677
+ 'accept': [
678
+ 'application/json'
679
+ ],
680
+ 'content_type': [],
681
+ },
682
+ api_client=api_client
683
+ )
430
684
  self.get_report_endpoint = _Endpoint(
431
685
  settings={
432
686
  'response_type': (ReportResponse,),
@@ -679,24 +933,24 @@ class DatawarehouseApi(object):
679
933
  },
680
934
  api_client=api_client
681
935
  )
682
- self.insert_custom_report_endpoint = _Endpoint(
936
+ self.insert_custom_dashboard_endpoint = _Endpoint(
683
937
  settings={
684
- 'response_type': (CustomReportResponse,),
938
+ 'response_type': (CustomDashboardResponse,),
685
939
  'auth': [
686
940
  'ultraCartOauth',
687
941
  'ultraCartSimpleApiKey'
688
942
  ],
689
- 'endpoint_path': '/datawarehouse/custom_reports',
690
- 'operation_id': 'insert_custom_report',
943
+ 'endpoint_path': '/datawarehouse/custom_dashboards',
944
+ 'operation_id': 'insert_custom_dashboard',
691
945
  'http_method': 'POST',
692
946
  'servers': None,
693
947
  },
694
948
  params_map={
695
949
  'all': [
696
- 'report',
950
+ 'dashboard',
697
951
  ],
698
952
  'required': [
699
- 'report',
953
+ 'dashboard',
700
954
  ],
701
955
  'nullable': [
702
956
  ],
@@ -711,13 +965,13 @@ class DatawarehouseApi(object):
711
965
  'allowed_values': {
712
966
  },
713
967
  'openapi_types': {
714
- 'report':
715
- (CustomReport,),
968
+ 'dashboard':
969
+ (CustomDashboard,),
716
970
  },
717
971
  'attribute_map': {
718
972
  },
719
973
  'location_map': {
720
- 'report': 'body',
974
+ 'dashboard': 'body',
721
975
  },
722
976
  'collection_format_map': {
723
977
  }
@@ -732,15 +986,15 @@ class DatawarehouseApi(object):
732
986
  },
733
987
  api_client=api_client
734
988
  )
735
- self.insert_report_endpoint = _Endpoint(
989
+ self.insert_custom_report_endpoint = _Endpoint(
736
990
  settings={
737
- 'response_type': (ReportResponse,),
991
+ 'response_type': (CustomReportResponse,),
738
992
  'auth': [
739
993
  'ultraCartOauth',
740
994
  'ultraCartSimpleApiKey'
741
995
  ],
742
- 'endpoint_path': '/datawarehouse/reports',
743
- 'operation_id': 'insert_report',
996
+ 'endpoint_path': '/datawarehouse/custom_reports',
997
+ 'operation_id': 'insert_custom_report',
744
998
  'http_method': 'POST',
745
999
  'servers': None,
746
1000
  },
@@ -765,7 +1019,7 @@ class DatawarehouseApi(object):
765
1019
  },
766
1020
  'openapi_types': {
767
1021
  'report':
768
- (Report,),
1022
+ (CustomReport,),
769
1023
  },
770
1024
  'attribute_map': {
771
1025
  },
@@ -785,25 +1039,23 @@ class DatawarehouseApi(object):
785
1039
  },
786
1040
  api_client=api_client
787
1041
  )
788
- self.update_custom_report_endpoint = _Endpoint(
1042
+ self.insert_report_endpoint = _Endpoint(
789
1043
  settings={
790
- 'response_type': (CustomReportResponse,),
1044
+ 'response_type': (ReportResponse,),
791
1045
  'auth': [
792
1046
  'ultraCartOauth',
793
1047
  'ultraCartSimpleApiKey'
794
1048
  ],
795
- 'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
796
- 'operation_id': 'update_custom_report',
797
- 'http_method': 'PUT',
1049
+ 'endpoint_path': '/datawarehouse/reports',
1050
+ 'operation_id': 'insert_report',
1051
+ 'http_method': 'POST',
798
1052
  'servers': None,
799
1053
  },
800
1054
  params_map={
801
1055
  'all': [
802
- 'custom_report_oid',
803
1056
  'report',
804
1057
  ],
805
1058
  'required': [
806
- 'custom_report_oid',
807
1059
  'report',
808
1060
  ],
809
1061
  'nullable': [
@@ -819,16 +1071,130 @@ class DatawarehouseApi(object):
819
1071
  'allowed_values': {
820
1072
  },
821
1073
  'openapi_types': {
822
- 'custom_report_oid':
823
- (int,),
824
1074
  'report':
825
- (CustomReport,),
1075
+ (Report,),
826
1076
  },
827
1077
  'attribute_map': {
828
- 'custom_report_oid': 'custom_report_oid',
829
1078
  },
830
1079
  'location_map': {
831
- 'custom_report_oid': 'path',
1080
+ 'report': 'body',
1081
+ },
1082
+ 'collection_format_map': {
1083
+ }
1084
+ },
1085
+ headers_map={
1086
+ 'accept': [
1087
+ 'application/json'
1088
+ ],
1089
+ 'content_type': [
1090
+ 'application/json; charset=UTF-8'
1091
+ ]
1092
+ },
1093
+ api_client=api_client
1094
+ )
1095
+ self.update_custom_dashboard_endpoint = _Endpoint(
1096
+ settings={
1097
+ 'response_type': (CustomDashboardResponse,),
1098
+ 'auth': [
1099
+ 'ultraCartOauth',
1100
+ 'ultraCartSimpleApiKey'
1101
+ ],
1102
+ 'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}',
1103
+ 'operation_id': 'update_custom_dashboard',
1104
+ 'http_method': 'PUT',
1105
+ 'servers': None,
1106
+ },
1107
+ params_map={
1108
+ 'all': [
1109
+ 'custom_dashboard_oid',
1110
+ 'dashboard',
1111
+ ],
1112
+ 'required': [
1113
+ 'custom_dashboard_oid',
1114
+ 'dashboard',
1115
+ ],
1116
+ 'nullable': [
1117
+ ],
1118
+ 'enum': [
1119
+ ],
1120
+ 'validation': [
1121
+ ]
1122
+ },
1123
+ root_map={
1124
+ 'validations': {
1125
+ },
1126
+ 'allowed_values': {
1127
+ },
1128
+ 'openapi_types': {
1129
+ 'custom_dashboard_oid':
1130
+ (int,),
1131
+ 'dashboard':
1132
+ (CustomDashboard,),
1133
+ },
1134
+ 'attribute_map': {
1135
+ 'custom_dashboard_oid': 'custom_dashboard_oid',
1136
+ },
1137
+ 'location_map': {
1138
+ 'custom_dashboard_oid': 'path',
1139
+ 'dashboard': 'body',
1140
+ },
1141
+ 'collection_format_map': {
1142
+ }
1143
+ },
1144
+ headers_map={
1145
+ 'accept': [
1146
+ 'application/json'
1147
+ ],
1148
+ 'content_type': [
1149
+ 'application/json; charset=UTF-8'
1150
+ ]
1151
+ },
1152
+ api_client=api_client
1153
+ )
1154
+ self.update_custom_report_endpoint = _Endpoint(
1155
+ settings={
1156
+ 'response_type': (CustomReportResponse,),
1157
+ 'auth': [
1158
+ 'ultraCartOauth',
1159
+ 'ultraCartSimpleApiKey'
1160
+ ],
1161
+ 'endpoint_path': '/datawarehouse/custom_reports/{custom_report_oid}',
1162
+ 'operation_id': 'update_custom_report',
1163
+ 'http_method': 'PUT',
1164
+ 'servers': None,
1165
+ },
1166
+ params_map={
1167
+ 'all': [
1168
+ 'custom_report_oid',
1169
+ 'report',
1170
+ ],
1171
+ 'required': [
1172
+ 'custom_report_oid',
1173
+ 'report',
1174
+ ],
1175
+ 'nullable': [
1176
+ ],
1177
+ 'enum': [
1178
+ ],
1179
+ 'validation': [
1180
+ ]
1181
+ },
1182
+ root_map={
1183
+ 'validations': {
1184
+ },
1185
+ 'allowed_values': {
1186
+ },
1187
+ 'openapi_types': {
1188
+ 'custom_report_oid':
1189
+ (int,),
1190
+ 'report':
1191
+ (CustomReport,),
1192
+ },
1193
+ 'attribute_map': {
1194
+ 'custom_report_oid': 'custom_report_oid',
1195
+ },
1196
+ 'location_map': {
1197
+ 'custom_report_oid': 'path',
832
1198
  'report': 'body',
833
1199
  },
834
1200
  'collection_format_map': {
@@ -957,22 +1323,441 @@ class DatawarehouseApi(object):
957
1323
  api_client=api_client
958
1324
  )
959
1325
 
960
- def delete_custom_report(
1326
+ def delete_custom_dashboard(
1327
+ self,
1328
+ custom_dashboard_oid,
1329
+ **kwargs
1330
+ ):
1331
+ """Delete a custom dashboard # noqa: E501
1332
+
1333
+ Delete a custom dashboard on the UltraCart account. # noqa: E501
1334
+ This method makes a synchronous HTTP request by default. To make an
1335
+ asynchronous HTTP request, please pass async_req=True
1336
+
1337
+ >>> thread = api.delete_custom_dashboard(custom_dashboard_oid, async_req=True)
1338
+ >>> result = thread.get()
1339
+
1340
+ Args:
1341
+ custom_dashboard_oid (int): The dashboard oid to delete.
1342
+
1343
+ Keyword Args:
1344
+ _return_http_data_only (bool): response data without head status
1345
+ code and headers. Default is True.
1346
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1347
+ will be returned without reading/decoding response data.
1348
+ Default is True.
1349
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1350
+ one number provided, it will be total request timeout. It can also
1351
+ be a pair (tuple) of (connection, read) timeouts.
1352
+ Default is None.
1353
+ _check_input_type (bool): specifies if type checking
1354
+ should be done one the data sent to the server.
1355
+ Default is True.
1356
+ _check_return_type (bool): specifies if type checking
1357
+ should be done one the data received from the server.
1358
+ Default is True.
1359
+ _spec_property_naming (bool): True if the variable names in the input data
1360
+ are serialized names, as specified in the OpenAPI document.
1361
+ False if the variable names in the input data
1362
+ are pythonic names, e.g. snake case (default)
1363
+ _content_type (str/None): force body content-type.
1364
+ Default is None and content-type will be predicted by allowed
1365
+ content-types and body.
1366
+ _host_index (int/None): specifies the index of the server
1367
+ that we want to use.
1368
+ Default is read from the configuration.
1369
+ _request_auths (list): set to override the auth_settings for an a single
1370
+ request; this effectively ignores the authentication
1371
+ in the spec for a single request.
1372
+ Default is None
1373
+ async_req (bool): execute request asynchronously
1374
+
1375
+ Returns:
1376
+ None
1377
+ If the method is called asynchronously, returns the request
1378
+ thread.
1379
+ """
1380
+ kwargs['async_req'] = kwargs.get(
1381
+ 'async_req', False
1382
+ )
1383
+ kwargs['_return_http_data_only'] = kwargs.get(
1384
+ '_return_http_data_only', True
1385
+ )
1386
+ kwargs['_preload_content'] = kwargs.get(
1387
+ '_preload_content', True
1388
+ )
1389
+ kwargs['_request_timeout'] = kwargs.get(
1390
+ '_request_timeout', None
1391
+ )
1392
+ kwargs['_check_input_type'] = kwargs.get(
1393
+ '_check_input_type', True
1394
+ )
1395
+ kwargs['_check_return_type'] = kwargs.get(
1396
+ '_check_return_type', True
1397
+ )
1398
+ kwargs['_spec_property_naming'] = kwargs.get(
1399
+ '_spec_property_naming', False
1400
+ )
1401
+ kwargs['_content_type'] = kwargs.get(
1402
+ '_content_type')
1403
+ kwargs['_host_index'] = kwargs.get('_host_index')
1404
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1405
+ kwargs['custom_dashboard_oid'] = \
1406
+ custom_dashboard_oid
1407
+ return self.delete_custom_dashboard_endpoint.call_with_http_info(**kwargs)
1408
+
1409
+ def delete_custom_report(
1410
+ self,
1411
+ custom_report_oid,
1412
+ **kwargs
1413
+ ):
1414
+ """Delete a custom report # noqa: E501
1415
+
1416
+ Delete a custom report on the UltraCart account. # noqa: E501
1417
+ This method makes a synchronous HTTP request by default. To make an
1418
+ asynchronous HTTP request, please pass async_req=True
1419
+
1420
+ >>> thread = api.delete_custom_report(custom_report_oid, async_req=True)
1421
+ >>> result = thread.get()
1422
+
1423
+ Args:
1424
+ custom_report_oid (int): The report oid to delete.
1425
+
1426
+ Keyword Args:
1427
+ _return_http_data_only (bool): response data without head status
1428
+ code and headers. Default is True.
1429
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1430
+ will be returned without reading/decoding response data.
1431
+ Default is True.
1432
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1433
+ one number provided, it will be total request timeout. It can also
1434
+ be a pair (tuple) of (connection, read) timeouts.
1435
+ Default is None.
1436
+ _check_input_type (bool): specifies if type checking
1437
+ should be done one the data sent to the server.
1438
+ Default is True.
1439
+ _check_return_type (bool): specifies if type checking
1440
+ should be done one the data received from the server.
1441
+ Default is True.
1442
+ _spec_property_naming (bool): True if the variable names in the input data
1443
+ are serialized names, as specified in the OpenAPI document.
1444
+ False if the variable names in the input data
1445
+ are pythonic names, e.g. snake case (default)
1446
+ _content_type (str/None): force body content-type.
1447
+ Default is None and content-type will be predicted by allowed
1448
+ content-types and body.
1449
+ _host_index (int/None): specifies the index of the server
1450
+ that we want to use.
1451
+ Default is read from the configuration.
1452
+ _request_auths (list): set to override the auth_settings for an a single
1453
+ request; this effectively ignores the authentication
1454
+ in the spec for a single request.
1455
+ Default is None
1456
+ async_req (bool): execute request asynchronously
1457
+
1458
+ Returns:
1459
+ None
1460
+ If the method is called asynchronously, returns the request
1461
+ thread.
1462
+ """
1463
+ kwargs['async_req'] = kwargs.get(
1464
+ 'async_req', False
1465
+ )
1466
+ kwargs['_return_http_data_only'] = kwargs.get(
1467
+ '_return_http_data_only', True
1468
+ )
1469
+ kwargs['_preload_content'] = kwargs.get(
1470
+ '_preload_content', True
1471
+ )
1472
+ kwargs['_request_timeout'] = kwargs.get(
1473
+ '_request_timeout', None
1474
+ )
1475
+ kwargs['_check_input_type'] = kwargs.get(
1476
+ '_check_input_type', True
1477
+ )
1478
+ kwargs['_check_return_type'] = kwargs.get(
1479
+ '_check_return_type', True
1480
+ )
1481
+ kwargs['_spec_property_naming'] = kwargs.get(
1482
+ '_spec_property_naming', False
1483
+ )
1484
+ kwargs['_content_type'] = kwargs.get(
1485
+ '_content_type')
1486
+ kwargs['_host_index'] = kwargs.get('_host_index')
1487
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1488
+ kwargs['custom_report_oid'] = \
1489
+ custom_report_oid
1490
+ return self.delete_custom_report_endpoint.call_with_http_info(**kwargs)
1491
+
1492
+ def delete_report(
1493
+ self,
1494
+ report_oid,
1495
+ **kwargs
1496
+ ):
1497
+ """Delete a report # noqa: E501
1498
+
1499
+ Delete a report on the UltraCart account. # noqa: E501
1500
+ This method makes a synchronous HTTP request by default. To make an
1501
+ asynchronous HTTP request, please pass async_req=True
1502
+
1503
+ >>> thread = api.delete_report(report_oid, async_req=True)
1504
+ >>> result = thread.get()
1505
+
1506
+ Args:
1507
+ report_oid (int): The report oid to delete.
1508
+
1509
+ Keyword Args:
1510
+ _return_http_data_only (bool): response data without head status
1511
+ code and headers. Default is True.
1512
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1513
+ will be returned without reading/decoding response data.
1514
+ Default is True.
1515
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1516
+ one number provided, it will be total request timeout. It can also
1517
+ be a pair (tuple) of (connection, read) timeouts.
1518
+ Default is None.
1519
+ _check_input_type (bool): specifies if type checking
1520
+ should be done one the data sent to the server.
1521
+ Default is True.
1522
+ _check_return_type (bool): specifies if type checking
1523
+ should be done one the data received from the server.
1524
+ Default is True.
1525
+ _spec_property_naming (bool): True if the variable names in the input data
1526
+ are serialized names, as specified in the OpenAPI document.
1527
+ False if the variable names in the input data
1528
+ are pythonic names, e.g. snake case (default)
1529
+ _content_type (str/None): force body content-type.
1530
+ Default is None and content-type will be predicted by allowed
1531
+ content-types and body.
1532
+ _host_index (int/None): specifies the index of the server
1533
+ that we want to use.
1534
+ Default is read from the configuration.
1535
+ _request_auths (list): set to override the auth_settings for an a single
1536
+ request; this effectively ignores the authentication
1537
+ in the spec for a single request.
1538
+ Default is None
1539
+ async_req (bool): execute request asynchronously
1540
+
1541
+ Returns:
1542
+ None
1543
+ If the method is called asynchronously, returns the request
1544
+ thread.
1545
+ """
1546
+ kwargs['async_req'] = kwargs.get(
1547
+ 'async_req', False
1548
+ )
1549
+ kwargs['_return_http_data_only'] = kwargs.get(
1550
+ '_return_http_data_only', True
1551
+ )
1552
+ kwargs['_preload_content'] = kwargs.get(
1553
+ '_preload_content', True
1554
+ )
1555
+ kwargs['_request_timeout'] = kwargs.get(
1556
+ '_request_timeout', None
1557
+ )
1558
+ kwargs['_check_input_type'] = kwargs.get(
1559
+ '_check_input_type', True
1560
+ )
1561
+ kwargs['_check_return_type'] = kwargs.get(
1562
+ '_check_return_type', True
1563
+ )
1564
+ kwargs['_spec_property_naming'] = kwargs.get(
1565
+ '_spec_property_naming', False
1566
+ )
1567
+ kwargs['_content_type'] = kwargs.get(
1568
+ '_content_type')
1569
+ kwargs['_host_index'] = kwargs.get('_host_index')
1570
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1571
+ kwargs['report_oid'] = \
1572
+ report_oid
1573
+ return self.delete_report_endpoint.call_with_http_info(**kwargs)
1574
+
1575
+ def dry_run_report_queries(
1576
+ self,
1577
+ query_request,
1578
+ **kwargs
1579
+ ):
1580
+ """Dry run the report queries # noqa: E501
1581
+
1582
+ Dry run the report queries # noqa: E501
1583
+ This method makes a synchronous HTTP request by default. To make an
1584
+ asynchronous HTTP request, please pass async_req=True
1585
+
1586
+ >>> thread = api.dry_run_report_queries(query_request, async_req=True)
1587
+ >>> result = thread.get()
1588
+
1589
+ Args:
1590
+ query_request (ReportDryRunQueriesRequest): Dry run request
1591
+
1592
+ Keyword Args:
1593
+ _return_http_data_only (bool): response data without head status
1594
+ code and headers. Default is True.
1595
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1596
+ will be returned without reading/decoding response data.
1597
+ Default is True.
1598
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1599
+ one number provided, it will be total request timeout. It can also
1600
+ be a pair (tuple) of (connection, read) timeouts.
1601
+ Default is None.
1602
+ _check_input_type (bool): specifies if type checking
1603
+ should be done one the data sent to the server.
1604
+ Default is True.
1605
+ _check_return_type (bool): specifies if type checking
1606
+ should be done one the data received from the server.
1607
+ Default is True.
1608
+ _spec_property_naming (bool): True if the variable names in the input data
1609
+ are serialized names, as specified in the OpenAPI document.
1610
+ False if the variable names in the input data
1611
+ are pythonic names, e.g. snake case (default)
1612
+ _content_type (str/None): force body content-type.
1613
+ Default is None and content-type will be predicted by allowed
1614
+ content-types and body.
1615
+ _host_index (int/None): specifies the index of the server
1616
+ that we want to use.
1617
+ Default is read from the configuration.
1618
+ _request_auths (list): set to override the auth_settings for an a single
1619
+ request; this effectively ignores the authentication
1620
+ in the spec for a single request.
1621
+ Default is None
1622
+ async_req (bool): execute request asynchronously
1623
+
1624
+ Returns:
1625
+ ReportDryRunQueriesResponse
1626
+ If the method is called asynchronously, returns the request
1627
+ thread.
1628
+ """
1629
+ kwargs['async_req'] = kwargs.get(
1630
+ 'async_req', False
1631
+ )
1632
+ kwargs['_return_http_data_only'] = kwargs.get(
1633
+ '_return_http_data_only', True
1634
+ )
1635
+ kwargs['_preload_content'] = kwargs.get(
1636
+ '_preload_content', True
1637
+ )
1638
+ kwargs['_request_timeout'] = kwargs.get(
1639
+ '_request_timeout', None
1640
+ )
1641
+ kwargs['_check_input_type'] = kwargs.get(
1642
+ '_check_input_type', True
1643
+ )
1644
+ kwargs['_check_return_type'] = kwargs.get(
1645
+ '_check_return_type', True
1646
+ )
1647
+ kwargs['_spec_property_naming'] = kwargs.get(
1648
+ '_spec_property_naming', False
1649
+ )
1650
+ kwargs['_content_type'] = kwargs.get(
1651
+ '_content_type')
1652
+ kwargs['_host_index'] = kwargs.get('_host_index')
1653
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1654
+ kwargs['query_request'] = \
1655
+ query_request
1656
+ return self.dry_run_report_queries_endpoint.call_with_http_info(**kwargs)
1657
+
1658
+ def execute_custom_report(
1659
+ self,
1660
+ custom_report_oid,
1661
+ execution_request,
1662
+ **kwargs
1663
+ ):
1664
+ """Execute a custom report # noqa: E501
1665
+
1666
+ Execute a custom report on the UltraCart account. # noqa: E501
1667
+ This method makes a synchronous HTTP request by default. To make an
1668
+ asynchronous HTTP request, please pass async_req=True
1669
+
1670
+ >>> thread = api.execute_custom_report(custom_report_oid, execution_request, async_req=True)
1671
+ >>> result = thread.get()
1672
+
1673
+ Args:
1674
+ custom_report_oid (int): The report oid to execute.
1675
+ execution_request (CustomReportExecutionRequest): Request to execute custom report
1676
+
1677
+ Keyword Args:
1678
+ _return_http_data_only (bool): response data without head status
1679
+ code and headers. Default is True.
1680
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1681
+ will be returned without reading/decoding response data.
1682
+ Default is True.
1683
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1684
+ one number provided, it will be total request timeout. It can also
1685
+ be a pair (tuple) of (connection, read) timeouts.
1686
+ Default is None.
1687
+ _check_input_type (bool): specifies if type checking
1688
+ should be done one the data sent to the server.
1689
+ Default is True.
1690
+ _check_return_type (bool): specifies if type checking
1691
+ should be done one the data received from the server.
1692
+ Default is True.
1693
+ _spec_property_naming (bool): True if the variable names in the input data
1694
+ are serialized names, as specified in the OpenAPI document.
1695
+ False if the variable names in the input data
1696
+ are pythonic names, e.g. snake case (default)
1697
+ _content_type (str/None): force body content-type.
1698
+ Default is None and content-type will be predicted by allowed
1699
+ content-types and body.
1700
+ _host_index (int/None): specifies the index of the server
1701
+ that we want to use.
1702
+ Default is read from the configuration.
1703
+ _request_auths (list): set to override the auth_settings for an a single
1704
+ request; this effectively ignores the authentication
1705
+ in the spec for a single request.
1706
+ Default is None
1707
+ async_req (bool): execute request asynchronously
1708
+
1709
+ Returns:
1710
+ CustomReportExecutionResponse
1711
+ If the method is called asynchronously, returns the request
1712
+ thread.
1713
+ """
1714
+ kwargs['async_req'] = kwargs.get(
1715
+ 'async_req', False
1716
+ )
1717
+ kwargs['_return_http_data_only'] = kwargs.get(
1718
+ '_return_http_data_only', True
1719
+ )
1720
+ kwargs['_preload_content'] = kwargs.get(
1721
+ '_preload_content', True
1722
+ )
1723
+ kwargs['_request_timeout'] = kwargs.get(
1724
+ '_request_timeout', None
1725
+ )
1726
+ kwargs['_check_input_type'] = kwargs.get(
1727
+ '_check_input_type', True
1728
+ )
1729
+ kwargs['_check_return_type'] = kwargs.get(
1730
+ '_check_return_type', True
1731
+ )
1732
+ kwargs['_spec_property_naming'] = kwargs.get(
1733
+ '_spec_property_naming', False
1734
+ )
1735
+ kwargs['_content_type'] = kwargs.get(
1736
+ '_content_type')
1737
+ kwargs['_host_index'] = kwargs.get('_host_index')
1738
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1739
+ kwargs['custom_report_oid'] = \
1740
+ custom_report_oid
1741
+ kwargs['execution_request'] = \
1742
+ execution_request
1743
+ return self.execute_custom_report_endpoint.call_with_http_info(**kwargs)
1744
+
1745
+ def execute_custom_reports(
961
1746
  self,
962
- custom_report_oid,
1747
+ execution_request,
963
1748
  **kwargs
964
1749
  ):
965
- """Delete a custom report # noqa: E501
1750
+ """Execute a custom reports # noqa: E501
966
1751
 
967
- Delete a custom report on the UltraCart account. # noqa: E501
1752
+ Execute a custom reports on the UltraCart account. # noqa: E501
968
1753
  This method makes a synchronous HTTP request by default. To make an
969
1754
  asynchronous HTTP request, please pass async_req=True
970
1755
 
971
- >>> thread = api.delete_custom_report(custom_report_oid, async_req=True)
1756
+ >>> thread = api.execute_custom_reports(execution_request, async_req=True)
972
1757
  >>> result = thread.get()
973
1758
 
974
1759
  Args:
975
- custom_report_oid (int): The report oid to delete.
1760
+ execution_request (CustomReportsExecutionRequest): Request to execute custom reports
976
1761
 
977
1762
  Keyword Args:
978
1763
  _return_http_data_only (bool): response data without head status
@@ -1007,7 +1792,7 @@ class DatawarehouseApi(object):
1007
1792
  async_req (bool): execute request asynchronously
1008
1793
 
1009
1794
  Returns:
1010
- None
1795
+ CustomReportsExecutionResponse
1011
1796
  If the method is called asynchronously, returns the request
1012
1797
  thread.
1013
1798
  """
@@ -1036,26 +1821,26 @@ class DatawarehouseApi(object):
1036
1821
  '_content_type')
1037
1822
  kwargs['_host_index'] = kwargs.get('_host_index')
1038
1823
  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)
1824
+ kwargs['execution_request'] = \
1825
+ execution_request
1826
+ return self.execute_custom_reports_endpoint.call_with_http_info(**kwargs)
1042
1827
 
1043
- def delete_report(
1828
+ def execute_report_queries(
1044
1829
  self,
1045
- report_oid,
1830
+ query_request,
1046
1831
  **kwargs
1047
1832
  ):
1048
- """Delete a report # noqa: E501
1833
+ """Execute the report queries # noqa: E501
1049
1834
 
1050
- Delete a report on the UltraCart account. # noqa: E501
1835
+ Execute the report queries # noqa: E501
1051
1836
  This method makes a synchronous HTTP request by default. To make an
1052
1837
  asynchronous HTTP request, please pass async_req=True
1053
1838
 
1054
- >>> thread = api.delete_report(report_oid, async_req=True)
1839
+ >>> thread = api.execute_report_queries(query_request, async_req=True)
1055
1840
  >>> result = thread.get()
1056
1841
 
1057
1842
  Args:
1058
- report_oid (int): The report oid to delete.
1843
+ query_request (ReportExecuteQueriesRequest): Query request
1059
1844
 
1060
1845
  Keyword Args:
1061
1846
  _return_http_data_only (bool): response data without head status
@@ -1119,26 +1904,26 @@ class DatawarehouseApi(object):
1119
1904
  '_content_type')
1120
1905
  kwargs['_host_index'] = kwargs.get('_host_index')
1121
1906
  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)
1907
+ kwargs['query_request'] = \
1908
+ query_request
1909
+ return self.execute_report_queries_endpoint.call_with_http_info(**kwargs)
1125
1910
 
1126
- def dry_run_report_queries(
1911
+ def get_custom_dashboard(
1127
1912
  self,
1128
- query_request,
1913
+ custom_dashboard_oid,
1129
1914
  **kwargs
1130
1915
  ):
1131
- """Dry run the report queries # noqa: E501
1916
+ """Get a custom dashboard # noqa: E501
1132
1917
 
1133
- Dry run the report queries # noqa: E501
1918
+ Retrieve a custom dashboard # noqa: E501
1134
1919
  This method makes a synchronous HTTP request by default. To make an
1135
1920
  asynchronous HTTP request, please pass async_req=True
1136
1921
 
1137
- >>> thread = api.dry_run_report_queries(query_request, async_req=True)
1922
+ >>> thread = api.get_custom_dashboard(custom_dashboard_oid, async_req=True)
1138
1923
  >>> result = thread.get()
1139
1924
 
1140
1925
  Args:
1141
- query_request (ReportDryRunQueriesRequest): Dry run request
1926
+ custom_dashboard_oid (int):
1142
1927
 
1143
1928
  Keyword Args:
1144
1929
  _return_http_data_only (bool): response data without head status
@@ -1173,7 +1958,7 @@ class DatawarehouseApi(object):
1173
1958
  async_req (bool): execute request asynchronously
1174
1959
 
1175
1960
  Returns:
1176
- ReportDryRunQueriesResponse
1961
+ CustomDashboardResponse
1177
1962
  If the method is called asynchronously, returns the request
1178
1963
  thread.
1179
1964
  """
@@ -1202,28 +1987,23 @@ class DatawarehouseApi(object):
1202
1987
  '_content_type')
1203
1988
  kwargs['_host_index'] = kwargs.get('_host_index')
1204
1989
  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)
1990
+ kwargs['custom_dashboard_oid'] = \
1991
+ custom_dashboard_oid
1992
+ return self.get_custom_dashboard_endpoint.call_with_http_info(**kwargs)
1208
1993
 
1209
- def execute_custom_report(
1994
+ def get_custom_dashboards(
1210
1995
  self,
1211
- custom_report_oid,
1212
- execution_request,
1213
1996
  **kwargs
1214
1997
  ):
1215
- """Execute a custom report # noqa: E501
1998
+ """Get custom dashboards # noqa: E501
1216
1999
 
1217
- Execute a custom report on the UltraCart account. # noqa: E501
2000
+ Retrieve a custom dashboards # noqa: E501
1218
2001
  This method makes a synchronous HTTP request by default. To make an
1219
2002
  asynchronous HTTP request, please pass async_req=True
1220
2003
 
1221
- >>> thread = api.execute_custom_report(custom_report_oid, execution_request, async_req=True)
2004
+ >>> thread = api.get_custom_dashboards(async_req=True)
1222
2005
  >>> result = thread.get()
1223
2006
 
1224
- Args:
1225
- custom_report_oid (int): The report oid to execute.
1226
- execution_request (CustomReportExecutionRequest): Request to execute custom report
1227
2007
 
1228
2008
  Keyword Args:
1229
2009
  _return_http_data_only (bool): response data without head status
@@ -1258,7 +2038,7 @@ class DatawarehouseApi(object):
1258
2038
  async_req (bool): execute request asynchronously
1259
2039
 
1260
2040
  Returns:
1261
- CustomReportResponse
2041
+ CustomDashboardsResponse
1262
2042
  If the method is called asynchronously, returns the request
1263
2043
  thread.
1264
2044
  """
@@ -1287,28 +2067,24 @@ class DatawarehouseApi(object):
1287
2067
  '_content_type')
1288
2068
  kwargs['_host_index'] = kwargs.get('_host_index')
1289
2069
  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)
2070
+ return self.get_custom_dashboards_endpoint.call_with_http_info(**kwargs)
1295
2071
 
1296
- def execute_report_queries(
2072
+ def get_custom_report(
1297
2073
  self,
1298
- query_request,
2074
+ custom_report_oid,
1299
2075
  **kwargs
1300
2076
  ):
1301
- """Execute the report queries # noqa: E501
2077
+ """Get a custom report # noqa: E501
1302
2078
 
1303
- Execute the report queries # noqa: E501
2079
+ Retrieve a custom report # noqa: E501
1304
2080
  This method makes a synchronous HTTP request by default. To make an
1305
2081
  asynchronous HTTP request, please pass async_req=True
1306
2082
 
1307
- >>> thread = api.execute_report_queries(query_request, async_req=True)
2083
+ >>> thread = api.get_custom_report(custom_report_oid, async_req=True)
1308
2084
  >>> result = thread.get()
1309
2085
 
1310
2086
  Args:
1311
- query_request (ReportExecuteQueriesRequest): Query request
2087
+ custom_report_oid (int):
1312
2088
 
1313
2089
  Keyword Args:
1314
2090
  _return_http_data_only (bool): response data without head status
@@ -1343,7 +2119,7 @@ class DatawarehouseApi(object):
1343
2119
  async_req (bool): execute request asynchronously
1344
2120
 
1345
2121
  Returns:
1346
- None
2122
+ CustomReportResponse
1347
2123
  If the method is called asynchronously, returns the request
1348
2124
  thread.
1349
2125
  """
@@ -1372,26 +2148,23 @@ class DatawarehouseApi(object):
1372
2148
  '_content_type')
1373
2149
  kwargs['_host_index'] = kwargs.get('_host_index')
1374
2150
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1375
- kwargs['query_request'] = \
1376
- query_request
1377
- return self.execute_report_queries_endpoint.call_with_http_info(**kwargs)
2151
+ kwargs['custom_report_oid'] = \
2152
+ custom_report_oid
2153
+ return self.get_custom_report_endpoint.call_with_http_info(**kwargs)
1378
2154
 
1379
- def get_custom_report(
2155
+ def get_custom_report_account_config(
1380
2156
  self,
1381
- custom_report_oid,
1382
2157
  **kwargs
1383
2158
  ):
1384
- """Get a custom report # noqa: E501
2159
+ """Get custom report account configuration # noqa: E501
1385
2160
 
1386
- Retrieve a custom report # noqa: E501
2161
+ Retrieve a custom report account configuration # noqa: E501
1387
2162
  This method makes a synchronous HTTP request by default. To make an
1388
2163
  asynchronous HTTP request, please pass async_req=True
1389
2164
 
1390
- >>> thread = api.get_custom_report(custom_report_oid, async_req=True)
2165
+ >>> thread = api.get_custom_report_account_config(async_req=True)
1391
2166
  >>> result = thread.get()
1392
2167
 
1393
- Args:
1394
- custom_report_oid (int):
1395
2168
 
1396
2169
  Keyword Args:
1397
2170
  _return_http_data_only (bool): response data without head status
@@ -1426,7 +2199,7 @@ class DatawarehouseApi(object):
1426
2199
  async_req (bool): execute request asynchronously
1427
2200
 
1428
2201
  Returns:
1429
- CustomReportResponse
2202
+ CustomReportAccountConfigResponse
1430
2203
  If the method is called asynchronously, returns the request
1431
2204
  thread.
1432
2205
  """
@@ -1455,21 +2228,19 @@ class DatawarehouseApi(object):
1455
2228
  '_content_type')
1456
2229
  kwargs['_host_index'] = kwargs.get('_host_index')
1457
2230
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1458
- kwargs['custom_report_oid'] = \
1459
- custom_report_oid
1460
- return self.get_custom_report_endpoint.call_with_http_info(**kwargs)
2231
+ return self.get_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
1461
2232
 
1462
- def get_custom_report_account_config(
2233
+ def get_custom_reports(
1463
2234
  self,
1464
2235
  **kwargs
1465
2236
  ):
1466
- """Get custom report account configuration # noqa: E501
2237
+ """Get custom reports # noqa: E501
1467
2238
 
1468
- Retrieve a custom report account configuration # noqa: E501
2239
+ Retrieve a custom reports # noqa: E501
1469
2240
  This method makes a synchronous HTTP request by default. To make an
1470
2241
  asynchronous HTTP request, please pass async_req=True
1471
2242
 
1472
- >>> thread = api.get_custom_report_account_config(async_req=True)
2243
+ >>> thread = api.get_custom_reports(async_req=True)
1473
2244
  >>> result = thread.get()
1474
2245
 
1475
2246
 
@@ -1506,7 +2277,7 @@ class DatawarehouseApi(object):
1506
2277
  async_req (bool): execute request asynchronously
1507
2278
 
1508
2279
  Returns:
1509
- CustomReportAccountConfigResponse
2280
+ CustomReportsResponse
1510
2281
  If the method is called asynchronously, returns the request
1511
2282
  thread.
1512
2283
  """
@@ -1535,7 +2306,7 @@ class DatawarehouseApi(object):
1535
2306
  '_content_type')
1536
2307
  kwargs['_host_index'] = kwargs.get('_host_index')
1537
2308
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1538
- return self.get_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
2309
+ return self.get_custom_reports_endpoint.call_with_http_info(**kwargs)
1539
2310
 
1540
2311
  def get_report(
1541
2312
  self,
@@ -1946,6 +2717,89 @@ class DatawarehouseApi(object):
1946
2717
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1947
2718
  return self.get_reports_endpoint.call_with_http_info(**kwargs)
1948
2719
 
2720
+ def insert_custom_dashboard(
2721
+ self,
2722
+ dashboard,
2723
+ **kwargs
2724
+ ):
2725
+ """Create a custom dashboard # noqa: E501
2726
+
2727
+ Create a new custom dashboard on the UltraCart account. # noqa: E501
2728
+ This method makes a synchronous HTTP request by default. To make an
2729
+ asynchronous HTTP request, please pass async_req=True
2730
+
2731
+ >>> thread = api.insert_custom_dashboard(dashboard, async_req=True)
2732
+ >>> result = thread.get()
2733
+
2734
+ Args:
2735
+ dashboard (CustomDashboard): Dashboard to create
2736
+
2737
+ Keyword Args:
2738
+ _return_http_data_only (bool): response data without head status
2739
+ code and headers. Default is True.
2740
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
2741
+ will be returned without reading/decoding response data.
2742
+ Default is True.
2743
+ _request_timeout (int/float/tuple): timeout setting for this request. If
2744
+ one number provided, it will be total request timeout. It can also
2745
+ be a pair (tuple) of (connection, read) timeouts.
2746
+ Default is None.
2747
+ _check_input_type (bool): specifies if type checking
2748
+ should be done one the data sent to the server.
2749
+ Default is True.
2750
+ _check_return_type (bool): specifies if type checking
2751
+ should be done one the data received from the server.
2752
+ Default is True.
2753
+ _spec_property_naming (bool): True if the variable names in the input data
2754
+ are serialized names, as specified in the OpenAPI document.
2755
+ False if the variable names in the input data
2756
+ are pythonic names, e.g. snake case (default)
2757
+ _content_type (str/None): force body content-type.
2758
+ Default is None and content-type will be predicted by allowed
2759
+ content-types and body.
2760
+ _host_index (int/None): specifies the index of the server
2761
+ that we want to use.
2762
+ Default is read from the configuration.
2763
+ _request_auths (list): set to override the auth_settings for an a single
2764
+ request; this effectively ignores the authentication
2765
+ in the spec for a single request.
2766
+ Default is None
2767
+ async_req (bool): execute request asynchronously
2768
+
2769
+ Returns:
2770
+ CustomDashboardResponse
2771
+ If the method is called asynchronously, returns the request
2772
+ thread.
2773
+ """
2774
+ kwargs['async_req'] = kwargs.get(
2775
+ 'async_req', False
2776
+ )
2777
+ kwargs['_return_http_data_only'] = kwargs.get(
2778
+ '_return_http_data_only', True
2779
+ )
2780
+ kwargs['_preload_content'] = kwargs.get(
2781
+ '_preload_content', True
2782
+ )
2783
+ kwargs['_request_timeout'] = kwargs.get(
2784
+ '_request_timeout', None
2785
+ )
2786
+ kwargs['_check_input_type'] = kwargs.get(
2787
+ '_check_input_type', True
2788
+ )
2789
+ kwargs['_check_return_type'] = kwargs.get(
2790
+ '_check_return_type', True
2791
+ )
2792
+ kwargs['_spec_property_naming'] = kwargs.get(
2793
+ '_spec_property_naming', False
2794
+ )
2795
+ kwargs['_content_type'] = kwargs.get(
2796
+ '_content_type')
2797
+ kwargs['_host_index'] = kwargs.get('_host_index')
2798
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2799
+ kwargs['dashboard'] = \
2800
+ dashboard
2801
+ return self.insert_custom_dashboard_endpoint.call_with_http_info(**kwargs)
2802
+
1949
2803
  def insert_custom_report(
1950
2804
  self,
1951
2805
  report,
@@ -2112,6 +2966,93 @@ class DatawarehouseApi(object):
2112
2966
  report
2113
2967
  return self.insert_report_endpoint.call_with_http_info(**kwargs)
2114
2968
 
2969
+ def update_custom_dashboard(
2970
+ self,
2971
+ custom_dashboard_oid,
2972
+ dashboard,
2973
+ **kwargs
2974
+ ):
2975
+ """Update a custom dashboard # noqa: E501
2976
+
2977
+ Update a custom dashboard on the UltraCart account. # noqa: E501
2978
+ This method makes a synchronous HTTP request by default. To make an
2979
+ asynchronous HTTP request, please pass async_req=True
2980
+
2981
+ >>> thread = api.update_custom_dashboard(custom_dashboard_oid, dashboard, async_req=True)
2982
+ >>> result = thread.get()
2983
+
2984
+ Args:
2985
+ custom_dashboard_oid (int): The dashboard oid to custom update.
2986
+ dashboard (CustomDashboard): Dashboard to custom update
2987
+
2988
+ Keyword Args:
2989
+ _return_http_data_only (bool): response data without head status
2990
+ code and headers. Default is True.
2991
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
2992
+ will be returned without reading/decoding response data.
2993
+ Default is True.
2994
+ _request_timeout (int/float/tuple): timeout setting for this request. If
2995
+ one number provided, it will be total request timeout. It can also
2996
+ be a pair (tuple) of (connection, read) timeouts.
2997
+ Default is None.
2998
+ _check_input_type (bool): specifies if type checking
2999
+ should be done one the data sent to the server.
3000
+ Default is True.
3001
+ _check_return_type (bool): specifies if type checking
3002
+ should be done one the data received from the server.
3003
+ Default is True.
3004
+ _spec_property_naming (bool): True if the variable names in the input data
3005
+ are serialized names, as specified in the OpenAPI document.
3006
+ False if the variable names in the input data
3007
+ are pythonic names, e.g. snake case (default)
3008
+ _content_type (str/None): force body content-type.
3009
+ Default is None and content-type will be predicted by allowed
3010
+ content-types and body.
3011
+ _host_index (int/None): specifies the index of the server
3012
+ that we want to use.
3013
+ Default is read from the configuration.
3014
+ _request_auths (list): set to override the auth_settings for an a single
3015
+ request; this effectively ignores the authentication
3016
+ in the spec for a single request.
3017
+ Default is None
3018
+ async_req (bool): execute request asynchronously
3019
+
3020
+ Returns:
3021
+ CustomDashboardResponse
3022
+ If the method is called asynchronously, returns the request
3023
+ thread.
3024
+ """
3025
+ kwargs['async_req'] = kwargs.get(
3026
+ 'async_req', False
3027
+ )
3028
+ kwargs['_return_http_data_only'] = kwargs.get(
3029
+ '_return_http_data_only', True
3030
+ )
3031
+ kwargs['_preload_content'] = kwargs.get(
3032
+ '_preload_content', True
3033
+ )
3034
+ kwargs['_request_timeout'] = kwargs.get(
3035
+ '_request_timeout', None
3036
+ )
3037
+ kwargs['_check_input_type'] = kwargs.get(
3038
+ '_check_input_type', True
3039
+ )
3040
+ kwargs['_check_return_type'] = kwargs.get(
3041
+ '_check_return_type', True
3042
+ )
3043
+ kwargs['_spec_property_naming'] = kwargs.get(
3044
+ '_spec_property_naming', False
3045
+ )
3046
+ kwargs['_content_type'] = kwargs.get(
3047
+ '_content_type')
3048
+ kwargs['_host_index'] = kwargs.get('_host_index')
3049
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
3050
+ kwargs['custom_dashboard_oid'] = \
3051
+ custom_dashboard_oid
3052
+ kwargs['dashboard'] = \
3053
+ dashboard
3054
+ return self.update_custom_dashboard_endpoint.call_with_http_info(**kwargs)
3055
+
2115
3056
  def update_custom_report(
2116
3057
  self,
2117
3058
  custom_report_oid,