Skip to content

Commit 01c7469

Browse files
feat(api): aggregated API specs update
1 parent 9f6d1a7 commit 01c7469

30 files changed

Lines changed: 5 additions & 2928 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 609
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-0346b042bad7a80c3a1d4281080d8196a2e7fe31d16555fa09a969c17135802d.yml
3-
openapi_spec_hash: 89f372e20779803f35c14b4189960972
1+
configured_endpoints: 599
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-963021ac0cb8a12826d7e00d317340e71748a27c18553422a76d882d2e8ad389.yml
3+
openapi_spec_hash: 0c1ea27cd584bf0d47fed367663053b2
44
config_hash: 4758209f53bb13d06f55e4cf6c952b6d

api.md

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,60 +1789,22 @@ Methods:
17891789

17901790
# Security
17911791

1792-
## Events
1793-
1794-
Types:
1795-
1796-
```python
1797-
from gcore.types.security import ClientView
1798-
```
1799-
1800-
Methods:
1801-
1802-
- <code title="get /security/notifier/v1/event_logs">client.security.events.<a href="./src/gcore/resources/security/events.py">list</a>(\*\*<a href="src/gcore/types/security/event_list_params.py">params</a>) -> <a href="./src/gcore/types/security/client_view.py">SyncOffsetPage[ClientView]</a></code>
1803-
1804-
## BgpAnnounces
1805-
1806-
Types:
1807-
1808-
```python
1809-
from gcore.types.security import ClientAnnounce, BgpAnnounceListResponse
1810-
```
1811-
1812-
Methods:
1813-
1814-
- <code title="get /security/sifter/v2/protected_addresses/announces">client.security.bgp_announces.<a href="./src/gcore/resources/security/bgp_announces.py">list</a>(\*\*<a href="src/gcore/types/security/bgp_announce_list_params.py">params</a>) -> <a href="./src/gcore/types/security/bgp_announce_list_response.py">BgpAnnounceListResponse</a></code>
1815-
- <code title="post /security/sifter/v2/protected_addresses/announces">client.security.bgp_announces.<a href="./src/gcore/resources/security/bgp_announces.py">toggle</a>(\*\*<a href="src/gcore/types/security/bgp_announce_toggle_params.py">params</a>) -> object</code>
1816-
18171792
## ProfileTemplates
18181793

18191794
Types:
18201795

18211796
```python
1822-
from gcore.types.security import ClientProfileTemplate, ProfileTemplateListResponse
1797+
from gcore.types.security import ClientProfileTemplate
18231798
```
18241799

1825-
Methods:
1826-
1827-
- <code title="get /security/iaas/profile-templates">client.security.profile_templates.<a href="./src/gcore/resources/security/profile_templates.py">list</a>() -> <a href="./src/gcore/types/security/profile_template_list_response.py">ProfileTemplateListResponse</a></code>
1828-
18291800
## Profiles
18301801

18311802
Types:
18321803

18331804
```python
1834-
from gcore.types.security import ClientProfile, ProfileListResponse
1805+
from gcore.types.security import ClientProfile
18351806
```
18361807

1837-
Methods:
1838-
1839-
- <code title="post /security/iaas/v2/profiles">client.security.profiles.<a href="./src/gcore/resources/security/profiles.py">create</a>(\*\*<a href="src/gcore/types/security/profile_create_params.py">params</a>) -> <a href="./src/gcore/types/security/client_profile.py">ClientProfile</a></code>
1840-
- <code title="get /security/iaas/v2/profiles">client.security.profiles.<a href="./src/gcore/resources/security/profiles.py">list</a>(\*\*<a href="src/gcore/types/security/profile_list_params.py">params</a>) -> <a href="./src/gcore/types/security/profile_list_response.py">ProfileListResponse</a></code>
1841-
- <code title="delete /security/iaas/v2/profiles/{id}">client.security.profiles.<a href="./src/gcore/resources/security/profiles.py">delete</a>(id) -> None</code>
1842-
- <code title="get /security/iaas/v2/profiles/{id}">client.security.profiles.<a href="./src/gcore/resources/security/profiles.py">get</a>(id) -> <a href="./src/gcore/types/security/client_profile.py">ClientProfile</a></code>
1843-
- <code title="put /security/iaas/v2/profiles/{id}/recreate">client.security.profiles.<a href="./src/gcore/resources/security/profiles.py">recreate</a>(id, \*\*<a href="src/gcore/types/security/profile_recreate_params.py">params</a>) -> <a href="./src/gcore/types/security/client_profile.py">ClientProfile</a></code>
1844-
- <code title="put /security/iaas/v2/profiles/{id}">client.security.profiles.<a href="./src/gcore/resources/security/profiles.py">replace</a>(id, \*\*<a href="src/gcore/types/security/profile_replace_params.py">params</a>) -> <a href="./src/gcore/types/security/client_profile.py">ClientProfile</a></code>
1845-
18461808
# DNS
18471809

18481810
Types:

src/gcore/_client.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from .resources.cloud import cloud
3636
from .resources.storage import storage
3737
from .resources.fastedge import fastedge
38-
from .resources.security import security
3938
from .resources.streaming import streaming
4039

4140
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Gcore", "AsyncGcore", "Client", "AsyncClient"]
@@ -47,7 +46,6 @@ class Gcore(SyncAPIClient):
4746
iam: iam.IamResource
4847
fastedge: fastedge.FastedgeResource
4948
streaming: streaming.StreamingResource
50-
security: security.SecurityResource
5149
dns: dns.DNSResource
5250
storage: storage.StorageResource
5351
cdn: cdn.CdnResource
@@ -140,7 +138,6 @@ def __init__(
140138
self.iam = iam.IamResource(self)
141139
self.fastedge = fastedge.FastedgeResource(self)
142140
self.streaming = streaming.StreamingResource(self)
143-
self.security = security.SecurityResource(self)
144141
self.dns = dns.DNSResource(self)
145142
self.storage = storage.StorageResource(self)
146143
self.cdn = cdn.CdnResource(self)
@@ -284,7 +281,6 @@ class AsyncGcore(AsyncAPIClient):
284281
iam: iam.AsyncIamResource
285282
fastedge: fastedge.AsyncFastedgeResource
286283
streaming: streaming.AsyncStreamingResource
287-
security: security.AsyncSecurityResource
288284
dns: dns.AsyncDNSResource
289285
storage: storage.AsyncStorageResource
290286
cdn: cdn.AsyncCdnResource
@@ -377,7 +373,6 @@ def __init__(
377373
self.iam = iam.AsyncIamResource(self)
378374
self.fastedge = fastedge.AsyncFastedgeResource(self)
379375
self.streaming = streaming.AsyncStreamingResource(self)
380-
self.security = security.AsyncSecurityResource(self)
381376
self.dns = dns.AsyncDNSResource(self)
382377
self.storage = storage.AsyncStorageResource(self)
383378
self.cdn = cdn.AsyncCdnResource(self)
@@ -522,7 +517,6 @@ def __init__(self, client: Gcore) -> None:
522517
self.iam = iam.IamResourceWithRawResponse(client.iam)
523518
self.fastedge = fastedge.FastedgeResourceWithRawResponse(client.fastedge)
524519
self.streaming = streaming.StreamingResourceWithRawResponse(client.streaming)
525-
self.security = security.SecurityResourceWithRawResponse(client.security)
526520
self.dns = dns.DNSResourceWithRawResponse(client.dns)
527521
self.storage = storage.StorageResourceWithRawResponse(client.storage)
528522
self.cdn = cdn.CdnResourceWithRawResponse(client.cdn)
@@ -535,7 +529,6 @@ def __init__(self, client: AsyncGcore) -> None:
535529
self.iam = iam.AsyncIamResourceWithRawResponse(client.iam)
536530
self.fastedge = fastedge.AsyncFastedgeResourceWithRawResponse(client.fastedge)
537531
self.streaming = streaming.AsyncStreamingResourceWithRawResponse(client.streaming)
538-
self.security = security.AsyncSecurityResourceWithRawResponse(client.security)
539532
self.dns = dns.AsyncDNSResourceWithRawResponse(client.dns)
540533
self.storage = storage.AsyncStorageResourceWithRawResponse(client.storage)
541534
self.cdn = cdn.AsyncCdnResourceWithRawResponse(client.cdn)
@@ -548,7 +541,6 @@ def __init__(self, client: Gcore) -> None:
548541
self.iam = iam.IamResourceWithStreamingResponse(client.iam)
549542
self.fastedge = fastedge.FastedgeResourceWithStreamingResponse(client.fastedge)
550543
self.streaming = streaming.StreamingResourceWithStreamingResponse(client.streaming)
551-
self.security = security.SecurityResourceWithStreamingResponse(client.security)
552544
self.dns = dns.DNSResourceWithStreamingResponse(client.dns)
553545
self.storage = storage.StorageResourceWithStreamingResponse(client.storage)
554546
self.cdn = cdn.CdnResourceWithStreamingResponse(client.cdn)
@@ -561,7 +553,6 @@ def __init__(self, client: AsyncGcore) -> None:
561553
self.iam = iam.AsyncIamResourceWithStreamingResponse(client.iam)
562554
self.fastedge = fastedge.AsyncFastedgeResourceWithStreamingResponse(client.fastedge)
563555
self.streaming = streaming.AsyncStreamingResourceWithStreamingResponse(client.streaming)
564-
self.security = security.AsyncSecurityResourceWithStreamingResponse(client.security)
565556
self.dns = dns.AsyncDNSResourceWithStreamingResponse(client.dns)
566557
self.storage = storage.AsyncStorageResourceWithStreamingResponse(client.storage)
567558
self.cdn = cdn.AsyncCdnResourceWithStreamingResponse(client.cdn)

src/gcore/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@
5656
FastedgeResourceWithStreamingResponse,
5757
AsyncFastedgeResourceWithStreamingResponse,
5858
)
59-
from .security import (
60-
SecurityResource,
61-
AsyncSecurityResource,
62-
SecurityResourceWithRawResponse,
63-
AsyncSecurityResourceWithRawResponse,
64-
SecurityResourceWithStreamingResponse,
65-
AsyncSecurityResourceWithStreamingResponse,
66-
)
6759
from .streaming import (
6860
StreamingResource,
6961
AsyncStreamingResource,
@@ -104,12 +96,6 @@
10496
"AsyncStreamingResourceWithRawResponse",
10597
"StreamingResourceWithStreamingResponse",
10698
"AsyncStreamingResourceWithStreamingResponse",
107-
"SecurityResource",
108-
"AsyncSecurityResource",
109-
"SecurityResourceWithRawResponse",
110-
"AsyncSecurityResourceWithRawResponse",
111-
"SecurityResourceWithStreamingResponse",
112-
"AsyncSecurityResourceWithStreamingResponse",
11399
"DNSResource",
114100
"AsyncDNSResource",
115101
"DNSResourceWithRawResponse",

src/gcore/resources/security/__init__.py

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

0 commit comments

Comments
 (0)