Skip to content

Commit 85766ca

Browse files
fix(waap): remove duplicate method for acct overview
1 parent 5c4f2a5 commit 85766ca

8 files changed

Lines changed: 1 addition & 301 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 302
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-c69353c2638a896685622a7bc91746002ce45c684c09f0cd59f90d193a711bfd.yml
33
openapi_spec_hash: 288f2041f8a716abffdbdf64ae886c63
4-
config_hash: 62229a7a78ca1c79cb7cf61752a8df7e
4+
config_hash: 851d2f0c1f925aee3b53478d4fe311ba

api.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -928,18 +928,6 @@ Methods:
928928

929929
- <code title="get /waap/v1/clients/me">client.waap.<a href="./src/gcore/resources/waap/waap.py">get_account_overview</a>() -> <a href="./src/gcore/types/waap/waap_get_account_overview_response.py">WaapGetAccountOverviewResponse</a></code>
930930

931-
## Clients
932-
933-
Types:
934-
935-
```python
936-
from gcore.types.waap import ClientMeResponse
937-
```
938-
939-
Methods:
940-
941-
- <code title="get /waap/v1/clients/me">client.waap.clients.<a href="./src/gcore/resources/waap/clients.py">me</a>() -> <a href="./src/gcore/types/waap/client_me_response.py">ClientMeResponse</a></code>
942-
943931
## Statistics
944932

945933
Methods:

src/gcore/resources/waap/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
WaapResourceWithStreamingResponse,
1717
AsyncWaapResourceWithStreamingResponse,
1818
)
19-
from .clients import (
20-
ClientsResource,
21-
AsyncClientsResource,
22-
ClientsResourceWithRawResponse,
23-
AsyncClientsResourceWithRawResponse,
24-
ClientsResourceWithStreamingResponse,
25-
AsyncClientsResourceWithStreamingResponse,
26-
)
2719
from .domains import (
2820
DomainsResource,
2921
AsyncDomainsResource,
@@ -74,12 +66,6 @@
7466
)
7567

7668
__all__ = [
77-
"ClientsResource",
78-
"AsyncClientsResource",
79-
"ClientsResourceWithRawResponse",
80-
"AsyncClientsResourceWithRawResponse",
81-
"ClientsResourceWithStreamingResponse",
82-
"AsyncClientsResourceWithStreamingResponse",
8369
"StatisticsResource",
8470
"AsyncStatisticsResource",
8571
"StatisticsResourceWithRawResponse",

src/gcore/resources/waap/clients.py

Lines changed: 0 additions & 135 deletions
This file was deleted.

src/gcore/resources/waap/waap.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
TagsResourceWithStreamingResponse,
1313
AsyncTagsResourceWithStreamingResponse,
1414
)
15-
from .clients import (
16-
ClientsResource,
17-
AsyncClientsResource,
18-
ClientsResourceWithRawResponse,
19-
AsyncClientsResourceWithRawResponse,
20-
ClientsResourceWithStreamingResponse,
21-
AsyncClientsResourceWithStreamingResponse,
22-
)
2315
from .ip_info import (
2416
IPInfoResource,
2517
AsyncIPInfoResource,
@@ -84,10 +76,6 @@
8476

8577

8678
class WaapResource(SyncAPIResource):
87-
@cached_property
88-
def clients(self) -> ClientsResource:
89-
return ClientsResource(self._client)
90-
9179
@cached_property
9280
def statistics(self) -> StatisticsResource:
9381
return StatisticsResource(self._client)
@@ -156,10 +144,6 @@ def get_account_overview(
156144

157145

158146
class AsyncWaapResource(AsyncAPIResource):
159-
@cached_property
160-
def clients(self) -> AsyncClientsResource:
161-
return AsyncClientsResource(self._client)
162-
163147
@cached_property
164148
def statistics(self) -> AsyncStatisticsResource:
165149
return AsyncStatisticsResource(self._client)
@@ -235,10 +219,6 @@ def __init__(self, waap: WaapResource) -> None:
235219
waap.get_account_overview,
236220
)
237221

238-
@cached_property
239-
def clients(self) -> ClientsResourceWithRawResponse:
240-
return ClientsResourceWithRawResponse(self._waap.clients)
241-
242222
@cached_property
243223
def statistics(self) -> StatisticsResourceWithRawResponse:
244224
return StatisticsResourceWithRawResponse(self._waap.statistics)
@@ -276,10 +256,6 @@ def __init__(self, waap: AsyncWaapResource) -> None:
276256
waap.get_account_overview,
277257
)
278258

279-
@cached_property
280-
def clients(self) -> AsyncClientsResourceWithRawResponse:
281-
return AsyncClientsResourceWithRawResponse(self._waap.clients)
282-
283259
@cached_property
284260
def statistics(self) -> AsyncStatisticsResourceWithRawResponse:
285261
return AsyncStatisticsResourceWithRawResponse(self._waap.statistics)
@@ -317,10 +293,6 @@ def __init__(self, waap: WaapResource) -> None:
317293
waap.get_account_overview,
318294
)
319295

320-
@cached_property
321-
def clients(self) -> ClientsResourceWithStreamingResponse:
322-
return ClientsResourceWithStreamingResponse(self._waap.clients)
323-
324296
@cached_property
325297
def statistics(self) -> StatisticsResourceWithStreamingResponse:
326298
return StatisticsResourceWithStreamingResponse(self._waap.statistics)
@@ -358,10 +330,6 @@ def __init__(self, waap: AsyncWaapResource) -> None:
358330
waap.get_account_overview,
359331
)
360332

361-
@cached_property
362-
def clients(self) -> AsyncClientsResourceWithStreamingResponse:
363-
return AsyncClientsResourceWithStreamingResponse(self._waap.clients)
364-
365333
@cached_property
366334
def statistics(self) -> AsyncStatisticsResourceWithStreamingResponse:
367335
return AsyncStatisticsResourceWithStreamingResponse(self._waap.statistics)

src/gcore/types/waap/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from .waap_top_session import WaapTopSession as WaapTopSession
1919
from .waap_organization import WaapOrganization as WaapOrganization
2020
from .waap_traffic_type import WaapTrafficType as WaapTrafficType
21-
from .client_me_response import ClientMeResponse as ClientMeResponse
2221
from .domain_list_params import DomainListParams as DomainListParams
2322
from .ip_info_get_params import IPInfoGetParams as IPInfoGetParams
2423
from .waap_advanced_rule import WaapAdvancedRule as WaapAdvancedRule

src/gcore/types/waap/client_me_response.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

tests/api_resources/waap/test_clients.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)