Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """ |
||
2 | Class Publisher Specific Needs |
||
3 | |||
4 | Handling specific needs for Publisher script |
||
5 | """ |
||
6 | # package to facilitate common operations |
||
7 | from tableau_hyper_management.BasicNeeds import os, BasicNeeds |
||
8 | |||
9 | |||
10 | class BasicNeedsForPublisher: |
||
11 | lcl_bn = None |
||
12 | |||
13 | def __init__(self): |
||
14 | self.lcl_bn = BasicNeeds() |
||
15 | |||
16 | def fn_check_inputs_specific(self, input_parameters): |
||
17 | self.lcl_bn .fn_validate_single_value(input_parameters.input_file, |
||
18 | 'file', 'input file') |
||
19 | self.lcl_bn .fn_validate_single_value(input_parameters.input_credentials_file, |
||
20 | 'file', 'credentials file') |
||
21 | self.lcl_bn .fn_validate_single_value(input_parameters.tableau_server, |
||
22 | 'url', 'Tableau Server URL') |
||
23 |