-
Notifications
You must be signed in to change notification settings - Fork 68
feat: Python SDK update for version 18.0.0 #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| from enum import Enum | ||
|
|
||
| class PlatformType(Enum): | ||
| WINDOWS = "windows" | ||
| APPLE = "apple" | ||
| ANDROID = "android" | ||
| LINUX = "linux" | ||
| WEB = "web" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| from enum import Enum | ||
|
|
||
| class ProtocolId(Enum): | ||
| REST = "rest" | ||
| GRAPHQL = "graphql" | ||
| WEBSOCKET = "websocket" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| from enum import Enum | ||
|
|
||
| class ServiceId(Enum): | ||
| ACCOUNT = "account" | ||
| AVATARS = "avatars" | ||
| DATABASES = "databases" | ||
| TABLESDB = "tablesdb" | ||
| LOCALE = "locale" | ||
| HEALTH = "health" | ||
| PROJECT = "project" | ||
| STORAGE = "storage" | ||
| TEAMS = "teams" | ||
| USERS = "users" | ||
| VCS = "vcs" | ||
| SITES = "sites" | ||
| FUNCTIONS = "functions" | ||
| PROXY = "proxy" | ||
| GRAPHQL = "graphql" | ||
| MIGRATIONS = "migrations" | ||
| MESSAGING = "messaging" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| from typing import Any, Dict, List, Optional, Union, cast | ||
| from pydantic import Field, PrivateAttr | ||
|
|
||
| from .base_model import AppwriteModel | ||
|
|
||
| class AuthProvider(AppwriteModel): | ||
| """ | ||
| AuthProvider | ||
|
|
||
| Attributes | ||
| ---------- | ||
| key : str | ||
| Auth Provider. | ||
| name : str | ||
| Auth Provider name. | ||
| appid : str | ||
| OAuth 2.0 application ID. | ||
| secret : str | ||
| OAuth 2.0 application secret. Might be JSON string if provider requires extra configuration. | ||
| enabled : bool | ||
| Auth Provider is active and can be used to create session. | ||
| """ | ||
| key: str = Field(..., alias='key') | ||
| name: str = Field(..., alias='name') | ||
| appid: str = Field(..., alias='appId') | ||
| secret: str = Field(..., alias='secret') | ||
| enabled: bool = Field(..., alias='enabled') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| from typing import Any, Dict, List, Optional, Union, cast | ||
| from pydantic import Field, PrivateAttr | ||
|
|
||
| from .base_model import AppwriteModel | ||
|
|
||
| class BillingLimits(AppwriteModel): | ||
| """ | ||
| BillingLimits | ||
|
|
||
| Attributes | ||
| ---------- | ||
| bandwidth : float | ||
| Bandwidth limit | ||
| storage : float | ||
| Storage limit | ||
| users : float | ||
| Users limit | ||
| executions : float | ||
| Executions limit | ||
| gbhours : float | ||
| GBHours limit | ||
| imagetransformations : float | ||
| Image transformations limit | ||
| authphone : float | ||
| Auth phone limit | ||
| budgetlimit : float | ||
| Budget limit percentage | ||
| """ | ||
| bandwidth: float = Field(..., alias='bandwidth') | ||
| storage: float = Field(..., alias='storage') | ||
| users: float = Field(..., alias='users') | ||
| executions: float = Field(..., alias='executions') | ||
| gbhours: float = Field(..., alias='GBHours') | ||
| imagetransformations: float = Field(..., alias='imageTransformations') | ||
| authphone: float = Field(..., alias='authPhone') | ||
| budgetlimit: float = Field(..., alias='budgetLimit') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| from typing import Any, Dict, List, Optional, Union, cast | ||
| from pydantic import Field, PrivateAttr | ||
|
|
||
| from .base_model import AppwriteModel | ||
|
|
||
| class Block(AppwriteModel): | ||
| """ | ||
| Block | ||
|
|
||
| Attributes | ||
| ---------- | ||
| createdat : str | ||
| Block creation date in ISO 8601 format. | ||
| resourcetype : str | ||
| Resource type that is blocked | ||
| resourceid : str | ||
| Resource identifier that is blocked | ||
| reason : Optional[str] | ||
| Reason for the block. Can be null if no reason was provided. | ||
| expiredat : Optional[str] | ||
| Block expiration date in ISO 8601 format. Can be null if the block does not expire. | ||
| """ | ||
| createdat: str = Field(..., alias='$createdAt') | ||
| resourcetype: str = Field(..., alias='resourceType') | ||
| resourceid: str = Field(..., alias='resourceId') | ||
| reason: Optional[str] = Field(default=None, alias='reason') | ||
| expiredat: Optional[str] = Field(default=None, alias='expiredAt') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| from typing import Any, Dict, List, Optional, Union, cast | ||
| from pydantic import Field, PrivateAttr | ||
|
|
||
| from .base_model import AppwriteModel | ||
|
|
||
| class DevKey(AppwriteModel): | ||
| """ | ||
| DevKey | ||
|
|
||
| Attributes | ||
| ---------- | ||
| id : str | ||
| Key ID. | ||
| createdat : str | ||
| Key creation date in ISO 8601 format. | ||
| updatedat : str | ||
| Key update date in ISO 8601 format. | ||
| name : str | ||
| Key name. | ||
| expire : str | ||
| Key expiration date in ISO 8601 format. | ||
| secret : str | ||
| Secret key. | ||
| accessedat : str | ||
| Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours. | ||
| sdks : List[Any] | ||
| List of SDK user agents that used this key. | ||
| """ | ||
| id: str = Field(..., alias='$id') | ||
| createdat: str = Field(..., alias='$createdAt') | ||
| updatedat: str = Field(..., alias='$updatedAt') | ||
| name: str = Field(..., alias='name') | ||
| expire: str = Field(..., alias='expire') | ||
| secret: str = Field(..., alias='secret') | ||
| accessedat: str = Field(..., alias='accessedAt') | ||
| sdks: List[Any] = Field(..., alias='sdks') | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.