edutap.wallet_google.models.primitives.smarttap.Permission#

pydantic model edutap.wallet_google.models.primitives.smarttap.Permission#

see: https://developers.google.com/wallet/generic/rest/v1/permissions#permission

Show JSON schema
{
   "title": "Permission",
   "description": "see: https://developers.google.com/wallet/generic/rest/v1/permissions#permission",
   "type": "object",
   "properties": {
      "emailAddress": {
         "anyOf": [
            {
               "format": "email",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Emailaddress"
      },
      "role": {
         "anyOf": [
            {
               "$ref": "#/$defs/Role"
            },
            {
               "type": "null"
            }
         ]
      }
   },
   "$defs": {
      "Role": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/permissions#role",
         "enum": [
            "ROLE_UNSPECIFIED",
            "OWNER",
            "READER",
            "WRITER"
         ],
         "title": "Role",
         "type": "string"
      }
   },
   "required": [
      "emailAddress",
      "role"
   ]
}

Fields:
field emailAddress: EmailStr | None [Required]#
field role: Role | None [Required]#