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("OSType.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 = OSTypeService.requester.call(args)
            if response.rc != 0:
                LOGGER.warning(
                    'OSType.sync - Problem while syncing OS type (name:' + self.name + ', id: ' + str(self.id) +
                    '). Reason: ' + str(response.response_content) + '-' + str(response.error_message) +
                    " (" + str(response.rc) + ")"
                )
            else:
                json_obj = response.response_content
                self.id = json_obj['osTypeID']
                self.name = json_obj['osTypeName']
                self.architecture = json_obj['osTypeArchitecture']
                if json_obj['osTypeCompanyID'] == -1:
                    self.company_id = None
                else:
                    self.company_id = json_obj['osTypeCompanyID']
                self.osi_ids = json_obj['osTypeOSInstancesID']