edutap.wallet_google.models.issuer.Permissions#

pydantic model edutap.wallet_google.models.issuer.Permissions#

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

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

Fields:
field issuerId: str | None = None#
field permissions: list[Permission] = []#