edutap.wallet_google.api.update#
- edutap.wallet_google.api.update(name: str, data: dict[str, Any] | GoogleWalletModel, *, partial: bool = True) GoogleWalletModel #
Updates a Google Wallet Class or Object. U in CRUD.
- Parameters:
name – Registered name of the model to use
data – Data to pass to the Google RESTful API. Either a simple python data structure using built-ins, or a Pydantic model instance matching the registered name’s model.
override_all – When True, all fields will be overwritten, otherwise only given fields.
- Raises:
LookupError – When the resource was not found (404)
Exception – When the response status code is not 200 or 404
- Returns:
The created model based on the data returned by the Restful API