-model_pg = _api.model("ProcessGroup", {
- "id": fields.String(required=True, description="Id for this process group"
- , attribute="processGroupId")
- , "version": fields.Integer(required=True
- , description="Version of the process group")
- , "processed": fields.DateTime(required=True
- , description="When this process group was processed by this API")
- , "runtimeResponse": fields.String(required=True
- , description="Full response from the runtime API")
- })
-
-model_dt = _api.model("DistributionTarget", {
- "selfUrl": fields.Url("resource_distribution_target", absolute=True)
- , "id": fields.String(required=True, description="Id for this distribution target"
- , attribute="dt_id")
- , "name": fields.String(required=True, description="Name for this distribution target"
- , attribute="name")
- , "runtimeApiUrl": fields.String(required=True
- , description="Url to the runtime API for this distribution target"
- , attribute="runtimeApiUrl")
- , "description": fields.String(required=False
- , description="Description for this distribution target"
- , attribute="description")
- , "nextDistributionTargetId": fields.String(required=False
- , description="Id to the next distribution target. Distribution targets can be linked together and have a progression order. Specifying the id of the next distribution target defines the next element int the order."
- , attribute="nextDistributionTargetId")
- , "created": fields.String(required=True
- , description="When this distribution target was created in UTC"
- , attribute="created")
- , "modified": fields.String(required=True
- , description="When this distribution target was last modified in UTC"
- , attribute="modified")
- , "processGroups": fields.List(fields.Nested(model_pg))
- })
-
-model_dts = _api.model("DistributionTargets", {
- "distributionTargets": fields.List(fields.Nested(model_dt))
- })
+model_pg = _api.model(
+ "ProcessGroup",
+ {
+ "id": fields.String(required=True, description="Id for this process group", attribute="processGroupId"),
+ "version": fields.Integer(required=True, description="Version of the process group"),
+ "processed": fields.DateTime(required=True, description="When this process group was processed by this API"),
+ "runtimeResponse": fields.String(required=True, description="Full response from the runtime API"),
+ },
+)
+
+model_dt = _api.model(
+ "DistributionTarget",
+ {
+ "selfUrl": fields.Url("resource_distribution_target", absolute=True),
+ "id": fields.String(required=True, description="Id for this distribution target", attribute="dt_id"),
+ "name": fields.String(required=True, description="Name for this distribution target", attribute="name"),
+ "runtimeApiUrl": fields.String(
+ required=True, description="Url to the runtime API for this distribution target", attribute="runtimeApiUrl"
+ ),
+ "description": fields.String(
+ required=False, description="Description for this distribution target", attribute="description"
+ ),
+ "nextDistributionTargetId": fields.String(
+ required=False,
+ description="Id to the next distribution target. Distribution targets can be linked together and have a progression order. Specifying the id of the next distribution target defines the next element int the order.",
+ attribute="nextDistributionTargetId",
+ ),
+ "created": fields.String(
+ required=True, description="When this distribution target was created in UTC", attribute="created"
+ ),
+ "modified": fields.String(
+ required=True, description="When this distribution target was last modified in UTC", attribute="modified"
+ ),
+ "processGroups": fields.List(fields.Nested(model_pg)),
+ },
+)
+
+model_dts = _api.model("DistributionTargets", {"distributionTargets": fields.List(fields.Nested(model_dt))})