Exemple #1
0
 def update_by_key(
     self,
     key: str,
     version: int,
     actions: typing.List[types.StoreUpdateAction],
     *,
     force_update: bool = False,
 ) -> types.Store:
     update_action = types.StoreUpdate(version=version, actions=actions)
     return self._client._post(
         endpoint=f"stores/key={key}",
         params={},
         data_object=update_action,
         request_schema_cls=schemas.StoreUpdateSchema,
         response_schema_cls=schemas.StoreSchema,
         force_update=force_update,
     )
Exemple #2
0
 def post_load(self, data, **kwargs):
     return types.StoreUpdate(**data)