synchronize self from Ariane server according its id (prioritary) or name
        :return:

def sync(self):
        """
        synchronize self from Ariane server according its id (prioritary) or name
        :return:
        """
        LOGGER.debug("Location.sync")
        params = None
        if self.id is not None:
            params = {'id': self.id}
        elif self.name is not None:
            params = {'name': self.name}

        if params is not None:
            args = {'http_operation': 'GET', 'operation_path': 'get', 'parameters': params}
            response = LocationService.requester.call(args)
            if response.rc == 0:
                json_obj = response.response_content
                self.id = json_obj['locationID']
                self.name = json_obj['locationName']
                self.description = json_obj['locationDescription']
                self.address = json_obj['locationAddress']
                self.zip_code = json_obj['locationZipCode']
                self.town = json_obj['locationTown']
                self.type = json_obj['locationType']
                self.country = json_obj['locationCountry']
                self.gpsLatitude = json_obj['locationGPSLat']
                self.gpsLongitude = json_obj['locationGPSLng']
                self.routing_area_ids = json_obj['locationRoutingAreasID']
                self.subnet_ids = json_obj['locationSubnetsID']
            else:
                LOGGER.warning('Location.sync - Problem while syncing location (name:' +
                               self.name + ', id: ' + str(self.id) + '). ' +
                               'Reason: ' + str(response.response_content) + '-' + str(response.error_message) +
                               " (" + str(response.rc) + ")")