dj_gcp_iotdevice package

Submodules

dj_gcp_iotdevice.apps module

Application specific configuration. This gets overriden by the user to specify the registry coordinates on GCP.

class dj_gcp_iotdevice.apps.GCPIoTDeviceConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

Users of this app will override this class and specify their registry coordinates.

location = 'GCP project location for device registry - ie us-central1'
name = 'dj_gcp_iotdevice'
project = 'GCP project id for device registry'
registry = 'GCP device registry id'
verbose_name = 'IoT Device Manager'

dj_gcp_iotdevice.serializers module

Simple serializer for the GCP IoT Device structure.

class dj_gcp_iotdevice.serializers.DeviceSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)[source]

Bases: rest_framework.serializers.Serializer

Simple serializer that represents the shape of a GCP IoT Device.

create(validated_data)[source]
update(instance, validated_data)[source]

dj_gcp_iotdevice.urls module

dj_gcp_iotdevice.views module

Module contents