diff --git a/codegen/templates/rest/_request.py.jinja b/codegen/templates/rest/_request.py.jinja index 1a733154f..26ab3d68a 100644 --- a/codegen/templates/rest/_request.py.jinja +++ b/codegen/templates/rest/_request.py.jinja @@ -113,3 +113,9 @@ error_models={ }, {% endif %} {% endmacro %} + +{% macro build_request_deprecated_decorator(endpoint) %} +{% if endpoint.deprecated -%} +@deprecated("Deprecated API endpoint. See the docstring for more details.") +{% endif %} +{% endmacro%} diff --git a/codegen/templates/rest/client.py.jinja b/codegen/templates/rest/client.py.jinja index 821a005e7..d8b12b4f5 100644 --- a/codegen/templates/rest/client.py.jinja +++ b/codegen/templates/rest/client.py.jinja @@ -4,7 +4,7 @@ {% from "rest/_param.py.jinja" import endpoint_params, endpoint_raw_params, endpoint_model_params %} {% from "rest/_response.py.jinja" import build_response_type %} -{% from "rest/_request.py.jinja" import build_request, build_request_params %} +{% from "rest/_request.py.jinja" import build_request, build_request_params, build_request_deprecated_decorator %} {% from "rest/_docstring.py.jinja" import build_docstring %} from __future__ import annotations @@ -12,6 +12,7 @@ from __future__ import annotations from collections.abc import Mapping from weakref import ref from typing import TYPE_CHECKING, Literal, Optional, Annotated, overload +from typing_extensions import deprecated from pydantic import BaseModel, Field @@ -78,6 +79,7 @@ class {{ pascal_case(tag) }}Client: {% if endpoint.request_body and endpoint.request_body.allowed_models %} {# generate raw data overload #} @overload + {{ build_request_deprecated_decorator(endpoint) }} def {{ endpoint.name }}( self, {{ endpoint_raw_params(endpoint) | indent(8) }} @@ -87,6 +89,7 @@ class {{ pascal_case(tag) }}Client: {# generate model data overload #} {% for model in endpoint.request_body.allowed_models %} @overload + {{ build_request_deprecated_decorator(endpoint) }} def {{ endpoint.name }}( self, {{ endpoint_model_params(endpoint, model) | indent(8) }} @@ -95,6 +98,7 @@ class {{ pascal_case(tag) }}Client: {% endfor %} {% endif %} + {{ build_request_deprecated_decorator(endpoint) }} def {{ endpoint.name }}( self, {{ endpoint_params(endpoint) | indent(8) }} @@ -109,6 +113,7 @@ class {{ pascal_case(tag) }}Client: {% if endpoint.request_body and endpoint.request_body.allowed_models %} {# generate raw data overload #} @overload + {{ build_request_deprecated_decorator(endpoint) }} async def async_{{ endpoint.name }}( self, {{ endpoint_raw_params(endpoint) | indent(8) }} @@ -118,6 +123,7 @@ class {{ pascal_case(tag) }}Client: {# generate model data overload #} {% for model in endpoint.request_body.allowed_models %} @overload + {{ build_request_deprecated_decorator(endpoint) }} async def async_{{ endpoint.name }}( self, {{ endpoint_model_params(endpoint, model) | indent(8) }} @@ -126,6 +132,7 @@ class {{ pascal_case(tag) }}Client: {% endfor %} {% endif %} + {{ build_request_deprecated_decorator(endpoint) }} async def async_{{ endpoint.name }}( self, {{ endpoint_params(endpoint) | indent(8) }} diff --git a/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py b/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py index a22a02527..79e8d9bd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -208,6 +209,7 @@ async def async_list_in_organization( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access( self, org: str, @@ -218,6 +220,7 @@ def set_codespaces_access( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access( self, org: str, @@ -234,6 +237,7 @@ def set_codespaces_access( selected_usernames: Missing[list[str]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access( self, org: str, @@ -282,6 +286,7 @@ def set_codespaces_access( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access( self, org: str, @@ -292,6 +297,7 @@ async def async_set_codespaces_access( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access( self, org: str, @@ -308,6 +314,7 @@ async def async_set_codespaces_access( selected_usernames: Missing[list[str]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access( self, org: str, @@ -356,6 +363,7 @@ async def async_set_codespaces_access( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access_users( self, org: str, @@ -366,6 +374,7 @@ def set_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access_users( self, org: str, @@ -376,6 +385,7 @@ def set_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access_users( self, org: str, @@ -434,6 +444,7 @@ def set_codespaces_access_users( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access_users( self, org: str, @@ -444,6 +455,7 @@ async def async_set_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access_users( self, org: str, @@ -454,6 +466,7 @@ async def async_set_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access_users( self, org: str, @@ -512,6 +525,7 @@ async def async_set_codespaces_access_users( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_codespaces_access_users( self, org: str, @@ -522,6 +536,7 @@ def delete_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_codespaces_access_users( self, org: str, @@ -532,6 +547,7 @@ def delete_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_codespaces_access_users( self, org: str, @@ -590,6 +606,7 @@ def delete_codespaces_access_users( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_codespaces_access_users( self, org: str, @@ -600,6 +617,7 @@ async def async_delete_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_codespaces_access_users( self, org: str, @@ -610,6 +628,7 @@ async def async_delete_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_codespaces_access_users( self, org: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py index 43e843c73..bf1629a77 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -5418,6 +5419,7 @@ async def async_list_push_bypass_requests( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5461,6 +5463,7 @@ def get_security_analysis_settings_for_enterprise( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5505,6 +5508,7 @@ async def async_get_security_analysis_settings_for_enterprise( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def patch_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5517,6 +5521,7 @@ def patch_security_analysis_settings_for_enterprise( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def patch_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5537,6 +5542,7 @@ def patch_security_analysis_settings_for_enterprise( ] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def patch_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5596,6 +5602,7 @@ def patch_security_analysis_settings_for_enterprise( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_patch_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5608,6 +5615,7 @@ async def async_patch_security_analysis_settings_for_enterprise( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_patch_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -5628,6 +5636,7 @@ async def async_patch_security_analysis_settings_for_enterprise( ] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_patch_security_analysis_settings_for_enterprise( self, enterprise: str, @@ -8928,6 +8937,7 @@ async def async_get_enterprise_ruleset_version( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def post_security_product_enablement_for_enterprise( self, enterprise: str, @@ -8976,6 +8986,7 @@ def post_security_product_enablement_for_enterprise( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_post_security_product_enablement_for_enterprise( self, enterprise: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/migrations.py b/githubkit/versions/ghec_v2022_11_28/rest/migrations.py index a45aac584..b5b812924 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/migrations.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/migrations.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -686,6 +687,7 @@ async def async_list_repos_for_org( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_import_status( self, owner: str, @@ -757,6 +759,7 @@ def get_import_status( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_import_status( self, owner: str, @@ -829,6 +832,7 @@ async def async_get_import_status( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def start_import( self, owner: str, @@ -840,6 +844,7 @@ def start_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def start_import( self, owner: str, @@ -855,6 +860,7 @@ def start_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def start_import( self, owner: str, @@ -914,6 +920,7 @@ def start_import( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_start_import( self, owner: str, @@ -925,6 +932,7 @@ async def async_start_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_start_import( self, owner: str, @@ -940,6 +948,7 @@ async def async_start_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_start_import( self, owner: str, @@ -998,6 +1007,7 @@ async def async_start_import( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def cancel_import( self, owner: str, @@ -1034,6 +1044,7 @@ def cancel_import( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_cancel_import( self, owner: str, @@ -1071,6 +1082,7 @@ async def async_cancel_import( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_import( self, owner: str, @@ -1082,6 +1094,7 @@ def update_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_import( self, owner: str, @@ -1096,6 +1109,7 @@ def update_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_import( self, owner: str, @@ -1155,6 +1169,7 @@ def update_import( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_import( self, owner: str, @@ -1166,6 +1181,7 @@ async def async_update_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_import( self, owner: str, @@ -1180,6 +1196,7 @@ async def async_update_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_import( self, owner: str, @@ -1238,6 +1255,7 @@ async def async_update_import( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_commit_authors( self, owner: str, @@ -1284,6 +1302,7 @@ def get_commit_authors( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_commit_authors( self, owner: str, @@ -1331,6 +1350,7 @@ async def async_get_commit_authors( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def map_commit_author( self, owner: str, @@ -1343,6 +1363,7 @@ def map_commit_author( ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def map_commit_author( self, owner: str, @@ -1356,6 +1377,7 @@ def map_commit_author( name: Missing[str] = UNSET, ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def map_commit_author( self, owner: str, @@ -1417,6 +1439,7 @@ def map_commit_author( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_map_commit_author( self, owner: str, @@ -1429,6 +1452,7 @@ async def async_map_commit_author( ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_map_commit_author( self, owner: str, @@ -1442,6 +1466,7 @@ async def async_map_commit_author( name: Missing[str] = UNSET, ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_map_commit_author( self, owner: str, @@ -1502,6 +1527,7 @@ async def async_map_commit_author( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_large_files( self, owner: str, @@ -1539,6 +1565,7 @@ def get_large_files( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_large_files( self, owner: str, @@ -1577,6 +1604,7 @@ async def async_get_large_files( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_lfs_preference( self, owner: str, @@ -1588,6 +1616,7 @@ def set_lfs_preference( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_lfs_preference( self, owner: str, @@ -1599,6 +1628,7 @@ def set_lfs_preference( use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_lfs_preference( self, owner: str, @@ -1659,6 +1689,7 @@ def set_lfs_preference( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_lfs_preference( self, owner: str, @@ -1670,6 +1701,7 @@ async def async_set_lfs_preference( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_lfs_preference( self, owner: str, @@ -1681,6 +1713,7 @@ async def async_set_lfs_preference( use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_lfs_preference( self, owner: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py index 807318a8c..ee38bd876 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -259,6 +260,7 @@ async def async_list( response_model=list[OrganizationSimple], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_custom_roles( self, organization_id: str, @@ -299,6 +301,7 @@ def list_custom_roles( response_model=OrganizationsOrganizationIdCustomRolesGetResponse200, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_custom_roles( self, organization_id: str, @@ -3468,6 +3471,7 @@ async def async_update_custom_repo_role( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_custom_role( self, org: str, @@ -3481,6 +3485,7 @@ def create_custom_role( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_custom_role( self, org: str, @@ -3497,6 +3502,7 @@ def create_custom_role( OrganizationCustomRepositoryRoleTypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_custom_role( self, org: str, @@ -3561,6 +3567,7 @@ def create_custom_role( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_custom_role( self, org: str, @@ -3574,6 +3581,7 @@ async def async_create_custom_role( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_custom_role( self, org: str, @@ -3590,6 +3598,7 @@ async def async_create_custom_role( OrganizationCustomRepositoryRoleTypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_custom_role( self, org: str, @@ -3653,6 +3662,7 @@ async def async_create_custom_role( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_custom_role( self, org: str, @@ -3697,6 +3707,7 @@ def get_custom_role( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_custom_role( self, org: str, @@ -3741,6 +3752,7 @@ async def async_get_custom_role( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_custom_role( self, org: str, @@ -3777,6 +3789,7 @@ def delete_custom_role( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_custom_role( self, org: str, @@ -3814,6 +3827,7 @@ async def async_delete_custom_role( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_custom_role( self, org: str, @@ -3828,6 +3842,7 @@ def update_custom_role( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_custom_role( self, org: str, @@ -3845,6 +3860,7 @@ def update_custom_role( OrganizationCustomRepositoryRoleTypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_custom_role( self, org: str, @@ -3910,6 +3926,7 @@ def update_custom_role( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_custom_role( self, org: str, @@ -3924,6 +3941,7 @@ async def async_update_custom_role( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_custom_role( self, org: str, @@ -3941,6 +3959,7 @@ async def async_update_custom_role( OrganizationCustomRepositoryRoleTypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_custom_role( self, org: str, @@ -4097,6 +4116,7 @@ async def async_list_failed_invitations( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_fine_grained_permissions( self, org: str, @@ -4137,6 +4157,7 @@ def list_fine_grained_permissions( response_model=list[RepositoryFineGrainedPermission], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_fine_grained_permissions( self, org: str, @@ -11787,6 +11808,7 @@ async def async_get_org_ruleset_version( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_security_manager_teams( self, org: str, @@ -11818,6 +11840,7 @@ def list_security_manager_teams( response_model=list[TeamSimple], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_security_manager_teams( self, org: str, @@ -11849,6 +11872,7 @@ async def async_list_security_manager_teams( response_model=list[TeamSimple], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_security_manager_team( self, org: str, @@ -11878,6 +11902,7 @@ def add_security_manager_team( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_security_manager_team( self, org: str, @@ -11907,6 +11932,7 @@ async def async_add_security_manager_team( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_security_manager_team( self, org: str, @@ -11936,6 +11962,7 @@ def remove_security_manager_team( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_security_manager_team( self, org: str, @@ -12504,6 +12531,7 @@ async def async_disable_selected_repository_immutable_releases_organization( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -12524,6 +12552,7 @@ def enable_or_disable_security_product_on_all_org_repos( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -12544,6 +12573,7 @@ def enable_or_disable_security_product_on_all_org_repos( query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -12604,6 +12634,7 @@ def enable_or_disable_security_product_on_all_org_repos( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -12624,6 +12655,7 @@ async def async_enable_or_disable_security_product_on_all_org_repos( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -12644,6 +12676,7 @@ async def async_enable_or_disable_security_product_on_all_org_repos( query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_enable_or_disable_security_product_on_all_org_repos( self, org: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py b/githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py index 059a2bef4..4155750e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/projects_classic.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -67,6 +68,7 @@ def _github(self) -> GitHubCore: "Do not use this client after the client has been collected." ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_card( self, card_id: int, @@ -104,6 +106,7 @@ def get_card( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_card( self, card_id: int, @@ -141,6 +144,7 @@ async def async_get_card( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_card( self, card_id: int, @@ -177,6 +181,7 @@ def delete_card( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_card( self, card_id: int, @@ -214,6 +219,7 @@ async def async_delete_card( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_card( self, card_id: int, @@ -224,6 +230,7 @@ def update_card( ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_card( self, card_id: int, @@ -235,6 +242,7 @@ def update_card( archived: Missing[bool] = UNSET, ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_card( self, card_id: int, @@ -291,6 +299,7 @@ def update_card( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_card( self, card_id: int, @@ -301,6 +310,7 @@ async def async_update_card( ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_card( self, card_id: int, @@ -312,6 +322,7 @@ async def async_update_card( archived: Missing[bool] = UNSET, ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_card( self, card_id: int, @@ -368,6 +379,7 @@ async def async_update_card( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_card( self, card_id: int, @@ -381,6 +393,7 @@ def move_card( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_card( self, card_id: int, @@ -395,6 +408,7 @@ def move_card( ProjectsColumnsCardsCardIdMovesPostResponse201TypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_card( self, card_id: int, @@ -456,6 +470,7 @@ def move_card( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_card( self, card_id: int, @@ -469,6 +484,7 @@ async def async_move_card( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_card( self, card_id: int, @@ -483,6 +499,7 @@ async def async_move_card( ProjectsColumnsCardsCardIdMovesPostResponse201TypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_card( self, card_id: int, @@ -543,6 +560,7 @@ async def async_move_card( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_column( self, column_id: int, @@ -580,6 +598,7 @@ def get_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_column( self, column_id: int, @@ -617,6 +636,7 @@ async def async_get_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_column( self, column_id: int, @@ -652,6 +672,7 @@ def delete_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_column( self, column_id: int, @@ -688,6 +709,7 @@ async def async_delete_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_column( self, column_id: int, @@ -698,6 +720,7 @@ def update_column( ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_column( self, column_id: int, @@ -708,6 +731,7 @@ def update_column( name: str, ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_column( self, column_id: int, @@ -757,6 +781,7 @@ def update_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_column( self, column_id: int, @@ -767,6 +792,7 @@ async def async_update_column( ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_column( self, column_id: int, @@ -777,6 +803,7 @@ async def async_update_column( name: str, ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_column( self, column_id: int, @@ -825,6 +852,7 @@ async def async_update_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_cards( self, column_id: int, @@ -871,6 +899,7 @@ def list_cards( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_cards( self, column_id: int, @@ -918,6 +947,7 @@ async def async_list_cards( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_card( self, column_id: int, @@ -931,6 +961,7 @@ def create_card( ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_card( self, column_id: int, @@ -942,6 +973,7 @@ def create_card( ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_card( self, column_id: int, @@ -953,6 +985,7 @@ def create_card( content_type: str, ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_card( self, column_id: int, @@ -1025,6 +1058,7 @@ def create_card( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_card( self, column_id: int, @@ -1038,6 +1072,7 @@ async def async_create_card( ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_card( self, column_id: int, @@ -1049,6 +1084,7 @@ async def async_create_card( ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_card( self, column_id: int, @@ -1060,6 +1096,7 @@ async def async_create_card( content_type: str, ) -> Response[ProjectCard, ProjectCardTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_card( self, column_id: int, @@ -1132,6 +1169,7 @@ async def async_create_card( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_column( self, column_id: int, @@ -1145,6 +1183,7 @@ def move_column( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_column( self, column_id: int, @@ -1158,6 +1197,7 @@ def move_column( ProjectsColumnsColumnIdMovesPostResponse201TypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_column( self, column_id: int, @@ -1216,6 +1256,7 @@ def move_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_column( self, column_id: int, @@ -1229,6 +1270,7 @@ async def async_move_column( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_column( self, column_id: int, @@ -1242,6 +1284,7 @@ async def async_move_column( ProjectsColumnsColumnIdMovesPostResponse201TypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_column( self, column_id: int, @@ -1299,6 +1342,7 @@ async def async_move_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_collaborators( self, project_id: int, @@ -1347,6 +1391,7 @@ def list_collaborators( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_collaborators( self, project_id: int, @@ -1396,6 +1441,7 @@ async def async_list_collaborators( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_collaborator( self, project_id: int, @@ -1409,6 +1455,7 @@ def add_collaborator( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_collaborator( self, project_id: int, @@ -1420,6 +1467,7 @@ def add_collaborator( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_collaborator( self, project_id: int, @@ -1481,6 +1529,7 @@ def add_collaborator( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_collaborator( self, project_id: int, @@ -1494,6 +1543,7 @@ async def async_add_collaborator( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_collaborator( self, project_id: int, @@ -1505,6 +1555,7 @@ async def async_add_collaborator( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_collaborator( self, project_id: int, @@ -1565,6 +1616,7 @@ async def async_add_collaborator( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_collaborator( self, project_id: int, @@ -1603,6 +1655,7 @@ def remove_collaborator( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_collaborator( self, project_id: int, @@ -1641,6 +1694,7 @@ async def async_remove_collaborator( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_permission_for_user( self, project_id: int, @@ -1682,6 +1736,7 @@ def get_permission_for_user( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_permission_for_user( self, project_id: int, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/reactions.py b/githubkit/versions/ghec_v2022_11_28/rest/reactions.py index 882739ee3..6d67df31e 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/reactions.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/reactions.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -2379,6 +2380,7 @@ async def async_delete_for_release( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_for_team_discussion_comment_legacy( self, team_id: int, @@ -2430,6 +2432,7 @@ def list_for_team_discussion_comment_legacy( response_model=list[Reaction], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_for_team_discussion_comment_legacy( self, team_id: int, @@ -2482,6 +2485,7 @@ async def async_list_for_team_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2494,6 +2498,7 @@ def create_for_team_discussion_comment_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2508,6 +2513,7 @@ def create_for_team_discussion_comment_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2568,6 +2574,7 @@ def create_for_team_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2580,6 +2587,7 @@ async def async_create_for_team_discussion_comment_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2594,6 +2602,7 @@ async def async_create_for_team_discussion_comment_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2653,6 +2662,7 @@ async def async_create_for_team_discussion_comment_legacy( response_model=Reaction, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_for_team_discussion_legacy( self, team_id: int, @@ -2703,6 +2713,7 @@ def list_for_team_discussion_legacy( response_model=list[Reaction], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_for_team_discussion_legacy( self, team_id: int, @@ -2754,6 +2765,7 @@ async def async_list_for_team_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_legacy( self, team_id: int, @@ -2765,6 +2777,7 @@ def create_for_team_discussion_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_legacy( self, team_id: int, @@ -2778,6 +2791,7 @@ def create_for_team_discussion_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_legacy( self, team_id: int, @@ -2836,6 +2850,7 @@ def create_for_team_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_legacy( self, team_id: int, @@ -2847,6 +2862,7 @@ async def async_create_for_team_discussion_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_legacy( self, team_id: int, @@ -2860,6 +2876,7 @@ async def async_create_for_team_discussion_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_legacy( self, team_id: int, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/repos.py b/githubkit/versions/ghec_v2022_11_28/rest/repos.py index 12f0ff875..53494ce79 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/repos.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/repos.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -21593,6 +21594,7 @@ async def async_list_tags( response_model=list[Tag], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_tag_protection( self, owner: str, @@ -21633,6 +21635,7 @@ def list_tag_protection( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_tag_protection( self, owner: str, @@ -21674,6 +21677,7 @@ async def async_list_tag_protection( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_tag_protection( self, owner: str, @@ -21685,6 +21689,7 @@ def create_tag_protection( ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_tag_protection( self, owner: str, @@ -21696,6 +21701,7 @@ def create_tag_protection( pattern: str, ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_tag_protection( self, owner: str, @@ -21752,6 +21758,7 @@ def create_tag_protection( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_tag_protection( self, owner: str, @@ -21763,6 +21770,7 @@ async def async_create_tag_protection( ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_tag_protection( self, owner: str, @@ -21774,6 +21782,7 @@ async def async_create_tag_protection( pattern: str, ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_tag_protection( self, owner: str, @@ -21829,6 +21838,7 @@ async def async_create_tag_protection( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_tag_protection( self, owner: str, @@ -21868,6 +21878,7 @@ def delete_tag_protection( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_tag_protection( self, owner: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/teams.py b/githubkit/versions/ghec_v2022_11_28/rest/teams.py index fcb149598..28df1ad6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/teams.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/teams.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -2804,6 +2805,7 @@ async def async_remove_membership_for_user_in_org( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_projects_in_org( self, org: str, @@ -2845,6 +2847,7 @@ def list_projects_in_org( response_model=list[TeamProject], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_projects_in_org( self, org: str, @@ -2886,6 +2889,7 @@ async def async_list_projects_in_org( response_model=list[TeamProject], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def check_permissions_for_project_in_org( self, org: str, @@ -2921,6 +2925,7 @@ def check_permissions_for_project_in_org( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_check_permissions_for_project_in_org( self, org: str, @@ -2957,6 +2962,7 @@ async def async_check_permissions_for_project_in_org( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_in_org( self, org: str, @@ -2971,6 +2977,7 @@ def add_or_update_project_permissions_in_org( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_in_org( self, org: str, @@ -2983,6 +2990,7 @@ def add_or_update_project_permissions_in_org( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_in_org( self, org: str, @@ -3041,6 +3049,7 @@ def add_or_update_project_permissions_in_org( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_in_org( self, org: str, @@ -3055,6 +3064,7 @@ async def async_add_or_update_project_permissions_in_org( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_in_org( self, org: str, @@ -3067,6 +3077,7 @@ async def async_add_or_update_project_permissions_in_org( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_in_org( self, org: str, @@ -3124,6 +3135,7 @@ async def async_add_or_update_project_permissions_in_org( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_project_in_org( self, org: str, @@ -3155,6 +3167,7 @@ def remove_project_in_org( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_project_in_org( self, org: str, @@ -3886,6 +3899,7 @@ async def async_list_child_in_org( response_model=list[Team], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_legacy( self, team_id: int, @@ -3920,6 +3934,7 @@ def get_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_legacy( self, team_id: int, @@ -3954,6 +3969,7 @@ async def async_get_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_legacy( self, team_id: int, @@ -3992,6 +4008,7 @@ def delete_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_legacy( self, team_id: int, @@ -4031,6 +4048,7 @@ async def async_delete_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_legacy( self, team_id: int, @@ -4041,6 +4059,7 @@ def update_legacy( ) -> Response[TeamFull, TeamFullTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_legacy( self, team_id: int, @@ -4058,6 +4077,7 @@ def update_legacy( parent_team_id: Missing[Union[int, None]] = UNSET, ) -> Response[TeamFull, TeamFullTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_legacy( self, team_id: int, @@ -4112,6 +4132,7 @@ def update_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_legacy( self, team_id: int, @@ -4122,6 +4143,7 @@ async def async_update_legacy( ) -> Response[TeamFull, TeamFullTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_legacy( self, team_id: int, @@ -4139,6 +4161,7 @@ async def async_update_legacy( parent_team_id: Missing[Union[int, None]] = UNSET, ) -> Response[TeamFull, TeamFullTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_legacy( self, team_id: int, @@ -4192,6 +4215,7 @@ async def async_update_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_discussions_legacy( self, team_id: int, @@ -4237,6 +4261,7 @@ def list_discussions_legacy( response_model=list[TeamDiscussion], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_discussions_legacy( self, team_id: int, @@ -4283,6 +4308,7 @@ async def async_list_discussions_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_legacy( self, team_id: int, @@ -4293,6 +4319,7 @@ def create_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_legacy( self, team_id: int, @@ -4305,6 +4332,7 @@ def create_discussion_legacy( private: Missing[bool] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_legacy( self, team_id: int, @@ -4355,6 +4383,7 @@ def create_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_legacy( self, team_id: int, @@ -4365,6 +4394,7 @@ async def async_create_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_legacy( self, team_id: int, @@ -4377,6 +4407,7 @@ async def async_create_discussion_legacy( private: Missing[bool] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_legacy( self, team_id: int, @@ -4426,6 +4457,7 @@ async def async_create_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_discussion_legacy( self, team_id: int, @@ -4462,6 +4494,7 @@ def get_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_discussion_legacy( self, team_id: int, @@ -4498,6 +4531,7 @@ async def async_get_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_discussion_legacy( self, team_id: int, @@ -4531,6 +4565,7 @@ def delete_discussion_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_discussion_legacy( self, team_id: int, @@ -4565,6 +4600,7 @@ async def async_delete_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_legacy( self, team_id: int, @@ -4576,6 +4612,7 @@ def update_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_legacy( self, team_id: int, @@ -4588,6 +4625,7 @@ def update_discussion_legacy( body: Missing[str] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_legacy( self, team_id: int, @@ -4642,6 +4680,7 @@ def update_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_legacy( self, team_id: int, @@ -4653,6 +4692,7 @@ async def async_update_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_legacy( self, team_id: int, @@ -4665,6 +4705,7 @@ async def async_update_discussion_legacy( body: Missing[str] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_legacy( self, team_id: int, @@ -4718,6 +4759,7 @@ async def async_update_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_discussion_comments_legacy( self, team_id: int, @@ -4766,6 +4808,7 @@ def list_discussion_comments_legacy( response_model=list[TeamDiscussionComment], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_discussion_comments_legacy( self, team_id: int, @@ -4815,6 +4858,7 @@ async def async_list_discussion_comments_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_comment_legacy( self, team_id: int, @@ -4826,6 +4870,7 @@ def create_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_comment_legacy( self, team_id: int, @@ -4837,6 +4882,7 @@ def create_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_comment_legacy( self, team_id: int, @@ -4895,6 +4941,7 @@ def create_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_comment_legacy( self, team_id: int, @@ -4906,6 +4953,7 @@ async def async_create_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_comment_legacy( self, team_id: int, @@ -4917,6 +4965,7 @@ async def async_create_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_comment_legacy( self, team_id: int, @@ -4974,6 +5023,7 @@ async def async_create_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_discussion_comment_legacy( self, team_id: int, @@ -5011,6 +5061,7 @@ def get_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_discussion_comment_legacy( self, team_id: int, @@ -5048,6 +5099,7 @@ async def async_get_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_discussion_comment_legacy( self, team_id: int, @@ -5082,6 +5134,7 @@ def delete_discussion_comment_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_discussion_comment_legacy( self, team_id: int, @@ -5117,6 +5170,7 @@ async def async_delete_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_comment_legacy( self, team_id: int, @@ -5129,6 +5183,7 @@ def update_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_comment_legacy( self, team_id: int, @@ -5141,6 +5196,7 @@ def update_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_comment_legacy( self, team_id: int, @@ -5199,6 +5255,7 @@ def update_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_comment_legacy( self, team_id: int, @@ -5211,6 +5268,7 @@ async def async_update_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_comment_legacy( self, team_id: int, @@ -5223,6 +5281,7 @@ async def async_update_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_comment_legacy( self, team_id: int, @@ -5280,6 +5339,7 @@ async def async_update_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_pending_invitations_legacy( self, team_id: int, @@ -5323,6 +5383,7 @@ def list_pending_invitations_legacy( response_model=list[OrganizationInvitation], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_pending_invitations_legacy( self, team_id: int, @@ -5366,6 +5427,7 @@ async def async_list_pending_invitations_legacy( response_model=list[OrganizationInvitation], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_members_legacy( self, team_id: int, @@ -5412,6 +5474,7 @@ def list_members_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_members_legacy( self, team_id: int, @@ -5458,6 +5521,7 @@ async def async_list_members_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_member_legacy( self, team_id: int, @@ -5491,6 +5555,7 @@ def get_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_member_legacy( self, team_id: int, @@ -5524,6 +5589,7 @@ async def async_get_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_member_legacy( self, team_id: int, @@ -5568,6 +5634,7 @@ def add_member_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_member_legacy( self, team_id: int, @@ -5612,6 +5679,7 @@ async def async_add_member_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_member_legacy( self, team_id: int, @@ -5650,6 +5718,7 @@ def remove_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_member_legacy( self, team_id: int, @@ -5688,6 +5757,7 @@ async def async_remove_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_membership_for_user_legacy( self, team_id: int, @@ -5732,6 +5802,7 @@ def get_membership_for_user_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_membership_for_user_legacy( self, team_id: int, @@ -5777,6 +5848,7 @@ async def async_get_membership_for_user_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5788,6 +5860,7 @@ def add_or_update_membership_for_user_legacy( ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5799,6 +5872,7 @@ def add_or_update_membership_for_user_legacy( role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5862,6 +5936,7 @@ def add_or_update_membership_for_user_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5873,6 +5948,7 @@ async def async_add_or_update_membership_for_user_legacy( ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5884,6 +5960,7 @@ async def async_add_or_update_membership_for_user_legacy( role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5946,6 +6023,7 @@ async def async_add_or_update_membership_for_user_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_membership_for_user_legacy( self, team_id: int, @@ -5983,6 +6061,7 @@ def remove_membership_for_user_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_membership_for_user_legacy( self, team_id: int, @@ -6020,6 +6099,7 @@ async def async_remove_membership_for_user_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_projects_legacy( self, team_id: int, @@ -6063,6 +6143,7 @@ def list_projects_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_projects_legacy( self, team_id: int, @@ -6106,6 +6187,7 @@ async def async_list_projects_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def check_permissions_for_project_legacy( self, team_id: int, @@ -6140,6 +6222,7 @@ def check_permissions_for_project_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_check_permissions_for_project_legacy( self, team_id: int, @@ -6175,6 +6258,7 @@ async def async_check_permissions_for_project_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_legacy( self, team_id: int, @@ -6186,6 +6270,7 @@ def add_or_update_project_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_legacy( self, team_id: int, @@ -6197,6 +6282,7 @@ def add_or_update_project_permissions_legacy( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_legacy( self, team_id: int, @@ -6252,6 +6338,7 @@ def add_or_update_project_permissions_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_legacy( self, team_id: int, @@ -6263,6 +6350,7 @@ async def async_add_or_update_project_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_legacy( self, team_id: int, @@ -6274,6 +6362,7 @@ async def async_add_or_update_project_permissions_legacy( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_legacy( self, team_id: int, @@ -6328,6 +6417,7 @@ async def async_add_or_update_project_permissions_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_project_legacy( self, team_id: int, @@ -6364,6 +6454,7 @@ def remove_project_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_project_legacy( self, team_id: int, @@ -6400,6 +6491,7 @@ async def async_remove_project_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_repos_legacy( self, team_id: int, @@ -6442,6 +6534,7 @@ def list_repos_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_repos_legacy( self, team_id: int, @@ -6484,6 +6577,7 @@ async def async_list_repos_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def check_permissions_for_repo_legacy( self, team_id: int, @@ -6523,6 +6617,7 @@ def check_permissions_for_repo_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_check_permissions_for_repo_legacy( self, team_id: int, @@ -6563,6 +6658,7 @@ async def async_check_permissions_for_repo_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_repo_permissions_legacy( self, team_id: int, @@ -6575,6 +6671,7 @@ def add_or_update_repo_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_repo_permissions_legacy( self, team_id: int, @@ -6587,6 +6684,7 @@ def add_or_update_repo_permissions_legacy( permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_repo_permissions_legacy( self, team_id: int, @@ -6644,6 +6742,7 @@ def add_or_update_repo_permissions_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_repo_permissions_legacy( self, team_id: int, @@ -6656,6 +6755,7 @@ async def async_add_or_update_repo_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_repo_permissions_legacy( self, team_id: int, @@ -6668,6 +6768,7 @@ async def async_add_or_update_repo_permissions_legacy( permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_repo_permissions_legacy( self, team_id: int, @@ -6724,6 +6825,7 @@ async def async_add_or_update_repo_permissions_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_repo_legacy( self, team_id: int, @@ -6756,6 +6858,7 @@ def remove_repo_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_repo_legacy( self, team_id: int, @@ -6788,6 +6891,7 @@ async def async_remove_repo_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_idp_groups_for_legacy( self, team_id: int, @@ -6827,6 +6931,7 @@ def list_idp_groups_for_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_idp_groups_for_legacy( self, team_id: int, @@ -6867,6 +6972,7 @@ async def async_list_idp_groups_for_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_or_update_idp_group_connections_legacy( self, team_id: int, @@ -6877,6 +6983,7 @@ def create_or_update_idp_group_connections_legacy( ) -> Response[GroupMapping, GroupMappingTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_or_update_idp_group_connections_legacy( self, team_id: int, @@ -6888,6 +6995,7 @@ def create_or_update_idp_group_connections_legacy( synced_at: Missing[str] = UNSET, ) -> Response[GroupMapping, GroupMappingTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_or_update_idp_group_connections_legacy( self, team_id: int, @@ -6945,6 +7053,7 @@ def create_or_update_idp_group_connections_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_or_update_idp_group_connections_legacy( self, team_id: int, @@ -6955,6 +7064,7 @@ async def async_create_or_update_idp_group_connections_legacy( ) -> Response[GroupMapping, GroupMappingTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_or_update_idp_group_connections_legacy( self, team_id: int, @@ -6966,6 +7076,7 @@ async def async_create_or_update_idp_group_connections_legacy( synced_at: Missing[str] = UNSET, ) -> Response[GroupMapping, GroupMappingTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_or_update_idp_group_connections_legacy( self, team_id: int, @@ -7022,6 +7133,7 @@ async def async_create_or_update_idp_group_connections_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_child_legacy( self, team_id: int, @@ -7066,6 +7178,7 @@ def list_child_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_child_legacy( self, team_id: int, diff --git a/githubkit/versions/v2022_11_28/rest/codespaces.py b/githubkit/versions/v2022_11_28/rest/codespaces.py index 9b27b6e31..55aa51431 100644 --- a/githubkit/versions/v2022_11_28/rest/codespaces.py +++ b/githubkit/versions/v2022_11_28/rest/codespaces.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -208,6 +209,7 @@ async def async_list_in_organization( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access( self, org: str, @@ -218,6 +220,7 @@ def set_codespaces_access( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access( self, org: str, @@ -234,6 +237,7 @@ def set_codespaces_access( selected_usernames: Missing[list[str]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access( self, org: str, @@ -282,6 +286,7 @@ def set_codespaces_access( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access( self, org: str, @@ -292,6 +297,7 @@ async def async_set_codespaces_access( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access( self, org: str, @@ -308,6 +314,7 @@ async def async_set_codespaces_access( selected_usernames: Missing[list[str]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access( self, org: str, @@ -356,6 +363,7 @@ async def async_set_codespaces_access( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access_users( self, org: str, @@ -366,6 +374,7 @@ def set_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access_users( self, org: str, @@ -376,6 +385,7 @@ def set_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_codespaces_access_users( self, org: str, @@ -434,6 +444,7 @@ def set_codespaces_access_users( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access_users( self, org: str, @@ -444,6 +455,7 @@ async def async_set_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access_users( self, org: str, @@ -454,6 +466,7 @@ async def async_set_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_codespaces_access_users( self, org: str, @@ -512,6 +525,7 @@ async def async_set_codespaces_access_users( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_codespaces_access_users( self, org: str, @@ -522,6 +536,7 @@ def delete_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_codespaces_access_users( self, org: str, @@ -532,6 +547,7 @@ def delete_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_codespaces_access_users( self, org: str, @@ -590,6 +606,7 @@ def delete_codespaces_access_users( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_codespaces_access_users( self, org: str, @@ -600,6 +617,7 @@ async def async_delete_codespaces_access_users( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_codespaces_access_users( self, org: str, @@ -610,6 +628,7 @@ async def async_delete_codespaces_access_users( selected_usernames: list[str], ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_codespaces_access_users( self, org: str, diff --git a/githubkit/versions/v2022_11_28/rest/migrations.py b/githubkit/versions/v2022_11_28/rest/migrations.py index dea5e179a..15dfae2f1 100644 --- a/githubkit/versions/v2022_11_28/rest/migrations.py +++ b/githubkit/versions/v2022_11_28/rest/migrations.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -686,6 +687,7 @@ async def async_list_repos_for_org( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_import_status( self, owner: str, @@ -757,6 +759,7 @@ def get_import_status( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_import_status( self, owner: str, @@ -829,6 +832,7 @@ async def async_get_import_status( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def start_import( self, owner: str, @@ -840,6 +844,7 @@ def start_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def start_import( self, owner: str, @@ -855,6 +860,7 @@ def start_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def start_import( self, owner: str, @@ -914,6 +920,7 @@ def start_import( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_start_import( self, owner: str, @@ -925,6 +932,7 @@ async def async_start_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_start_import( self, owner: str, @@ -940,6 +948,7 @@ async def async_start_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_start_import( self, owner: str, @@ -998,6 +1007,7 @@ async def async_start_import( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def cancel_import( self, owner: str, @@ -1034,6 +1044,7 @@ def cancel_import( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_cancel_import( self, owner: str, @@ -1071,6 +1082,7 @@ async def async_cancel_import( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_import( self, owner: str, @@ -1082,6 +1094,7 @@ def update_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_import( self, owner: str, @@ -1096,6 +1109,7 @@ def update_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_import( self, owner: str, @@ -1155,6 +1169,7 @@ def update_import( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_import( self, owner: str, @@ -1166,6 +1181,7 @@ async def async_update_import( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_import( self, owner: str, @@ -1180,6 +1196,7 @@ async def async_update_import( tfvc_project: Missing[str] = UNSET, ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_import( self, owner: str, @@ -1238,6 +1255,7 @@ async def async_update_import( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_commit_authors( self, owner: str, @@ -1284,6 +1302,7 @@ def get_commit_authors( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_commit_authors( self, owner: str, @@ -1331,6 +1350,7 @@ async def async_get_commit_authors( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def map_commit_author( self, owner: str, @@ -1343,6 +1363,7 @@ def map_commit_author( ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def map_commit_author( self, owner: str, @@ -1356,6 +1377,7 @@ def map_commit_author( name: Missing[str] = UNSET, ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def map_commit_author( self, owner: str, @@ -1417,6 +1439,7 @@ def map_commit_author( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_map_commit_author( self, owner: str, @@ -1429,6 +1452,7 @@ async def async_map_commit_author( ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_map_commit_author( self, owner: str, @@ -1442,6 +1466,7 @@ async def async_map_commit_author( name: Missing[str] = UNSET, ) -> Response[PorterAuthor, PorterAuthorTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_map_commit_author( self, owner: str, @@ -1502,6 +1527,7 @@ async def async_map_commit_author( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_large_files( self, owner: str, @@ -1539,6 +1565,7 @@ def get_large_files( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_large_files( self, owner: str, @@ -1577,6 +1604,7 @@ async def async_get_large_files( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_lfs_preference( self, owner: str, @@ -1588,6 +1616,7 @@ def set_lfs_preference( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_lfs_preference( self, owner: str, @@ -1599,6 +1628,7 @@ def set_lfs_preference( use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def set_lfs_preference( self, owner: str, @@ -1659,6 +1689,7 @@ def set_lfs_preference( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_lfs_preference( self, owner: str, @@ -1670,6 +1701,7 @@ async def async_set_lfs_preference( ) -> Response[Import, ImportTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_lfs_preference( self, owner: str, @@ -1681,6 +1713,7 @@ async def async_set_lfs_preference( use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import, ImportTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_set_lfs_preference( self, owner: str, diff --git a/githubkit/versions/v2022_11_28/rest/orgs.py b/githubkit/versions/v2022_11_28/rest/orgs.py index 53ead08ff..886d7e07e 100644 --- a/githubkit/versions/v2022_11_28/rest/orgs.py +++ b/githubkit/versions/v2022_11_28/rest/orgs.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -9224,6 +9225,7 @@ async def async_get_org_ruleset_version( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_security_manager_teams( self, org: str, @@ -9255,6 +9257,7 @@ def list_security_manager_teams( response_model=list[TeamSimple], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_security_manager_teams( self, org: str, @@ -9286,6 +9289,7 @@ async def async_list_security_manager_teams( response_model=list[TeamSimple], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_security_manager_team( self, org: str, @@ -9315,6 +9319,7 @@ def add_security_manager_team( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_security_manager_team( self, org: str, @@ -9344,6 +9349,7 @@ async def async_add_security_manager_team( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_security_manager_team( self, org: str, @@ -9373,6 +9379,7 @@ def remove_security_manager_team( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_security_manager_team( self, org: str, @@ -9941,6 +9948,7 @@ async def async_disable_selected_repository_immutable_releases_organization( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -9961,6 +9969,7 @@ def enable_or_disable_security_product_on_all_org_repos( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -9981,6 +9990,7 @@ def enable_or_disable_security_product_on_all_org_repos( query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -10041,6 +10051,7 @@ def enable_or_disable_security_product_on_all_org_repos( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -10061,6 +10072,7 @@ async def async_enable_or_disable_security_product_on_all_org_repos( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_enable_or_disable_security_product_on_all_org_repos( self, org: str, @@ -10081,6 +10093,7 @@ async def async_enable_or_disable_security_product_on_all_org_repos( query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_enable_or_disable_security_product_on_all_org_repos( self, org: str, diff --git a/githubkit/versions/v2022_11_28/rest/projects_classic.py b/githubkit/versions/v2022_11_28/rest/projects_classic.py index e2072d29c..f1e3d07a5 100644 --- a/githubkit/versions/v2022_11_28/rest/projects_classic.py +++ b/githubkit/versions/v2022_11_28/rest/projects_classic.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -59,6 +60,7 @@ def _github(self) -> GitHubCore: "Do not use this client after the client has been collected." ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_column( self, column_id: int, @@ -96,6 +98,7 @@ def get_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_column( self, column_id: int, @@ -133,6 +136,7 @@ async def async_get_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_column( self, column_id: int, @@ -168,6 +172,7 @@ def delete_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_column( self, column_id: int, @@ -204,6 +209,7 @@ async def async_delete_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_column( self, column_id: int, @@ -214,6 +220,7 @@ def update_column( ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_column( self, column_id: int, @@ -224,6 +231,7 @@ def update_column( name: str, ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_column( self, column_id: int, @@ -273,6 +281,7 @@ def update_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_column( self, column_id: int, @@ -283,6 +292,7 @@ async def async_update_column( ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_column( self, column_id: int, @@ -293,6 +303,7 @@ async def async_update_column( name: str, ) -> Response[ProjectColumn, ProjectColumnTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_column( self, column_id: int, @@ -342,6 +353,7 @@ async def async_update_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_column( self, column_id: int, @@ -355,6 +367,7 @@ def move_column( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_column( self, column_id: int, @@ -368,6 +381,7 @@ def move_column( ProjectsColumnsColumnIdMovesPostResponse201TypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def move_column( self, column_id: int, @@ -426,6 +440,7 @@ def move_column( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_column( self, column_id: int, @@ -439,6 +454,7 @@ async def async_move_column( ]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_column( self, column_id: int, @@ -452,6 +468,7 @@ async def async_move_column( ProjectsColumnsColumnIdMovesPostResponse201TypeForResponse, ]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_move_column( self, column_id: int, @@ -509,6 +526,7 @@ async def async_move_column( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_collaborators( self, project_id: int, @@ -557,6 +575,7 @@ def list_collaborators( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_collaborators( self, project_id: int, @@ -606,6 +625,7 @@ async def async_list_collaborators( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_collaborator( self, project_id: int, @@ -619,6 +639,7 @@ def add_collaborator( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_collaborator( self, project_id: int, @@ -630,6 +651,7 @@ def add_collaborator( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_collaborator( self, project_id: int, @@ -691,6 +713,7 @@ def add_collaborator( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_collaborator( self, project_id: int, @@ -704,6 +727,7 @@ async def async_add_collaborator( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_collaborator( self, project_id: int, @@ -715,6 +739,7 @@ async def async_add_collaborator( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_collaborator( self, project_id: int, @@ -775,6 +800,7 @@ async def async_add_collaborator( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_collaborator( self, project_id: int, @@ -813,6 +839,7 @@ def remove_collaborator( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_collaborator( self, project_id: int, @@ -851,6 +878,7 @@ async def async_remove_collaborator( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_permission_for_user( self, project_id: int, @@ -892,6 +920,7 @@ def get_permission_for_user( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_permission_for_user( self, project_id: int, diff --git a/githubkit/versions/v2022_11_28/rest/reactions.py b/githubkit/versions/v2022_11_28/rest/reactions.py index b6536df77..7588cae01 100644 --- a/githubkit/versions/v2022_11_28/rest/reactions.py +++ b/githubkit/versions/v2022_11_28/rest/reactions.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -2379,6 +2380,7 @@ async def async_delete_for_release( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_for_team_discussion_comment_legacy( self, team_id: int, @@ -2430,6 +2432,7 @@ def list_for_team_discussion_comment_legacy( response_model=list[Reaction], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_for_team_discussion_comment_legacy( self, team_id: int, @@ -2482,6 +2485,7 @@ async def async_list_for_team_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2494,6 +2498,7 @@ def create_for_team_discussion_comment_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2508,6 +2513,7 @@ def create_for_team_discussion_comment_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2568,6 +2574,7 @@ def create_for_team_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2580,6 +2587,7 @@ async def async_create_for_team_discussion_comment_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2594,6 +2602,7 @@ async def async_create_for_team_discussion_comment_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_comment_legacy( self, team_id: int, @@ -2653,6 +2662,7 @@ async def async_create_for_team_discussion_comment_legacy( response_model=Reaction, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_for_team_discussion_legacy( self, team_id: int, @@ -2703,6 +2713,7 @@ def list_for_team_discussion_legacy( response_model=list[Reaction], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_for_team_discussion_legacy( self, team_id: int, @@ -2754,6 +2765,7 @@ async def async_list_for_team_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_legacy( self, team_id: int, @@ -2765,6 +2777,7 @@ def create_for_team_discussion_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_legacy( self, team_id: int, @@ -2778,6 +2791,7 @@ def create_for_team_discussion_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_for_team_discussion_legacy( self, team_id: int, @@ -2836,6 +2850,7 @@ def create_for_team_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_legacy( self, team_id: int, @@ -2847,6 +2862,7 @@ async def async_create_for_team_discussion_legacy( ) -> Response[Reaction, ReactionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_legacy( self, team_id: int, @@ -2860,6 +2876,7 @@ async def async_create_for_team_discussion_legacy( ], ) -> Response[Reaction, ReactionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_for_team_discussion_legacy( self, team_id: int, diff --git a/githubkit/versions/v2022_11_28/rest/repos.py b/githubkit/versions/v2022_11_28/rest/repos.py index b91419b73..2aba5cd66 100644 --- a/githubkit/versions/v2022_11_28/rest/repos.py +++ b/githubkit/versions/v2022_11_28/rest/repos.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -20623,6 +20624,7 @@ async def async_list_tags( response_model=list[Tag], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_tag_protection( self, owner: str, @@ -20663,6 +20665,7 @@ def list_tag_protection( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_tag_protection( self, owner: str, @@ -20704,6 +20707,7 @@ async def async_list_tag_protection( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_tag_protection( self, owner: str, @@ -20715,6 +20719,7 @@ def create_tag_protection( ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_tag_protection( self, owner: str, @@ -20726,6 +20731,7 @@ def create_tag_protection( pattern: str, ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_tag_protection( self, owner: str, @@ -20782,6 +20788,7 @@ def create_tag_protection( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_tag_protection( self, owner: str, @@ -20793,6 +20800,7 @@ async def async_create_tag_protection( ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_tag_protection( self, owner: str, @@ -20804,6 +20812,7 @@ async def async_create_tag_protection( pattern: str, ) -> Response[TagProtection, TagProtectionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_tag_protection( self, owner: str, @@ -20859,6 +20868,7 @@ async def async_create_tag_protection( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_tag_protection( self, owner: str, @@ -20898,6 +20908,7 @@ def delete_tag_protection( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_tag_protection( self, owner: str, diff --git a/githubkit/versions/v2022_11_28/rest/teams.py b/githubkit/versions/v2022_11_28/rest/teams.py index d3b433e7a..31acd2fb0 100644 --- a/githubkit/versions/v2022_11_28/rest/teams.py +++ b/githubkit/versions/v2022_11_28/rest/teams.py @@ -11,6 +11,7 @@ from collections.abc import Mapping from typing import TYPE_CHECKING, Literal, Optional, overload +from typing_extensions import deprecated from weakref import ref from pydantic import BaseModel @@ -2281,6 +2282,7 @@ async def async_remove_membership_for_user_in_org( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_projects_in_org( self, org: str, @@ -2322,6 +2324,7 @@ def list_projects_in_org( response_model=list[TeamProject], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_projects_in_org( self, org: str, @@ -2363,6 +2366,7 @@ async def async_list_projects_in_org( response_model=list[TeamProject], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def check_permissions_for_project_in_org( self, org: str, @@ -2398,6 +2402,7 @@ def check_permissions_for_project_in_org( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_check_permissions_for_project_in_org( self, org: str, @@ -2434,6 +2439,7 @@ async def async_check_permissions_for_project_in_org( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_in_org( self, org: str, @@ -2448,6 +2454,7 @@ def add_or_update_project_permissions_in_org( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_in_org( self, org: str, @@ -2460,6 +2467,7 @@ def add_or_update_project_permissions_in_org( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_in_org( self, org: str, @@ -2518,6 +2526,7 @@ def add_or_update_project_permissions_in_org( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_in_org( self, org: str, @@ -2532,6 +2541,7 @@ async def async_add_or_update_project_permissions_in_org( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_in_org( self, org: str, @@ -2544,6 +2554,7 @@ async def async_add_or_update_project_permissions_in_org( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_in_org( self, org: str, @@ -2601,6 +2612,7 @@ async def async_add_or_update_project_permissions_in_org( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_project_in_org( self, org: str, @@ -2632,6 +2644,7 @@ def remove_project_in_org( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_project_in_org( self, org: str, @@ -3135,6 +3148,7 @@ async def async_list_child_in_org( response_model=list[Team], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_legacy( self, team_id: int, @@ -3169,6 +3183,7 @@ def get_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_legacy( self, team_id: int, @@ -3203,6 +3218,7 @@ async def async_get_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_legacy( self, team_id: int, @@ -3241,6 +3257,7 @@ def delete_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_legacy( self, team_id: int, @@ -3280,6 +3297,7 @@ async def async_delete_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_legacy( self, team_id: int, @@ -3290,6 +3308,7 @@ def update_legacy( ) -> Response[TeamFull, TeamFullTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_legacy( self, team_id: int, @@ -3307,6 +3326,7 @@ def update_legacy( parent_team_id: Missing[Union[int, None]] = UNSET, ) -> Response[TeamFull, TeamFullTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_legacy( self, team_id: int, @@ -3361,6 +3381,7 @@ def update_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_legacy( self, team_id: int, @@ -3371,6 +3392,7 @@ async def async_update_legacy( ) -> Response[TeamFull, TeamFullTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_legacy( self, team_id: int, @@ -3388,6 +3410,7 @@ async def async_update_legacy( parent_team_id: Missing[Union[int, None]] = UNSET, ) -> Response[TeamFull, TeamFullTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_legacy( self, team_id: int, @@ -3441,6 +3464,7 @@ async def async_update_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_discussions_legacy( self, team_id: int, @@ -3486,6 +3510,7 @@ def list_discussions_legacy( response_model=list[TeamDiscussion], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_discussions_legacy( self, team_id: int, @@ -3532,6 +3557,7 @@ async def async_list_discussions_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_legacy( self, team_id: int, @@ -3542,6 +3568,7 @@ def create_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_legacy( self, team_id: int, @@ -3554,6 +3581,7 @@ def create_discussion_legacy( private: Missing[bool] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_legacy( self, team_id: int, @@ -3604,6 +3632,7 @@ def create_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_legacy( self, team_id: int, @@ -3614,6 +3643,7 @@ async def async_create_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_legacy( self, team_id: int, @@ -3626,6 +3656,7 @@ async def async_create_discussion_legacy( private: Missing[bool] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_legacy( self, team_id: int, @@ -3675,6 +3706,7 @@ async def async_create_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_discussion_legacy( self, team_id: int, @@ -3711,6 +3743,7 @@ def get_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_discussion_legacy( self, team_id: int, @@ -3747,6 +3780,7 @@ async def async_get_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_discussion_legacy( self, team_id: int, @@ -3780,6 +3814,7 @@ def delete_discussion_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_discussion_legacy( self, team_id: int, @@ -3814,6 +3849,7 @@ async def async_delete_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_legacy( self, team_id: int, @@ -3825,6 +3861,7 @@ def update_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_legacy( self, team_id: int, @@ -3837,6 +3874,7 @@ def update_discussion_legacy( body: Missing[str] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_legacy( self, team_id: int, @@ -3891,6 +3929,7 @@ def update_discussion_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_legacy( self, team_id: int, @@ -3902,6 +3941,7 @@ async def async_update_discussion_legacy( ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_legacy( self, team_id: int, @@ -3914,6 +3954,7 @@ async def async_update_discussion_legacy( body: Missing[str] = UNSET, ) -> Response[TeamDiscussion, TeamDiscussionTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_legacy( self, team_id: int, @@ -3967,6 +4008,7 @@ async def async_update_discussion_legacy( response_model=TeamDiscussion, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_discussion_comments_legacy( self, team_id: int, @@ -4015,6 +4057,7 @@ def list_discussion_comments_legacy( response_model=list[TeamDiscussionComment], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_discussion_comments_legacy( self, team_id: int, @@ -4064,6 +4107,7 @@ async def async_list_discussion_comments_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_comment_legacy( self, team_id: int, @@ -4075,6 +4119,7 @@ def create_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_comment_legacy( self, team_id: int, @@ -4086,6 +4131,7 @@ def create_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def create_discussion_comment_legacy( self, team_id: int, @@ -4144,6 +4190,7 @@ def create_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_comment_legacy( self, team_id: int, @@ -4155,6 +4202,7 @@ async def async_create_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_comment_legacy( self, team_id: int, @@ -4166,6 +4214,7 @@ async def async_create_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_create_discussion_comment_legacy( self, team_id: int, @@ -4223,6 +4272,7 @@ async def async_create_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_discussion_comment_legacy( self, team_id: int, @@ -4260,6 +4310,7 @@ def get_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_discussion_comment_legacy( self, team_id: int, @@ -4297,6 +4348,7 @@ async def async_get_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def delete_discussion_comment_legacy( self, team_id: int, @@ -4331,6 +4383,7 @@ def delete_discussion_comment_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_delete_discussion_comment_legacy( self, team_id: int, @@ -4366,6 +4419,7 @@ async def async_delete_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_comment_legacy( self, team_id: int, @@ -4378,6 +4432,7 @@ def update_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_comment_legacy( self, team_id: int, @@ -4390,6 +4445,7 @@ def update_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def update_discussion_comment_legacy( self, team_id: int, @@ -4448,6 +4504,7 @@ def update_discussion_comment_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_comment_legacy( self, team_id: int, @@ -4460,6 +4517,7 @@ async def async_update_discussion_comment_legacy( ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_comment_legacy( self, team_id: int, @@ -4472,6 +4530,7 @@ async def async_update_discussion_comment_legacy( body: str, ) -> Response[TeamDiscussionComment, TeamDiscussionCommentTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_update_discussion_comment_legacy( self, team_id: int, @@ -4529,6 +4588,7 @@ async def async_update_discussion_comment_legacy( response_model=TeamDiscussionComment, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_pending_invitations_legacy( self, team_id: int, @@ -4572,6 +4632,7 @@ def list_pending_invitations_legacy( response_model=list[OrganizationInvitation], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_pending_invitations_legacy( self, team_id: int, @@ -4615,6 +4676,7 @@ async def async_list_pending_invitations_legacy( response_model=list[OrganizationInvitation], ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_members_legacy( self, team_id: int, @@ -4661,6 +4723,7 @@ def list_members_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_members_legacy( self, team_id: int, @@ -4707,6 +4770,7 @@ async def async_list_members_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_member_legacy( self, team_id: int, @@ -4740,6 +4804,7 @@ def get_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_member_legacy( self, team_id: int, @@ -4773,6 +4838,7 @@ async def async_get_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_member_legacy( self, team_id: int, @@ -4817,6 +4883,7 @@ def add_member_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_member_legacy( self, team_id: int, @@ -4861,6 +4928,7 @@ async def async_add_member_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_member_legacy( self, team_id: int, @@ -4899,6 +4967,7 @@ def remove_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_member_legacy( self, team_id: int, @@ -4937,6 +5006,7 @@ async def async_remove_member_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def get_membership_for_user_legacy( self, team_id: int, @@ -4981,6 +5051,7 @@ def get_membership_for_user_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_get_membership_for_user_legacy( self, team_id: int, @@ -5026,6 +5097,7 @@ async def async_get_membership_for_user_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5037,6 +5109,7 @@ def add_or_update_membership_for_user_legacy( ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5048,6 +5121,7 @@ def add_or_update_membership_for_user_legacy( role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5111,6 +5185,7 @@ def add_or_update_membership_for_user_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5122,6 +5197,7 @@ async def async_add_or_update_membership_for_user_legacy( ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5133,6 +5209,7 @@ async def async_add_or_update_membership_for_user_legacy( role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership, TeamMembershipTypeForResponse]: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_membership_for_user_legacy( self, team_id: int, @@ -5195,6 +5272,7 @@ async def async_add_or_update_membership_for_user_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_membership_for_user_legacy( self, team_id: int, @@ -5232,6 +5310,7 @@ def remove_membership_for_user_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_membership_for_user_legacy( self, team_id: int, @@ -5269,6 +5348,7 @@ async def async_remove_membership_for_user_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_projects_legacy( self, team_id: int, @@ -5312,6 +5392,7 @@ def list_projects_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_projects_legacy( self, team_id: int, @@ -5355,6 +5436,7 @@ async def async_list_projects_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def check_permissions_for_project_legacy( self, team_id: int, @@ -5389,6 +5471,7 @@ def check_permissions_for_project_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_check_permissions_for_project_legacy( self, team_id: int, @@ -5424,6 +5507,7 @@ async def async_check_permissions_for_project_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_legacy( self, team_id: int, @@ -5435,6 +5519,7 @@ def add_or_update_project_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_legacy( self, team_id: int, @@ -5446,6 +5531,7 @@ def add_or_update_project_permissions_legacy( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_project_permissions_legacy( self, team_id: int, @@ -5501,6 +5587,7 @@ def add_or_update_project_permissions_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_legacy( self, team_id: int, @@ -5512,6 +5599,7 @@ async def async_add_or_update_project_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_legacy( self, team_id: int, @@ -5523,6 +5611,7 @@ async def async_add_or_update_project_permissions_legacy( permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_project_permissions_legacy( self, team_id: int, @@ -5577,6 +5666,7 @@ async def async_add_or_update_project_permissions_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_project_legacy( self, team_id: int, @@ -5613,6 +5703,7 @@ def remove_project_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_project_legacy( self, team_id: int, @@ -5649,6 +5740,7 @@ async def async_remove_project_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_repos_legacy( self, team_id: int, @@ -5691,6 +5783,7 @@ def list_repos_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_repos_legacy( self, team_id: int, @@ -5733,6 +5826,7 @@ async def async_list_repos_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def check_permissions_for_repo_legacy( self, team_id: int, @@ -5772,6 +5866,7 @@ def check_permissions_for_repo_legacy( error_models={}, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_check_permissions_for_repo_legacy( self, team_id: int, @@ -5812,6 +5907,7 @@ async def async_check_permissions_for_repo_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_repo_permissions_legacy( self, team_id: int, @@ -5824,6 +5920,7 @@ def add_or_update_repo_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_repo_permissions_legacy( self, team_id: int, @@ -5836,6 +5933,7 @@ def add_or_update_repo_permissions_legacy( permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") def add_or_update_repo_permissions_legacy( self, team_id: int, @@ -5893,6 +5991,7 @@ def add_or_update_repo_permissions_legacy( ) @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_repo_permissions_legacy( self, team_id: int, @@ -5905,6 +6004,7 @@ async def async_add_or_update_repo_permissions_legacy( ) -> Response: ... @overload + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_repo_permissions_legacy( self, team_id: int, @@ -5917,6 +6017,7 @@ async def async_add_or_update_repo_permissions_legacy( permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_add_or_update_repo_permissions_legacy( self, team_id: int, @@ -5973,6 +6074,7 @@ async def async_add_or_update_repo_permissions_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def remove_repo_legacy( self, team_id: int, @@ -6005,6 +6107,7 @@ def remove_repo_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_remove_repo_legacy( self, team_id: int, @@ -6037,6 +6140,7 @@ async def async_remove_repo_legacy( stream=stream, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") def list_child_legacy( self, team_id: int, @@ -6081,6 +6185,7 @@ def list_child_legacy( }, ) + @deprecated("Deprecated API endpoint. See the docstring for more details.") async def async_list_child_legacy( self, team_id: int,