Classes to serialize the RESTful representation of Deis API models.
api.serializers.
AdminUserSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize admin status for a User model.
api.serializers.
AppSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a App
model.
api.serializers.
BuildSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Build
model.
api.serializers.
CertificateSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Cert
model.
api.serializers.
ConfigSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Config
model.
Meta
[source]¶Metadata options for a ConfigSerializer
.
model
¶alias of Config
api.serializers.
ContainerSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Container
model.
Meta
[source]¶Metadata options for a ContainerSerializer
.
fields
= [u'owner', u'app', u'release', u'type', u'num', u'state', u'created', u'updated', u'uuid']¶model
¶alias of Container
api.serializers.
DomainSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Domain
model.
Meta
[source]¶Metadata options for a DomainSerializer
.
fields
= [u'uuid', u'owner', u'created', u'updated', u'app', u'domain']¶model
¶alias of Domain
api.serializers.
JSONFieldSerializer
(read_only=False, write_only=False, required=None, default=<class rest_framework.fields.empty>, initial=<class rest_framework.fields.empty>, source=None, label=None, help_text=None, style=None, error_messages=None, validators=None, allow_null=False)[source]¶A Django REST framework serializer for JSON data.
api.serializers.
JSONIntFieldSerializer
(read_only=False, write_only=False, required=None, default=<class rest_framework.fields.empty>, initial=<class rest_framework.fields.empty>, source=None, label=None, help_text=None, style=None, error_messages=None, validators=None, allow_null=False)[source]¶A JSON serializer that coerces its data to integers.
api.serializers.
JSONStringFieldSerializer
(read_only=False, write_only=False, required=None, default=<class rest_framework.fields.empty>, initial=<class rest_framework.fields.empty>, source=None, label=None, help_text=None, style=None, error_messages=None, validators=None, allow_null=False)[source]¶A JSON serializer that coerces its data to strings.
api.serializers.
KeySerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Key
model.
api.serializers.
ModelSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶get_validators
()[source]¶Hack to remove DRF’s UniqueTogetherValidator when it concerns the UUID.
See https://github.com/deis/deis/pull/2898#discussion_r23105147
api.serializers.
PushSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Push
model.
Meta
[source]¶Metadata options for a PushSerializer
.
fields
= [u'uuid', u'owner', u'app', u'sha', u'fingerprint', u'receive_user', u'receive_repo', u'ssh_connection', u'ssh_original_command', u'created', u'updated']¶model
¶alias of Push
api.serializers.
ReleaseSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Serialize a Release
model.
Meta
[source]¶Metadata options for a ReleaseSerializer
.
model
¶alias of Release
api.serializers.
UserSerializer
(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]¶Meta
[source]¶extra_kwargs
= {u'password': {u'write_only': True}}¶fields
= [u'email', u'username', u'password', u'first_name', u'last_name', u'is_superuser', u'is_staff', u'groups', u'user_permissions', u'last_login', u'date_joined', u'is_active']¶model
¶alias of User
read_only_fields
= [u'is_superuser', u'is_staff', u'groups', u'user_permissions', u'last_login', u'date_joined', u'is_active']¶