Skip to content

Commit fe916e5

Browse files
feat(api): update via SDK Studio (#348)
1 parent 4b5a1d3 commit fe916e5

18 files changed

Lines changed: 131 additions & 130 deletions

File tree

api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,11 +1682,11 @@ from cloudflare.types.dns import (
16821682

16831683
Methods:
16841684

1685-
- <code title="post /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_create_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall.py">Firewall</a></code>
1686-
- <code title="get /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_list_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall.py">SyncV4PagePaginationArray[Firewall]</a></code>
1685+
- <code title="post /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_create_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Firewall</a></code>
1686+
- <code title="get /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_list_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">SyncV4PagePaginationArray[Firewall]</a></code>
16871687
- <code title="delete /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">delete</a>(dns_firewall_id, \*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall_delete_response.py">FirewallDeleteResponse</a></code>
1688-
- <code title="patch /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">edit</a>(dns_firewall_id, \*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall.py">Firewall</a></code>
1689-
- <code title="get /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">get</a>(dns_firewall_id, \*, account_id) -> <a href="./src/cloudflare/types/dns/firewall.py">Firewall</a></code>
1688+
- <code title="patch /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">edit</a>(dns_firewall_id, \*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Firewall</a></code>
1689+
- <code title="get /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">get</a>(dns_firewall_id, \*, account_id) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Firewall</a></code>
16901690

16911691
### Analytics
16921692

@@ -3523,17 +3523,17 @@ Methods:
35233523

35243524
# Intel
35253525

3526-
## ASNResource
3526+
## ASN
35273527

35283528
Types:
35293529

35303530
```python
3531-
from cloudflare.types.intel import ASN
3531+
from cloudflare.types.intel import IntelASN
35323532
```
35333533

35343534
Methods:
35353535

3536-
- <code title="get /accounts/{account_id}/intel/asn/{asn}">client.intel.asn.<a href="./src/cloudflare/resources/intel/asn/asn.py">get</a>(asn, \*, account_id) -> <a href="./src/cloudflare/types/intel/asn.py">ASN</a></code>
3536+
- <code title="get /accounts/{account_id}/intel/asn/{asn}">client.intel.asn.<a href="./src/cloudflare/resources/intel/asn/asn.py">get</a>(asn, \*, account_id) -> <a href="./src/cloudflare/types/intel/intel_asn.py">IntelASN</a></code>
35373537

35383538
### Subnets
35393539

@@ -4420,7 +4420,7 @@ from cloudflare.types.stream.captions.language import VttGetResponse
44204420

44214421
Methods:
44224422

4423-
- <code title="get /accounts/{account_id}/stream/{identifier}/captions/{language}/vtt">client.stream.captions.language.vtt.<a href="./src/cloudflare/resources/stream/captions/language/vtt.py">get</a>(language, \*, account_id, identifier, \*\*<a href="src/cloudflare/types/stream/captions/language/vtt_get_params.py">params</a>) -> str</code>
4423+
- <code title="get /accounts/{account_id}/stream/{identifier}/captions/{language}/vtt">client.stream.captions.language.vtt.<a href="./src/cloudflare/resources/stream/captions/language/vtt.py">get</a>(language, \*, account_id, identifier) -> str</code>
44244424

44254425
## Downloads
44264426

src/cloudflare/resources/dns/firewall/firewall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
)
3030
from ...._wrappers import ResultWrapper
3131
from ....types.dns import (
32-
Firewall,
3332
FirewallIPsParam,
3433
UpstreamIPsParam,
3534
AttackMitigationParam,
@@ -45,6 +44,7 @@
4544
make_request_options,
4645
)
4746
from .analytics.analytics import Analytics, AsyncAnalytics
47+
from ....types.dns.firewall import Firewall
4848

4949
__all__ = ["FirewallResource", "AsyncFirewallResource"]
5050

src/cloudflare/resources/intel/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from .asn import (
4-
ASNResource,
5-
AsyncASNResource,
6-
ASNResourceWithRawResponse,
7-
AsyncASNResourceWithRawResponse,
8-
ASNResourceWithStreamingResponse,
9-
AsyncASNResourceWithStreamingResponse,
4+
ASN,
5+
AsyncASN,
6+
ASNWithRawResponse,
7+
AsyncASNWithRawResponse,
8+
ASNWithStreamingResponse,
9+
AsyncASNWithStreamingResponse,
1010
)
1111
from .dns import (
1212
DNS,
@@ -98,12 +98,12 @@
9898
)
9999

100100
__all__ = [
101-
"ASNResource",
102-
"AsyncASNResource",
103-
"ASNResourceWithRawResponse",
104-
"AsyncASNResourceWithRawResponse",
105-
"ASNResourceWithStreamingResponse",
106-
"AsyncASNResourceWithStreamingResponse",
101+
"ASN",
102+
"AsyncASN",
103+
"ASNWithRawResponse",
104+
"AsyncASNWithRawResponse",
105+
"ASNWithStreamingResponse",
106+
"AsyncASNWithStreamingResponse",
107107
"DNS",
108108
"AsyncDNS",
109109
"DNSWithRawResponse",
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from .asn import (
4-
ASNResource,
5-
AsyncASNResource,
6-
ASNResourceWithRawResponse,
7-
AsyncASNResourceWithRawResponse,
8-
ASNResourceWithStreamingResponse,
9-
AsyncASNResourceWithStreamingResponse,
4+
ASN,
5+
AsyncASN,
6+
ASNWithRawResponse,
7+
AsyncASNWithRawResponse,
8+
ASNWithStreamingResponse,
9+
AsyncASNWithStreamingResponse,
1010
)
1111
from .subnets import (
1212
Subnets,
@@ -24,10 +24,10 @@
2424
"AsyncSubnetsWithRawResponse",
2525
"SubnetsWithStreamingResponse",
2626
"AsyncSubnetsWithStreamingResponse",
27-
"ASNResource",
28-
"AsyncASNResource",
29-
"ASNResourceWithRawResponse",
30-
"AsyncASNResourceWithRawResponse",
31-
"ASNResourceWithStreamingResponse",
32-
"AsyncASNResourceWithStreamingResponse",
27+
"ASN",
28+
"AsyncASN",
29+
"ASNWithRawResponse",
30+
"AsyncASNWithRawResponse",
31+
"ASNWithStreamingResponse",
32+
"AsyncASNWithStreamingResponse",
3333
]

src/cloudflare/resources/intel/asn/asn.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@
2424
async_to_streamed_response_wrapper,
2525
)
2626
from ...._wrappers import ResultWrapper
27-
from ....types.intel import ASN
27+
from ....types.intel import IntelASN
2828
from ...._base_client import (
2929
make_request_options,
3030
)
3131

32-
__all__ = ["ASNResource", "AsyncASNResource"]
32+
__all__ = ["ASN", "AsyncASN"]
3333

3434

35-
class ASNResource(SyncAPIResource):
35+
class ASN(SyncAPIResource):
3636
@cached_property
3737
def subnets(self) -> Subnets:
3838
return Subnets(self._client)
3939

4040
@cached_property
41-
def with_raw_response(self) -> ASNResourceWithRawResponse:
42-
return ASNResourceWithRawResponse(self)
41+
def with_raw_response(self) -> ASNWithRawResponse:
42+
return ASNWithRawResponse(self)
4343

4444
@cached_property
45-
def with_streaming_response(self) -> ASNResourceWithStreamingResponse:
46-
return ASNResourceWithStreamingResponse(self)
45+
def with_streaming_response(self) -> ASNWithStreamingResponse:
46+
return ASNWithStreamingResponse(self)
4747

4848
def get(
4949
self,
50-
asn: ASN,
50+
asn: IntelASN,
5151
*,
5252
account_id: str,
5353
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -56,7 +56,7 @@ def get(
5656
extra_query: Query | None = None,
5757
extra_body: Body | None = None,
5858
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
59-
) -> ASN:
59+
) -> IntelASN:
6060
"""
6161
Get ASN Overview
6262
@@ -80,28 +80,28 @@ def get(
8080
extra_query=extra_query,
8181
extra_body=extra_body,
8282
timeout=timeout,
83-
post_parser=ResultWrapper[ASN]._unwrapper,
83+
post_parser=ResultWrapper[IntelASN]._unwrapper,
8484
),
85-
cast_to=cast(Type[ASN], ResultWrapper[int]),
85+
cast_to=cast(Type[IntelASN], ResultWrapper[int]),
8686
)
8787

8888

89-
class AsyncASNResource(AsyncAPIResource):
89+
class AsyncASN(AsyncAPIResource):
9090
@cached_property
9191
def subnets(self) -> AsyncSubnets:
9292
return AsyncSubnets(self._client)
9393

9494
@cached_property
95-
def with_raw_response(self) -> AsyncASNResourceWithRawResponse:
96-
return AsyncASNResourceWithRawResponse(self)
95+
def with_raw_response(self) -> AsyncASNWithRawResponse:
96+
return AsyncASNWithRawResponse(self)
9797

9898
@cached_property
99-
def with_streaming_response(self) -> AsyncASNResourceWithStreamingResponse:
100-
return AsyncASNResourceWithStreamingResponse(self)
99+
def with_streaming_response(self) -> AsyncASNWithStreamingResponse:
100+
return AsyncASNWithStreamingResponse(self)
101101

102102
async def get(
103103
self,
104-
asn: ASN,
104+
asn: IntelASN,
105105
*,
106106
account_id: str,
107107
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -110,7 +110,7 @@ async def get(
110110
extra_query: Query | None = None,
111111
extra_body: Body | None = None,
112112
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
113-
) -> ASN:
113+
) -> IntelASN:
114114
"""
115115
Get ASN Overview
116116
@@ -134,14 +134,14 @@ async def get(
134134
extra_query=extra_query,
135135
extra_body=extra_body,
136136
timeout=timeout,
137-
post_parser=ResultWrapper[ASN]._unwrapper,
137+
post_parser=ResultWrapper[IntelASN]._unwrapper,
138138
),
139-
cast_to=cast(Type[ASN], ResultWrapper[int]),
139+
cast_to=cast(Type[IntelASN], ResultWrapper[int]),
140140
)
141141

142142

143-
class ASNResourceWithRawResponse:
144-
def __init__(self, asn: ASNResource) -> None:
143+
class ASNWithRawResponse:
144+
def __init__(self, asn: ASN) -> None:
145145
self._asn = asn
146146

147147
self.get = to_raw_response_wrapper(
@@ -153,8 +153,8 @@ def subnets(self) -> SubnetsWithRawResponse:
153153
return SubnetsWithRawResponse(self._asn.subnets)
154154

155155

156-
class AsyncASNResourceWithRawResponse:
157-
def __init__(self, asn: AsyncASNResource) -> None:
156+
class AsyncASNWithRawResponse:
157+
def __init__(self, asn: AsyncASN) -> None:
158158
self._asn = asn
159159

160160
self.get = async_to_raw_response_wrapper(
@@ -166,8 +166,8 @@ def subnets(self) -> AsyncSubnetsWithRawResponse:
166166
return AsyncSubnetsWithRawResponse(self._asn.subnets)
167167

168168

169-
class ASNResourceWithStreamingResponse:
170-
def __init__(self, asn: ASNResource) -> None:
169+
class ASNWithStreamingResponse:
170+
def __init__(self, asn: ASN) -> None:
171171
self._asn = asn
172172

173173
self.get = to_streamed_response_wrapper(
@@ -179,8 +179,8 @@ def subnets(self) -> SubnetsWithStreamingResponse:
179179
return SubnetsWithStreamingResponse(self._asn.subnets)
180180

181181

182-
class AsyncASNResourceWithStreamingResponse:
183-
def __init__(self, asn: AsyncASNResource) -> None:
182+
class AsyncASNWithStreamingResponse:
183+
def __init__(self, asn: AsyncASN) -> None:
184184
self._asn = asn
185185

186186
self.get = async_to_streamed_response_wrapper(

src/cloudflare/resources/intel/asn/subnets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
async_to_raw_response_wrapper,
1414
async_to_streamed_response_wrapper,
1515
)
16-
from ....types.intel import ASN
16+
from ....types.intel import IntelASN
1717
from ...._base_client import (
1818
make_request_options,
1919
)
@@ -33,7 +33,7 @@ def with_streaming_response(self) -> SubnetsWithStreamingResponse:
3333

3434
def get(
3535
self,
36-
asn: ASN,
36+
asn: IntelASN,
3737
*,
3838
account_id: str,
3939
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -79,7 +79,7 @@ def with_streaming_response(self) -> AsyncSubnetsWithStreamingResponse:
7979

8080
async def get(
8181
self,
82-
asn: ASN,
82+
asn: IntelASN,
8383
*,
8484
account_id: str,
8585
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

0 commit comments

Comments
 (0)