'Get pyrax-style create arguments for scaling policies.'

def _get_args(self, properties):

    args = dict(scaling_group=properties[self.GROUP], name=properties[self.NAME], policy_type=properties[self.TYPE], cooldown=properties[self.COOLDOWN])
    if (properties.get(self.CHANGE) is not None):
        args['change'] = properties[self.CHANGE]
    elif (properties.get(self.CHANGE_PERCENT) is not None):
        args['change'] = properties[self.CHANGE_PERCENT]
        args['is_percent'] = True
    elif (properties.get(self.DESIRED_CAPACITY) is not None):
        args['desired_capacity'] = properties[self.DESIRED_CAPACITY]
    if (properties.get(self.ARGS) is not None):
        args['args'] = properties[self.ARGS]
    return args
