|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -import typing_extensions |
6 | 5 | from typing import Dict, List, Iterable, Optional |
7 | 6 | from typing_extensions import Literal |
8 | 7 |
|
|
22 | 21 | project_update_params, |
23 | 22 | project_validate_params, |
24 | 23 | project_invite_sme_params, |
25 | | - project_increment_queries_params, |
26 | 24 | project_retrieve_analytics_params, |
27 | 25 | ) |
28 | 26 | from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven |
@@ -349,45 +347,6 @@ def export( |
349 | 347 | cast_to=object, |
350 | 348 | ) |
351 | 349 |
|
352 | | - @typing_extensions.deprecated("deprecated") |
353 | | - def increment_queries( |
354 | | - self, |
355 | | - project_id: str, |
356 | | - *, |
357 | | - count: int | NotGiven = NOT_GIVEN, |
358 | | - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
359 | | - # The extra values given here take precedence over values defined on the client or passed to this method. |
360 | | - extra_headers: Headers | None = None, |
361 | | - extra_query: Query | None = None, |
362 | | - extra_body: Body | None = None, |
363 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
364 | | - ) -> object: |
365 | | - """ |
366 | | - Increment the queries metric for a project. |
367 | | -
|
368 | | - Args: |
369 | | - extra_headers: Send extra headers |
370 | | -
|
371 | | - extra_query: Add additional query parameters to the request |
372 | | -
|
373 | | - extra_body: Add additional JSON properties to the request |
374 | | -
|
375 | | - timeout: Override the client-level default timeout for this request, in seconds |
376 | | - """ |
377 | | - if not project_id: |
378 | | - raise ValueError(f"Expected a non-empty value for `project_id` but received {project_id!r}") |
379 | | - return self._post( |
380 | | - f"/api/projects/{project_id}/increment_queries", |
381 | | - options=make_request_options( |
382 | | - extra_headers=extra_headers, |
383 | | - extra_query=extra_query, |
384 | | - extra_body=extra_body, |
385 | | - timeout=timeout, |
386 | | - query=maybe_transform({"count": count}, project_increment_queries_params.ProjectIncrementQueriesParams), |
387 | | - ), |
388 | | - cast_to=object, |
389 | | - ) |
390 | | - |
391 | 350 | def invite_sme( |
392 | 351 | self, |
393 | 352 | project_id: str, |
@@ -956,47 +915,6 @@ async def export( |
956 | 915 | cast_to=object, |
957 | 916 | ) |
958 | 917 |
|
959 | | - @typing_extensions.deprecated("deprecated") |
960 | | - async def increment_queries( |
961 | | - self, |
962 | | - project_id: str, |
963 | | - *, |
964 | | - count: int | NotGiven = NOT_GIVEN, |
965 | | - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
966 | | - # The extra values given here take precedence over values defined on the client or passed to this method. |
967 | | - extra_headers: Headers | None = None, |
968 | | - extra_query: Query | None = None, |
969 | | - extra_body: Body | None = None, |
970 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
971 | | - ) -> object: |
972 | | - """ |
973 | | - Increment the queries metric for a project. |
974 | | -
|
975 | | - Args: |
976 | | - extra_headers: Send extra headers |
977 | | -
|
978 | | - extra_query: Add additional query parameters to the request |
979 | | -
|
980 | | - extra_body: Add additional JSON properties to the request |
981 | | -
|
982 | | - timeout: Override the client-level default timeout for this request, in seconds |
983 | | - """ |
984 | | - if not project_id: |
985 | | - raise ValueError(f"Expected a non-empty value for `project_id` but received {project_id!r}") |
986 | | - return await self._post( |
987 | | - f"/api/projects/{project_id}/increment_queries", |
988 | | - options=make_request_options( |
989 | | - extra_headers=extra_headers, |
990 | | - extra_query=extra_query, |
991 | | - extra_body=extra_body, |
992 | | - timeout=timeout, |
993 | | - query=await async_maybe_transform( |
994 | | - {"count": count}, project_increment_queries_params.ProjectIncrementQueriesParams |
995 | | - ), |
996 | | - ), |
997 | | - cast_to=object, |
998 | | - ) |
999 | | - |
1000 | 918 | async def invite_sme( |
1001 | 919 | self, |
1002 | 920 | project_id: str, |
@@ -1308,11 +1226,6 @@ def __init__(self, projects: ProjectsResource) -> None: |
1308 | 1226 | self.export = to_raw_response_wrapper( |
1309 | 1227 | projects.export, |
1310 | 1228 | ) |
1311 | | - self.increment_queries = ( # pyright: ignore[reportDeprecated] |
1312 | | - to_raw_response_wrapper( |
1313 | | - projects.increment_queries # pyright: ignore[reportDeprecated], |
1314 | | - ) |
1315 | | - ) |
1316 | 1229 | self.invite_sme = to_raw_response_wrapper( |
1317 | 1230 | projects.invite_sme, |
1318 | 1231 | ) |
@@ -1362,11 +1275,6 @@ def __init__(self, projects: AsyncProjectsResource) -> None: |
1362 | 1275 | self.export = async_to_raw_response_wrapper( |
1363 | 1276 | projects.export, |
1364 | 1277 | ) |
1365 | | - self.increment_queries = ( # pyright: ignore[reportDeprecated] |
1366 | | - async_to_raw_response_wrapper( |
1367 | | - projects.increment_queries # pyright: ignore[reportDeprecated], |
1368 | | - ) |
1369 | | - ) |
1370 | 1278 | self.invite_sme = async_to_raw_response_wrapper( |
1371 | 1279 | projects.invite_sme, |
1372 | 1280 | ) |
@@ -1416,11 +1324,6 @@ def __init__(self, projects: ProjectsResource) -> None: |
1416 | 1324 | self.export = to_streamed_response_wrapper( |
1417 | 1325 | projects.export, |
1418 | 1326 | ) |
1419 | | - self.increment_queries = ( # pyright: ignore[reportDeprecated] |
1420 | | - to_streamed_response_wrapper( |
1421 | | - projects.increment_queries # pyright: ignore[reportDeprecated], |
1422 | | - ) |
1423 | | - ) |
1424 | 1327 | self.invite_sme = to_streamed_response_wrapper( |
1425 | 1328 | projects.invite_sme, |
1426 | 1329 | ) |
@@ -1470,11 +1373,6 @@ def __init__(self, projects: AsyncProjectsResource) -> None: |
1470 | 1373 | self.export = async_to_streamed_response_wrapper( |
1471 | 1374 | projects.export, |
1472 | 1375 | ) |
1473 | | - self.increment_queries = ( # pyright: ignore[reportDeprecated] |
1474 | | - async_to_streamed_response_wrapper( |
1475 | | - projects.increment_queries # pyright: ignore[reportDeprecated], |
1476 | | - ) |
1477 | | - ) |
1478 | 1376 | self.invite_sme = async_to_streamed_response_wrapper( |
1479 | 1377 | projects.invite_sme, |
1480 | 1378 | ) |
|
0 commit comments