edutap.wallet_google.api.disable#
- edutap.wallet_google.api.disable(name: str, resource_id: str) GoogleWalletModel #
Disables a Google Wallet Class or Object. D in CRUD. Generic Implementation of the CRUD –> (D) usually delete, but here disable since delete is not supported at Google Wallets.
- Technically, there is no disable method in the Google Wallet API,
but a state can be set to expired to indicate disabled objects - which is done here.
- Parameters:
name – Registered name of the model to use
resource_id – Identifier of the resource to read from the Google RESTful API
- 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