'Set up required, but useless, key/value pairs.
The following properties have useless key/value pairs which must
be passed into the api. Set them up to make template definition easier.'

def _alter_properties_for_api(self):

    session_persistence = None
    if (self.SESSION_PERSISTENCE in self.properties.data):
        session_persistence = {'persistenceType': self.properties[self.SESSION_PERSISTENCE]}
    connection_logging = None
    if (self.CONNECTION_LOGGING in self.properties.data):
        connection_logging = {'enabled': self.properties[self.CONNECTION_LOGGING]}
    metadata = None
    if (self.METADATA in self.properties.data):
        metadata = [{'key': k, 'value': v} for (k, v) in six.iteritems(self.properties[self.METADATA])]
    return (session_persistence, connection_logging, metadata)
