BasicNeedsForPublisher.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 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