

def get_resources(self):
    resources = []
    metadata = _get_metadata()
    body_serializers = {
        'application/xml': wsgi.XMLDictSerializer(metadata=metadata, xmlns=wsgi.XMLNS_V11),
    }
    serializer = wsgi.ResponseSerializer(body_serializers, None)
    body_deserializers = {
        'application/xml': SecurityGroupXMLDeserializer(),
    }
    deserializer = wsgi.RequestDeserializer(body_deserializers)
    res = extensions.ResourceExtension('os-security-groups', controller=SecurityGroupController(), deserializer=deserializer, serializer=serializer)
    resources.append(res)
    body_deserializers = {
        'application/xml': SecurityGroupRulesXMLDeserializer(),
    }
    deserializer = wsgi.RequestDeserializer(body_deserializers)
    res = extensions.ResourceExtension('os-security-group-rules', controller=SecurityGroupRulesController(), deserializer=deserializer, serializer=serializer)
    resources.append(res)
    return resources

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/contrib/security_groups.py Security_groups.get_resources/original