def get_datastream(self, datastream):
     """
     To get Datastream by id
     """
     response = self.http.get('/Datastream/' + str(datastream))
     datastream = Schemas.Datastream(datastream=response)
     return datastream
 def create_datastream(self, datastream):
     """
     To create Datastream
     :param datastream: Datastream
     :param options: dict
     """
     raw_datastream = self.http.post('/Datastream', datastream)
     return Schemas.Datastream(datastream=raw_datastream)
 def get_datastreams(self):
     """
     To get list of Datastream
     """
     datastreams = []
     response = self.http.get('/Datastream')
     for datastream in response:
         datastreams.append(Schemas.Datastream(datastream=datastream))
     return datastreams