def update_by_id( self, id: str, version: int, actions: List[types.StateUpdateAction], expand: OptionalListStr = None, *, force_update: bool = False, ) -> types.State: query_params = {} if expand: query_params["expand"] = expand update_action = types.StateUpdate(version=version, actions=actions) return self._client._post( endpoint=f"states/{id}", params=query_params, data_object=update_action, request_schema_cls=schemas.StateUpdateSchema, response_schema_cls=schemas.StateSchema, force_update=force_update, )
def post_load(self, data, **kwargs): return types.StateUpdate(**data)
def post_load(self, data): return types.StateUpdate(**data)