def update_by_id(
         self, id: str, version: int,
         actions: List[types.ExtensionUpdateAction]) -> types.Extension:
     update_action = types.ExtensionUpdate(version=version, actions=actions)
     return self._client._post(
         f"channels/{id}",
         {},
         update_action,
         schemas.ExtensionUpdateSchema,
         schemas.ExtensionSchema,
     )
Beispiel #2
0
 def update_by_id(
     self,
     id: str,
     version: int,
     actions: List[types.ExtensionUpdateAction],
     *,
     force_update: bool = False,
 ) -> types.Extension:
     update_action = types.ExtensionUpdate(version=version, actions=actions)
     return self._client._post(
         endpoint=f"channels/{id}",
         params={},
         data_object=update_action,
         request_schema_cls=schemas.ExtensionUpdateSchema,
         response_schema_cls=schemas.ExtensionSchema,
         force_update=force_update,
     )
 def post_load(self, data):
     return types.ExtensionUpdate(**data)