def add_to_params(self, parameters, value):
    if (value is None):
        return
    if (parameters.get('parameterValues', None) is not None):
        raise Exception('Only parameter-values or parameter-values-uri is allowed')
    parsed = json.loads(value)
    parameter_values = translator.definition_to_parameter_values(parsed)
    parameters['parameterValues'] = parameter_values
def add_to_params(self, parameters, value):
    if (value is None):
        return
    if (parameters.get('parameterValues', None) is not None):
        raise Exception('Only parameter-values or parameter-values-uri is allowed')
    parsed = json.loads(value)
    parameter_values = translator.definition_to_parameter_values(parsed)
    parameters['parameterValues'] = parameter_values