<s> from __future__ import absolute_import , unicode_literals <EOL> from rest_framework import viewsets , serializers <EOL> from dbaas_credentials . models import Credential <EOL> from . environment import EnvironmentSerializer <EOL> from . integration_type import CredentialTypeSerializer <EOL> class IntegrationCredentialSerializer ( serializers . HyperlinkedModelSerializer ) : <EOL> environments = EnvironmentSerializer ( many = True , read_only = True ) <EOL> integration_type = CredentialTypeSerializer ( many = False , read_only = True ) <EOL> class Meta : <EOL> model = Credential <EOL> fields = ( '<STR_LIT:user>' , '<STR_LIT:password>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , "<STR_LIT>" , "<STR_LIT>" ) <EOL> class IntegrationCredentialAPI ( viewsets . ModelViewSet ) : <EOL> """<STR_LIT>""" <EOL> serializer_class = IntegrationCredentialSerializer <EOL> queryset = Credential . objects . all ( ) </s>
