예제 #1
0
class CollectionValueGETResponse(ProtoModel):
    class Data(ProtoModel):
        values: bytes = Schema(..., description="Feather-serialized bytes representing a pandas DataFrame.")
        units: Dict[str, str] = Schema(..., description="Units of value columns.")

    meta: CollectionSubresourceGETResponseMeta = Schema(
        ..., description=str(get_base_docs(CollectionSubresourceGETResponseMeta)))
    data: Optional[Data] = Schema(..., description="Values and units.")
예제 #2
0
class CollectionListGETResponse(ProtoModel):
    meta: CollectionSubresourceGETResponseMeta = Field(
        ...,
        description=str(get_base_docs(CollectionSubresourceGETResponseMeta)))
    data: Optional[bytes] = Field(
        ...,
        description="Feather-serialized bytes representing a pandas DataFrame."
    )
예제 #3
0
        ----------
        other : ComputeResponse
            The compute response to merge

        Returns
        -------
        ComputeResponse
            The merged compute response
        """
        return ComputeResponse(ids=(self.ids + other.ids),
                               submitted=(self.submitted + other.submitted),
                               existing=(self.existing + other.existing))


common_docs = {
    EmptyMeta: str(get_base_docs(EmptyMeta)),
    ResponseMeta: str(get_base_docs(ResponseMeta)),
    ResponseGETMeta: str(get_base_docs(ResponseGETMeta)),
    ResponsePOSTMeta: str(get_base_docs(ResponsePOSTMeta)),
    QueryMeta: str(get_base_docs(QueryMeta)),
    QueryMetaProjection: str(get_base_docs(QueryMetaProjection)),
    ComputeResponse: str(get_base_docs(ComputeResponse)),
}

### Information


class InformationGETBody(ProtoModel):
    pass