latest auto-generated genapi.py
diff --git a/planetstack/genapi.py b/planetstack/genapi.py
index 3e6f7b0..4accc07 100644
--- a/planetstack/genapi.py
+++ b/planetstack/genapi.py
@@ -428,6 +428,10 @@
class ImageSerializer(serializers.HyperlinkedModelSerializer):
id = serializers.Field()
+
+ deployments = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='deployment-detail')
+
+
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
@@ -439,11 +443,15 @@
return None
class Meta:
model = Image
- fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','disk_format','container_format','path',)
+ fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','disk_format','container_format','path','deployments',)
class ImageIdSerializer(XOSModelSerializer):
id = serializers.Field()
+
+ deployments = serializers.PrimaryKeyRelatedField(many=True) #, read_only=True) #, view_name='deployment-detail')
+
+
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
@@ -455,7 +463,7 @@
return None
class Meta:
model = Image
- fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','disk_format','container_format','path',)
+ fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','disk_format','container_format','path','deployments',)
@@ -1711,6 +1719,10 @@
+ images = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='image-detail')
+
+
+
sites = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='site-detail')
@@ -1725,7 +1737,7 @@
return None
class Meta:
model = Deployment
- fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','accessControl','flavors','sites',)
+ fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','accessControl','flavors','images','sites',)
class DeploymentIdSerializer(XOSModelSerializer):
id = serializers.Field()
@@ -1735,6 +1747,10 @@
+ images = serializers.PrimaryKeyRelatedField(many=True) #, read_only=True) #, view_name='image-detail')
+
+
+
sites = serializers.PrimaryKeyRelatedField(many=True) #, read_only=True) #, view_name='site-detail')
@@ -1749,7 +1765,7 @@
return None
class Meta:
model = Deployment
- fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','accessControl','flavors','sites',)
+ fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','backend_status','deleted','name','accessControl','flavors','images','sites',)
@@ -2714,7 +2730,7 @@
serializer_class = ImageSerializer
id_serializer_class = ImageIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
- filter_fields = ('id','created','updated','enacted','backend_status','deleted','name','disk_format','container_format','path',)
+ filter_fields = ('id','created','updated','enacted','backend_status','deleted','name','disk_format','container_format','path','deployments',)
def get_serializer_class(self):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
@@ -4720,7 +4736,7 @@
serializer_class = DeploymentSerializer
id_serializer_class = DeploymentIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
- filter_fields = ('id','created','updated','enacted','backend_status','deleted','name','accessControl','flavors','sites',)
+ filter_fields = ('id','created','updated','enacted','backend_status','deleted','name','accessControl','flavors','images','sites',)
def get_serializer_class(self):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)