Exemplo n.º 1
0
 def __init__(self, params):
     self.client = rest_client.RestClient(
         params['vdirect_ip'],
         params['vdirect_user'],
         params['vdirect_password'],
         wait=params['vdirect_wait'],
         secondary_vdirect_ip=params['vdirect_secondary_ip'],
         https_port=params['vdirect_https_port'],
         http_port=params['vdirect_http_port'],
         timeout=params['vdirect_timeout'],
         https=params['vdirect_use_ssl'],
         verify=params['validate_certs'])
Exemplo n.º 2
0
 def __init__(self, params):
     self.client = rest_client.RestClient(params['vdirect_ip'],
                                          params['vdirect_user'],
                                          params['vdirect_password'],
                                          wait=params['vdirect_wait'],
                                          secondary_vdirect_ip=params['vdirect_secondary_ip'],
                                          https_port=params['vdirect_https_port'],
                                          http_port=params['vdirect_http_port'],
                                          timeout=params['vdirect_timeout'],
                                          https=params['vdirect_use_ssl'],
                                          verify=params['vdirect_validate_certs'])
     self.devices = params['devices']
     self.apply = params['apply']
     self.save = params['save']
     self.sync = params['sync']
     self.devicesMap = {}
Exemplo n.º 3
0
 def __init__(self, params):
     self.client = rest_client.RestClient(
         params['vdirect_ip'],
         params['vdirect_user'],
         params['vdirect_password'],
         wait=params['vdirect_wait'],
         secondary_vdirect_ip=params['vdirect_secondary_ip'],
         https_port=params['vdirect_https_port'],
         http_port=params['vdirect_http_port'],
         timeout=params['vdirect_timeout'],
         https=params['vdirect_use_ssl'],
         verify=params['vdirect_validate_certs'])
     self.params = params
     self.type = self.params['runnable_type']
     self.name = self.params['runnable_name']
     if 'parameters' in self.params:
         self.action_params = self.params['parameters']
     else:
         self.action_params = []