Change fields to be start with lower case based on examing of real AWS calls.
This commit is contained in:
parent
a7e23e45fd
commit
65dd7f7639
3 changed files with 29 additions and 25 deletions
|
|
@ -14,9 +14,9 @@ class PipelineObject(object):
|
|||
|
||||
def to_json(self):
|
||||
return {
|
||||
"Fields": self.fields,
|
||||
"Id": self.object_id,
|
||||
"Name": self.name,
|
||||
"fields": self.fields,
|
||||
"id": self.object_id,
|
||||
"name": self.name,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -30,10 +30,16 @@ class Pipeline(object):
|
|||
self.objects = []
|
||||
self.status = "PENDING"
|
||||
|
||||
def to_meta_json(self):
|
||||
return {
|
||||
"id": self.pipeline_id,
|
||||
"name": self.name,
|
||||
}
|
||||
|
||||
def to_json(self):
|
||||
return {
|
||||
"Description": self.description,
|
||||
"Fields": [{
|
||||
"description": self.description,
|
||||
"fields": [{
|
||||
"key": "@pipelineState",
|
||||
"stringValue": self.status,
|
||||
}, {
|
||||
|
|
@ -64,9 +70,9 @@ class Pipeline(object):
|
|||
"key": "uniqueId",
|
||||
"stringValue": self.unique_id
|
||||
}],
|
||||
"Name": self.name,
|
||||
"PipelineId": self.pipeline_id,
|
||||
"Tags": [
|
||||
"name": self.name,
|
||||
"pipelineId": self.pipeline_id,
|
||||
"tags": [
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class DataPipelineResponse(BaseResponse):
|
|||
"HasMoreResults": False,
|
||||
"Marker": None,
|
||||
"PipelineIdList": [
|
||||
{"Id": pipeline.pipeline_id, "Name": pipeline.name} for pipeline in pipelines
|
||||
pipeline.to_meta_json() for pipeline in pipelines
|
||||
]
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue