|
| 1 | +from typing import Any, Dict, List, Optional, Union, cast |
| 2 | +from pydantic import Field, PrivateAttr |
| 3 | + |
| 4 | +from .base_model import AppwriteModel |
| 5 | + |
| 6 | +class AppInstallation(AppwriteModel): |
| 7 | + """ |
| 8 | + AppInstallation |
| 9 | +
|
| 10 | + Attributes |
| 11 | + ---------- |
| 12 | + id : str |
| 13 | + Installation ID. |
| 14 | + createdat : str |
| 15 | + Installation creation time in ISO 8601 format. |
| 16 | + updatedat : str |
| 17 | + Installation update time in ISO 8601 format. |
| 18 | + appid : str |
| 19 | + ID of the installed application. |
| 20 | + teamid : str |
| 21 | + ID of the team the application is installed on. |
| 22 | + scopes : List[Any] |
| 23 | + Scopes granted to the application. Snapshot of the application's installation scopes taken when the installation was created or last updated. |
| 24 | + authorizationdetails : Dict[str, Any] |
| 25 | + Authorization details granted to the application. Rich authorization request (RFC 9396) style entries; the Appwrite Console stores authorized project IDs here. |
| 26 | + createdbyid : str |
| 27 | + ID of the user who created the installation. |
| 28 | + createdbyname : str |
| 29 | + Name of the user who created the installation. |
| 30 | + lastaccessedat : Optional[str] |
| 31 | + Time an access token was last issued for the installation in ISO 8601 format. Null if never used. |
| 32 | + """ |
| 33 | + id: str = Field(..., alias='$id') |
| 34 | + createdat: str = Field(..., alias='$createdAt') |
| 35 | + updatedat: str = Field(..., alias='$updatedAt') |
| 36 | + appid: str = Field(..., alias='appId') |
| 37 | + teamid: str = Field(..., alias='teamId') |
| 38 | + scopes: List[Any] = Field(..., alias='scopes') |
| 39 | + authorizationdetails: Dict[str, Any] = Field(..., alias='authorizationDetails') |
| 40 | + createdbyid: str = Field(..., alias='createdById') |
| 41 | + createdbyname: str = Field(..., alias='createdByName') |
| 42 | + lastaccessedat: Optional[str] = Field(default=None, alias='lastAccessedAt') |
0 commit comments